public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "peter at chubb dot wattle dot id dot au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/17043] Can't build a compiler that works for big and littleendian targets
Date: Mon, 16 Aug 2004 00:44:00 -0000	[thread overview]
Message-ID: <20040816004434.5141.qmail@sourceware.org> (raw)
In-Reply-To: <20040816002338.17043.peterc@gelato.unsw.edu.au>


------- Additional Comments From peter at chubb dot wattle dot id dot au  2004-08-16 00:44 -------
Subject: Re:  Can't build a compiler that works for big and littleendian targets

>>>>> "pinskia" == pinskia at gcc dot gnu dot org <gcc-bugzilla@gcc.gnu.org> writes:

pinskia> ------- Additional Comments From pinskia at gcc dot gnu dot
pinskia> org 2004-08-16 00:26 ------- I think you have to pass
pinskia> -mbigendian when linking also.

It doesn't help.

$ arm-linux-gcc -o h hello.c 
$ arm-linux-gcc -mbig-endian -o h hello.c 
/usr/arm-linux/lib/libc.so.6: could not read symbols: Invalid
operation
collect2: ld returned 1 exit status

 arm-linux-gcc -v -mbig-endian -o h hello.c 
Reading specs from /usr/lib/gcc-lib/arm-linux/3.3.3/specs
Configured with: ../src/configure -v --enable-languages=c
--prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
--with-gxx-include-dir=/usr/arm-linux/include/g++ --enable-shared
--with-as=/usr/arm-linux/bin/as --with-gnu-as
--with-ld=/usr/arm-linux/bin/ld --with-gnu-ld --with-system-zlib
--enable-long-long --enable-nls --without-included-gettext
--disable-checking --build=ia64-linux --host=ia64-linux
--target=arm-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040401)
 /usr/lib/gcc-lib/arm-linux/3.3.3/cc1 -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D__ARM_ARCH_3__ hello.c
-quiet -dumpbase hello.c -mbig-endian -auxbase hello -version -o
/tmp/ccj5XR3N.s
GNU C version 3.3.3 (Debian 20040401) (arm-linux)
        compiled by GNU C version 3.3.4 (Debian 1:3.3.4-5).
GGC heuristics: --param ggc-min-expand=97 --param
ggc-min-heapsize=126132
ignoring nonexistent directory "/usr/arm-linux/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/arm-linux/3.3.3/include
 /usr/arm-linux/include
End of search list.
 /usr/arm-linux/bin/as -EB -o /tmp/ccSvvWPs.o /tmp/ccj5XR3N.s
 /usr/lib/gcc-lib/arm-linux/3.3.3/collect2 -dynamic-linker\
 /lib/ld-linux.so.2 -X -EB -m armelf_linux -p -o h \
 /usr/lib/gcc-lib/arm-linux/3.3.3/../../../../arm-linux/lib/crt1.o \
 /usr/lib/gcc-lib/arm-linux/3.3.3/../../../../arm-linux/lib/crti.o \
 /usr/lib/gcc-lib/arm-linux/3.3.3/crtbegin.o \
 -L/usr/lib/gcc-lib/arm-linux/3.3.3 \
 -L/usr/lib/gcc-lib/arm-linux/3.3.3/../../../../arm-linux/lib \
 /tmp/ccSvvWPs.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh \
 /usr/lib/gcc-lib/arm-linux/3.3.3/crtend.o \
 /usr/lib/gcc-lib/arm-linux/3.3.3/../../../../arm-linux/lib/crtn.o

/usr/arm-linux/lib/libc.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status


Note that in the verbose output, gcc is passing explicit paths to
arm-linux/lib/crt1.o, etc., and -L options that pick up the
little-endian format libraries and startup, etc., files.


-- 


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


  parent reply	other threads:[~2004-08-16  0:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16  0:23 [Bug driver/17043] New: " peterc at gelato dot unsw dot edu dot au
2004-08-16  0:26 ` [Bug target/17043] " pinskia at gcc dot gnu dot org
2004-08-16  0:44 ` peter at chubb dot wattle dot id dot au [this message]
2004-08-16  4:22 ` NitinY at KPITCummins dot com
2004-08-16 23:20 ` wilson at specifixinc dot com
2004-10-02  4:24 ` pinskia at gcc dot gnu dot org
2004-10-03 17:55 ` pinskia at gcc dot gnu dot org

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=20040816004434.5141.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).