From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14453 invoked by alias); 19 May 2011 07:59:31 -0000 Received: (qmail 14443 invoked by uid 22791); 19 May 2011 07:59:29 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,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; Thu, 19 May 2011 07:59:14 +0000 Received: from [192.168.1.3] (dsl-olubrasgw2-fe72f800-248.dhcp.inet.fi [84.248.114.248]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kai.ruottu@wippies.com) by wmh1.mail.saunalahti.fi (Postfix) with ESMTPSA id 5048D1FC065 for ; Thu, 19 May 2011 10:59:11 +0300 (EEST) Message-ID: <4DD4CDCC.8000505@wippies.com> Date: Thu, 19 May 2011 10:39:00 -0000 From: Kai Ruottu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fi; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: can't run gcc 4.5.3/4.6.0 under ubuntu 11.04 References: <20110518064007.25140@gmx.net> <20110518095737.25110@gmx.net> <20110518102320.25100@gmx.net> <20110519044837.25100@gmx.net> In-Reply-To: <20110519044837.25100@gmx.net> 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: 2011-05/txt/msg00267.txt.bz2 19.5.2011 7:48, Klaus Rudolph kirjoitti: > Marc Glisse wrote: >> >> If you keep only the system ld (don't install your own) and compile a new >> gcc, does it work? > > Without building own binutils it works. Yes, the 'ld -> ld.bfd' in Ubuntu 11.04 seems to be patched to search from more places than the usual '/lib*' and '/usr/lib*'. Using the command : ld -verbose | less will show the built-in search directories and linker script... >>> Using system ld instead of system gcc is changing nothing, or? >> >> The difference is whether gcc passes different options to ld or ld was >> compiled with different options (or patches). If you insist on compiling >> your own, the first thing to do would be to check how the ubuntu versions >> were compiled. >> > > There is already a bug report for this item: > https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/738098 > > In hope the changes for ubuntu could shared with standard binutils or a bugfix for ubuntu will arise. > > I will begin with building without own binutils This whole issue is one-eyed and forgets cross-compiling completely, with this one as default will : - use the original Ubuntu 11.04 glibc etc C libraries in their native install scheme in a $sysroot - produce GNU binutils from sources, usually from the Linux ones at ftp.kernel.org - produce GCC from sources, usually from the FSF ones I wouldn't expect the '--with-sysroot=' changing the default search paths in 'ld' in the 'i686-ubuntu-linux-gnu' case in any way although it seems that Ubuntu isn't any normal/standard Linux at all but tries to be a custom one with customized install paths for its C libraries. Nothing however disables one to normalize the install directories in the $sysroot to follow the expected Linux standards...