Re: libssp_nonshared.a not present in native SDK.

Paul Eggleton

Hi Rafael,

On Thu, 08 Dec 2016 16:05:04 Rafael Gago Castano wrote:
Yesterday, when cross-compiling with the SDK (relocatable/non-extensible), I
noticed that CMake projects weren't generated because the compiler feature
detection was failing. CMake enables fstack-protector for each of its
platform tests and hance requires "libssp_nonshared.a" for linking. A quick
search revealed that "libssp_nonshared.a" is actually missing from the SDK.

I found that "libssp_nonshared.a" comes from "". So adding...

IMAGE_INSTALL_append += "libssp"

...fixes (or workarounds) the issue and allows CMake projects to
cross-compile fine.

What I see is that I can't manually add all the libraries present in
"" as "IMAGE_INSTALL_append"s. Some of them (e.g libquadmath)
fail with the error:

"Couldn't find anything to satisfy 'libquadmath'"

So I added those that doesn't cause errors by trial and error. This looks
AIUI libquadmath is only for Fortran so unless you're enabling and using that,
you don't need it, and it wouldn't be present. However if you are enabling
Fortran, there was a recent patch to correctly enable libquadmath here:

All the statics in "" look to me like they should be on the SDK
by default, as they are gcc/libc related and in this case (libssp)
essential to use some of the compiler features, so I'm wondering:

If this is a bug in krogoth?
If it isn't a bug, what is the right way to add all these gcc-runtime libs?
So, yes and no. I looked earlier at adding a packagegroup for bringing all of
these in together, but the more I looked at it the more I came to realise that
in most circumstances you don't actually want all of these libraries - they
should come in individually with the pieces that they're intended to be used
with. Hence I added an RRECOMMENDS as it seemed appropriate:

In particular libssp is now RRECOMMENDED by gcc for the target. This patch
came in in the morty release so you wouldn't currently see this in krogoth
though. Having said that your workaround shouldn't be too awkward in the mean



Paul Eggleton
Intel Open Source Technology Centre

Join to automatically receive all group messages.