Dani,

ASSEMBLER_OPTIONS is missing:

make PLATFORM=macosx ARCH=x86 C_COMPILER_OPTIONS="-no-cpp-precomp 
-fno-strict-aliasing -fwrapv -fno-common -DHAVE_CHICKEN_CONFIG_H -m32" 
ASSEMBLER_OPTIONS="-m32" LINKER_OPTIONS="-m32"

The resulting chicken gives me a bus error though and I don't know how to fix 
that.

Jim

On Jan 10, 2013, at 5:07 AM, Daniel P. Wright wrote:

> Hello,
> 
> I am trying to build chicken scheme for 32-bit on a 64-bit mac running
> Mountain Lion.  I have come across people having issues with the
> opposite case, where old versions of OS X built 32-bit and required a
> flag to build 64-bit, but not this way round.
> 
> I have taken the solution to the latter problem and reversed it, so that
> I pass ARCH="x86" to make.  The error I get is as follows:
> 
>    mac:chicken-4.8.0 okubo$ make PLATFORM=macosx ARCH="x86"
>    make -f ./Makefile.macosx CONFIG= all
>    gcc  -c apply-hack.x86.S -o apply-hack.x86.o
>    apply-hack.x86.S:35:suffix or operands invalid for `call'
>    make[1]: *** [apply-hack.x86.o] Error 1
>    make: *** [all] Error 2
> 
> Looking at the referenced assembly file, passing "*%eax" to call seems
> to be what's throwing it.  I don't really know what I'm doing in
> assembler, so I'm not sure whether that should be valid or not, though
> rivo238123 mentioned in #chicken that it should be in 32-bit mode.
> 
> I'm guessing there's probably a flag I'm not passing somewhere, but I'm
> not sure what it would be.  I have tried setting CPPFLAGS, LDFLAGS,
> LINKER_OPTIONS and C_COMPILER_OPTIMIZATION_OPTIONS to "-m32" (on the
> advice of rivo238123) but had no luck.
> 
> Has anybody come across this issue?  Any clues which could lead me in
> the right direction toward getting it building would be greatly
> appreciated.
> 
> Many thanks,
> 
> Dani.
> 
> PS - Please include me in replies as I am not currently subscribed to
>     this list.
> 
> _______________________________________________
> Chicken-users mailing list
> Chicken-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/chicken-users


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to