Strange build error
I'm getting a strange build error when developing with some new packages:
| arm-amltd-linux-gnueabi-gcc -march=armv6 -mthumb-interwork -mfloat-abi=softfp -mfpu=vfp --sysroot=/local/rpi_2014-04-10/tmp/sysroots/raspberrypi -O2 -pipe -g
-feliminate-unused-debug-types -I3rdparty/sparsehash -I3rdparty/utfcpp -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed Arpa2Fst.o util.o phonetisaurus-arpa2fst.cpp -o ../phonetisaurus-arpa2fst -lfst -ldl -lm -lrt
| /local/rpi_2014-04-10/tmp/sysroots/x86_64-linux/usr/libexec/armv6-vfp-amltd-linux-gnueabi/gcc/arm-amltd-linux-gnueabi/4.8.2/ld: util.o: undefined reference to symbol '_ZSt20__throw_out_of_rangePKc@@GLIBCXX_3.4'
| /local/rpi_2014-04-10/tmp/sysroots/raspberrypi/usr/lib/libstdc++.so.6: error adding symbols: DSO missing from command line
I tried building the same package(s) on my desktop but I don't get this error. It also doesn't seem to be target specific - I tried building (using Yocto) for ARM and PowerPC - same thing.
Since the error seems to be coming from the stdc++ library, I'm at a loss of where to look for it or how to fix this.
Any ideas?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 8 lines · Gary Thomas
I'm getting a strange build error when developing with some new packages:
| arm-amltd-linux-gnueabi-gcc -march=armv6 -mthumb-interwork -mfloat-abi=softfp -mfpu=vfp --sysroot=/local/rpi_2014-04-10/tmp/sysroots/raspberrypi -O2 -pipe -g(quoted diff) +0
-2-feliminate-unused-debug-types -I3rdparty/sparsehash -I3rdparty/utfcpp -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed Arpa2Fst.o util.o phonetisaurus-arpa2fst.cpp -o ../phonetisaurus-arpa2fst -lfst -ldl -lm -lrt| /local/rpi_2014-04-10/tmp/sysroots/x86_64-linux/usr/libexec/armv6-vfp-amltd-linux-gnueabi/gcc/arm-amltd-linux-gnueabi/4.8.2/ld: util.o: undefined reference to symbol '_ZSt20__throw_out_of_rangePKc@@GLIBCXX_3.4'
| /local/rpi_2014-04-10/tmp/sysroots/raspberrypi/usr/lib/libstdc++.so.6: error adding symbols: DSO missing from command line
Quoted 8 lines
I tried building the same package(s) on my desktop but I don't get this error. It also doesn't seem to be target specific - I tried building (using Yocto) for ARM and PowerPC - same thing.
Since the error seems to be coming from the stdc++ library, I'm at a loss of where to look for it or how to fix this.
Any ideas?
it seems your program is using exceptions for which you would require
to link with
C++ runtime. one way is to use g++ to do the linking other option would be to add -lstdc++ to linker codlin
but that may not be sufficient.
Quoted 11 lines
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Quoted 16 lines · Khem Raj
Quoted 15 lines · Gary Thomas
I'm getting a strange build error when developing with some new packages:
| arm-amltd-linux-gnueabi-gcc -march=armv6 -mthumb-interwork -mfloat-abi=softfp -mfpu=vfp --sysroot=/local/rpi_2014-04-10/tmp/sysroots/raspberrypi -O2 -pipe -g(quoted diff) +0
-2-feliminate-unused-debug-types -I3rdparty/sparsehash -I3rdparty/utfcpp -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed Arpa2Fst.o util.o phonetisaurus-arpa2fst.cpp -o ../phonetisaurus-arpa2fst -lfst -ldl -lm -lrt| /local/rpi_2014-04-10/tmp/sysroots/x86_64-linux/usr/libexec/armv6-vfp-amltd-linux-gnueabi/gcc/arm-amltd-linux-gnueabi/4.8.2/ld: util.o: undefined reference to symbol '_ZSt20__throw_out_of_rangePKc@@GLIBCXX_3.4'
| /local/rpi_2014-04-10/tmp/sysroots/raspberrypi/usr/lib/libstdc++.so.6: error adding symbols: DSO missing from command lineI tried building the same package(s) on my desktop but I don't get this error. It also doesn't seem to be target specific - I tried building (using Yocto) for ARM and PowerPC - same thing.
Since the error seems to be coming from the stdc++ library, I'm at a loss of where to look for it or how to fix this.
Quoted 7 lines
Quoted 1 line
Any ideas?
it seems your program is using exceptions for which you would require
to link with
C++ runtime. one way is to use g++ to do the linking other option would be to add -lstdc++ to linker codlin
but that may not be sufficient.
That was it - their makefile was using $(CC) when it should have been using $(CXX)
Thanks
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------