Hi Tomas, On Wed, 30 Apr 2014 22:06:44 +0200 Tomas Hlavaty <[email protected]> wrote:
> I tried to build 32bit chicken scheme on x86-64 linux: > > $ make PLATFORM=linux ARCH=x86 C_COMPILER="gcc -m32" PREFIX=~/sw/chicken32 > > and all seemed well. > > However, it seems that the compiled csc has a bug, where it treats the > env var value as executable name instead of letting the shell interpret it: > > $ ~/sw/chicken32/bin/csc -deploy hw.scm > sh: gcc -m32: command not found > > Error: shell command terminated with non-zero exit status 32512: 'gcc > -m32' 'hw.c' -o 'hw.o' -c -fno-strict-aliasing -fwrapv > -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer > -DC_PRIVATE_REPOSITORY -I"/home/tomas/sw/chicken32/include/chicken" > > Or is there a better way to build 32 bit chicken scheme on 64 bit linux? You can set the C_COMPILER_OPTIONS on the command line. Example, reusing options set in Makefile.linux: C_COMPILER_OPTIONS="-m32 -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H" You'll probably need LINKER_OPTIONS=-m32 as well. Best wishes. Mario -- http://parenteses.org/mario _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
