Skip to content

cannot cross compile on mac x86_64 to i386 #13

@jkarneges

Description

@jkarneges

Hi,

I'm using a 64-bit mac to compile but I want to create a 32-bit build, so I'm configuring like this:

./configure CC='gcc -arch i386' CXX='g++ -arch i386' --host=i386-apple-darwin --prefix=/ubase/i386

make eventually fails with:

libtool: compile: gcc -arch i386 -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -DFFI_BUILDING -g -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math -Wall -fexceptions -MT src/x86/ffi.lo -MD -MP -MF src/x86/.deps/ffi.Tpo -c ../src/x86/ffi.c -fno-common -DPIC -o src/x86/.libs/ffi.o
../src/x86/ffi.c: In function 'ffi_prep_cif_machdep':
../src/x86/ffi.c:283: error: 'FFI_MS_CDECL' undeclared (first use in this function)
../src/x86/ffi.c:283: error: (Each undeclared identifier is reported only once
../src/x86/ffi.c:283: error: for each function it appears in.)
make[3]: *** [src/x86/ffi.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-all] Error 2

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions