[MacPorts] #22815: wxWidgets fails to build with +universal

MacPorts noreply at macports.org
Mon Dec 7 03:49:15 PST 2009


#22815: wxWidgets fails to build with +universal
----------------------------------+-----------------------------------------
 Reporter:  software@…            |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  ports                 |     Version:  1.8.1                                
 Keywords:  universal             |        Port:  wxWidgets                            
----------------------------------+-----------------------------------------

Comment(by software@…):

 For the record, I was able to reproduce this bug with both wxWidgets 2.8.9
 and 2.9.0.

 At some point, the Bakefile script work/wxWidgets-2.9.0/build/bk-make-pch
 is called, which -at the end of the script- tries to write a dependency
 file:

  /usr/bin/g++-4.0 -mmacosx-version-min=10.5 -I./.pch/wxprec_monodll
 -D__WXOSX_COCOA__ -DWXBUILDING -I./build/src/tiff/libtiff
 -I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
 -I../src/regex -I../src/expat/lib -DwxUSE_BASE=1 -DWXMAKINGDLL
 -I../src/stc/scintilla/include -I../src/stc/scintilla/src -D__WX__
 -DSCI_LEXER -DLINK_LEXERS -dynamic -ET_BITS=64 -I./lib/wx/include
 /osx_cocoa-unicode-release-2.9 -I../include -I/opt/local/include
 -DWX_PRECOMP -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -O2
 -arch i386 -arch ppc -fno-common -fvisibility=hidden -fvisibility-inlines-
 hidden -o ./.pch/wxprec_monodll/wx/wxprec.h.gch -MMD -MF
 ./.deps/___pch_wxprec_monodll_wx_wxprec_h_gch.d ../include/wx/wxprec.h

 Apparently, this is not allowed, as the error clearly indicates:

  g++-4.0: -E, -S, -save-temps and -M options are not allowed with multiple
 -arch flags

 I do not know how to solve this. Compiling without the +universal variant
 works fine on both 32-bit and 64-bit architectures.

-- 
Ticket URL: <http://trac.macports.org/ticket/22815#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list