bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems building glibc for s390


From: William Jay Huie
Subject: problems building glibc for s390
Date: Wed, 30 Jul 2003 12:26:28 -0400


        I am trying to produce a glibc rpm by using a spec file based off of SLES-8 as my basis. However, I'm having problems building glibc from source by hand also. This is with glibc-2.3.2 and the linuxthreads addon. I know you're more concerned with glibc bugs then spec file problems, but I don't think it's a problem specifically in my spec file.

        With the spec file glibc is reporting errors when configuring.

+ ../configure --prefix=/usr --libexecdir=/usr/lib --infodir=/usr/share/info --enable-add- --srcdir=.. --without-cvs --enable-kernel=2.2.5 --build=s390-ibm-linux-gnu --host=s390-ibm-linux-gnu --target=s390-ibm-linux-gnu --with-headers=/usr/include ' '

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking build system type... s390-ibm-linux-gnu
checking host system type... s390-ibm-linux-gnu

        Note that I've got --built, --host, and --target all set to what I believe is a correct setting. I was previously using "s390-suse-linux" (assumed from SuSE' s spec file) but I changed it to exactly what configure finds and it still doesn't seem to work.
        One concern I have is that it seems to be truncating my last argument to ../configure I have "s390-suse-linux" in the spec but rpm adds a ' ' there and doesn't seem to pass it.
        Here's the glibc.spec file entry;

mkdir cc
(cd cc
 CFLAGS="$BuildFlags" CC="$BuildCC" ../configure --prefix=%{_prefix} \
        --libexecdir=%{_libdir} --infodir=%{_infodir} \
        --enable-add- --srcdir=.. --without-cvs \
        --enable-kernel=$EnableKernel \
        --build=s390-ibm-linux-gnu \
        --host=s390-ibm-linux-gnu \
        --target=s390-ibm-linux-gnu \
        --with-headers="/usr/include" \
        s390-suse-linux \
        )

        The fact that the last entry is getting lost does worry me though.        

        The major error in the build occurs later with this;

gcc ../sysdeps/unix/sysv/linux/ustat.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -fsigned-char -g      -I../include -I. -I/mnt/lfs/usr/local/glibc-2.3.2/cc/misc -I.. -I../libio  -I/mnt/lfs/usr/local/glibc-2.3.2/cc -I../sysdeps/s390/s390-32/elf -I../linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32 -I../linuxthreads/sysdeps/unix/sysv/linux/s390 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/s390/s390-32 -I../linuxthreads/sysdeps/s390 -I../sysdeps/unix/sysv/linux/s390/s390-32 -I../sysdeps/unix/sysv/linux/s390 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/s390/s390-32 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I! ../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/s390/fpu -I../sysdeps/s390 -I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem /usr/lib/gcc-lib/s390-suse-linux/3.2.2/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o /mnt/lfs/usr/local/glibc-2.3.2/cc/misc/ustat.o
In file included from sys/ustat.h:30,
                 from ../sysdeps/unix/sysv/linux/ustat.c:21:
../sysdeps/generic/bits/ustat.h:26: redefinition of `struct ustat'
make[2]: *** [/mnt/lfs/usr/local/glibc-2.3.2/cc/misc/ustat.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/mnt/lfs/usr/local/glibc-2.3.2/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/usr/local/glibc-2.3.2'
make: *** [all] Error 2
make: Leaving directory `/mnt/lfs/usr/local/glibc-2.3.2/cc'

        This is what seems to be holding me up.
        I'm sure this has been built before so it's probably something with my environment but I have no idea what it might be.
       
        I'm currently running a 2.4.21 kernel, and I have the following links in /usr/include;
                linux -> /usr/src/linux/include/linux
                asm -> /usr/src/linux/include/asm
                asm-s390 -> /usr/src/linux/include/asm-s390
                asm-s390x -> /usr/src/linux/include/asm-s390x
       
        Where /usr/src/linux is the code that I built my currently running kernel from.

        When building from hand I get the same error.

In file included from sys/ustat.h:30,
                 from ../sysdeps/unix/sysv/linux/ustat.c:21:
../sysdeps/generic/bits/ustat.h:26: redefinition of `struct ustat'
make[2]: *** [/usr/src/packages/BUILD/glibc-2.3.2/cc/misc/ustat.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/mnt/lfs/usr/local/glibc-2.3.2/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/usr/local/glibc-2.3.2'
make: *** [all] Error 2

        Hopefully you have an idea of what's going wrong. I apprecaite your help,
        j

       
Jay Huie
 address@hidden
 zSeries Linux System Test
 Phone: 845-435-8164

reply via email to

[Prev in Thread] Current Thread [Next in Thread]