public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "thomas at maier-komor dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/31577] mipsel-elf fails to build on Solaris 10
Date: Thu, 31 Jan 2008 22:22:00 -0000	[thread overview]
Message-ID: <20080131212019.30077.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31577-13718@http.gcc.gnu.org/bugzilla/>



------- 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
thomas@azalin:/opt/local/src/gcc-mipsel$ which gcc
/opt/local/bin/gcc
thomas@azalin:/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


  parent reply	other threads:[~2008-01-31 21:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-15 12:58 [Bug bootstrap/31577] New: " thomas at maier-komor dot de
2008-01-25 10:47 ` [Bug bootstrap/31577] " rsandifo at gcc dot gnu dot org
2008-01-31 22:22 ` thomas at maier-komor dot de [this message]
2008-01-31 22:26 ` thomas at maier-komor dot de
2008-01-31 22:56 ` rsandifo at gcc dot gnu dot org
2008-01-31 22:56 ` thomas at maier-komor dot de
2008-01-31 23:00 ` rsandifo at nildram dot co dot uk
2008-01-31 23:10 ` thomas at maier-komor dot de

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080131212019.30077.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).