Bug 10351 - glibc missing in rootfs
Summary: glibc missing in rootfs
Status: RESOLVED WORKSFORME
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2017.08
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-29 08:24 UTC by alex.theissen
Modified: 2017-09-29 11:27 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
My defconfig (1.06 KB, text/plain)
2017-09-29 08:25 UTC, alex.theissen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alex.theissen 2017-09-29 08:24:34 UTC
I tried to create a rootfs with the attached defconfig (using buildroot toolchain). In the resulting rootfs the glibc is missing. There are symlinks but the actual library is missing. In the host directory everything is fine but not in the resulting image. 

This is the case for the tar and the squashfs image. Other images I did not test.


ls -l /lib
lrwxrwxrwx 1 root root     10 Sep 29 08:57 ld-linux.so.3 -> ld-2.25.so
lrwxrwxrwx 1 root root     14 Sep 29 08:57 libanl.so.1 -> libanl-2.25.so
lrwxrwxrwx 1 root root     18 Sep 29 08:57 libatomic.so -> libatomic.so.1.2.0
lrwxrwxrwx 1 root root     18 Sep 29 08:57 libatomic.so.1 -> libatomic.so.1.2.0
-rwxr-xr-x 1 root root  21652 Sep 28 17:16 libatomic.so.1.2.0
lrwxrwxrwx 1 root root     16 Sep 29 08:57 libcrypt.so.1 -> libcrypt-2.25.so
lrwxrwxrwx 1 root root     12 Sep 29 08:57 libc.so.6 -> libc-2.25.so
lrwxrwxrwx 1 root root     13 Sep 29 08:57 libdl.so.2 -> libdl-2.25.so
-rw-r--r-- 1 root root    132 Sep 28 17:01 libgcc_s.so
-rw-r--r-- 1 root root 124448 Sep 28 17:16 libgcc_s.so.1
lrwxrwxrwx 1 root root     12 Sep 29 08:57 libm.so.6 -> libm-2.25.so
lrwxrwxrwx 1 root root     14 Sep 29 08:57 libnsl.so.1 -> libnsl-2.25.so
lrwxrwxrwx 1 root root     18 Sep 29 08:57 libnss_dns.so.2 -> libnss_dns-2.25.so
lrwxrwxrwx 1 root root     20 Sep 29 08:57 libnss_files.so.2 -> libnss_files-2.25.so
lrwxrwxrwx 1 root root     18 Sep 29 08:57 libpthread.so.0 -> libpthread-2.25.so
lrwxrwxrwx 1 root root     17 Sep 29 08:57 libresolv.so.2 -> libresolv-2.25.so
lrwxrwxrwx 1 root root     13 Sep 29 08:57 librt.so.1 -> librt-2.25.so
lrwxrwxrwx 1 root root     19 Sep 29 08:57 libthread_db.so.1 -> libthread_db-1.0.so
lrwxrwxrwx 1 root root     15 Sep 29 08:57 libutil.so.1 -> libutil-2.25.so
Comment 1 alex.theissen 2017-09-29 08:25:17 UTC
Created attachment 7246 [details]
My defconfig
Comment 2 Yann E. MORIN 2017-09-29 09:14:19 UTC
Alex,

I can't reproduce here, the C library is correctly installed in target/
and present in both images.

In case you changed the toolchain configuration after a previous build,
be sure to start from scratch:  make clean; make

(see the manual: http://buildroot.net/downloads/manual/manual.html#_full_rebuild)

If you still have the issue, then please re-open.

Regards,
Yann E. MORIN.
Comment 3 alex.theissen 2017-09-29 11:27:52 UTC
I was building it in a fresh docker container every time.

But you are right. When I did a clean build the problem is gone. 

I just replaced "make" with "make clean all"

Thanks for your effords!