Skip to contentSkip to conversation

uclibc-ng: bump to 1.0.18

Buildroot Lance Fredrickson 2 participants 5 messages Sep 29, 2016 – Sep 30, 2016

lore
Share & tools
lore
#0 lore raw

I've been anticipating uclibc-ng 1.0.18 since it follows musl's lead and put everything (librt, libdl, pthread etc) into libc.
On a previous release of buildroot I tried changing to 1.0.18 and it stops in the build. I also just tried a fresh clone of Master and come upon the same error.

make[1]: Entering directory '/home/lance/buildroot/output/build/uclibc-1.0.18/utils'
HOSTCC utils/locale.host
../extra/locale/programs/locale.c:35:32: fatal error:
bits/uClibc_locale.h: No such file or directory

  #include <bits/uClibc_locale.h>
                                 ^

compilation terminated.
Makefile.in:113: recipe for target '../utils/locale.host' failed

It appears by this point that it's successfully built the the library itself, but is failing on 'hostutils'?
I've attached a simple config that Master will fail on. Maybe should be fixed upstream from you, but thought I'd mention it here.

Lance
-------------- next part --------------
BR2_arm=y
BR2_cortex_a9=y
BR2_OPTIMIZE_2=y
BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
BR2_TOOLCHAIN_BUILDROOT_USE_SSP=y
# BR2_UCLIBC_INSTALL_UTILS is not set
BR2_BINUTILS_VERSION_2_25_X=y
BR2_GCC_VERSION_6_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set

#1 lore raw

Hi Lance,
Lance Fredrickson wrote,

Quoted 11 lines

I've been anticipating uclibc-ng 1.0.18 since it follows musl's lead and put everything (librt, libdl, pthread etc) into libc.
On a previous release of buildroot I tried changing to 1.0.18 and it stops in the build. I also just tried a fresh clone of Master and come upon the same error.

make[1]: Entering directory '/home/lance/buildroot/output/build/uclibc-1.0.18/utils'
HOSTCC utils/locale.host
../extra/locale/programs/locale.c:35:32: fatal error: bits/uClibc_locale.h:
No such file or directory

Quoted 5 lines
 #include <bits/uClibc_locale.h>
                                ^

compilation terminated.
Makefile.in:113: recipe for target '../utils/locale.host' failed

It is fixed upstream and a patch was sent to br mailinglist.

I enabled the locale utility for target testing while playing with uClibc-ng locale support, but haven't recognized that buildroot als build all utils host variants.

:)

best regards
Waldemar

#2 lore raw
Quoted 1 line · Waldemar Brodkorb

It is fixed upstream and a patch was sent to br mailinglist.

Thanks, that seems to take care of it.
I'm running into one more hiccup, and I'm not sure whether this is more buildroot or uclibc-ng.

I've been using buildroot primarily for its ability to create toolchains, I haven't been compiling any included packages. For my purposes I need backtrace support, so I add "UCLIBC_HAS_BACKTRACE=y" into uClibc-ng.config. Now when doing the final GCC compilation where it appears to be creating libgcc, I get the following error.

/opt/tomatoware/arm-soft-mmc/usr/arm-buildroot-linux-uclibcgnueabi/bin/ld:
cannot find /lib/libubacktrace.so.1

My guess as to what's happening is is that ld is told to link with backtrace, but that functionality has been has been put into libc. At the location of the toolchain libraries, I created some symlinks from backtrace (libubacktrace.so...) to libc and this made it happy and it finished compiling the toolchain. So I think either in the compilation process, it needs to not pass backtrace to the linker, or it needs a symlink to libc like I've placed.

Lance

#3 lore raw

Hi Lance,
Lance Fredrickson wrote,

Quoted 16 lines · Waldemar Brodkorb
Quoted 1 line

It is fixed upstream and a patch was sent to br mailinglist.

Thanks, that seems to take care of it.
I'm running into one more hiccup, and I'm not sure whether this is more buildroot or uclibc-ng.

I've been using buildroot primarily for its ability to create toolchains, I haven't been compiling any included packages. For my purposes I need backtrace support, so I add "UCLIBC_HAS_BACKTRACE=y" into uClibc-ng.config. Now when doing the final GCC compilation where it appears to be creating libgcc, I get the following error.

/opt/tomatoware/arm-soft-mmc/usr/arm-buildroot-linux-uclibcgnueabi/bin/ld:
cannot find /lib/libubacktrace.so.1

Quoted 7 lines

My guess as to what's happening is is that ld is told to link with backtrace, but that functionality has been has been put into libc. At the location of the toolchain libraries, I created some symlinks from backtrace (libubacktrace.so...) to libc and this made it happy and it finished compiling the toolchain. So I think either in the compilation process, it needs to not pass backtrace to the linker, or it needs a symlink to libc like I've placed.

I think another uClibc-ng regression, can you please try attached buildroot patch?

best regards
Waldemar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-uclibc-remove-linker-scripts-for-libubacktrace-libua.patch
Type: text/x-diff
Size: 4654 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160930/0f06e85a/attachment.bin>

#4 lore raw
Quoted 2 lines · Waldemar Brodkorb

I think another uClibc-ng regression, can you please try attached buildroot patch?

Thanks for you attention to this!
The patch for Rules.mak takes out 1 too many 'endif' statements. Adding in the missing one allowed the toolchain to compile without issue.

Lance