This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] test-in-container: fix Arch Linux build-programs bug?


On Wed, 5 Sep 2018 12:52:36 +0200, Albert ARIBAUD
<albert.aribaud@3adev.fr> wrote :

> Now the question becomes: why is the build host native compiler used
> for links-dso-program.cc? Its only unique quality is to be C++, not C.

Just in case someone googling for the same type of issue reads this: DJ
pointed me to the cause and suggested a workaround (thanks you DJ!)

Apparently, the glibc configure process correctly guesses the C cross
compiler from host (and sets CC accordingly by itself it it was not set
already), but it might fail to guess the C++ cross compiler even though
it is present (and in the PATH), and it will then set CXX to g++. This
is what is happening in my case.

The workaround is to manually pre-set CXX=arm-linux-gnueabi-g++ and
export it (hence overriding any configure guesswork about the C++
compiler). If I do this, then the build failure disappears.

Cordialement,
Albert ARIBAUD
3ADEV


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]