Opened 2 years ago

Closed 22 months ago

#66004 closed defect (fixed)

flint fails to configure on Leopard: SyntaxError: invalid syntax

Reported by: barracuda156 Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: powerpc, leopard, snowleopard Cc:
Port: flint

Description

<string>:4: Warning: 'with' will become a reserved keyword in Python 2.6
  File "<string>", line 4
    with open(join('/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_flint/flint/work/flint-2.9.0','qadic', 'CPimport.txt')) as fin:
            ^
SyntaxError: invalid syntax
CMake Error: File /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_flint/flint/work/build-ppc/CPimport.h.in does not exist.
CMake Error at CMakeLists.txt:127 (configure_file):
  configure_file Problem configuring file


-- Performing Test HAS_FLAG_MPOPCNT
-- Performing Test HAS_FLAG_MPOPCNT - Failed
-- Performing Test HAS_FLAG_UNROLL_LOOPS
-- Performing Test HAS_FLAG_UNROLL_LOOPS - Success
-- Performing Test FLINT_USES_POPCNT
-- Performing Test FLINT_USES_POPCNT - Success
-- Performing Test FLINT_USES_FENV
-- Performing Test FLINT_USES_FENV - Success
-- Performing Test FLINT_USES_CPUSET
-- Performing Test FLINT_USES_CPUSET - Failed
-- Using FLINT memory manager: reentrant
-- Checking for IPO
-- Checking for IPO - not found
-- Configuring incomplete, errors occurred!

Identical error on 10.6 PPC too.

Attachments (1)

main.log (14.6 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by barracuda156

Version: 2.7.22.8.0

comment:2 Changed 2 years ago by reneeotten (Renee Otten)

Probably just need to make sure not to use the system Python, which appears to be 2.5.x - add a dependency on 2.7 (or ideally 3.10) and see if that works.

comment:3 in reply to:  2 Changed 2 years ago by barracuda156

Replying to reneeotten:

Probably just need to make sure not to use the system Python, which appears to be 2.5.x - add a dependency on 2.7 (or ideally 3.10) and see if that works.

It is there, but apparently does not work:

depends_build-append    port:python310

Thank you, I will try forcing it to use correct Python.

comment:4 Changed 22 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In e8ea8e8460a60688929f5f2ab931e48fa75108cb/macports-ports (master):

flint: ensure usage of correct Python

Fixes #65648
Fixes #66004

No revbump since port either builds correctly or not at all.

Note: See TracTickets for help on using tickets.