public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/21870] New: Build fails with unknown endianess
@ 2005-06-02 0:18 aaronw at net dot com
2005-06-02 0:22 ` [Bug bootstrap/21870] " aaronw at net dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: aaronw at net dot com @ 2005-06-02 0:18 UTC (permalink / raw)
To: gcc-bugs
loading cache ../config.cache
checking for a BSD compatible install... (cached) /opt/gcc3.3/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... makeinfo: Cannot find ELF
../../../../libffi/configure: line 2163: 26778 Killed
( makeinfo --version ) </dev/null >/dev/null 2>&1
missing
checking for executable suffix... (cached) no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) /var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/
-B/opt/gcc3.3/sparc-sun-solaris2.8/bin/ -B/opt/gcc3.3/sparc-sun-solaris2.8/lib/
-isystem /opt/gcc3.3/sparc-sun-solaris2.8/include -m64
checking whether the C compiler
(/var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/
-B/opt/gcc3.3/sparc-sun-solaris2.8/bin/ -B/opt/gcc3.3/sparc-sun-solaris2.8/lib/
-isystem /opt/gcc3.3/sparc-sun-solaris2.8/include -m64 -O2 -g -O2 ) works...
yes
checking whether the C compiler
(/var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/
-B/opt/gcc3.3/sparc-sun-solaris2.8/bin/ -B/opt/gcc3.3/sparc-sun-solaris2.8/lib/
-isystem /opt/gcc3.3/sparc-sun-solaris2.8/include -m64 -O2 -g -O2 ) is a
cross-compiler... yes
checking whether we are using GNU C... (cached) yes
checking whether /var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/
-B/opt/gcc3.3/sparc-sun-solaris2.8/bin/ -B/opt/gcc3.3/sparc-sun-solaris2.8/lib/
-isystem /opt/gcc3.3/sparc-sun-solaris2.8/include -m64 accepts -g... (cached)
yes
checking how to run the C preprocessor...
(cached) /var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/
-B/opt/gcc3.3/sparc-sun-solaris2.8/bin/ -B/opt/gcc3.3/sparc-sun-solaris2.8/lib/
-isystem /opt/gcc3.3/sparc-sun-solaris2.8/include -m64 -E
checking for ANSI C header files... (cached) no
checking for memcpy... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of float... 4
checking size of double... 8
checking size of long double... 16
checking size of void *... 8
checking whether byte ordering is bigendian... cross-compiling... unknown
checking to probe for byte ordering... guessing bigendian ... unknown
configure: error: unknown endianess - sorry
make: *** [configure-target-libffi] Error 1
Compiled with:
bzip2 -dc gcc-3.3.6.tar.bz2 | tar xf -
cd gcc-3.3.6
mkdir sparc-solaris-2.8
cd sparc-solaris-2.8
/bin/bash ../configure --host=sparc-sun-solaris2.8 --prefix=/opt/gcc3.3
--enable-shared --with-gnu-ld --with-ld=/opt/gcc3.3/bin/ld --with-gnu-as
--with-as=/opt/gcc3.3/bin/as --with-cpu=ultrasparc
make
The source compiler is gcc 3.3.6 with a different prefix... I can get things to
compile if I hack things up a bit but this is from a clean compile.
binutils is version 2.16
--
Summary: Build fails with unknown endianess
Product: gcc
Version: 3.3.6
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aaronw at net dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21870
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/21870] Build fails with unknown endianess
2005-06-02 0:18 [Bug bootstrap/21870] New: Build fails with unknown endianess aaronw at net dot com
@ 2005-06-02 0:22 ` aaronw at net dot com
2005-06-02 0:34 ` aaronw at net dot com
2005-06-02 1:12 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: aaronw at net dot com @ 2005-06-02 0:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aaronw at net dot com 2005-06-02 00:22 -------
More info from config.log for libffi:
configure:3445: /var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solari
s-2.8/gcc/ -B/opt/gcc3.3/sparc-sun-solaris2.8/bin/
-B/opt/gcc3.3/sparc-sun-solaris2.8/lib/ -isystem /opt/g
cc3.3/sparc-sun-solaris2.8/include -c -O2 -g -O2 conftest.c 1>&5
configure: In function `main':
configure:3440: error: `bogus' undeclared (first use in this function)
configure:3440: error: (Each undeclared identifier is reported only once
configure:3440: error: for each function it appears in.)
configure:3440: error: syntax error before "endian"
configure: failed program was:
#line 3434 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#include <sys/param.h>
int main() {
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
; return 0; }
configure:3493: /var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solari
s-2.8/gcc/ -B/opt/gcc3.3/sparc-sun-solaris2.8/bin/
-B/opt/gcc3.3/sparc-sun-solaris2.8/lib/ -isystem /opt/g
cc3.3/sparc-sun-solaris2.8/include -o conftest -O2 -g -O2 conftest.c 1>&5
configure: failed program was:
#line 3480 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}
configure:3561: checking assembler and linker support unaligned pc related
relocs
configure:3578: /var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solari
s-2.8/gcc/ -B/opt/gcc3.3/sparc-sun-solaris2.8/bin/
-B/opt/gcc3.3/sparc-sun-solaris2.8/lib/ -isystem /opt/g
cc3.3/sparc-sun-solaris2.8/include -o conftest -O2 -g -O2 -fpic -shared
conftest.c 1>&5
configure:3601: checking assembler .register pseudo-op support
configure:3616: /var/tmp/gcc3/gcc-3.3.6/sparc-solaris-2.8/gcc/xgcc
-B/var/tmp/gcc3/gcc-3.3.6/sparc-solari
s-2.8/gcc/ -B/opt/gcc3.3/sparc-sun-solaris2.8/bin/
-B/opt/gcc3.3/sparc-sun-solaris2.8/lib/ -isystem /opt/g
cc3.3/sparc-sun-solaris2.8/include -c -O2 -g -O2 conftest.c 1>&5
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21870
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/21870] Build fails with unknown endianess
2005-06-02 0:18 [Bug bootstrap/21870] New: Build fails with unknown endianess aaronw at net dot com
2005-06-02 0:22 ` [Bug bootstrap/21870] " aaronw at net dot com
@ 2005-06-02 0:34 ` aaronw at net dot com
2005-06-02 1:12 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: aaronw at net dot com @ 2005-06-02 0:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aaronw at net dot com 2005-06-02 00:34 -------
I traced the problem to line 3523 in libffi/configure
For some reason, Sun's grep does not see the string BIGenDianSyS in the object
file, but fgrep does... I guess it's another bug or issue with Sun's tools
(like Sun's awk and sed being limited to 8k).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21870
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/21870] Build fails with unknown endianess
2005-06-02 0:18 [Bug bootstrap/21870] New: Build fails with unknown endianess aaronw at net dot com
2005-06-02 0:22 ` [Bug bootstrap/21870] " aaronw at net dot com
2005-06-02 0:34 ` aaronw at net dot com
@ 2005-06-02 1:12 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-02 1:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-02 01:12 -------
*** This bug has been marked as a duplicate of 21782 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21870
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-02 1:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-02 0:18 [Bug bootstrap/21870] New: Build fails with unknown endianess aaronw at net dot com
2005-06-02 0:22 ` [Bug bootstrap/21870] " aaronw at net dot com
2005-06-02 0:34 ` aaronw at net dot com
2005-06-02 1:12 ` pinskia at gcc dot gnu dot org
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).