[yocto] Poky-Tiny errors building util-linux/2.26.2-r0

Khem Raj raj.khem at gmail.com
Mon Apr 18 10:39:20 PDT 2016


You propbably need to enable more. Eglibc options than default. Or else
update to 2.1 release which uses musl
On Apr 18, 2016 7:56 AM, "Ronald Oakes" <ronaldo at brc2.com> wrote:

> When I attempt to build using the poky-tiny distribution (or my
> distribution still very closely based on it), I keep getting link
> errors when building util-linux.  These seem to be related to the
> functions provided by wchar.h and locale.h and their associated
> library files.
>
> For example:
>
> x86_64-poky-linux-libtool: link: x86_64-poky-linux-gcc -m64
> -march=core2 -mtune=core2 -msse3 -mfpmath=sse
> --sysroot=/home/ron/yocto_production/build/tmp/sysroot
> s/qemux86-64 -fsigned-char -fno-common -Wall -Werror=sequence-point
> -Wextra -Wmissing-declarations -Wmissing-parameter-type
> -Wmissing-prototypes -Wno-missing-fi
> eld-initializers -Wredundant-decls -Wsign-compare -Wtype-limits
> -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable
> -Wunused-parameter -Wunused
> -result -Wunused-variable -Wnested-externs -Wpointer-arith
> -Wstrict-prototypes -Wimplicit-function-declaration -O2 -pipe -g
> -feliminate-unused-debug-types -Wl,-
> O1 -Wl,--hash-style=gnu -Wl,--as-needed -o dmesg sys-utils/dmesg.o
> lib/monotonic.o  ./.libs/libcommon.a
> sys-utils/dmesg.o: In function `safe_fwrite':
>
> /home/ron/yocto_production/build/tmp/work/core2-64-poky-linux/util-linux/2.26.2-r0/util-linux-2.26.2/sys-utils/dmesg.c:628:
> undefined reference to `mbrtowc'
> /home/ron/yocto_production/build/tmp/work/core2-64-poky-linux/
> sys-utils/dmesg.o: In function `safe_fwrite':
>
> /home/ron/yocto_production/build/tmp/work/core2-64-poky-linux/util-linux/2.26.2-r0/util-linux-2.26.2/sys-utils/dmesg.c:628:
> undefined reference to `mbrtowc'
>
> /home/ron/yocto_production/build/tmp/work/core2-64-poky-linux/util-linux/2.26.2-r0/util-linux-2.26.2/sys-utils/dmesg.c:636:
> undefined reference to `iswprint'
> ./.libs/libcommon.a(libcommon_la-strutils.o): In function `parse_size':
>
> /home/ron/yocto_production/build/tmp/work/core2-64-poky-linux/util-linux/2.26.2-r0/util-linux-2.26.2/lib/strutils.c:109:
> undefined reference to `localeconv'
> ./.libs/libcommon.a(libcommon_la-strutils.o): In function
> `size_to_human_string':
>
> /home/ron/yocto_production/build/tmp/work/core2-64-poky-linux/util-linux/2.26.2-r0/util-linux-2.26.2/lib/strutils.c:486:
> undefined reference to `localeconv'
> collect2: error: ld returned 1 exit status
>
>
> ----
>
> I suspect that I need to modify something to pull these libraries in
> when building util-linux for this distribution, but I'm new to Yocto
> and unsure where or how to do this.
>
> For what it is worth, I can build poky just fine using the same poky
> and layer downloads.
>
> I can attach my bblayers.conf file if needed.  At this point, I have
> no custom code or recipes included, but am including more than just
> the default poky layers.
>
> Ron Oakes
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160418/f0c049e8/attachment.html>


More information about the yocto mailing list