All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: poky@yoctoproject.org
Subject: Re: Strange build error
Date: Mon, 14 Apr 2014 04:54:15 -0600	[thread overview]
Message-ID: <534BBE57.6050606@mlbassoc.com> (raw)
In-Reply-To: <CAMKF1sq7eqUwmjkAZdc+M8Sq1E3iUEzUpXePgNdEkQtys6jZ9w@mail.gmail.com>

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
------------------------------------------------------------


      reply	other threads:[~2014-04-14 10:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=534BBE57.6050606@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.