------- Comment #2 from thomas at maier-komor dot de  2008-01-31 21:20 -------
Subject: Re:  mipsel-elf fails to build on Solaris 10

rsandifo at gcc dot gnu dot org schrieb:
> ------- Comment #1 from rsandifo at gcc dot gnu dot org  2008-01-25 10:08 
> -------
> I'm not sure how we can make progress on this.
> It almost seems like the compiler has been miscompiled.
> 
> What CC is cc: SUN's compiler or gcc?
> 
> 

I'm not sure, it's been some time back now. So I reproduced it and got
the following:

$ ../gcc-4.1.2/configure --target=mipsel-elf --prefix=/opt/local
--disable-lib --enable-languages=c
[ output skipped ]
$ gmake
[ a whole bunch of output skipped ]
gmake[3]: Entering directory `/opt/local/src/gcc-mipsel/mipsel-elf/libssp'
if /bin/sh ./libtool --mode=compile /opt/local/src/gcc-mipsel/./gcc/xgcc
-B/opt/local/src/gcc-mipsel/./gcc/ -B/opt/local/mipsel-elf/bin/
-B/opt/local/mipsel-elf/lib/ -isystem /opt/local/mipsel-elf/include
-isystem /opt/local/mipsel-elf/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-4.1.2/libssp -I.    -Wall -O2 -g -O2   -MT ssp.lo -MD -MP
-MF ".deps/ssp.Tpo" -c -o ssp.lo ../../../gcc-4.1.2/libssp/ssp.c; \
then mv -f ".deps/ssp.Tpo" ".deps/ssp.Plo"; else rm -f ".deps/ssp.Tpo";
exit 1; fi
/opt/local/src/gcc-mipsel/./gcc/xgcc -B/opt/local/src/gcc-mipsel/./gcc/
-B/opt/local/mipsel-elf/bin/ -B/opt/local/mipsel-elf/lib/ -isystem
/opt/local/mipsel-elf/include -isystem /opt/local/mipsel-elf/sys-include
-DHAVE_CONFIG_H -I. -I../../../gcc-4.1.2/libssp -I. -Wall -O2 -g -O2 -MT
ssp.lo -MD -MP -MF .deps/ssp.Tpo -c ../../../gcc-4.1.2/libssp/ssp.c -o ssp.o
../../../gcc-4.1.2/libssp/ssp.c: In function '__guard_setup':
../../../gcc-4.1.2/libssp/ssp.c:70: warning: implicit declaration of
function 'open'
../../../gcc-4.1.2/libssp/ssp.c:70: error: 'O_RDONLY' undeclared (first
use in this function)
../../../gcc-4.1.2/libssp/ssp.c:70: error: (Each undeclared identifier
is reported only once
../../../gcc-4.1.2/libssp/ssp.c:70: error: for each function it appears in.)
../../../gcc-4.1.2/libssp/ssp.c:73: error: 'ssize_t' undeclared (first
use in this function)
../../../gcc-4.1.2/libssp/ssp.c:73: error: expected ';' before 'size'
../../../gcc-4.1.2/libssp/ssp.c:75: warning: implicit declaration of
function 'close'
../../../gcc-4.1.2/libssp/ssp.c:76: error: 'size' undeclared (first use
in this function)
../../../gcc-4.1.2/libssp/ssp.c: At top level:
../../../gcc-4.1.2/libssp/ssp.c:89: error: expected declaration
specifiers or '...' before 'size_t'
../../../gcc-4.1.2/libssp/ssp.c: In function 'fail':
../../../gcc-4.1.2/libssp/ssp.c:100: error: 'O_WRONLY' undeclared (first
use in this function)
../../../gcc-4.1.2/libssp/ssp.c:104: error: 'size_t' undeclared (first
use in this function)
../../../gcc-4.1.2/libssp/ssp.c:104: error: expected ';' before
'progname_len'
../../../gcc-4.1.2/libssp/ssp.c:107: error: 'progname_len' undeclared
(first use in this function)
../../../gcc-4.1.2/libssp/ssp.c:107: warning: implicit declaration of
function 'strlen'
../../../gcc-4.1.2/libssp/ssp.c:107: warning: incompatible implicit
declaration of built-in function 'strlen'
../../../gcc-4.1.2/libssp/ssp.c:108: error: 'len' undeclared (first use
in this function)
../../../gcc-4.1.2/libssp/ssp.c:108: error: 'msg1len' undeclared (first
use in this function)
../../../gcc-4.1.2/libssp/ssp.c:109: warning: implicit declaration of
function 'alloca'
../../../gcc-4.1.2/libssp/ssp.c:109: warning: incompatible implicit
declaration of built-in function 'alloca'
../../../gcc-4.1.2/libssp/ssp.c:111: warning: implicit declaration of
function 'memcpy'
../../../gcc-4.1.2/libssp/ssp.c:111: warning: incompatible implicit
declaration of built-in function 'memcpy'
../../../gcc-4.1.2/libssp/ssp.c:119: error: 'ssize_t' undeclared (first
use in this function)
../../../gcc-4.1.2/libssp/ssp.c:119: error: expected ';' before 'wrote'
../../../gcc-4.1.2/libssp/ssp.c:120: error: 'wrote' undeclared (first
use in this function)
../../../gcc-4.1.2/libssp/ssp.c:151: warning: implicit declaration of
function '_exit'
../../../gcc-4.1.2/libssp/ssp.c:151: warning: incompatible implicit
declaration of built-in function '_exit'
../../../gcc-4.1.2/libssp/ssp.c: In function '__stack_chk_fail':
../../../gcc-4.1.2/libssp/ssp.c:161: warning: incompatible implicit
declaration of built-in function 'strlen'
../../../gcc-4.1.2/libssp/ssp.c:161: warning: passing argument 2 of
'fail' makes pointer from integer without a cast
../../../gcc-4.1.2/libssp/ssp.c:161: error: too many arguments to
function 'fail'
../../../gcc-4.1.2/libssp/ssp.c: In function '__chk_fail':
../../../gcc-4.1.2/libssp/ssp.c:168: warning: incompatible implicit
declaration of built-in function 'strlen'
../../../gcc-4.1.2/libssp/ssp.c:168: warning: passing argument 2 of
'fail' makes pointer from integer without a cast
../../../gcc-4.1.2/libssp/ssp.c:168: error: too many arguments to
function 'fail'
gmake[3]: *** [ssp.lo] Error 1
gmake[3]: Leaving directory `/opt/local/src/gcc-mipsel/mipsel-elf/libssp'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/opt/local/src/gcc-mipsel/mipsel-elf/libssp'
gmake[1]: *** [all-target-libssp] Error 2
gmake[1]: Leaving directory `/opt/local/src/gcc-mipsel'
gmake: *** [all] Error 2
[EMAIL PROTECTED]:/opt/local/src/gcc-mipsel$ which gcc
/opt/local/bin/gcc
[EMAIL PROTECTED]:/opt/local/src/gcc-mipsel$ gcc --version
gcc (GCC) 4.2.2
Copyright (C) 2007 Free Software Foundation, Inc.


Is the way I tried to configure it OK?

- Thomas


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31577

Reply via email to