Linux TLK 1.4 & GCC3.4
by Stefan Walker · in Torque Game Engine · 04/12/2006 (9:45 am) · 10 replies
I'm having issues with TLK 1.4 and GCC3.4
configure.mk didn't have GCC.34 as an option, so I added it at "GCC3.4+" because I found a file in the "mk" folder called "conf.GCC3.4+.LINUX.mk". Then I ran "make -f mk/configure.mk OS=LINUX COMPILER=GCC3.4+ BUILD=DEBUG" and the screen output returned a "VALID" configuration. Everything appeared to compile well until the end; it returned what must be a simple user error:
[someuser@localhost]$make ... a few moments later....
make[1]: *** No rule to make target '/home/someuser/SynapseGaming/contentPacks/LightingPack/example/.GCC3.4+.DEBUG/cmdgram.obj' , needed by '/home/someuser/SynapseGaming/contentPacks/LightingPack/example/.GCC3.4+.DEBUG/TorqueLightingKit_DEBUG.bin'. Stop.
make: *** [default] Error 2
Any insight on this issue will be appreciated.
configure.mk didn't have GCC.34 as an option, so I added it at "GCC3.4+" because I found a file in the "mk" folder called "conf.GCC3.4+.LINUX.mk". Then I ran "make -f mk/configure.mk OS=LINUX COMPILER=GCC3.4+ BUILD=DEBUG" and the screen output returned a "VALID" configuration. Everything appeared to compile well until the end; it returned what must be a simple user error:
[someuser@localhost]$make ... a few moments later....
make[1]: *** No rule to make target '/home/someuser/SynapseGaming/contentPacks/LightingPack/example/.GCC3.4+.DEBUG/cmdgram.obj' , needed by '/home/someuser/SynapseGaming/contentPacks/LightingPack/example/.GCC3.4+.DEBUG/TorqueLightingKit_DEBUG.bin'. Stop.
make: *** [default] Error 2
Any insight on this issue will be appreciated.
About the author
#2
04/13/2006 (9:25 am)
I saw that post, though I can't seem to find the targets.torque.mk file to make these changes. I'll keep searching though.
#3
04/13/2006 (1:11 pm)
It's in the engine directory.
#4
targets.torque.mk:18" *** missing separator. Stop.
make: *** [default] Error 2
I'm not sure what it means by separtor, all the lines in that area of that file appear to be uniform, including the line I added.
04/15/2006 (3:02 pm)
After I added that string to line 19 of targets.torque.mk I get this error now. (Line 18 had "game/fx/volLight.cc\")targets.torque.mk:18" *** missing separator. Stop.
make: *** [default] Error 2
I'm not sure what it means by separtor, all the lines in that area of that file appear to be uniform, including the line I added.
#5
targets.torque.mk:18" *** missing separator. Stop.
make: *** [default] Error 2
I'm not sure what it means by separtor, all the lines in that area of that file appear to be uniform, including the line I added.
04/15/2006 (3:04 pm)
After I added that string to line 19 of targets.torque.mk I get this error now. (Line 18 had "game/fx/volLight.cc\")targets.torque.mk:18" *** missing separator. Stop.
make: *** [default] Error 2
I'm not sure what it means by separtor, all the lines in that area of that file appear to be uniform, including the line I added.
#6
04/15/2006 (3:17 pm)
You need a space between the filename & the \
#7
"muphicks Brokenmachine: check line 18 is indented via a tab rather than a space and ends with a \ if its not the last line of that makefile group"
Which this seemed to work, everything was going well until:
platformX86UNIX/x86UNIXCPUInfo.cc: In static member function 'static void Processor::init()':
platformX86UNIX/x86UNIXCPUInfo.cc:60: error: 'timeLo' was not declared in this scope
platformX86UNIX/x86UNIXCPUInfo.cc: 60:error: 'timeHi was not declared in this scope
make[1]: *** [out.GCC3.4+.RELEASE/platformX86UNIX/x86UNIXCPUInfo.obj] Error 1
make *** [default] Error 2
04/15/2006 (3:36 pm)
Thanks, I also followed muphicks advice from IRC: "muphicks Brokenmachine: check line 18 is indented via a tab rather than a space and ends with a \ if its not the last line of that makefile group"
Which this seemed to work, everything was going well until:
platformX86UNIX/x86UNIXCPUInfo.cc: In static member function 'static void Processor::init()':
platformX86UNIX/x86UNIXCPUInfo.cc:60: error: 'timeLo' was not declared in this scope
platformX86UNIX/x86UNIXCPUInfo.cc: 60:error: 'timeHi was not declared in this scope
make[1]: *** [out.GCC3.4+.RELEASE/platformX86UNIX/x86UNIXCPUInfo.obj] Error 1
make *** [default] Error 2
#8
Line 59 : #if defined(TORQUE_COMPILER_GCC) && ((__GNUC__ >= 3) && (__GNUC_MINOR__ >=4))
Line 60 : asm("rdtsc" : "=a" (timeLo), "=d" (timeHi));
I see >=3 so GCC3.4 should work right?
04/15/2006 (3:50 pm)
I'm guessing GCC3.4 might be the issue?Line 59 : #if defined(TORQUE_COMPILER_GCC) && ((__GNUC__ >= 3) && (__GNUC_MINOR__ >=4))
Line 60 : asm("rdtsc" : "=a" (timeLo), "=d" (timeHi));
I see >=3 so GCC3.4 should work right?
#9
04/15/2006 (6:44 pm)
You could haul the platformX86UNIX directory from CVS & place it in your tlk dir... it may help, since that is what had a lot of work done recently for the linux side of things. Fom what I understand, TLK will be updated once another update of TGE is done... & the next release of TGE has all of the linux goodness into it. :)
#10
Might be wise and do as Keith mentions, pull the mk dir and platformX86UNIX dir from cvs and use it
04/15/2006 (7:19 pm)
All of the compile issues you mention have been resolved and are in cvs for TGE. Might be wise and do as Keith mentions, pull the mk dir and platformX86UNIX dir from cvs and use it
Torque Owner Keith Frampton