New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #18428 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

fftw-3 doesn't compile with universal flag

Reported by: jjdanimoth@… Owned by: ram@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: mcalhoun@…, jjdanimoth@…
Port: fftw-3

Description

Hello, I'm trying to compile fftw-3 with universal flag enabled; I'm on Leopard 10.5.6 with a PPC machine. The output is:

Configuring fftw-3
Error: Target org.macports.configure returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_fftw-3/work/i386 && CFLAGS="-O2 -fno-common -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386" CXXFLAGS="-O2 -fno-common -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386" LDFLAGS="-L/opt/local/lib -arch i386" ./configure --prefix=/opt/local --enable-threads --enable-fma --disable-fortran --enable-shared" returned error 1
Command output: c
hecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... powerpc-apple-darwin9.6.0
checking host system type... powerpc-apple-darwin9.6.0
checking for gcc..
. gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_fftw-3/work/i386':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Change History

comment:1 Changed 4 years ago by jjdanimoth@…

  • Cc jjdanimoth@… added

Cc Me!

comment:2 Changed 4 years ago by macsforever2000@…

  • Cc jjdanimoth@… removed
  • Port set to fftw

The reporter is automatically Cc'ed.

What version of Xcode do you have installed?

comment:3 Changed 4 years ago by jjdanimoth@…

Version 3.0

comment:4 Changed 4 years ago by macsforever2000@…

Try installing the latest version, 3.1.2.

comment:5 Changed 4 years ago by jjdanimoth@…

Same error.

It happens only to me ?

comment:6 Changed 4 years ago by mcalhoun@…

  • Cc mcalhoun@… added

Cc Me!

comment:7 Changed 4 years ago by jjdanimoth@…

  • Cc jjdanimoth@… added

Cc Me!

comment:8 Changed 4 years ago by jjdanimoth@…

With fftw-3 3.2.1:

Error: Target org.macports.configure returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_fftw-3/work/i386 && CFLAGS="-O2 -fno-common -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386" CXXFLAGS="-O2 -fno-common -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386" LDFLAGS="-L/opt/local/lib -arch i386" ./configure --prefix=/opt/local --enable-threads --enable-fma --disable-fortran --enable-shared" returned error 1
Command output: c
hecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... powerpc-apple-darwin9.6.0
checking host system type... powerpc-apple-darwin9.6.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_fftw-3/work/i386':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
Error: Unable to upgrade port: 1
Executing: /opt/local/bin/port -u upgrade fftw-3 +universal

comment:9 Changed 4 years ago by jjdanimoth@…

There's nothing that I can do ?

Maybe adding a --host=something in the script ? What is the 'something' ?

comment:10 Changed 4 years ago by ram@…

  • Owner changed from macports-tickets@… to ram@…
  • Status changed from new to assigned
  • Port changed from fftw to fftw-3
  • Summary changed from fftw doesn't compile with universal flag to fftw-3 doesn't compile with universal flag

From the above error it looks like theres something wrong with your compiler. The port now uses the muniversal PortGroup for the universal variant, can you test again?

If you get the error again, can you attach the full build log, i.e.:

$ sudo port clean fftw-3
$ sudo port -d install fftw-3 +universal > fftw-3.log

comment:11 Changed 4 years ago by jjdanimoth@…

I installed the ppc version only, then I've installed other dependencies for py-gtk2 for universal.

Then, I removed fftw-3 ppc version, and recompiled it universal: it works.

At this point, if I was the only one that have this bug, it could be closed.

Sorry for the time

comment:12 Changed 4 years ago by ram@…

  • Status changed from assigned to closed
  • Resolution set to invalid

Strange, glad its working now.

comment:13 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.