LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-15-2021, 05:07 AM   #1
Moore-Software
LQ Newbie
 
Registered: Apr 2019
Posts: 1

Rep: Reputation: Disabled
glibc upgrade


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
 
Old 11-15-2021, 06:47 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Ugrading glibc is a bad idea in general, but especially by just replacing the binary. Why would you do it? What are you trying to achieve? 2.31 is not so old. It's the default glibc version on Ubuntu 20.04 LTS.

See here, to give you an idea of how many things depend on glibc.

Last edited by shruggy; 11-15-2021 at 06:50 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrade glibc-2.3 to glibc-2.5 Tux-Slack Slackware 9 01-03-2011 06:40 AM
how to upgrade glibc-2.3 to glibc-2.4 safely on RHEL4? samengr Linux - Software 3 01-31-2009 01:30 PM
RH 9.0 glibc rpm says it needs glibc-common, but glibc-common is installed whitshade Red Hat 2 04-28-2007 05:49 PM
newb question on GNU glibc-2.3.1 upgrade to GNU glibc-2.3.2 clindy528 Slackware 1 11-10-2005 06:49 AM
upgrade glibc-2.2.4 to glibc-2.3.2 on redhat 7.2 Shuja Red Hat 0 07-28-2004 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration