[MacPorts] #60145: fftw-3 @3.3.8_1 does not configure on PPC Leopard, Mac OS X 10.5.8, because of error: expected expression before ')' token

MacPorts noreply at macports.org
Sat Mar 21 19:48:54 UTC 2020


#60145: fftw-3 @3.3.8_1 does not configure on PPC Leopard, Mac OS X 10.5.8, because
of error: expected expression before ')' token
------------------------+---------------------------------
  Reporter:  ballapete  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:  leopard powerpc
      Port:  fftw-3     |
------------------------+---------------------------------

Comment (by MarcusCalhoun-Lopez):

 MacPorts GCC works fine for compiling and linking with `-no_compact_unwind
 `:
 {{{
 $ /opt/local/bin/gcc-mp-7 -v -Wl,-no_compact_unwind main.c
 ...
 /opt/local/bin/ld -dynamic -arch ppc -macosx_version_min 10.5.8
 -weak_reference_mismatches non-weak -o a.out -lcrt1.10.5.o
 -L/opt/local/lib/gcc7/gcc/ppc-apple-darwin9/7.5.0
 -L/opt/local/lib/gcc7/gcc/ppc-apple-darwin9/7.5.0/../../..
 -no_compact_unwind
 /var/folders/C9/C9Jy09LJGbKai7NsxnaBQE+++TI/-Tmp-//ccDGqLTg.o -lgcc_s.10.5
 -lgcc_ext.10.5 -lgcc -lSystem -lef_ppc -v
 }}}


 System GCC works fine for **just compiling** with `-no_compact_unwind `:
 {{{
 $ /Developer/usr/bin/llvm-gcc-4.2 -arch ppc -v -c -Wl,-no_compact_unwind
 main.c
 }}}
 Albeit, there is a warning `powerpc-apple-darwin9-llvm-gcc-4.2:
 -no_compact_unwind: linker input file unused because linking not done`.

 System GCC fails for compiling and linking with `-no_compact_unwind `:
 {{{
 $ /Developer/usr/bin/llvm-gcc-4.2 -arch ppc -v -Wl,-no_compact_unwind
 main.c
 ...
 /Developer/usr/llvm-gcc-4.2/libexec/gcc/powerpc-apple-
 darwin9/4.2.1/collect2 -dynamic -arch ppc -macosx_version_min 10.5.8
 -weak_reference_mismatches non-weak -o a.out -lcrt1.10.5.o -L/usr/lib
 /powerpc-apple-darwin9/4.2.1 -L/Developer/usr/llvm-gcc-4.2/lib/gcc
 /powerpc-apple-darwin9/4.2.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.2.1
 -L/Developer/usr/llvm-gcc-4.2/lib/gcc/powerpc-apple-darwin9/4.2.1/../../..
 -no_compact_unwind
 /var/folders/C9/C9Jy09LJGbKai7NsxnaBQE+++TI/-Tmp-//ccD7Zi4c.o -lgcc_s.10.5
 -lgcc -lSystemStubs -lSystem
 ld: unknown option: -no_compact_unwind
 collect2: ld returned 1 exit status
 }}}

 This confuses the configure script for fftw-3 because it checks if
 `-Wl,-no_compact_unwind` works **only by compiling**.


 I believe the easiest solution is to add to the Portfile:
 {{{
 # see https://trac.macports.org/ticket/60145
 if {${build_arch} eq "ppc" or ${build_arch} eq "ppc64"} {
     compiler.blacklist-append *gcc-3.* *gcc-4.*
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60145#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list