From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31695 invoked by alias); 20 Apr 2010 14:24:27 -0000 Received: (qmail 31671 invoked by uid 22791); 20 Apr 2010 14:24:27 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from wmh1.mail.saunalahti.fi (HELO wmh1.mail.saunalahti.fi) (62.142.5.133) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Apr 2010 14:24:22 +0000 Received: from [192.168.0.20] (dsl-olubrasgw1-ff58c000-204.dhcp.inet.fi [88.192.88.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kai.ruottu@wippies.com) by wmh1.mail.saunalahti.fi (Postfix) with ESMTPSA id 910D41FC068 for ; Tue, 20 Apr 2010 17:24:18 +0300 (EEST) Message-ID: <4BCDB8FD.4050206@wippies.com> Date: Tue, 20 Apr 2010 16:37:00 -0000 From: Kai Ruottu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fi; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: Error compiling arm-elf-gcc-4.5.0 References: <1271753344.7037.15.camel@lab7.powersoft.it> In-Reply-To: <1271753344.7037.15.camel@lab7.powersoft.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg00212.txt.bz2 20.4.2010 11:49, Massimiliano Cialdi kirjoitti: > I have configured as follows: > configure --enable-languages=c,c++ --target=arm-elf --with-gnu-as > --with-gnu-ld --prefix=path-to/arm-elf-gcc-4.5.0 The given $prefix should be some 'absolute' pathname, the default is '/usr/local' when no '--prefix=$prefix' is given. Yours is 'relative' to some directory. > when I make all I get the following error: > > Links are now set up to build a cross-compiler > from x86_64-unknown-linux-gnu to arm-unknown-elf. > checking for exported symbols... > path-to/arm-elf-gcc-4.5.0/arm-elf/bin/objdump: conftest: File format not > recognized > checking for -rdynamic... path-to/arm-elf-gcc-4.5.0/arm-elf/bin/objdump: > conftest: File format not recognized Hard to say what is the search root for these, probably the main $BUILD directory. In any case there seems to be nothing which the configure script expects, here an 'objdump' for the 'arm-elf' target... > my system is ubuntu 9.10 64 bit with > gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) > > binutils: > GNU ld (GNU Binutils for Ubuntu) 2.20 Of course you should first have binutils for 'arm-elf' in the '$prefix/bin' (for humans and this dir in PATH) and in '$prefix/arm-elf/bin' (for the GCC to be built). The 'path-to/arm-elf-gcc-4.5.0/arm-elf/bin/objdump' shows this scheme with your given $prefix and $target values.