From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14835 invoked by alias); 31 Jul 2002 14:51:37 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 14822 invoked from network); 31 Jul 2002 14:51:35 -0000 Received: from unknown (HELO uni-kl.de) (131.246.137.52) by sources.redhat.com with SMTP; 31 Jul 2002 14:51:35 -0000 Received: from mailgate2.uni-kl.de (mailgate2.uni-kl.de [131.246.120.7]) by uni-kl.de (8.12.4/8.12.4) with ESMTP id g6VEpY0q017303 for ; Wed, 31 Jul 2002 16:51:34 +0200 (MET DST) Received: from enterprise.cck.uni-kl.de (enterprise.cck.uni-kl.de [131.246.239.10]) by mailgate2.uni-kl.de (8.12.5/8.12.5) with ESMTP id g6VEpYVY015023 for ; Wed, 31 Jul 2002 16:51:34 +0200 Received: from localhost (deka [131.246.239.27]) by enterprise.cck.uni-kl.de (8.9.2/8.9.2) with ESMTP id QAA04337 for ; Wed, 31 Jul 2002 16:51:33 +0200 (MET DST) Received: from hunger by localhost with local (Exim 3.35 #1 (Debian)) id 17Zuox-000191-00 for ; Wed, 31 Jul 2002 16:51:27 +0200 Content-Type: text/plain; charset="us-ascii" From: Tobias Hunger To: gcc-help@gcc.gnu.org Subject: gcc 3.1 produces bus errors on arm-linux Date: Wed, 31 Jul 2002 07:51:00 -0000 User-Agent: KMail/1.4.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200207311651.26912.tobias@fresco.org> X-SW-Source: 2002-07/txt/msg00296.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I successfully managed to build a crosscompiling gcc from i686-linux to=20 arm-linux. Using the sources from here:=20 ftp://ftp.de.debian.org/debian/pool/main/g/gcc-3.1/gcc-3.1_3.1.1ds2.orig.ta= r.gz=20=20 ftp://ftp.de.debian.org/debian/pool/main/g/gcc-3.1/gcc-3.1_3.1.1ds2-0pre3.d= iff.gz I used these configure options to build a cross-gcc: configure -target=3Darm-linux --host=3Di686-linux \ --build=3Di686-linux \ --prefix=3D/path \ --enable-languages=3Dc \ --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=3D/usr \ --infodir=3D/usr/share/info \ --libdir=3D/lib \ --mandir=3D/usr/share/man \ --enable-shared \ --with-headers=3D/path/linux/include This gives me a nice little libc that I then install to my Zaurus. ldconfig= =20 finds them all right. Any application I start from that moment on gives me = a=20 Bus error. I tried diffrent versions of glibc (2.2.4 and 2.2.5), all show t= he=20 same behaviour. I further tried diffrent optimization flags (-march=3Drmv4= =20 - -mtune=3Dstrongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-p= ointer=20 - -O3 down to no extra flags at all). The same sources of glibc work fine w= ith=20 the gcc-2.95.x toolchains you can download. So my guess is that gcc 3.1(.1)= =20 produces buggy code. How can I further debug this? Any ideas? - --=20 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=3D =3DDzfj -----END PGP SIGNATURE-----