Hello

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 had stopped building LFS in chapter 6.17 and resumed building it later. I
 saved links along the way to previous chapters that I thought were
necessary to set up the environment correctly when resuming the build:
http://www.linuxfromscratch.org/lfs/view/stable/chapter02/mounting.html
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/kernfs.html
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/chroot.html
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/devices.html

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.

Thanks
Ilja
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to