glibc upgrade
by Moore-Software from LinuxQuestions.org on (#5RY00)
Hello community,
I try to upgrade my local glibc version, from version 2.31 to 2.34 .
With the follwoing commands I compiled the glibc source code
cd glibc-2.34
mkdir glibc-build
cd glibc-build
../configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/lib64 --includedir=/usr/include --enable-shared --enable-all-warnings --enable-check-abi --disable-werror --with-headers=/usr/include
make
than I execute "make install" and the installation crashes with the following error (Segmentation fault (core dumped)) :
make[4]: Leaving directory '/root/temp/glibc-2.34/posix'
make subdir=setjmp -C ../setjmp ..=../ objdir=/root/temp/glibc-2.34/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setjmp.os rtld-__longjmp.os'
make subdir=signal -C ../signal ..=../ objdir=/root/temp/glibc-2.34/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-sigaction.os rtld-libc_sigaction.os rtld-sigaction.os'
make subdir=string -C ../string ..=../ objdir=/root/temp/glibc-2.34/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-strchr.os rtld-strcmp.os rtld-strcspn.os rtld-strdup.os rtld-strlen.os rtld-strnlen.os rtld-strncmp.os rtld-memchr.os rtld-memcmp.os rtld-memmove.os rtld-memset.os rtld-mempcpy.os rtld-stpcpy.os rtld-memcpy.os rtld-rawmemchr.os rtld-strcmp-sse2.os rtld-strcmp.os rtld-strcmp-sse2-unaligned.os rtld-strcmp.os rtld-strcmp-ssse3.os rtld-strcmp.os rtld-strcmp-avx2.os rtld-strcmp.os rtld-strncmp-sse2.os rtld-strncmp.os rtld-strncmp-ssse3.os rtld-strncmp.os rtld-strncmp-sse4_2.os rtld-strncmp.os rtld-strncmp-avx2.os rtld-strncmp.os rtld-memchr-sse2.os rtld-memchr.os rtld-rawmemchr-sse2.os rtld-rawmemchr.os rtld-memchr-avx2.os rtld-memchr.os rtld-rawmemchr-avx2.os rtld-rawmemchr.os rtld-memcmp-sse2.os rtld-memcmp.os rtld-memcmp-avx2-movbe.os rtld-memcmp.os rtld-memcmp-sse4.os rtld-memcmp.os rtld-memcpy-ssse3.os rtld-mempcpy.os rtld-memmove-ssse3.os rtld-memmove.os rtld-memcpy-ssse3-back.os rtld-mempcpy.os rtld-memmove-ssse3-back.os rtld-memmove.os rtld-memmove-avx512-no-vzeroupper.os rtld-mempcpy.os rtld-strchr-sse2.os rtld-strchr.os rtld-strchr-avx2.os rtld-strchr.os rtld-strlen-sse2.os rtld-strlen.os rtld-strnlen-sse2.os rtld-strnlen.os rtld-strlen-avx2.os rtld-strlen.os rtld-strnlen-avx2.os rtld-strnlen.os rtld-stpcpy-sse2.os rtld-stpcpy.os rtld-stpcpy-ssse3.os rtld-stpcpy.os rtld-stpcpy-sse2-unaligned.os rtld-stpcpy.os rtld-stpcpy-avx2.os rtld-stpcpy.os rtld-strchr-sse2-no-bsf.os rtld-strchr.os rtld-memcmp-ssse3.os rtld-memcmp.os rtld-strcspn-sse2.os rtld-strcspn.os rtld-strcspn-c.os rtld-strcspn.os rtld-varshift.os rtld-strcspn-c.os rtld-memset-avx512-no-vzeroupper.os rtld-memset.os rtld-memmove-sse2-unaligned-erms.os rtld-mempcpy.os rtld-memmove-avx-unaligned-erms.os rtld-mempcpy.os rtld-memmove-avx512-unaligned-erms.os rtld-mempcpy.os rtld-memset-sse2-unaligned-erms.os rtld-memset.os rtld-memset-avx2-unaligned-erms.os rtld-memset.os rtld-memset-avx512-unaligned-erms.os rtld-memset.os rtld-memchr-avx2-rtm.os rtld-memchr.os rtld-memcmp-avx2-movbe-rtm.os rtld-memcmp.os rtld-memmove-avx-unaligned-erms-rtm.os rtld-mempcpy.os rtld-memset-avx2-unaligned-erms-rtm.os rtld-memset.os rtld-rawmemchr-avx2-rtm.os rtld-rawmemchr.os rtld-strchr-avx2-rtm.os rtld-strchr.os rtld-strcmp-avx2-rtm.os rtld-strcmp.os rtld-stpcpy-avx2-rtm.os rtld-stpcpy.os rtld-strlen-avx2-rtm.os rtld-strlen.os rtld-strncmp-avx2-rtm.os rtld-strncmp.os rtld-strnlen-avx2-rtm.os rtld-strnlen.os rtld-memchr-evex.os rtld-memchr.os rtld-memcmp-evex-movbe.os rtld-memcmp.os rtld-memmove-evex-unaligned-erms.os rtld-mempcpy.os rtld-memset-evex-unaligned-erms.os rtld-memset.os rtld-rawmemchr-evex.os rtld-rawmemchr.os rtld-stpcpy-evex.os rtld-stpcpy.os rtld-strchr-evex.os rtld-strchr.os rtld-strcmp-evex.os rtld-strcmp.os rtld-strlen-evex.os rtld-strlen.os rtld-strncmp-evex.os rtld-strncmp.os rtld-strnlen-evex.os rtld-strnlen.os rtld-memchr-evex-rtm.os rtld-memchr.os rtld-rawmemchr-evex-rtm.os rtld-rawmemchr.os rtld-cacheinfo.os rtld-memcpy-ssse3-back.os'
make[4]: Entering directory '/root/temp/glibc-2.34/string'
make[4]: Leaving directory '/root/temp/glibc-2.34/string'
make subdir=time -C ../time ..=../ objdir=/root/temp/glibc-2.34/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setitimer.os'
make[4]: Entering directory '/root/temp/glibc-2.34/time'
make[4]: Leaving directory '/root/temp/glibc-2.34/time'
make[3]: Leaving directory '/root/temp/glibc-2.34/elf'
make[2]: Leaving directory '/root/temp/glibc-2.34/elf'
/usr/bin/install -c -m 644 /root/temp/glibc-2.34/glibc-build/libc.a /lib64/libc.a
/usr/bin/install -c -m 644 /root/temp/glibc-2.34/glibc-build/libc_nonshared.a /lib64/libc_nonshared.a
/usr/bin/install -c /root/temp/glibc-2.34/glibc-build/libc.so /lib64/libc.so.6.new
mv -f /lib64/libc.so.6.new /lib64/libc.so.6
gcc -shared -nostdlib -nostartfiles \
-x assembler /dev/null -o /root/temp/glibc-2.34/glibc-build/format.lds.so
make[1]: *** [Makerules:1043: /root/temp/glibc-2.34/glibc-build/format.lds] Segmentation fault (core dumped)
make[1]: Leaving directory '/root/temp/glibc-2.34'
make: *** [Makefile:12: install] Error 2
is it even possible to upgrade the glibc version this way, just replace the libc-2.31.so binray with libc-2.34.so ?
best regards
T. Reineck
I try to upgrade my local glibc version, from version 2.31 to 2.34 .
With the follwoing commands I compiled the glibc source code
cd glibc-2.34
mkdir glibc-build
cd glibc-build
../configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/lib64 --includedir=/usr/include --enable-shared --enable-all-warnings --enable-check-abi --disable-werror --with-headers=/usr/include
make
than I execute "make install" and the installation crashes with the following error (Segmentation fault (core dumped)) :
make[4]: Leaving directory '/root/temp/glibc-2.34/posix'
make subdir=setjmp -C ../setjmp ..=../ objdir=/root/temp/glibc-2.34/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setjmp.os rtld-__longjmp.os'
make subdir=signal -C ../signal ..=../ objdir=/root/temp/glibc-2.34/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-sigaction.os rtld-libc_sigaction.os rtld-sigaction.os'
make subdir=string -C ../string ..=../ objdir=/root/temp/glibc-2.34/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-strchr.os rtld-strcmp.os rtld-strcspn.os rtld-strdup.os rtld-strlen.os rtld-strnlen.os rtld-strncmp.os rtld-memchr.os rtld-memcmp.os rtld-memmove.os rtld-memset.os rtld-mempcpy.os rtld-stpcpy.os rtld-memcpy.os rtld-rawmemchr.os rtld-strcmp-sse2.os rtld-strcmp.os rtld-strcmp-sse2-unaligned.os rtld-strcmp.os rtld-strcmp-ssse3.os rtld-strcmp.os rtld-strcmp-avx2.os rtld-strcmp.os rtld-strncmp-sse2.os rtld-strncmp.os rtld-strncmp-ssse3.os rtld-strncmp.os rtld-strncmp-sse4_2.os rtld-strncmp.os rtld-strncmp-avx2.os rtld-strncmp.os rtld-memchr-sse2.os rtld-memchr.os rtld-rawmemchr-sse2.os rtld-rawmemchr.os rtld-memchr-avx2.os rtld-memchr.os rtld-rawmemchr-avx2.os rtld-rawmemchr.os rtld-memcmp-sse2.os rtld-memcmp.os rtld-memcmp-avx2-movbe.os rtld-memcmp.os rtld-memcmp-sse4.os rtld-memcmp.os rtld-memcpy-ssse3.os rtld-mempcpy.os rtld-memmove-ssse3.os rtld-memmove.os rtld-memcpy-ssse3-back.os rtld-mempcpy.os rtld-memmove-ssse3-back.os rtld-memmove.os rtld-memmove-avx512-no-vzeroupper.os rtld-mempcpy.os rtld-strchr-sse2.os rtld-strchr.os rtld-strchr-avx2.os rtld-strchr.os rtld-strlen-sse2.os rtld-strlen.os rtld-strnlen-sse2.os rtld-strnlen.os rtld-strlen-avx2.os rtld-strlen.os rtld-strnlen-avx2.os rtld-strnlen.os rtld-stpcpy-sse2.os rtld-stpcpy.os rtld-stpcpy-ssse3.os rtld-stpcpy.os rtld-stpcpy-sse2-unaligned.os rtld-stpcpy.os rtld-stpcpy-avx2.os rtld-stpcpy.os rtld-strchr-sse2-no-bsf.os rtld-strchr.os rtld-memcmp-ssse3.os rtld-memcmp.os rtld-strcspn-sse2.os rtld-strcspn.os rtld-strcspn-c.os rtld-strcspn.os rtld-varshift.os rtld-strcspn-c.os rtld-memset-avx512-no-vzeroupper.os rtld-memset.os rtld-memmove-sse2-unaligned-erms.os rtld-mempcpy.os rtld-memmove-avx-unaligned-erms.os rtld-mempcpy.os rtld-memmove-avx512-unaligned-erms.os rtld-mempcpy.os rtld-memset-sse2-unaligned-erms.os rtld-memset.os rtld-memset-avx2-unaligned-erms.os rtld-memset.os rtld-memset-avx512-unaligned-erms.os rtld-memset.os rtld-memchr-avx2-rtm.os rtld-memchr.os rtld-memcmp-avx2-movbe-rtm.os rtld-memcmp.os rtld-memmove-avx-unaligned-erms-rtm.os rtld-mempcpy.os rtld-memset-avx2-unaligned-erms-rtm.os rtld-memset.os rtld-rawmemchr-avx2-rtm.os rtld-rawmemchr.os rtld-strchr-avx2-rtm.os rtld-strchr.os rtld-strcmp-avx2-rtm.os rtld-strcmp.os rtld-stpcpy-avx2-rtm.os rtld-stpcpy.os rtld-strlen-avx2-rtm.os rtld-strlen.os rtld-strncmp-avx2-rtm.os rtld-strncmp.os rtld-strnlen-avx2-rtm.os rtld-strnlen.os rtld-memchr-evex.os rtld-memchr.os rtld-memcmp-evex-movbe.os rtld-memcmp.os rtld-memmove-evex-unaligned-erms.os rtld-mempcpy.os rtld-memset-evex-unaligned-erms.os rtld-memset.os rtld-rawmemchr-evex.os rtld-rawmemchr.os rtld-stpcpy-evex.os rtld-stpcpy.os rtld-strchr-evex.os rtld-strchr.os rtld-strcmp-evex.os rtld-strcmp.os rtld-strlen-evex.os rtld-strlen.os rtld-strncmp-evex.os rtld-strncmp.os rtld-strnlen-evex.os rtld-strnlen.os rtld-memchr-evex-rtm.os rtld-memchr.os rtld-rawmemchr-evex-rtm.os rtld-rawmemchr.os rtld-cacheinfo.os rtld-memcpy-ssse3-back.os'
make[4]: Entering directory '/root/temp/glibc-2.34/string'
make[4]: Leaving directory '/root/temp/glibc-2.34/string'
make subdir=time -C ../time ..=../ objdir=/root/temp/glibc-2.34/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setitimer.os'
make[4]: Entering directory '/root/temp/glibc-2.34/time'
make[4]: Leaving directory '/root/temp/glibc-2.34/time'
make[3]: Leaving directory '/root/temp/glibc-2.34/elf'
make[2]: Leaving directory '/root/temp/glibc-2.34/elf'
/usr/bin/install -c -m 644 /root/temp/glibc-2.34/glibc-build/libc.a /lib64/libc.a
/usr/bin/install -c -m 644 /root/temp/glibc-2.34/glibc-build/libc_nonshared.a /lib64/libc_nonshared.a
/usr/bin/install -c /root/temp/glibc-2.34/glibc-build/libc.so /lib64/libc.so.6.new
mv -f /lib64/libc.so.6.new /lib64/libc.so.6
gcc -shared -nostdlib -nostartfiles \
-x assembler /dev/null -o /root/temp/glibc-2.34/glibc-build/format.lds.so
make[1]: *** [Makerules:1043: /root/temp/glibc-2.34/glibc-build/format.lds] Segmentation fault (core dumped)
make[1]: Leaving directory '/root/temp/glibc-2.34'
make: *** [Makefile:12: install] Error 2
is it even possible to upgrade the glibc version this way, just replace the libc-2.31.so binray with libc-2.34.so ?
best regards
T. Reineck