chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] build with CC="gcc -m32"


From: Mario Domenech Goulart
Subject: Re: [Chicken-users] build with CC="gcc -m32"
Date: Wed, 30 Apr 2014 23:00:14 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi Tomas,

On Wed, 30 Apr 2014 22:06:44 +0200 Tomas Hlavaty <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]