Opened 16 years ago

Closed 14 years ago

#17788 closed defect (duplicate)

openexr and ilmbase do not build with xcode's gcc 4.2

Reported by: illogic-al@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: gcc apple-gcc42 Cc: zeph0x@…
Port: ilmbase openexr

Description

both openexr and ilmbase (shown below) fail to compile with gcc 4.2 from xcode 3. It doesn't recognize the flag -Wno-long-double which was for gcc 4.0. I've attached patches that fix this.

openexr$ sudo port install kdelibs4Password:
--->  Building ilmbase
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ilmbase/work/ilmbase-1.0.1" && make -j2 all " returned error 2
Command output: Making all in Half
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -I../config -I../config  -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -mmacosx-version-min=10.4 -D_THREAD_SAFE  -Wno-long-double -c -o eLut.o eLut.cpp
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -I../config -I../config  -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -pipe -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -mmacosx-version-min=10.4 -D_THREAD_SAFE  -Wno-long-double -c -o toFloat.o toFloat.cpp
cc1plus: error: unrecognized command line option "-Wno-long-double"
cc1plus: error: unrecognized command line option "-Wno-long-double"
cc1plus: error: unrecognized command line option "-Wno-long-double"
cc1plus: error: unrecognized command line option "-Wno-long-double"
lipo: can't open input file: /var/tmp//cchtMn7G.out (No such file or directory)
lipo: can't open input file: /var/tmp//ccvi5kbG.out (No such file or directory)
make[1]: *** [eLut.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [toFloat.o] Error 1
make: *** [all-recursive] Error 1

Error: The following dependencies failed to build: openexr ilmbase pcre readline phonon shared-mime-info intltool gnome-common p5-xml-parser libxml2 strigi clucene
Error: Status 1 encountered during processing.
orville@cubic:openexr$

Attachments (2)

universal_build_10.4_ilmbase.diff (462 bytes) - added by illogic-al@… 16 years ago.
ilmbase patch for gcc 4.2
universal_build_10.4_openexr.diff (469 bytes) - added by illogic-al@… 16 years ago.
openexr patch for gcc 4.2

Download all attachments as: .zip

Change History (8)

Changed 16 years ago by illogic-al@…

ilmbase patch for gcc 4.2

Changed 16 years ago by illogic-al@…

openexr patch for gcc 4.2

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Keywords: ilmbase openexr removed
Owner: changed from macports-tickets@… to waqar@…
Port: ilmbase openexr added

Assigning to maintainer.

comment:2 in reply to:  description Changed 16 years ago by zeph0x@…

Replying to illogic-al@…:

I've attached patches that fix this.

I ran into this same issue. The attached patches fixed the problem, allowing me to compile the ports.

comment:3 Changed 16 years ago by zeph0x@…

Cc: zeph0x@… added

Cc Me!

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Maintainer timeout is only 3 days; just commit these.

comment:6 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

Actually, these were both fixed via #20433.

Note: See TracTickets for help on using tickets.