From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17150 invoked by alias); 7 Jan 2008 23:02:09 -0000 Received: (qmail 17138 invoked by uid 22791); 7 Jan 2008 23:02:07 -0000 X-Spam-Check-By: sourceware.org Received: from pne-smtpout4-sn2.hy.skanova.net (HELO pne-smtpout4-sn2.hy.skanova.net) (81.228.8.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Jan 2008 23:01:49 +0000 Received: from [192.168.0.53] (88.193.134.7) by pne-smtpout4-sn2.hy.skanova.net (7.3.129) id 471A7B0C0040C0F4; Tue, 8 Jan 2008 00:00:32 +0100 Message-ID: <4782B15E.9000109@mbnet.fi> Date: Tue, 08 Jan 2008 19:17:00 -0000 From: Kai Ruottu User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Bob Yan CC: gcc-help@gcc.gnu.org Subject: Re: Errors when building powerpc-softfloat-linux-gnu libgfrotran References: <7119e3eb0801062116q5340fc20g3a91d3d85c9c9d27@mail.gmail.com> <4781ECE6.3030700@mbnet.fi> <7119e3eb0801070825ucb63aeeoe086b46d27f0b95f@mail.gmail.com> <4782A93E.1020200@mbnet.fi> In-Reply-To: <4782A93E.1020200@mbnet.fi> Content-Type: text/plain; charset=ISO-8859-1; 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: 2008-01/txt/msg00067.txt.bz2 Kai Ruottu wrote: > Too complicated, generally the headers from the self-made glibc should > have been in > this '/home/yxb/install/powerpc-softfloat-linux-gnu/include' already > when producing the > earlier GCC parts! Let's make it more clear: There should be ONLY ONE glibc with headers and libraries for the $target at a time! Not "some headers from some old glibc" mixed with the new libraries from the just built glibc! The '--with-sysroot=$sysroot' as a bare idea is useful, although using the traditional install scheme, nothing disables one to use the symlinks : $prefix/$target/include -> $sysroot/usr/include and $prefix/$target/lib -> $sysroot/usr/lib and then make those few additional symlinks : ld.so.1 -> ../../lib/ld.so.1 libc.so.6 -> ../../lib/libc.so.6 into the '$sysroot/usr/lib' so that also these would be seen there. And edit the 'libc.so' and 'libpthread.so' scripts to not have those absolute paths like in that : GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a ) or something row in the '$sysroot/usr/lib/libc.so' script... If one has some older glibc in that $sysroot, the recommended way could be to do a : rm -f -r * in the $sysroot before installing the new glibc there... The 'make install_root=$sysroot install' command quite sure doesn't remove those old 'lib*-x.y.z.so*' files in the '$sysroot/lib', ie it is not any "update" command which would do things like this....