#17788: openexr and ilmbase do not build with xcode's gcc 4.2 ---------------------------------------------+------------------------------ Reporter: illogic-al@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: gcc apple-gcc42 ilmbase openexr | Port: ---------------------------------------------+------------------------------ 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$ }}} -- Ticket URL: <http://trac.macports.org/ticket/17788> MacPorts <http://www.macports.org/> Ports system for Mac OS