Hi

I was building the latest trunk fine on a i686 box before, but now I am away from home, and would like to compile on my laptop which is running 64 bit linux.

I tried using the tree from the other box, and I also tried checking out a fresh copy from svn, and I get the same problem either way:

x86_64-linux-gnu-gcc    -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H  -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o  \
          cc1-checksum.o main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lstdc++   -L/home/andrew/openwrt-src2/trunk/staging_dir/host/lib -L/home/andrew/openwrt-src2/trunk/staging_dir/host/lib -L/home/andrew/openwrt-src2/trunk/staging_dir/host/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -lstdc++ -L../zlib -lz
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make[5]: *** [cc1] Error 1
make[5]: Leaving directory `/home/andrew/openwrt-src2/trunk/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/gcc-linaro-4.6-2012.02-minimal/gcc'
make[4]: *** [all-gcc] Error 2
make[4]: Leaving directory `/home/andrew/openwrt-src2/trunk/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/gcc-linaro-4.6-2012.02-minimal'
make[3]: *** [/home/andrew/openwrt-src2/trunk/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/gcc-linaro-4.6-2012.02-minimal/.built] Error 2
make[3]: Leaving directory `/home/andrew/openwrt-src2/trunk/toolchain/gcc/minimal'
make[2]: *** [toolchain/gcc/minimal/compile] Error 2
make[2]: Leaving directory `/home/andrew/openwrt-src2/trunk'
make[1]: *** [/home/andrew/openwrt-src2/trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/andrew/openwrt-src2/trunk'
make: *** [world] Error 2

Anyone know how to fix this? I guess in the meantime I will have to compile it at home on the i686 box and scp the image file to me after.

(Last edited by hwgasdfasdf on 12 May 2012, 04:59)