Fwd: glibc 2.7 build

Daniel Schultze kinglag@gmail.com
Mon Nov 11 19:44:00 GMT 2013


Hello Developers,

I am having trouble cross compiling glibc 2.7 for arm. I did some
searches which suggested to not use --enable-static-nss which I'm not
doing. I did do an edit to one of the awk scripts,
scripts/gen-sorted.awk, the build was reporting an error on lines
containing /\/[^/]+$/ , so I added an extra backslash in the middle to
/\/[^\/]+$/ . Hopefully this edit is unrelated.

Host is ubuntu 12.04 using LTIB and target is ARM. Below is the error log:

isoc99_scanf.c: In function '__isoc99_scanf':
isoc99_scanf.c:33: error: '_IO_acquire_lock_needs_exceptions_enabled'
undeclared (first use in this function)
isoc99_scanf.c:33: error: (Each undeclared identifier is reported only once
isoc99_scanf.c:33: error: for each function it appears in.)
isoc99_scanf.c: At top level:
isoc99_scanf.c:40: error: expected identifier or '(' before 'while'
isoc99_scanf.c:41: error: expected identifier or '(' before 'return'
isoc99_scanf.c:42: error: expected identifier or '(' before '}' token
make[2]: *** [/home/xxx/ltib_xx/rpm/BUILD/glibc-2.7/build-glibc/stdio-common/isoc99_scanf.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
isoc99_vscanf.c: In function '__isoc99_vscanf':
isoc99_vscanf.c:29: error: '_IO_acquire_lock_needs_exceptions_enabled'
undeclared (first use in this function)
isoc99_vscanf.c:29: error: (Each undeclared identifier is reported only once
isoc99_vscanf.c:29: error: for each function it appears in.)
isoc99_vscanf.c: At top level:
isoc99_vscanf.c:32: error: expected identifier or '(' before 'while'
isoc99_vscanf.c:33: error: expected identifier or '(' before 'return'
isoc99_vscanf.c:34: error: expected identifier or '(' before '}' token
make[2]: *** [/home/xxx/ltib_xx/rpm/BUILD/glibc-2.7/build-glibc/stdio-common/isoc99_vscanf.o]
Error 1
isoc99_fscanf.c: In function '__isoc99_fscanf':
isoc99_fscanf.c:31: error: '_IO_acquire_lock_needs_exceptions_enabled'
undeclared (first use in this function)
isoc99_fscanf.c:31: error: (Each undeclared identifier is reported only once
isoc99_fscanf.c:31: error: for each function it appears in.)
isoc99_fscanf.c: At top level:
isoc99_fscanf.c:38: error: expected identifier or '(' before 'while'
isoc99_fscanf.c:39: error: expected identifier or '(' before 'return'
isoc99_fscanf.c:40: error: expected identifier or '(' before '}' token
make[2]: *** [/home/xxx/ltib_xx/rpm/BUILD/glibc-2.7/build-glibc/stdio-common/isoc99_fscanf.o]
Error 1
isoc99_vfscanf.c: In function '__isoc99_vfscanf':
isoc99_vfscanf.c:29: error:
'_IO_acquire_lock_needs_exceptions_enabled' undeclared (first use in
this function)
isoc99_vfscanf.c:29: error: (Each undeclared identifier is reported only once
isoc99_vfscanf.c:29: error: for each function it appears in.)
isoc99_vfscanf.c: At top level:
isoc99_vfscanf.c:32: error: expected identifier or '(' before 'while'
isoc99_vfscanf.c:33: error: expected identifier or '(' before 'return'
isoc99_vfscanf.c:34: error: expected identifier or '(' before '}' token
make[2]: *** [/home/xxx/ltib_xx/rpm/BUILD/glibc-2.7/build-glibc/stdio-common/isoc99_vfscanf.o]
Error 1
make[2]: Leaving directory `/home/xxx/ltib_xx/rpm/BUILD/glibc-2.7/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory `/home/xxx/ltib_xx/rpm/BUILD/glibc-2.7'
make: *** [all] Error 2
error: Bad exit status from /home/xxx/ltib_xx/tmp/rpm-tmp.15860 (%build)



More information about the Libc-help mailing list