New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17788 (closed defect: duplicate)

Opened 3 years ago

Last modified 16 months ago

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

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

Change History

Changed 3 years ago by illogic-al@…

ilmbase patch for gcc 4.2

Changed 3 years ago by illogic-al@…

openexr patch for gcc 4.2

  Changed 3 years ago by macsforever2000@…

  • keywords ilmbase openexr removed
  • owner changed from macports-tickets@… to waqar@…
  • port set to ilmbase openexr

Assigning to maintainer.

in reply to: ↑ description   Changed 3 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.

  Changed 3 years ago by zeph0x@…

  • cc zeph0x@… added

Cc Me!

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

  Changed 16 months ago by jmr@…

Maintainer timeout is only 3 days; just commit these.

  Changed 16 months ago by jmr@…

  • status changed from new to closed
  • resolution set to duplicate

Actually, these were both fixed via #20433.

Note: See TracTickets for help on using tickets.