<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5865</bug_id>
          
          <creation_ts>2014-02-22 11:05:43 +0000</creation_ts>
          <short_desc>poky-tiny qemux86 uclibc build fails</short_desc>
          <delta_ts>2014-04-08 11:53:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Liu">net147</reporter>
          <assigned_to name="valentin">valentin.popa</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>sgw</cc>
    
    <cc>valentin.popa</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40608</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2014-02-22 11:05:43 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.21.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Arch-rolling&quot;
TARGET_SYS        = &quot;i586-poky-linux-uclibc&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky-tiny&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20140222&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:8d7dd9ae471ad6154cd4e59152560ff5f24b3c2a&quot;

Changes to local.conf:
DISTRO ?= &quot;poky-tiny&quot;
PACKAGE_CLASSES ?= &quot;package_ipk&quot;
TCLIBC = &quot;uclibc&quot;

It fails compiling uclibc-initial.

extra/locale/gen_wc8bit `cat extra/locale/codesets.txt` &gt; extra/locale/c8tables.h
for locale in en_US en_US en_GB; do \
	extra/locale/gen_wctype -v -v $locale &gt; extra/locale/wctables.h || \
	extra/locale/gen_wctype -v -v $locale.UTF-8 &gt; extra/locale/wctables.h || \
	extra/locale/gen_wctype -v -v $locale.iso8859-1 &gt; extra/locale/wctables.h &amp;&amp; break; \
done
setlocale(LC_CTYPE,en_US) failed!  Skipping this locale...
setlocale(LC_CTYPE,en_US.UTF-8) failed!  Skipping this locale...
setlocale(LC_CTYPE,en_US.iso8859-1) failed!  Skipping this locale...
setlocale(LC_CTYPE,en_US) failed!  Skipping this locale...
setlocale(LC_CTYPE,en_US.UTF-8) failed!  Skipping this locale...
setlocale(LC_CTYPE,en_US.iso8859-1) failed!  Skipping this locale...
setlocale(LC_CTYPE,en_GB) failed!  Skipping this locale...
setlocale(LC_CTYPE,en_GB.UTF-8) failed!  Skipping this locale...
setlocale(LC_CTYPE,en_GB.iso8859-1) failed!  Skipping this locale...
extra/locale/Makefile.in:173: recipe for target &apos;extra/locale/wctables.h&apos; failed
make: *** [extra/locale/wctables.h] Error 1

BB_NUMBER_THREADS and PARALLEL_MAKE is automatically set to 8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40713</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-02-26 20:50:31 +0000</bug_when>
    <thetext>most probably its some messed up locale on build host. Can you reproduce the same on another build host ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40728</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-02-27 09:06:14 +0000</bug_when>
    <thetext>Please verify your host locale setup as Khem Suggested</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40734</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2014-02-27 10:41:51 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.21.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Arch-rolling&quot;
TARGET_SYS        = &quot;i586-poky-linux-uclibc&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky-tiny&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20140227&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:5ab9d7e28f987fba8bab03bb7851c263f746c208&quot;

I didn&apos;t have en_US and en_GB locales enabled on my host so I have enabled it and uclibc-initial builds.

