This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Errors when building powerpc-softfloat-linux-gnu libgfrotran


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....




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]