This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc 3.1 produces bus errors on arm-linux
- From: Tobias Hunger <tobias at fresco dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 31 Jul 2002 16:51:22 +0200
- Subject: gcc 3.1 produces bus errors on arm-linux
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I successfully managed to build a crosscompiling gcc from i686-linux to
arm-linux.
Using the sources from here:
ftp://ftp.de.debian.org/debian/pool/main/g/gcc-3.1/gcc-3.1_3.1.1ds2.orig.tar.gz
ftp://ftp.de.debian.org/debian/pool/main/g/gcc-3.1/gcc-3.1_3.1.1ds2-0pre3.diff.gz
I used these configure options to build a cross-gcc:
configure -target=arm-linux --host=i686-linux \
--build=i686-linux \
--prefix=/path \
--enable-languages=c \
--disable-threads \
--disable-shared
Then I build glibc (sources from today's CVS), using these configure args:
configure \
--host arm-linux --build i686-linux \
--disable-profile \
--enable-add-ons \
--prefix=/usr \
--infodir=/usr/share/info \
--libdir=/lib \
--mandir=/usr/share/man \
--enable-shared \
--with-headers=/path/linux/include
This gives me a nice little libc that I then install to my Zaurus. ldconfig
finds them all right. Any application I start from that moment on gives me a
Bus error. I tried diffrent versions of glibc (2.2.4 and 2.2.5), all show the
same behaviour. I further tried diffrent optimization flags (-march=rmv4
- -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer
- -O3 down to no extra flags at all). The same sources of glibc work fine with
the gcc-2.95.x toolchains you can download. So my guess is that gcc 3.1(.1)
produces buggy code. How can I further debug this? Any ideas?
- --
Gruss,
Tobias
- ------------------------------------------------------------
Tobias Hunger The box said: 'Windows 95 or better'
tobias@fresco.org So I installed Linux.
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9R/lrv0FZW3NyoqURAnSxAJ49uOZQU+Ci5mcT7fCA0tWC7ultZgCfX23u
y/7MPgNrr/7AJa7xgzzoXKo=
=Dzfj
-----END PGP SIGNATURE-----