https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65868
Bug ID: 65868 Summary: "cannot find -lstdc++" for GNAT compilation Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: porton at narod dot ru Compiling GCC 5.1.0 with GCC 4.9.2. Debian "jessie" Linux victor.local 3.10-2-amd64 #1 SMP Debian 3.10.7-1 (2013-08-17) x86_64 GNU/Linux with 32 bit userland ./configure --prefix=/usr/local/stow/gcc-5.1.0 --enable-libada --enable-languages=c,c++,java,lto,objc,ada i686-linux make[5]: Leaving directory '/home/porton/build/gcc-5.1.0/i686-linux/libstdc++-v3' make[4]: Leaving directory '/home/porton/build/gcc-5.1.0/i686-linux/libstdc++-v3' make[3]: Leaving directory '/home/porton/build/gcc-5.1.0/i686-linux/libstdc++-v3' make[2]: Leaving directory '/home/porton/build/gcc-5.1.0/i686-linux/libstdc++-v3' make[2]: Entering directory '/home/porton/build/gcc-5.1.0/host-i686-linux/gnattools' # gnattools1 make -C ../gcc/ada/tools -f ../Makefile \ "CC=../../xgcc -B../../" "CXX=../../xg++ -B../../ -B../../../i686-linux/libstdc++-v3/src/.libs -B../../../i686-linux/libstdc++-v3/libsupc++/.libs -L../../../i686-linux/libstdc++-v3/src/.libs -L../../../i686-linux/libstdc++-v3/libsupc++/.libs" "CFLAGS=-g -O2 -W -Wall" "LDFLAGS=-static-libstdc++ -static-libgcc " "ADAFLAGS=-gnatpg -gnata" "ADA_CFLAGS=" "INCLUDES=-I. -I.. -I../.. -I/home/porton/build/gcc-5.1.0/gcc/ada -I/home/porton/build/gcc-5.1.0/gcc/config -I/home/porton/build/gcc-5.1.0/gcc/../include -I/home/porton/build/gcc-5.1.0/gcc" "ADA_INCLUDES=-I- -I../rts -I. -I/home/porton/build/gcc-5.1.0/gcc/ada" "exeext=" "fsrcdir=/home/porton/build/gcc-5.1.0/gcc" "srcdir=/home/porton/build/gcc-5.1.0/gcc" "GNATMAKE=../../gnatmake" "GNATLINK=../../gnatlink" "GNATBIND=../../gnatbind" "TOOLSCASE=native" \ ../../gnatmake ../../gnatlink make[3]: Entering directory '/home/porton/build/gcc-5.1.0/host-i686-linux/gcc/ada/tools' ../../xg++ -B../../ -B../../../i686-linux/libstdc++-v3/src/.libs -B../../../i686-linux/libstdc++-v3/libsupc++/.libs -L../../../i686-linux/libstdc++-v3/src/.libs -L../../../i686-linux/libstdc++-v3/libsupc++/.libs -static-libstdc++ -static-libgcc -I- -I../rts -I. -I/home/porton/build/gcc-5.1.0/gcc/ada -static-libstdc++ -static-libgcc -DIN_GCC -g -O2 -W -Wall -o ../../gnatmake b_gnatm.o a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o uname.o urealp.o usage.o widechar.o ../link.o ../targext.o ../../ggc-none.o ../../libcommon-target.a ../../libcommon.a ../../../libcpp/libcpp.a ../rts/libgnat.a ../../../libbacktrace/.libs/libbacktrace.a ../../../libiberty/libiberty.a /usr/bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status ../gcc-interface/Makefile:2585: recipe for target '../../gnatmake' failed make[3]: *** [../../gnatmake] Error 1 make[3]: Leaving directory '/home/porton/build/gcc-5.1.0/host-i686-linux/gcc/ada/tools' Makefile:190: recipe for target 'gnattools-native' failed make[2]: *** [gnattools-native] Error 2 make[2]: Leaving directory '/home/porton/build/gcc-5.1.0/host-i686-linux/gnattools' Makefile:11898: recipe for target 'all-gnattools' failed make[1]: *** [all-gnattools] Error 2 make[1]: Leaving directory '/home/porton/build/gcc-5.1.0' Makefile:902: recipe for target 'all' failed make: *** [all] Error 2