[Clfs-support] glibc-2.19 -m32 build error clfs-multilib

lux-integ lux-integ at btconnect.com
Fri Jan 30 06:02:31 PST 2015


>On Friday 30 January 2015 14:04:51 William Harrington wrote:
I haven't ran across that error, as far as I know, since I started working
with CLFS in 2007.

Thanks for lettimg me know.


On Friday 30 January 2015 14:04:51 William Harrington wrote:
> I don't know if it has something to do with how your build
>system is laid out, or not.

I doubt this I am using standard  lfs  build techniques   user clfs created in 
a clean  shell    with   all the recommended envars /shell variables set.  I 
only use (clfs) and in desperation  with multiple failures of the multilib 
build  I though I would have a go on fedora and slackware  hosts  and    they 
gave the same results.



On Friday 30 January 2015 14:04:51 William Harrington wrote:
> The last modified
> CLFS build I did using our future toolchain upgrades worked fine with
> Glibc 2.20 and linux 3.18 kernel headers

I also did a non-multilib build with linux-3.18.3/glibc-2.20/binutils-2.25 and   
gcc-4.9.2  and the toolchain built OK.  IT WAS NOT an attempt at a mulilib 
though.    For the multilib build  I had a go wih linux-3.18.3 kernel headers   
ad glibc-2.20 and glibC (m32)   failed   very early on.   like so:

'#----------------

x86_64-unknown-linux-gnu-gcc -m32 init-first.c -c -std=gnu99 -fgnu89-inline  -
O2 -Wall -Winline -Wundef -Wwrite-strings -fmerge-all-constants -frounding-
math -g -Wstrict-prototypes -mpreferred-stack-boundary=4  -Wa,-mtune=i686        
-I../include -I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu  -
I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build  -
I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -
I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -
I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -
I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -
I../sysdeps/unix/sysv  -I../sysdeps/unix/i386  -I../sysdeps/unix  -
I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -
I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -
I../sysdeps/i386/i686  -I../sysdeps/i386/i486  -I../sysdeps/i386/fpu  -
I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -
I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -
I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  
-I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /mnt/clfs/cross-
tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -isystem 
/mnt/clfs/cross-tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include-
fixed -isystem /tools/include  -D_LIBC_REENTRANT -include ../include/libc-
symbols.h       -o /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/init-
first.o -MD -MP -MF /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/init-
first.o.dt -MT /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/init-
first.o
x86_64-unknown-linux-gnu-gcc -m32 libc-start.c -c -std=gnu99 -fgnu89-inline  -
O2 -Wall -Winline -Wundef -Wwrite-strings -fmerge-all-constants -frounding-
math -g -Wstrict-prototypes -mpreferred-stack-boundary=4  -Wa,-mtune=i686        
-I../include -I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu  -
I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build  -
I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -
I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -
I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -
I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -
I../sysdeps/unix/sysv  -I../sysdeps/unix/i386  -I../sysdeps/unix  -
I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -
I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -
I../sysdeps/i386/i686  -I../sysdeps/i386/i486  -I../sysdeps/i386/fpu  -
I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -
I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -
I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  
-I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /mnt/clfs/cross-
tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -isystem 
/mnt/clfs/cross-tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include-
fixed -isystem /tools/include  -D_LIBC_REENTRANT -include ../include/libc-
symbols.h       -o /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/libc-
start.o -MD -MP -MF /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/libc-
start.o.dt -MT /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/libc-
start.o
x86_64-unknown-linux-gnu-gcc -m32 ../sysdeps/unix/sysv/linux/i386/sysdep.S -c     
-I../include -I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu  -
I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build  -
I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -
I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -
I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -
I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -
I../sysdeps/unix/sysv  -I../sysdeps/unix/i386  -I../sysdeps/unix  -
I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -
I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -
I../sysdeps/i386/i686  -I../sysdeps/i386/i486  -I../sysdeps/i386/fpu  -
I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -
I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -
I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  
-I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /mnt/clfs/cross-
tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -isystem 
/mnt/clfs/cross-tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include-
fixed -isystem /tools/include  -D_LIBC_REENTRANT -include ../include/libc-
symbols.h       -DASSEMBLER  -I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-
build/csu/. -DGAS_SYNTAX -g -Wa,--noexecstack  -Wa,-mtune=i686 -o 
/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/sysdep.o -MD -MP -MF 
/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/sysdep.o.dt -MT 
/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/sysdep.o
x86_64-unknown-linux-gnu-gcc -m32 version.c -c -std=gnu99 -fgnu89-inline  -O2 
-Wall -Winline -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -
g -Wstrict-prototypes -mpreferred-stack-boundary=4  -Wa,-mtune=i686        -
I../include -I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu  -
I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build  -
I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -
I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -
I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -
I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -
I../sysdeps/unix/sysv  -I../sysdeps/unix/i386  -I../sysdeps/unix  -
I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -
I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -
I../sysdeps/i386/i686  -I../sysdeps/i386/i486  -I../sysdeps/i386/fpu  -
I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -
I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -
I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  
-I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /mnt/clfs/cross-
tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -isystem 
/mnt/clfs/cross-tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include-
fixed -isystem /tools/include  -D_LIBC_REENTRANT -include ../include/libc-
symbols.h       -o /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-
build/csu/version.o -MD -MP -MF /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-
build/csu/version.o.dt -MT /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-
build/csu/version.o
x86_64-unknown-linux-gnu-gcc -m32 check_fds.c -c -std=gnu99 -fgnu89-inline  -
O2 -Wall -Winline -Wundef -Wwrite-strings -fmerge-all-constants -frounding-
math -g -Wstrict-prototypes -mpreferred-stack-boundary=4  -Wa,-mtune=i686        
-I../include -I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu  -
I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build  -
I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -
I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -
I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -
I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -
I../sysdeps/unix/sysv  -I../sysdeps/unix/i386  -I../sysdeps/unix  -
I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -
I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -
I../sysdeps/i386/i686  -I../sysdeps/i386/i486  -I../sysdeps/i386/fpu  -
I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -
I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -
I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  
-I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /mnt/clfs/cross-
tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -isystem 
/mnt/clfs/cross-tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include-
fixed -isystem /tools/include  -D_LIBC_REENTRANT -include ../include/libc-
symbols.h       -o /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-
build/csu/check_fds.o -MD -MP -MF /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-
build/csu/check_fds.o.dt -MT /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-
build/csu/check_fds.o
x86_64-unknown-linux-gnu-gcc -m32 libc-tls.c -c -std=gnu99 -fgnu89-inline  -O2 
-Wall -Winline -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -
g -Wstrict-prototypes -mpreferred-stack-boundary=4  -Wa,-mtune=i686        -
I../include -I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu  -
I/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build  -
I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -
I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -
I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -
I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -
I../sysdeps/unix/sysv  -I../sysdeps/unix/i386  -I../sysdeps/unix  -
I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -
I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -
I../sysdeps/i386/i686  -I../sysdeps/i386/i486  -I../sysdeps/i386/fpu  -
I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -
I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -
I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  
-I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /mnt/clfs/cross-
tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include -isystem 
/mnt/clfs/cross-tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include-
fixed -isystem /tools/include  -D_LIBC_REENTRANT -include ../include/libc-
symbols.h       -o /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/libc-
tls.o -MD -MP -MF /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/libc-
tls.o.dt -MT /mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/libc-tls.o
In file included from ../sysdeps/i386/nptl/tls.h:28:0,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../include/errno.h:27,
                 from libc-tls.c:19:
