Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18428 closed defect (invalid)

fftw-3 doesn't compile with universal flag

Reported by: jjdanimoth@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 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 (13)

comment:1 Changed 15 years ago by jjdanimoth@…

Cc: jjdanimoth@… added

Cc Me!

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Cc: jjdanimoth@… removed
Port: fftw added

The reporter is automatically Cc'ed.

What version of Xcode do you have installed?

comment:3 Changed 15 years ago by jjdanimoth@…

Version 3.0

comment:4 Changed 15 years ago by mf2k (Frank Schima)

Try installing the latest version, 3.1.2.

comment:5 Changed 15 years ago by jjdanimoth@…

Same error.

It happens only to me ?

comment:6 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:7 Changed 15 years ago by jjdanimoth@…

Cc: jjdanimoth@… added

Cc Me!

comment:8 Changed 15 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 15 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 15 years ago by skymoo (Adam Mercer)

Owner: changed from macports-tickets@… to ram@…
Port: fftw-3 added; fftw removed
Status: newassigned
Summary: fftw doesn't compile with universal flagfftw-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 15 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 15 years ago by skymoo (Adam Mercer)

Resolution: invalid
Status: assignedclosed

Strange, glad its working now.

comment:13 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.