--- Begin Message ---
Ilja Honkonen wrote:
I was building LFS 6.1 and in chapter 6.21 ncurses gave this error
during make:
cd ../obj_s; /tools/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H
-I.
-I../include -D_GNU_SOURCE -DNDEBUG -O2 -fPIC -c ../c++/demo.cc
/tools/bin/g++ -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib
-lform
-lmenu -lpanel -lncurses -Wl,-rpath,/sources/ncurses-5.4/lib -I../c++
-I../include -I. -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE
-DNDEBUG
-O2 -fPIC
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lstdc++
collect2: ld returned 1 exit status
make[1]: *** [demo] Error 1
make[1]: Leaving directory make[1]: Leaving directory
`/sources/ncurses-5.4/c++\'
make: *** [all] Error 2
I fixed the above error by adding this to chapter 6.6:
ln -s /tools/lib/libstdc++.{so,.6} /usr/lib
I have no idea if this is the correct fix, or if the problem was
somewhere
else. There was no libstdc++* in /mnt/lfs/ or its subdirectories when I
got
to 6.21.
I don't think that's a problem with the fact that you stopped and
restarted - if libstdc++ does not exist in /usr/lib then you forgot to
install the c++ compiler in chap. 6. Does /usr/bin/gcc exist?
No it did not, I noticed this when Groff wouldn't configure complaining that
it couldn't compile c++ programs. There were no gcc or c++ or even cc in
/usr/bin. Very strange, but everyting worked after I installed gcc.
Should I compile ncurces again?
Thanks
Ilja
No, recompiling ncurses won't help if gcc is missing from /usr. Try
checking a couple more things for me...
1. Run the sanity check at the end of the "Re-adjusting the toolchain"
section and let me know the results.
2. Does /lib/libc.so.6 exist?
3. Does /usr/bin/ar, as, and ld exist?
--- End Message ---
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page