Problem compiling 1.5.2 under XCode 2.4 - mmathamd_asm
by Adam Beaumont · in Torque Game Engine · 05/23/2007 (7:40 am) · 8 replies
When compiling new sdk under new install of xcode I get an error when it hits the mmathAMD_ASM
CompileC "/Torque Game Engine 1.5.2 SDK/Torque SDK/example/torque_xcode_2_2_UB.build/Default/Torque-MacCarb-Debug.build/Objects-normal/i386/mMath_ASM.o" "/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm" normal i386 assembler-with-cpp com.apple.compilers.gcc.4_0
cd "/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode"
/usr/bin/gcc-4.0 -x assembler-with-cpp -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -w -D__MACOSX__ -DTORQUE_DISABLE_MEMORY_MANAGER -DTORQUE_DEBUG -DENABLE_PROFILER -fmessage-length=0 -fvisibility=hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Torque\ Game\ Engine\ 1.5.2\ SDK/Torque\ SDK/example/torque_xcode_2_2_UB.build/Default/Torque-MacCarb-Debug.build/Torque\ Demo\ Debug\ OSX.hmap -mdynamic-no-pic -F../example -F../lib/openal/macosx -F../lib/xiph/macosx -I../engine -I../lib -I../lib/lpng -I../lib/ljpeg -I../lib/lungif -I../lib/openal/macosx/eax -I../example/include -I/Torque\ Game\ Engine\ 1.5.2\ SDK/Torque\ SDK/example/torque_xcode_2_2_UB.build/Default/Torque-MacCarb-Debug.build/DerivedSources -force_cpusubtype_ALL -falign-functions=16 -falign-loops=16 -falign-labels=16 -falign-jumps=16 -malign-natural -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Torque\ Game\ Engine\ 1.5.2\ SDK/Torque\ SDK/xcode/../engine/math/mMath_ASM.asm -o /Torque\ Game\ Engine\ 1.5.2\ SDK/Torque\ SDK/example/torque_xcode_2_2_UB.build/Default/Torque-MacCarb-Debug.build/Objects-normal/i386/mMath_ASM.o
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:1:Junk character 45 (-).
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:1:Rest of line ignored. 1st junk character valued 45 (-).
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:2:no such instruction: 'Torque GameEngine'
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:3:no such instruction: 'Copyright (C)GarageGames.com,Inc.'
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:4:Junk character 45 (-).
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:4:Rest of line ignored. 1st junk character valued 45 (-).
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:6:no such instruction: 'NASM versionofoptimizedfuncsinmMath_C'
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:9:no such instruction: 'The followingfuncsareincluded:'
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:10:invalid character '_' in mnemonic
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:11:invalid character '_' in mnemonic
/Torque Ga
...
and then build fails
CompileC "/Torque Game Engine 1.5.2 SDK/Torque SDK/example/torque_xcode_2_2_UB.build/Default/Torque-MacCarb-Debug.build/Objects-normal/i386/mMath_ASM.o" "/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm" normal i386 assembler-with-cpp com.apple.compilers.gcc.4_0
cd "/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode"
/usr/bin/gcc-4.0 -x assembler-with-cpp -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -w -D__MACOSX__ -DTORQUE_DISABLE_MEMORY_MANAGER -DTORQUE_DEBUG -DENABLE_PROFILER -fmessage-length=0 -fvisibility=hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Torque\ Game\ Engine\ 1.5.2\ SDK/Torque\ SDK/example/torque_xcode_2_2_UB.build/Default/Torque-MacCarb-Debug.build/Torque\ Demo\ Debug\ OSX.hmap -mdynamic-no-pic -F../example -F../lib/openal/macosx -F../lib/xiph/macosx -I../engine -I../lib -I../lib/lpng -I../lib/ljpeg -I../lib/lungif -I../lib/openal/macosx/eax -I../example/include -I/Torque\ Game\ Engine\ 1.5.2\ SDK/Torque\ SDK/example/torque_xcode_2_2_UB.build/Default/Torque-MacCarb-Debug.build/DerivedSources -force_cpusubtype_ALL -falign-functions=16 -falign-loops=16 -falign-labels=16 -falign-jumps=16 -malign-natural -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Torque\ Game\ Engine\ 1.5.2\ SDK/Torque\ SDK/xcode/../engine/math/mMath_ASM.asm -o /Torque\ Game\ Engine\ 1.5.2\ SDK/Torque\ SDK/example/torque_xcode_2_2_UB.build/Default/Torque-MacCarb-Debug.build/Objects-normal/i386/mMath_ASM.o
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:1:Junk character 45 (-).
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:1:Rest of line ignored. 1st junk character valued 45 (-).
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:2:no such instruction: 'Torque GameEngine'
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:3:no such instruction: 'Copyright (C)GarageGames.com,Inc.'
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:4:Junk character 45 (-).
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:4:Rest of line ignored. 1st junk character valued 45 (-).
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:6:no such instruction: 'NASM versionofoptimizedfuncsinmMath_C'
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:9:no such instruction: 'The followingfuncsareincluded:'
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:10:invalid character '_' in mnemonic
/Torque Game Engine 1.5.2 SDK/Torque SDK/xcode/../engine/math/mMath_ASM.asm:11:invalid character '_' in mnemonic
/Torque Ga
...
and then build fails
About the author
#2
Rightclick on the file in XCode, click "Get Info", then go to the general tab.
Look down to "File Type", and change it to sourcecode.nasm
Gary (-;
05/23/2007 (10:54 am)
That's what happens when you try to build nasm-style assembly with gccRightclick on the file in XCode, click "Get Info", then go to the general tab.
Look down to "File Type", and change it to sourcecode.nasm
Gary (-;
#3
how come it wasnt already set up like that in the zip tho? should it be?
05/24/2007 (7:35 am)
Ok cool that got it working (changing the file types) - thankshow come it wasnt already set up like that in the zip tho? should it be?
#5
Anyway - thanks for the help.
05/25/2007 (6:46 pm)
The first machine i tried this on was an i mac, i then installed the exact same zip onto my g4 powerbook and it didn't get the nasm problem. Is this something to do with powermac or intel?Anyway - thanks for the help.
#6
Gary (-;
05/25/2007 (6:49 pm)
Yeah, the asm file shouldn't be used on ppc since it's x86 assembly. I'm not sure what witchcraft went into making XCode do that stuff, but there you have it :-)Gary (-;
#7
05/25/2007 (9:28 pm)
Well if xcode gets installed on an intel mac I would assume so would the x86 libs
#8
06/23/2010 (10:54 am)
so how exactly do you solve the issue?
Torque Owner Corey Punches
*edit* it just occured to me that you might want to take a look at the file permissions of your source code and folders.
I personally haven't had any issues compiling 1.5.2 on my Mac (or 1.5, or 1.5.1 for that matter).