All of lore.kernel.org
 help / color / mirror / Atom feed
* Poky-Tiny errors building util-linux/2.26.2-r0
@ 2016-04-18 14:55 Ronald Oakes
  2016-04-18 17:39 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Ronald Oakes @ 2016-04-18 14:55 UTC (permalink / raw)
  To: Yocto discussion list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Poky-Tiny errors building util-linux/2.26.2-r0
  2016-04-18 14:55 Poky-Tiny errors building util-linux/2.26.2-r0 Ronald Oakes
@ 2016-04-18 17:39 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2016-04-18 17:39 UTC (permalink / raw)
  To: Ronald Oakes; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 3133 bytes --]

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@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 3660 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-18 17:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-18 14:55 Poky-Tiny errors building util-linux/2.26.2-r0 Ronald Oakes
2016-04-18 17:39 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.