When following LFS-7.5 on my iMac G5, a powerpc64 system, I had great
success until I got to chapter 6 glibc. It compiled correctly but when
running the check a number of failures, only a small percentage of which
are listed under "expected failures", were reported.

These are the errors reported:

http://pastebin.com/vUpjJTkZ

When grepping around to find out the reason for these errors, I found a
number of references to the inability to find libstdc++.so.6 or
libgcc_s.so.1, as seen here:

http://pastebin.com/swCaY3ii

However, these files exist in /tools/lib and in fact, when I compiled a
simple Hello World C++ program it found them fine and runs fine. See below:

root:/sources/glibc-build# cat test.cpp
#include <iostream>
int main()
{
  std::cout << "Hello World!" << std::endl;
  return 0;
}
root:/sources/glibc-build# g++ test.cpp -o hello
root:/sources/glibc-build# ldd ./hello
        linux-vdso64.so.1 (0x00003fffb4620000)
        libstdc++.so.6 => /tools/lib/libstdc++.so.6 (0x00003fffb4481000)
        libm.so.6 => /tools/lib/libm.so.6 (0x00003fffb43b4000)
        libgcc_s.so.1 => /tools/lib/libgcc_s.so.1 (0x00003fffb438e000)
        libc.so.6 => /tools/lib/libc.so.6 (0x00003fffb41c4000)
        /tools/lib64/ld64.so.1 (0x00003fffb462b000)
root:/sources/glibc-build# ./hello
Hello World!

Running the sanity check from the end of Chapter 5 produces the expected
result as well:

root:/sources/glibc-build# echo 'main(){}' > dummy.c
root:/sources/glibc-build# cc dummy.c
root:/sources/glibc-build# readelf -l a.out | grep ': /tools'
      [Requesting program interpreter: /tools/lib64/ld64.so.1]


lib64 is a symlink to lib as suggested for x86_64 in the book (it seems to
also be needed for powerpc64).

At this point I'm wondering what all these failures mean, and whether I
should just install glibc at this point and see if things break down the
road, or if I should stop and wait for further instruction. I've done LFS
on x86 and x86_64 before and never run into this issue, so I'm rather at a
loss as to what to do. A friend of mine, Jasmine Iwanek, suggested I post
this into lfs-dev and see what you all think.

Below is the full glibc-check-log (linked from elsewhere as it's too big
for pastebin)

http://services.cyberkat.eu/glibc-check-log
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to