From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7520 invoked by alias); 5 Nov 2005 13:53:33 -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 7506 invoked by uid 22791); 5 Nov 2005 13:53:29 -0000 Received: from smtp-3.hut.fi (HELO smtp-3.hut.fi) (130.233.228.93) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 05 Nov 2005 13:53:29 +0000 Received: from localhost (putosiko.hut.fi [130.233.228.114]) by smtp-3.hut.fi (8.12.10/8.12.10) with ESMTP id jA5DrQ4o025088 for ; Sat, 5 Nov 2005 15:53:26 +0200 Received: from smtp-3.hut.fi ([130.233.228.93]) by localhost (putosiko.hut.fi [130.233.228.114]) (amavisd-new, port 10024) with LMTP id 30550-15-3 for ; Sat, 5 Nov 2005 15:53:26 +0200 (EET) Received: from ananas.hut.fi (ananas.hut.fi [130.233.249.59]) by smtp-3.hut.fi (8.12.10/8.12.10) with ESMTP id jA5DrB4Z025055 for ; Sat, 5 Nov 2005 15:53:11 +0200 Date: Sat, 05 Nov 2005 13:53:00 -0000 From: Kimmo Mustonen To: gcc-help@gcc.gnu.org Subject: Updating powerpc-crosscompile environment from gcc-2.95.3 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-TKK-Virus-Scanned: by amavisd-new-2.1.2-hutcc at putosiko.hut.fi X-SW-Source: 2005-11/txt/msg00059.txt.bz2 Hello! I have a working powerpc-linux cross-compiling setup using binutils 2.16.1 and gcc-2.95.3 on i386. Unfortunately I should upgrade it because a) this gcc version works for building kernel 2.4 but not kernel 2.6 b) this gcc version works on i386 host but x86_64 host is not supported I have tried to upgrade to gcc versions 3.0, 3.4.3, 3.4.4, 4.0.0 and 4.0.2 but haven't been able to get any of them built but it fails quite early stage (the first step while still using newlib). The log files contain the build scripts upto this stage: 1) A working version using gcc-2.95.3: http://users.tkk.fi/u/kmustone/cross2953.log.txt 2) A non-working version using gcc-4.0.2 complaining about for instance pthread.h being missing. Configure, however, does not notice this problem or does not care about it (does not automatically use --disable-threads): http://users.tkk.fi/u/kmustone/cross402.log.txt 3) A non-working version using gcc-4.0.2 --disable-threads. Looks quite promising until crti.o is missing. http://users.tkk.fi/u/kmustone/cross402disablethreads.log.txt "...powerpc-linux/bin/ld: crti.o: No such file: ..." Where should this file come from? If not from gcc itself, the only other possible source at this point is binutils, but it is the same version that is working with gcc-2.95.3. If from gcc, why doesn't it get built or why isn't it found? There are some crti.asm or crti.s files under gcc-4.0.2/gcc/config/* but didn't see any obvious PowerPC-version there. The build script used for gcc-4.0.2: ---8<---8<--- #!/bin/sh set -e mkdir -p /tmp/cross mkdir -p /tmp/cross/src cd /tmp/cross/src bzip2 -dc /m/nfs/data/readwrite/sipo-external/binutils-2.16.1.tar.bz2 \ | tar -xf - cd binutils-2.16.1 ./configure --target=powerpc-linux --prefix=/tmp/cross --nfp make TARGET_CONFIGDIRS= make install PATH=/tmp/cross/bin:$PATH export PATH cd /tmp/cross/src bzip2 -dc /m/nfs/data/readwrite/sipo-external/gcc-4.0.2.tar.bz2 \ | tar -xf - mkdir -p gcc-4.0.2-obj cd gcc-4.0.2-obj ../gcc-4.0.2/configure --target=powerpc-linux --with-cpu=603e --nfp \ --prefix=/tmp/cross --enable-shared --enable-languages="c" \ --with-newlib --disable-threads make TARGET_CONFIGDIRS= ---8<---8<--- Essentially the same steps work for gcc-2.95.3 but not any later version. The host system is i386 Fedora Core 1 using linux kernel 2.4.31 but I have also other host environments that don't work any better. Any suggestions? Regards, Kimmo Mustonen