Building 1.4rc2 with GCC 3.3
by Jack Stenner · in Torque Game Engine · 11/03/2005 (2:00 am) · 2 replies
I have a game that I've developed using Tiger and gcc4. I am setting up a machine to run the game for an art installation, and the machine provided has OSX 10.3.6. Of course, it barfs because it can't find libstdc++.6.dylib. I decided to recompile on my laptop, using gcc3.3, but it won't build because of this error:
CompileCplusplus /Documents/Programming/Projects/Playas/PlayasSDK/pb/build/torque_xcode_2_1.build/Default/Playas-ReleaseG5gcc3.build/Objects-normal/ppc/macCarbWindow.o
/usr/bin/g++-3.3 -c -Wp,-header-mapfile,/Documents/Programming/Projects/Playas/PlayasSDK/pb/build/torque_xcode_2_1.build/Default/Playas-ReleaseG5gcc3.build/Playas.hmap -F/Documents/Programming/Projects/Playas/PlayasSDK/pb/build/Default -F../lib/openal/macosx -F../lib/xiph/macosx -F/Documents/Programming/Projects/Playas/PlayasSDK/pb -I/Documents/Programming/Projects/Playas/PlayasSDK/pb/build/Default/include -I../engine -I../lib -I/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Headers -I/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/OT.framework/Headers -I/System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks/QD.framework/Headers -I/System/Library/Frameworks/Carbon.framework/Versions/Current/Frameworks/HIToolbox.framework/Headers -I/System/Library/Frameworks/OpenGL.framework/Headers -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I/Developer/Headers/FlatCarbon -I../lib/xiph/include -I../lib/lpng -I../lib/zlib -I../lib/ljpeg -I../lib/lungif -I../lib/openal/macosx/eax -I../engine/platformMacCarb -arch ppc -fno-common -fpascal-strings -O3 -w -Wunused -Wunused-parameter -pipe "-fmessage-length=0" -mdynamic-no-pic "-force_cpusubtype_ALL" "-D__MACOSX__" "-DTORQUE_MULTITHREAD" "-faltivec" "-falign-functions=16" "-falign-loops=16" "-falign-labels=16" "-falign-jumps=16" "-mcpu=970" "-mtune=970" "-mpowerpc64" "-malign-natural" "-mno-multiple" "-DTORQUE_MAC_CONTENT_OUTSIDE_BUNDLE" "-DTORQUE_UNICODE" "-mpowerpc-gpopt" "-ffast-math" "-funroll-loops" "-finline" "-fobey-inline" "-malign-natural" ../engine/platformMacCarb/macCarbWindow.cc -o /Documents/Programming/Projects/Playas/PlayasSDK/pb/build/torque_xcode_2_1.build/Default/Playas-ReleaseG5gcc3.build/Objects-normal/ppc/macCarbWindow.o
{standard input}:2100:Parameter error: expression must be a multiple of 4 (parameter 2)
...failed CompileCplusplus /Documents/Programming/Projects/Playas/PlayasSDK/pb/build/torque_xcode_2_1.build/Default/Playas-ReleaseG5gcc3.build/Objects-normal/ppc/macCarbWindow.o ...
The error is no help....... I took a look at line 2100 of macCarbWindow.cc and there's nothing there to change. (it's in an ifdef).
Any ideas?
TIA!
CompileCplusplus /Documents/Programming/Projects/Playas/PlayasSDK/pb/build/torque_xcode_2_1.build/Default/Playas-ReleaseG5gcc3.build/Objects-normal/ppc/macCarbWindow.o
/usr/bin/g++-3.3 -c -Wp,-header-mapfile,/Documents/Programming/Projects/Playas/PlayasSDK/pb/build/torque_xcode_2_1.build/Default/Playas-ReleaseG5gcc3.build/Playas.hmap -F/Documents/Programming/Projects/Playas/PlayasSDK/pb/build/Default -F../lib/openal/macosx -F../lib/xiph/macosx -F/Documents/Programming/Projects/Playas/PlayasSDK/pb -I/Documents/Programming/Projects/Playas/PlayasSDK/pb/build/Default/include -I../engine -I../lib -I/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Headers -I/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/OT.framework/Headers -I/System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks/QD.framework/Headers -I/System/Library/Frameworks/Carbon.framework/Versions/Current/Frameworks/HIToolbox.framework/Headers -I/System/Library/Frameworks/OpenGL.framework/Headers -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I/Developer/Headers/FlatCarbon -I../lib/xiph/include -I../lib/lpng -I../lib/zlib -I../lib/ljpeg -I../lib/lungif -I../lib/openal/macosx/eax -I../engine/platformMacCarb -arch ppc -fno-common -fpascal-strings -O3 -w -Wunused -Wunused-parameter -pipe "-fmessage-length=0" -mdynamic-no-pic "-force_cpusubtype_ALL" "-D__MACOSX__" "-DTORQUE_MULTITHREAD" "-faltivec" "-falign-functions=16" "-falign-loops=16" "-falign-labels=16" "-falign-jumps=16" "-mcpu=970" "-mtune=970" "-mpowerpc64" "-malign-natural" "-mno-multiple" "-DTORQUE_MAC_CONTENT_OUTSIDE_BUNDLE" "-DTORQUE_UNICODE" "-mpowerpc-gpopt" "-ffast-math" "-funroll-loops" "-finline" "-fobey-inline" "-malign-natural" ../engine/platformMacCarb/macCarbWindow.cc -o /Documents/Programming/Projects/Playas/PlayasSDK/pb/build/torque_xcode_2_1.build/Default/Playas-ReleaseG5gcc3.build/Objects-normal/ppc/macCarbWindow.o
{standard input}:2100:Parameter error: expression must be a multiple of 4 (parameter 2)
...failed CompileCplusplus /Documents/Programming/Projects/Playas/PlayasSDK/pb/build/torque_xcode_2_1.build/Default/Playas-ReleaseG5gcc3.build/Objects-normal/ppc/macCarbWindow.o ...
The error is no help....... I took a look at line 2100 of macCarbWindow.cc and there's nothing there to change. (it's in an ifdef).
Any ideas?
TIA!
About the author
#2
Thanks for your help. Since I'm in the process of setting up the installation, I don't have much time to troubleshoot. I had to do what's needed to get it running before the opening. 10.3.9 might have solved the problem. I'm also wondering if maybe building, using the flags for the G5, on a G4 laptop might have caused the problem? Should I be able to do that?
Anyway, thanks again for your suggestions,
Jack
11/03/2005 (4:57 pm)
Quote:1) update the machine to 10.3.9.I am in Singapore, at a university, dealing with their equipment and setup. Unfortunately, yesterday was a holiday and the IT people weren't around. We couldn't place the machine on the network, to perform any updates. Fortuntaely, one of the faculty members who WAS there, had a copy of Tiger in their car, and now my immediate problem is solved :)
Quote:2) delete the pb/build folder.Yes this was a working setup with the proper links in the build folder, etc. The strange thing is that I could build my debug version of the app, but the release version would fail as above.
Quote:3) what project file are you using? latest from CVS? I see some defines in there that I thought I took out.This is my project file, derived from 1.4rc2 from probably 1-2 weeks ago. The defines you probably notice are defines added to optimize the game for the G5 from the "Optimizing on the Mac" resource.
Quote:4) have you got a clean checkout of 1.4? My guess is that your project doesn't require anything custom down in the platform/ or platformMacCarb/ directories, so be sure you've got the latest there.Not with me here in Singapore, and now that the machine has Tiger on it, I can't check it. With my immediate problem solved, though, I'll have to mess with it later. I haven't done anything with the platform stuff, and this was the first tipoff that something was awry.
Thanks for your help. Since I'm in the process of setting up the installation, I don't have much time to troubleshoot. I had to do what's needed to get it running before the opening. 10.3.9 might have solved the problem. I'm also wondering if maybe building, using the flags for the G5, on a G4 laptop might have caused the problem? Should I be able to do that?
Anyway, thanks again for your suggestions,
Jack
Torque Owner Paul Scott
Default Studio Name
1) update the machine to 10.3.9.
2) delete the pb/build folder.
3) what project file are you using? latest from CVS? I see some defines in there that I thought I took out.
4) have you got a clean checkout of 1.4? My guess is that your project doesn't require anything custom down in the platform/ or platformMacCarb/ directories, so be sure you've got the latest there.
I'm running 10.3.9 on my laptop, using gcc3.3, and I can build 1.4 without problems.
Try the quick & easy things first, then after that there are some other things to do to dig.
The error itself is one you get when you try to resolve a pointer that isn't aligned properly.
Also, macCarbWindow.cc is a mess, and the compiler may have gotten confused on the line #.