Opened 18 years ago

Closed 18 years ago

#9209 closed defect (fixed)

fftw-3-single package does not build correctly on Intel Mac.

Reported by: dlapsley@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: dlapsley@…, markd@…
Port:

Description

Platform: MacBook Intel Core Duo 2 GHz, Mac OS X 10.4

I get the following error message when I try to install fftw-3-single:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../simd -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math -march=pentiumpro -D_THREAD_SAFE -MT trig.lo -MD -MP -MF .deps/trig.Tpo -c trig.c -o trig.o

/var/tmpccK1uJkn.s:79:operands given don't match any known 386 instruction /var/tmpccK1uJkn.s:83:operands given don't match any known 386 instruction /var/tmpccK1uJkn.s:112:operands given don't match any known 386 instruction /var/tmpccK1uJkn.s:114:operands given don't match any known 386 instruction /var/tmpccK1uJkn.s:138:operands given don't match any known 386 instruction /var/tmpccK1uJkn.s:144:operands given don't match any known 386 instruction make[2]: * [trig.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Error: /opt/local/bin/port: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 18 years ago by dlapsley@…

Cc: dlapsley@… added

The cause of the compilation failure is related to the gcc 4.0.1 compiler used. Here is a URL to the source web page which has a description of the workaround:

[From within the source directory after the initial make fails]

cd kernel make CFLAG" " trig.lo cd .. make

This mostly works. There is an additional file "rader.o" that must be compiled blank CFLAGS>

I've noticed that the previous version of FFTW (3.0.1) compiles without any problems.

http://www.fftw.org/faq/section2.html#compilerCrashes

comment:2 Changed 18 years ago by gwright@…

Owner: changed from darwinports-bugs@… to gwright@…

Does the problem still occur after upgrading to Xcode 2.3? If so, I will implement the workaround. If not, the fix will be to upgrade to Xcode 2.3.

Best Wishes, Greg

comment:3 Changed 18 years ago by dlapsley@…

Greg,

Thanks for getting back to me so quickly. I upgraded Xcode but still get the same error. It would be great if you could include the workaround. Here is some more information from the FFTW authors:

There are two known problems on the Intel Macs.

First, Apple's gcc 4.0.1 on Intel has a bug that causes it to crash when compiling our kernel/trig.c file ... the workaround is to compile this file without optimization: cd kernel; make CFLAGS=" " trig.lo

Second, our CPU detection currently doesn't work for that machine. You can manually force it to tune for the pentium-m (which seems to be the best option for now) by configuring --with-gcc-arch=pentium-m

Thanks!

David.

comment:4 Changed 18 years ago by gwright@…

Status: newassigned

comment:5 Changed 18 years ago by pguyot (Paul Guyot)

Component: basedports

comment:6 Changed 18 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: assignedclosed

Version 3.1.2 fixes building on Intel. Committed version bump for fftw-3 and fftw-3-single that fixes this. Tested on Intel.

Note: See TracTickets for help on using tickets.