During build using the latest at trunk (as of 02 January 2012) I get the following error in "compile gcc-minimal" stage:

x86_64-redhat-linux-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-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o \ dummy-checksum.o main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lcloog -lppl_c -lppl -lgmpxx -L/home/mr-4/openwrt/trunk/staging_dir/host/lib -L/home/mr-4/openwrt/trunk/staging_dir/host/lib -L/home/mr-4/openwrt/trunk/staging_dir/host/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz -lelf /usr/bin/ld: /home/mr-4/openwrt/trunk/staging_dir/host/lib/libgmpxx.a(ismpz.o): undefined reference to symbol 'std::locale::locale(std::locale const&)@@GLIBCXX_3.4' /usr/bin/ld: note: 'std::locale::locale(std::locale const&)@@GLIBCXX_3.4' is defined in DSO /usr/lib64/libstdc++.so.6 so try adding it to the linker command line
/usr/lib64/libstdc++.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[5]: *** [cc1-dummy] Error 1
make[5]: Leaving directory `/home/mr-4/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.5-linaro_uClibc-0.9.32/gcc-linaro-4.5-2011.08-minimal/gcc'
make[4]: *** [all-gcc] Error 2
make[4]: Leaving directory `/home/mr-4/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.5-linaro_uClibc-0.9.32/gcc-linaro-4.5-2011.08-minimal' make[3]: *** [/home/mr-4/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.5-linaro_uClibc-0.9.32/gcc-linaro-4.5-2011.08-minimal/.built] Error 2
make[3]: Leaving directory `/home/mr-4/openwrt/trunk/toolchain/gcc/minimal'
make[2]: *** [toolchain/gcc/minimal/compile] Error 2
make[2]: Leaving directory `/home/mr-4/openwrt/trunk'
make[1]: *** [/home/mr-4/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.5-linaro_uClibc-0.9.32/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/mr-4/openwrt/trunk'
make: *** [world] Error 2

My host arch is x86_64. By looking at various references to this error on the Internet, the solution seems to be either to include "-lm" in the linker flags, or specify '--with-host-libstdcxx="-lstdc++ -lsupc++"' as part of configure. It is worth noting that I've got exactly the same error when I tried to include the ppl library, so I've reset the .config file to exclude this (and ran make distclean for good measure) then ran the build process again.

Any ideas?
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to