* Strange build error
@ 2014-04-13 13:59 Gary Thomas
2014-04-13 19:56 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2014-04-13 13:59 UTC (permalink / raw)
To: Poky
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?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Strange build error
2014-04-13 13:59 Strange build error Gary Thomas
@ 2014-04-13 19:56 ` Khem Raj
2014-04-14 10:54 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2014-04-13 19:56 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky
On Sun, Apr 13, 2014 at 6:59 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> 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?
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.
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Strange build error
2014-04-13 19:56 ` Khem Raj
@ 2014-04-14 10:54 ` Gary Thomas
0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2014-04-14 10:54 UTC (permalink / raw)
To: poky
On 2014-04-13 13:56, Khem Raj wrote:
> On Sun, Apr 13, 2014 at 6:59 AM, Gary Thomas <gary@mlbassoc.com> wrote:
>> 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?
>
> 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
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-14 10:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-13 13:59 Strange build error Gary Thomas
2014-04-13 19:56 ` Khem Raj
2014-04-14 10:54 ` Gary Thomas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.