gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross compile gpsd-3.20.1~dev for arm with buildroot


From: Gary E. Miller
Subject: Re: Cross compile gpsd-3.20.1~dev for arm with buildroot
Date: Fri, 5 Jun 2020 10:03:54 -0700

Yo Florian!

On Fri, 5 Jun 2020 16:39:37 +0200
Florian Kiera <florian.kiera@logicway.de> wrote:

> I am trying to update the gpsd version for our buildroot and keep 
> running into an error:

3.18 is too old to support.

You have reported this as before.  Exact same problem as before:

    unrecognized option '-Wl,-Bsymbolic'

As before, that is not in gpsd:
    $ fgrep Bsymbol * -r
    $

It is coming from somewhere else in your system, not from gpsd.

> I already know buildroot can be tricky sometimes. But how it comes
> that scons/gpsd is using the arm-buildroot-linux-uclibcgnueabihf-ld
> to compile the libgps.so while on x86_64 it uses the g++?

You specified the CC and LD yourself, not scons/gpsd:

CC="/home/florian/Desktop/buildroot-2019.02.8.2/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc"
 
GCC="/home/florian/Desktop/buildroot-2019.02.8.2/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc"
 
CPP="/home/florian/Desktop/buildroot-2019.02.8.2/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-cpp"
 
CXX="/home/florian/Desktop/buildroot-2019.02.8.2/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-g++"
 
LD="/home/florian/Desktop/buildroot-2019.02.8.2/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld"
 

I see nowhere in your bulid log the ld is used to compile.



> It also
> used the g++ when compiling with the older version 3.18 (line 131 of 
> compile-3.18_success.txt).

Yes, g++ is used to compile C++ code.  Nothing odd there.

> uclibcgnueabihf-ld isn't used a single time in the 3.18 cross 
> compilation,

Because you did not tell it to use that.  See above.

> why so in the 3.20 cross compilation? Its neither used
> in the compilation for x86_64.

Well, duh.  You do not use arm ld to link x86 code.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpET1XziFY1_.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]