PDA

View Full Version : XCode compilation error



dvmorris
28th November 2007, 03:22
I just recently got my Qt project set up with XCode, and I get the following errors when I try to compile any of the code:


Building target “dlflcore” of project “dlflcore” with configuration “Release” — (2 errors)
cd /Users/dvmorris/topmod2/topmodx/include/dlflcore
/usr/include/c++ -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/dlflcore.hmap -F/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/Release -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/Release/include -I.. -I../vecmat -I. -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/DerivedSources -pipe -g -arch ppc -arch i386 -w -fPIC -c /Users/dvmorris/topmod2/topmodx/include/dlflcore/DLFLCommon.cc -o /Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/Objects-normal/i386/DLFLCommon.o
error: can't exec '/usr/include/c++' (Permission denied)
error: can't exec '/usr/include/c++' (Permission denied)
cd /Users/dvmorris/topmod2/topmodx/include/dlflcore
/usr/include/c++ -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/dlflcore.hmap -F/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/Release -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/Release/include -I.. -I../vecmat -I. -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I/Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/DerivedSources -pipe -g -arch ppc -arch i386 -w -fPIC -c /Users/dvmorris/topmod2/topmodx/include/dlflcore/DLFLCore.cc -o /Users/dvmorris/topmod2/topmodx/include/dlflcore/build/dlflcore.build/Release/dlflcore.build/Objects-normal/i386/DLFLCore.o
error: can't exec '/usr/include/c++' (Permission denied)
error: can't exec '/usr/include/c++' (Permission denied)
Build failed (2 errors)

the main issue there is this:


error: can't exec '/usr/include/c++' (Permission denied)

I have no idea what this means or how to go about fixing it, and I can't seem to find any documentation about it or support through an xcode forum. Any help would be greatly appreciated, thanks,

dave

e8johan
28th November 2007, 21:43
It seems that xcode thinks that the compiler is located in the include directory... which seems very odd. If you simply type "c++" at the prompt, or perhaps "which c++", what does that tell you?

dvmorris
28th November 2007, 22:27
it says /usr/bin/c++ when i type which c++

I found out through a helpful person on the xcode discussion list that I need to trim down my PATH variable, because it had a lot of extraneous stuff in there, and now that I have done that, I get the following compile error in xcode:



CompileC build/vecmat.build/Debug/vecmat.build/Objects-normal/ppc/Matrix3x3.o /Users/dvmorris/topmod2/topmodx/include/vecmat/Matrix3x3.cc normal ppc c++ com.apple.compilers.gcc.4_0
cd /Users/dvmorris/topmod2/topmodx/include/vecmat
/usr/bin/c++ -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -fmessage-length=0 -mtune=G4 -gdwarf-2 -I/Users/dvmorris/topmod2/topmodx/include/vecmat/build/vecmat.build/Debug/vecmat.build/vecmat.hmap -F/Users/dvmorris/topmod2/topmodx/include/vecmat/build/Debug -I/Users/dvmorris/topmod2/topmodx/include/vecmat/build/Debug/include -I. -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/macx-g++ -I/Users/dvmorris/topmod2/topmodx/include/vecmat/build/vecmat.build/Debug/vecmat.build/DerivedSources -pipe -g -arch ppc -arch i386 -w -fPIC -c /Users/dvmorris/topmod2/topmodx/include/vecmat/Matrix3x3.cc -o /Users/dvmorris/topmod2/topmodx/include/vecmat/build/vecmat.build/Debug/vecmat.build/Objects-normal/ppc/Matrix3x3.o
/Users/dvmorris/topmod2/topmodx/include/vecmat/Matrix3x3.cc:1: error: bad value (G4) for -mtune= switch
lipo: can't open input file: /var/folders/7y/7yScN9AOEm80KhlLdRTY7++++TI/-Tmp-//ccoprUor.out (No such file or directory)



any idea what that means? I also don't see much of anything on internet searches