• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode2.2 and gcc-3.3 "multiple compilations" error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode2.2 and gcc-3.3 "multiple compilations" error


  • Subject: Re: Xcode2.2 and gcc-3.3 "multiple compilations" error
  • From: Nick Dowell <email@hidden>
  • Date: Thu, 17 Nov 2005 15:54:48 +0000


On 17 Nov 2005, at 15:48, Chris Espinosa wrote:

On Nov 17, 2005, at 7:37 AM, Nick Dowell wrote:

I've been trying to build a c++ Xcode 2.2 project under gcc 3.3 in order to ship a c++ based solution to customers running MacOS versions prior to 10.3.9.

The project builds fine with gcc 4, but now I always get this error:

"gcc-3.3: cannot specify -o with -c or -S and multiple compilations"

The strange this is, I can build some projects with gcc 3.3 (using the GCC_VERSION build setting) but not wxWidgets (which other projects depend on). And even projects which work have both "-o" and "-c" as options to gcc, so the error message seems very misleading.

Please post the compiler invocation line from the build transcript for the file that generates this error. There's no way to tell what's happening without seeing the input parameters to the compiler.


Chris

Here's the offending invocation:

cd /Users/nick/Documents/trunk/lib/wxWidgets-2.6/src
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal- strings -fasm-blocks -Os -Wswitch -Wuninitialized -DNO_GCC_PRAGMA - D__WXMAC__ -DwxUSE_BASE=1 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES - D__WXMAC_XCODE__=1 -DWX_PRECOMP=1 -DMACOS_CLASSIC -fmessage-length=0 - mtune=G4 -Wno-invalid-offsetof -Wmost -Wno-four-char-constants -Wno- unknown-pragmas -F/Users/nick/Documents/trunk/lib/wxWidgets-2.6/src/ build/Deployment -I/Users/nick/Documents/trunk/lib/wxWidgets-2.6/src/ build/Deployment/include -I/Users/nick/Documents/trunk/lib/ wxWidgets-2.6/src/build/include -I../include -Imac/carbon/morefilex - Icommon -Ijpeg -Ipng -Iregex -Iexpat/lib -Itiff -I- -I/Developer/SDKs/ MacOSX10.3.9.sdk/Developer/Headers/FlatCarbon -I/Developer/SDKs/ MacOSX10.3.9.sdk/usr/include -I/Users/nick/Documents/trunk/lib/ wxWidgets-2.6/src/build/wxWindows.build/Deployment/static.build/ DerivedSources -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant- cfstrings -D__CONSTANT_CFSTRINGS__ -iquote /Users/nick/Documents/ trunk/lib/wxWidgets-2.6/src/build/include -iquote ../include -iquote mac/carbon/morefilex -iquote common -iquote jpeg -iquote png -iquote regex -iquote expat/lib -iquote tiff -isystem /Developer/SDKs/ MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -I/Developer/SDKs/ MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3/c++ -I/Developer/SDKs/ MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3/c++/ppc-darwin -isystem / Developer/SDKs/MacOSX10.3.9.sdk/usr/include -include /Users/nick/ Documents/trunk/lib/wxWidgets-2.6/src/../include/wx/wxprec.h -c / Users/nick/Documents/trunk/lib/wxWidgets-2.6/src/common/file.cpp -o / Users/nick/Documents/trunk/lib/wxWidgets-2.6/src/build/ wxWindows.build/Deployment/static.build/Objects-normal/ppc/file.o
gcc-3.3: cannot specify -o with -c or -S and multiple compilations


============================

And here's a similar one, but it works:

cd /Users/nick/Documents/trunk/Fireliter/CtrlPanel
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fno- exceptions -fno-rtti -fpascal-strings -fasm-blocks -g -O0 - DNO_GCC_PRAGMA -D__WXMAC__ -DwxUSE_BASE=1 -D_FILE_OFFSET_BITS=64 - D_LARGE_FILES -D__WXMAC_XCODE__=1 -DMACOS_CLASSIC -DMAC -fmessage- length=0 -mtune=G4 -Wno-invalid-offsetof -Wp,-header-mapfile,/Users/ nick/Documents/trunk/Fireliter/CtrlPanel/build/SaffireControl- wx2.6.build/Development/SaffireControl.build/SaffireControl.hmap - Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/nick/ Documents/trunk/Fireliter/CtrlPanel/build/Development -I/Users/nick/ Documents/trunk/Fireliter/CtrlPanel/build/Development/include -I../ AVCIO -I../../PAL/PAL -I/usr/include -I../../lib/wxWidgets-2.6/ include -I../../lib/wxWidgets-2.6/src/build/include -I. -I../Reverb - I../EQ/Project -I/Users/nick/Documents/trunk/Fireliter/CtrlPanel/ build/SaffireControl-wx2.6.build/Development/SaffireControl.build/ DerivedSources -include /Library/Caches/com.apple.Xcode.501/ SharedPrecompiledHeaders/wx_pb-bibheconzzbpbaeyxdrafjbofgjf/wx_pb.h - c /Users/nick/Documents/trunk/Fireliter/CtrlPanel/../AVCIO/AVCIO.cpp - o /Users/nick/Documents/trunk/Fireliter/CtrlPanel/build/ SaffireControl-wx2.6.build/Development/SaffireControl.build/Objects- normal/ppc/AVCIO.o


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Xcode2.2 and gcc-3.3 "multiple compilations" error
      • From: Chris Espinosa <email@hidden>
References: 
 >Xcode2.2 and gcc-3.3 "multiple compilations" error (From: Nick Dowell <email@hidden>)
 >Re: Xcode2.2 and gcc-3.3 "multiple compilations" error (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Xcode2.2 and gcc-3.3 "multiple compilations" error
  • Next by Date: Re: Shortcut for "add breakpoint in project"
  • Previous by thread: Re: Xcode2.2 and gcc-3.3 "multiple compilations" error
  • Next by thread: Re: Xcode2.2 and gcc-3.3 "multiple compilations" error
  • Index(es):
    • Date
    • Thread