libc-tls.c: In function '__libc_setup_tls':
../sysdeps/unix/sysv/linux/i386/sysdep.h:366:12: error: '__NR_set_thread_area' 
undeclared (first use in this function)
     : "i" (__NR_##name) ASMFMT_##nr(args) : "memory", "cc");        \
            ^
../sysdeps/i386/nptl/tls.h:212:16: note: in expansion of macro 
'INTERNAL_SYSCALL'
      _result = INTERNAL_SYSCALL (set_thread_area, err, 1, &_segdescr.desc);   
\
                ^
libc-tls.c:185:25: note: in expansion of macro 'TLS_INIT_TP'
   const char *lossage = TLS_INIT_TP ((char *) tlsblock + tcb_offset);
                         ^
../sysdeps/unix/sysv/linux/i386/sysdep.h:366:12: note: each undeclared 
identifier is reported only once for each function it appears in
     : "i" (__NR_##name) ASMFMT_##nr(args) : "memory", "cc");        \
            ^
../sysdeps/i386/nptl/tls.h:212:16: note: in expansion of macro 
'INTERNAL_SYSCALL'
      _result = INTERNAL_SYSCALL (set_thread_area, err, 1, &_segdescr.desc);   
\
                ^
libc-tls.c:185:25: note: in expansion of macro 'TLS_INIT_TP'
   const char *lossage = TLS_INIT_TP ((char *) tlsblock + tcb_offset);
                         ^
make[2]: *** [/mnt/clfs/x86MultilibTC-b15BUILD/glibcM32-build/csu/libc-tls.o] 
Error 1
make[2]: Leaving directory `/mnt/clfs/x86MultilibTC-b15BUILD/glibc-2.20/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/clfs/x86MultilibTC-b15BUILD/glibc-2.20'

#----------------------------
( I reported it briefly in the original email I sent to the blfs list last 
Monday.


( For the latter build(s)   I tried with gcc-4.9.2 and gcc-4.8.3 .  It was 
after this that I switched to glibc-2.19.  )

On Friday 30 January 2015 14:04:51 William Harrington wrote:
>I could go through a quick multilib build with jhalfs

yes please and please let have the recipe and logs so tht I can   try and 
duplicate it here.  Better still if you could have a go at a  quick  clfs 
multilib 
toolchain build with linux-3.18.x(headers)/gcc-4.9.2/glibc-2.20  (  to   the 
equivalent of  here 
(  http://clfs.org/view/git/x86_64/cross-tools/gcc-final.html )

  and let me have recipe and logs  that would be most helpful




Thanks again for all your help

Sinceely
LuxInteg





More information about the Clfs-support mailing list