However, I get the following now when it tries to build uclibc-git:
| i586-poky-linux-uclibc-gcc  -m32 -march=i586 --sysroot=/home/net147/git/poky-minimal/build/tmp/sysroots/qemux86-tcbootstrap -c libc/sysdeps/linux/common/sethostname.c -o libc/sysdeps/linux/common/sethostname.os -Wall -Wstrict-prototypes -Wstrict-aliasing -funsigned-char -fno-builtin -fno-asm -std=gnu99 -m32 -fno-stack-protector -nostdinc -I./include -I./include -include libc-symbols.h -I./libc/sysdeps/linux/i386 -I./libc/sysdeps/linux -I./ldso/ldso/i386 -I./ldso/include -I. -O2 -pipe -g -feliminate-unused-debug-types  -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -fomit-frame-pointer -mpreferred-stack-boundary=4 -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -O2 -pipe -g -feliminate-unused-debug-types -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/i386/i686 -I./libpthread/nptl/sysdeps/unix/sysv/linux/i386 -I./libpthread/nptl/sysdeps/i386 -I./libpthread/nptl/sysdeps/i386 -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./libc/sysdeps/linux/common -isystem /home/net147/git/poky-minimal/build/tmp/sysroots/x86_64-linux/usr/lib/i586-poky-linux-uclibc.gcc-cross-initial/gcc/i586-poky-linux-uclibc/4.8.2/include-fixed -isystem /home/net147/git/poky-minimal/build/tmp/sysroots/x86_64-linux/usr/lib/i586-poky-linux-uclibc.gcc-cross-initial/gcc/i586-poky-linux-uclibc/4.8.2/include -I/home/net147/git/poky-minimal/build/tmp/sysroots/qemux86/usr/include/ -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC     -MT libc/sysdeps/linux/common/sethostname.os -MD -MP -MF libc/sysdeps/linux/common/.sethostname.os.dep
| libc/sysdeps/linux/common/posix_fadvise.c:26:29: error: unknown type name &apos;off64_t&apos;
|  int posix_fadvise64(int fd, off64_t offset, off64_t len, int advice);
|                              ^
| libc/sysdeps/linux/common/posix_fadvise.c:26:45: error: unknown type name &apos;off64_t&apos;
|  int posix_fadvise64(int fd, off64_t offset, off64_t len, int advice);
|                                              ^
| libc/sysdeps/linux/common/posix_fadvise.c: In function &apos;posix_fadvise&apos;:
| libc/sysdeps/linux/common/posix_fadvise.c:32:2: warning: implicit declaration of function &apos;posix_fadvise64&apos; [-Wimplicit-function-declaration]
|   return posix_fadvise64(fd, offset, len, advice);
|   ^
| Makerules:363: recipe for target &apos;libc/sysdeps/linux/common/posix_fadvise.os&apos; failed
| make: *** [libc/sysdeps/linux/common/posix_fadvise.os] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41900</commentid>
    <comment_count>4</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2014-03-28 14:15:11 +0000</bug_when>
    <thetext>The problem seems to be with the commit 00571b43df2e0554d1b0716681832ba9975177c5 from uclibc repo. I&apos;ve sent an email on the uclibc mailing list asking the author to send a patch that fixes the xtensa issue that also doesn&apos;t break the other platforms. If get no response I&apos;ll try to send a fix for this (although I might break xtensa).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41908</commentid>
    <comment_count>5</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-03-28 17:56:35 +0000</bug_when>
    <thetext>can you enable &apos;largefile&apos; in distro features ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41968</commentid>
    <comment_count>6</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2014-03-31 15:23:51 +0000</bug_when>
    <thetext>Thanks Khem for the suggestion! 
Indeed adding &quot;largefile&quot; to DISTRO_FEATURES fixes the build problem. 
I&apos;m not sure yet if this avoids the real problem (building without large file support doesn&apos;t work) or is the right &quot;fix&quot; (building without large file support is &quot;deprecated&quot; in uclibc).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41972</commentid>
    <comment_count>7</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-03-31 16:43:52 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Thanks Khem for the suggestion! 
&gt; Indeed adding &quot;largefile&quot; to DISTRO_FEATURES fixes the build problem. 
&gt; I&apos;m not sure yet if this avoids the real problem (building without large
&gt; file support doesn&apos;t work) or is the right &quot;fix&quot; (building without large
&gt; file support is &quot;deprecated&quot; in uclibc).

this is actually bypassing the problem in uclibc and its a known one. but then
largefile support is essential now a days, so enabling it in poky-tiny might not be a bad idea in general.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42281</commentid>
    <comment_count>8</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2014-04-04 10:34:37 +0000</bug_when>
    <thetext>Sent a patch that enables LFS for uclibc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42376</commentid>
    <comment_count>9</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2014-04-08 11:53:19 +0000</bug_when>
    <thetext>Merged: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b5ebb5e88650aaa41e76ec11106c1a960cb756a0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>