Bug 9111 - glibc 2.23: libmvec.so not copied
Summary: glibc 2.23: libmvec.so not copied
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-29 23:04 UTC by eljedi
Modified: 2016-11-03 20:45 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
Patch enable glibc installer to copy libmvec.so (500 bytes, patch)
2016-07-29 23:04 UTC, eljedi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eljedi 2016-07-29 23:04:51 UTC
Created attachment 6561 [details]
Patch enable glibc installer to copy libmvec.so

Current github version of buildroot does not copy libmvec.so from glibc 2.23 to target directory.

I'm attaching a simple patch to fix it
Comment 1 Yann E. MORIN 2016-07-30 09:16:33 UTC
Hello,

It is my understanding that libmvec is only available for x86_64 (at
least for now, seeing that glibc only has code for it on x86_64), so we
can't copy it unconditionally.

Care to send a patch to the list, please? See the manual:
    https://buildroot.org/downloads/manual/manual.html#submitting-patches

Also, it would be nice to handle the external toolchains, too. Would you
look at it?

Regards,
Yann E. MORIN.
Comment 2 Thomas Petazzoni 2016-10-15 15:49:31 UTC
We had a discussion about this, and here is the conclusion: we will simply add libmvec.so to the list of libraries to copy, for both the internal toolchain backend (glibc.mk) and the external toolchain backend (toolchain-external.mk).

The function used to copy libraries from the staging directory to the target directory already ignores libraries that don't exist, so it's not a problem to unconditionally try to copy libmvec.so. It will be silently ignored on systems/C libraries/architectures where it is not available.
Comment 3 Thomas Petazzoni 2016-10-26 21:48:59 UTC
Patches proposed on the mailing list:

 https://patchwork.ozlabs.org/patch/687364/
 https://patchwork.ozlabs.org/patch/687362/