error trying to compile using scons


(phillgates2) #1

hi i keep getting errors trying to compile using scons on my mac

this is what i get

192-168-1-2:src root# scons
scons: Reading SConscript files ...
SCons.Script:6: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
cpu: ppc
Loading build configuration from site.conf:
  WITH_LUA_SUPPORT='1'
  JOBS='1'
  TARGET_UI='1'
  GAMERANGER='0'
  CC='gcc'
  CXX='g++'
  BUILD='release'
  TARGET_CGAME='1'
  TARGET_GAME='1'
  BUILD_ROOT='build'
dumpversion: 4.2.1
gcc major: 4
os: Darwin

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/Users/me/Downloads/trunk/src/SConstruct", line 278, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
	use VariantDir() and the variant_dir keyword instead.
File "/Users/me/Downloads/trunk/src/SConstruct", line 323, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
	use VariantDir() and the variant_dir keyword instead.
File "/Users/me/Downloads/trunk/src/SConstruct", line 332, in <module>

scons: warning: BuildDir() and the build_dir keyword have been deprecated;
	use VariantDir() and the variant_dir keyword instead.
File "/Users/me/Downloads/trunk/src/SConstruct", line 341, in <module>
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build/release/game build/release/cgame build/release/ui
gcc -o build/release/ui/game/bg_campaign.os -c -fPIC -D__MACOS__ -Wno-long-double -arch ppc -arch i386 -fasm-blocks -fpascal-strings -faltivec -Wno-unknown-pragmas -pipe -Wall -fmessage-length=0 -DNDEBUG -O3 -falign-functions=16 -falign-loops=16 -finline -fno-strict-aliasing -DUIDLL game/bg_campaign.c
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't open input file: /var/tmp//ccfR7Y4q.out (No such file or directory)
scons: *** [build/release/ui/game/bg_campaign.os] Error 1
scons: building terminated because of errors.

and what can i do to fix it :slight_smile:


(BlackRacoon) #2

To resolve this try in your command line CC=gcc-4.0 that should resolve your cc1: error: unrecognized command line option “-Wno-long-double”