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

Installing glibc-2.21 on debian-8



Hi,

I have debian jessie (8.0) on virtual machine.
$] uname -a
Linux rdx86-ds7 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) i686 GNU/Linux

I need to install latest glibc (libc-2.21) on this machine.
My debian currently have libc-2.19 
$] ls -lah /lib/i386-linux-gnu/libc.so.6
lrwxrwxrwx 1 root root 12 Apr 14 17:21 /lib/i386-linux-gnu/libc.so.6 -> libc-2.19.so

I came across some documents and installed following packages as prerequisites:
$] apt-get install linux-headers-$(uname -r)
$] apt-get install build-essentials

After this I have gcc-4.9.2
$] gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-linux-gnu/4.9/lto-wrapper
Target: i586-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --with-arch-32=i586 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i586-linux-gnu --host=i586-linux-gnu --target=i586-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)

$] cd /home/build/
$] wget http://ftp.gnu.org/gnu/glibc/glibc-2.21.tar.xz
$] tar xf glibc-2.21.tar.xz
$] mkdir glibc-test
$] cd glibc-test
$] ../glibc-2.21/configure --prefix=/usr
configure: error:
*** These critical programs are missing or too old: gawk
*** Check the INSTALL file for required versions.

$] apt-get install gawk
$] ../glibc-2.21/configure --prefix=/usr
$] echo $?
0
$] make
$] echo $?
0
$] make check

make  subdir=string -C string ..=../ tests
make[2]: Entering directory '/home/build/glibc-2.21/string'
gcc tester.c -c -std=gnu99 -fgnu89-inline  -O2 -Wall -Werror -Winline -Wno-error=undef -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes   -Wa,-mtune=i686        -I../include -I/home/build/glibc-test/string  -I/home/build/glibc-test  -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/include -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/include -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.   -D_LIBC_REENTRANT -include /home/build/glibc-test/libc-modules.h -DMODULE_NAME=nonlib -include ../include/libc-symbols.h       -o /home/build/glibc-test/string/tester.o -MD -MP -MF /home/build/glibc-test/string/tester.o.dt -MT /home/build/glibc-test/string/tester.o
tester.c: In function ‘test_memset’:
tester.c:1313:10: error: ‘memset’ used with constant zero length parameter; this could be due to transposed parameters [-Werror=memset-transposed-args]
   (void) memset(one+2, 'y', 0);
          ^
cc1: all warnings being treated as errors
../o-iterator.mk:9: recipe for target '/home/build/glibc-test/string/tester.o' failed
make[2]: *** [/home/build/glibc-test/string/tester.o] Error 1
make[2]: Leaving directory '/home/build/glibc-2.21/string'
Makefile:213: recipe for target 'string/tests' failed
make[1]: *** [string/tests] Error 2
make[1]: Leaving directory '/home/build/glibc-2.21'
Makefile:9: recipe for target 'check' failed
make: *** [check] Error 2

I found comment#13 on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61294
Similar threads:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56977
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51744

Please correct me if i am wrong
I have to install gcc-5.0 or above to install glibc-2.21?
Is there no way around?

Regards,
Dhiraj

Reply to: