[buildd-tools-devel] Problem building glibc with sbuild

Gustavo Noronha Silva gustavo.noronha at collabora.co.uk
Tue Apr 21 15:40:57 UTC 2009


Hey there!

I have an sbuild setup for a buildd I'm building, and everything seems
to be ok, except that I am having problems building glibc. This is what
I have in the build log (notice the gawk failures):

mv -f /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.v.iT /build/buildd-glib
c_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.v.i
sed '/^[        ]*#/d;/^[       ]*$/d' /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc
/Versions.v.i > /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.vT
mv -f /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.vT /build/buildd-glibc_
2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.v
( echo 'sysd-versions-subdirs = csu iconv locale localedata iconvdata assert ctype intl catgets math setjmp
 signal stdlib stdio-common libio dlfcn malloc string wcsmbs timezone time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib wctype manual shadow po argp crypt nptl resolv nss rt conform debug libidn nptl_db inet hesiod sunrpc nis nscd streams login elf sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i486 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix nptl/sysdeps/i386/i486 sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic' ; \
          cat /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.v \
          | LC_ALL=C gawk -v buildroot=/build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/ -v defsfile=/build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.all \
                            -v move_if_change='/bin/bash ../scripts/move-if-change' \
                            -f ../scripts/versions.awk; \
        ) > /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/sysd-versionsT
gawk: ../scripts/versions.awk:72: (FILENAME=- FNR=3) warning: pipe to `sort > /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.tmp': could not set close-on-exec: (fcntl: Bad file descriptor)
gawk: ../scripts/versions.awk:72: (FILENAME=- FNR=3) fatal: printf to "sort > /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/Versions.tmp" failed (Bad file descriptor)
.././scripts/mkinstalldirs /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/csu
mkdir /build/buildd-glibc_2.9-7-i386-rPLNT1/glibc-2.9/build-tree/i386-libc/csu

The build seems to work correctly when I use schroot directly. I noticed
that when I login to the chroot using sbuild-shell the output of
commands is a bit weird (ls lists stuff in a single column, instead of
with multiple columns as it would normally, and does with schroot).

The host is amd64, the chroot is a normal Debian i386 with no changes,
and sbuild is configured to use i386. glibc is the official source
package from Debian. Ideas?

Thanks,

-- 
Gustavo Noronha Silva <gustavo.noronha at collabora.co.uk>
Collabora Ltd.




More information about the Buildd-tools-devel mailing list