This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Mac OS X cross compile for i386-elf


Hi,

I am running OS x 10.4 on an Intel processor and am trying to create a
cross compiler that will compile to i386-elf. I started off by
downloading binutils 2.17 and built it targeted to that architecture.
Everything seemed to go fine. Then I downloaded gcc-core-4.2.0 and
configured it with the following parameters:
--prefix=~/tmp/cross-compiler --target=i386-elf --enable-languages=c.
The configure seemed to go fine and I followed it with a make. The
compile seems to fail while building ssp.lo with the following errors
(snipped for sanity):

../../../gcc-4.2.0/libssp/ssp.c: In function '__guard_setup':
../../../gcc-4.2.0/libssp/ssp.c:70: warning: implicit declaration of
function 'open'
../../../gcc-4.2.0/libssp/ssp.c:70: error: 'O_RDONLY' undeclared
(first use in this function)
../../../gcc-4.2.0/libssp/ssp.c:70: error: (Each undeclared identifier
is reported only once
../../../gcc-4.2.0/libssp/ssp.c:70: error: for each function it appears in.)
../../../gcc-4.2.0/libssp/ssp.c:73: error: 'ssize_t' undeclared (first
use in this function)
../../../gcc-4.2.0/libssp/ssp.c:73: error: expected ';' before 'size'
../../../gcc-4.2.0/libssp/ssp.c:75: warning: implicit declaration of
function 'close'
../../../gcc-4.2.0/libssp/ssp.c:76: error: 'size' undeclared (first
use in this function)
../../../gcc-4.2.0/libssp/ssp.c: At top level:
../../../gcc-4.2.0/libssp/ssp.c:89: error: expected declaration
specifiers or '...' before 'size_t'
../../../gcc-4.2.0/libssp/ssp.c: In function 'fail':
../../../gcc-4.2.0/libssp/ssp.c:100: error: 'O_WRONLY' undeclared
(first use in this function)
../../../gcc-4.2.0/libssp/ssp.c:104: error: 'size_t' undeclared (first
use in this function)
../../../gcc- 4.2.0/libssp/ssp.c:104: error: expected ';' before 'progname_len'
../../../gcc-4.2.0/libssp/ssp.c:107: error: 'progname_len' undeclared
(first use in this function)
../../../gcc-4.2.0/libssp/ssp.c:107: warning: implicit declaration of
function 'strlen'
../../../gcc-4.2.0/libssp/ssp.c:107: warning: incompatible implicit
declaration of built-in function 'strlen'
../../../gcc-4.2.0/libssp/ssp.c:108: error: 'len' undeclared (first
use in this function)
../../../gcc-4.2.0/libssp/ssp.c:108: error: 'msg1len' undeclared
(first use in this function)
../../../gcc-4.2.0/libssp/ssp.c:109: warning: implicit declaration of
function 'alloca'
../../../gcc- 4.2.0/libssp/ssp.c:109: warning: incompatible implicit
declaration of built-in function 'alloca'
../../../gcc-4.2.0/libssp/ssp.c:111: warning: implicit declaration of
function 'memcpy'
../../../gcc-4.2.0 /libssp/ssp.c:111: warning: incompatible implicit
declaration of built-in function 'memcpy'
../../../gcc-4.2.0/libssp/ssp.c:119: error: 'ssize_t' undeclared
(first use in this function)
../../../gcc- 4.2.0/libssp/ssp.c:119: error: expected ';' before 'wrote'
../../../gcc-4.2.0/libssp/ssp.c:120: error: 'wrote' undeclared (first
use in this function)
../../../gcc-4.2.0/libssp/ssp.c:151: warning: implicit declaration of
function '_exit'
../../../gcc-4.2.0/libssp/ssp.c:151: warning: incompatible implicit
declaration of built-in function '_exit'

This is my first time building a cross compiler so I don't know if I'm
missing a critical step or something. Does anybody have any ideas?

Thank you,

Ben


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]