You are not logged in.

#1 2023-05-14 18:42:32

sakui
Member
Registered: 2018-06-17
Posts: 3

libstdc++.so.6 Errors

I am at a loss with this. When I load chromium or use 'locate', the program fails.

$ chromium                                                                                                 
/usr/lib/chromium/chromium: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by /usr/lib/chromium/chromium)

$ locate libstdc++.so.6.0.30
pread: Short read (file corrupted?)

$ ls -l /usr/lib/libstdc++*                                                                                 
-rw-r--r-- 1 root root  6394668 Feb  1 13:05 /usr/lib/libstdc++.a
-rw-r--r-- 1 root root   792940 Feb  1 13:05 /usr/lib/libstdc++fs.a
-rw-r--r-- 1 root root   183036 Feb  1 13:05 /usr/lib/libstdc++_libbacktrace.a
lrwxrwxrwx 1 root root       19 Feb  1 13:05 /usr/lib/libstdc++.so -> libstdc++.so.6.0.30
lrwxrwxrwx 1 root root       28 May 14 02:23 /usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.30
-rwxr-xr-x 1 root root 19211048 May 14 02:26 /usr/lib/libstdc++.so.6.0.30

I have used pacman -U and -S locally in /var/cache/pacman/pkg.

Thanks

Offline

#2 2023-05-14 18:58:25

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,393

Re: libstdc++.so.6 Errors

paru -F /usr/lib/libstdc++.so.6:

usr/lib/libstdc++.so.6 is owned by core/gcc-libs 13.1.1-1

so install gcc-libs.


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#3 2023-05-14 19:19:43

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,561
Website

Re: libstdc++.so.6 Errors

What does

pacman -Qo /usr/lib/libstdc++.so.6.0.30

and

pacman -Qi $(pacman -Qqo /usr/lib/libstdc++*)

return?

Mod note: Moving to NC.

Last edited by WorMzy (2023-05-14 19:22:09)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2023-05-14 20:36:24

sakui
Member
Registered: 2018-06-17
Posts: 3

Re: libstdc++.so.6 Errors

I appreciate the super fast reply.

╭─sakui@pixiedust ~
╰─➤  pacman -Qo /usr/lib/libstdc++.so.6.0.30                                                               
/usr/lib/libstdc++.so.6.0.30 is owned by gcc-libs 12.2.1-2
╭─sakui@pixiedust ~
╰─➤  pacman -Qi $(pacman -Qqo /usr/lib/libstdc++*)
Name            : gcc
Version         : 12.2.1-2
Description     : The GNU Compiler Collection - C and C++ frontends
Architecture    : x86_64
URL             : https://gcc.gnu.org
Licenses        : GPL3  LGPL  FDL  custom
Groups          : base-devel
Provides        : gcc-multilib
Depends On      : gcc-libs=12.2.1-2  binutils>=2.28  libmpc  zstd  libisl.so=23-64
Optional Deps   : lib32-gcc-libs: for generating code for 32-bit ABI [installed]
Required By     : clang  dkms  rust  vala
Optional For    : xorg-xrdb
Conflicts With  : None
Replaces        : gcc-multilib
Installed Size  : 171.25 MiB
Packager        : Frederik Schwan <freswa@archlinux.org>
Build Date      : Wed 01 Feb 2023 01:05:37 PM CST
Install Date    : Sat 13 May 2023 11:07:11 PM CDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Name            : gcc
Version         : 12.2.1-2
Description     : The GNU Compiler Collection - C and C++ frontends
Architecture    : x86_64
URL             : https://gcc.gnu.org
Licenses        : GPL3  LGPL  FDL  custom
Groups          : base-devel
Provides        : gcc-multilib
Depends On      : gcc-libs=12.2.1-2  binutils>=2.28  libmpc  zstd  libisl.so=23-64
Optional Deps   : lib32-gcc-libs: for generating code for 32-bit ABI [installed]
Required By     : clang  dkms  rust  vala
Optional For    : xorg-xrdb
Conflicts With  : None
Replaces        : gcc-multilib
Installed Size  : 171.25 MiB
Packager        : Frederik Schwan <freswa@archlinux.org>
Build Date      : Wed 01 Feb 2023 01:05:37 PM CST
Install Date    : Sat 13 May 2023 11:07:11 PM CDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Name            : gcc
Version         : 12.2.1-2
Description     : The GNU Compiler Collection - C and C++ frontends
Architecture    : x86_64
URL             : https://gcc.gnu.org
Licenses        : GPL3  LGPL  FDL  custom
Groups          : base-devel
Provides        : gcc-multilib
Depends On      : gcc-libs=12.2.1-2  binutils>=2.28  libmpc  zstd  libisl.so=23-64
Optional Deps   : lib32-gcc-libs: for generating code for 32-bit ABI [installed]
Required By     : clang  dkms  rust  vala
Optional For    : xorg-xrdb
Conflicts With  : None
Replaces        : gcc-multilib
Installed Size  : 171.25 MiB
Packager        : Frederik Schwan <freswa@archlinux.org>
Build Date      : Wed 01 Feb 2023 01:05:37 PM CST
Install Date    : Sat 13 May 2023 11:07:11 PM CDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Name            : gcc-libs
Version         : 12.2.1-2
Description     : Runtime libraries shipped by GCC
Architecture    : x86_64
URL             : https://gcc.gnu.org
Licenses        : GPL3  LGPL  FDL  custom
Groups          : None
Provides        : gcc-libs-multilib  libgo.so=21-64  libgfortran.so=5-64  libgphobos.so=3-64  libubsan.so=1-64
                  libasan.so=8-64  libtsan.so=2-64  liblsan.so=0-64
Depends On      : glibc>=2.27
Optional Deps   : None
Required By     : aom  ardour  audacity  base  blas  chromaprint  compiler-rt  db  db5.3  dosbox
                  double-conversion  draco  easytag  embree  exiv2  fftw  flac  fluidsynth  gc  gcc  gdb
                  gengetopt  gettext  glslang  gmp  gn  gnustep-base  gnutls  gperf  gptfdisk  graphite  groff
                  highway  hunspell  hyprland  icu  id3lib  imath  jack2  jre-openjdk-headless  jsoncpp
                  level-zero-loader  libb2  libbs2b  libcamera  libcamera-ipa  libcap  libcdio  libconfig
                  libde265  libebml  libelf  libgit2  libgme  libimagequant  libinih  libmalcontent  libmfx
                  libmodplug  libnl  libopenmpt  libpipewire  libplacebo  libplist  libproxy  librevenge  libsbsms
                  libsidplay  libsigc++  libsmbios  libsoxr  libvpx  libwpd  libyuv  llvm-libs  log4cplus  luajit
                  mjpegtools  mpdecimal  ncurses  new-session-manager  ninja  nmap  onetbb  openal  openmpi
                  ostree  p7zip  pcre  plotutils  poppler  portaudio  portsmf  powertop  protobuf  pstoedit  ptex
                  pugixml  pystring  ragel  rav1e  re2  rubberband  rust  sane  shaderc  smartmontools  snappy
                  soundtouch  speex  speexdsp  spirv-tools  suil  thin-provisioning-tools  tree-sitter  unarchiver
                  v4l-utils  vamp-plugin-sdk  vid.stab  vmaf  vulkan-validation-layers  webrtc-audio-processing
                  x265  xapian-core  yaml-cpp  zeromq  zimg  zstd  zxing-cpp
Optional For    : None
Conflicts With  : None
Replaces        : gcc-libs-multilib  libgphobos
Installed Size  : 137.78 MiB
Packager        : Frederik Schwan <freswa@archlinux.org>
Build Date      : Wed 01 Feb 2023 01:05:37 PM CST
Install Date    : Sun 14 May 2023 11:44:43 AM CDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Name            : gcc-libs
Version         : 12.2.1-2
Description     : Runtime libraries shipped by GCC
Architecture    : x86_64
URL             : https://gcc.gnu.org
Licenses        : GPL3  LGPL  FDL  custom
Groups          : None
Provides        : gcc-libs-multilib  libgo.so=21-64  libgfortran.so=5-64  libgphobos.so=3-64  libubsan.so=1-64
                  libasan.so=8-64  libtsan.so=2-64  liblsan.so=0-64
Depends On      : glibc>=2.27
Optional Deps   : None
Required By     : aom  ardour  audacity  base  blas  chromaprint  compiler-rt  db  db5.3  dosbox
                  double-conversion  draco  easytag  embree  exiv2  fftw  flac  fluidsynth  gc  gcc  gdb
                  gengetopt  gettext  glslang  gmp  gn  gnustep-base  gnutls  gperf  gptfdisk  graphite  groff
                  highway  hunspell  hyprland  icu  id3lib  imath  jack2  jre-openjdk-headless  jsoncpp
                  level-zero-loader  libb2  libbs2b  libcamera  libcamera-ipa  libcap  libcdio  libconfig
                  libde265  libebml  libelf  libgit2  libgme  libimagequant  libinih  libmalcontent  libmfx
                  libmodplug  libnl  libopenmpt  libpipewire  libplacebo  libplist  libproxy  librevenge  libsbsms
                  libsidplay  libsigc++  libsmbios  libsoxr  libvpx  libwpd  libyuv  llvm-libs  log4cplus  luajit
                  mjpegtools  mpdecimal  ncurses  new-session-manager  ninja  nmap  onetbb  openal  openmpi
                  ostree  p7zip  pcre  plotutils  poppler  portaudio  portsmf  powertop  protobuf  pstoedit  ptex
                  pugixml  pystring  ragel  rav1e  re2  rubberband  rust  sane  shaderc  smartmontools  snappy
                  soundtouch  speex  speexdsp  spirv-tools  suil  thin-provisioning-tools  tree-sitter  unarchiver
                  v4l-utils  vamp-plugin-sdk  vid.stab  vmaf  vulkan-validation-layers  webrtc-audio-processing
                  x265  xapian-core  yaml-cpp  zeromq  zimg  zstd  zxing-cpp
Optional For    : None
Conflicts With  : None
Replaces        : gcc-libs-multilib  libgphobos
Installed Size  : 137.78 MiB
Packager        : Frederik Schwan <freswa@archlinux.org>
Build Date      : Wed 01 Feb 2023 01:05:37 PM CST
Install Date    : Sun 14 May 2023 11:44:43 AM CDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Name            : gcc-libs
Version         : 12.2.1-2
Description     : Runtime libraries shipped by GCC
Architecture    : x86_64
URL             : https://gcc.gnu.org
Licenses        : GPL3  LGPL  FDL  custom
Groups          : None
Provides        : gcc-libs-multilib  libgo.so=21-64  libgfortran.so=5-64  libgphobos.so=3-64  libubsan.so=1-64
                  libasan.so=8-64  libtsan.so=2-64  liblsan.so=0-64
Depends On      : glibc>=2.27
Optional Deps   : None
Required By     : aom  ardour  audacity  base  blas  chromaprint  compiler-rt  db  db5.3  dosbox
                  double-conversion  draco  easytag  embree  exiv2  fftw  flac  fluidsynth  gc  gcc  gdb
                  gengetopt  gettext  glslang  gmp  gn  gnustep-base  gnutls  gperf  gptfdisk  graphite  groff
                  highway  hunspell  hyprland  icu  id3lib  imath  jack2  jre-openjdk-headless  jsoncpp
                  level-zero-loader  libb2  libbs2b  libcamera  libcamera-ipa  libcap  libcdio  libconfig
                  libde265  libebml  libelf  libgit2  libgme  libimagequant  libinih  libmalcontent  libmfx
                  libmodplug  libnl  libopenmpt  libpipewire  libplacebo  libplist  libproxy  librevenge  libsbsms
                  libsidplay  libsigc++  libsmbios  libsoxr  libvpx  libwpd  libyuv  llvm-libs  log4cplus  luajit
                  mjpegtools  mpdecimal  ncurses  new-session-manager  ninja  nmap  onetbb  openal  openmpi
                  ostree  p7zip  pcre  plotutils  poppler  portaudio  portsmf  powertop  protobuf  pstoedit  ptex
                  pugixml  pystring  ragel  rav1e  re2  rubberband  rust  sane  shaderc  smartmontools  snappy
                  soundtouch  speex  speexdsp  spirv-tools  suil  thin-provisioning-tools  tree-sitter  unarchiver
                  v4l-utils  vamp-plugin-sdk  vid.stab  vmaf  vulkan-validation-layers  webrtc-audio-processing
                  x265  xapian-core  yaml-cpp  zeromq  zimg  zstd  zxing-cpp
Optional For    : None
Conflicts With  : None
Replaces        : gcc-libs-multilib  libgphobos
Installed Size  : 137.78 MiB
Packager        : Frederik Schwan <freswa@archlinux.org>
Build Date      : Wed 01 Feb 2023 01:05:37 PM CST
Install Date    : Sun 14 May 2023 11:44:43 AM CDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Offline

#5 2023-05-14 20:38:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: libstdc++.so.6 Errors

I have used pacman -U and -S locally in /var/cache/pacman/pkg.

How exactly.

You've an old gcc-libs w/o those symbols but apparently newer clients that were compiled against newer gcc-libs.
Did you downgrade gcc-libs?

Offline

#6 2023-05-14 22:05:27

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,561
Website

Re: libstdc++.so.6 Errors

Why does /usr/lib/libstdc++.so.6 link in the first post have a timestamp of "May 14 02:23" when pacman doesn't have a corresponding date (install or build) for any of the files? Have you manually `make installed` gcc or something?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2023-05-14 23:34:09

sakui
Member
Registered: 2018-06-17
Posts: 3

Re: libstdc++.so.6 Errors

WorMzy wrote:

Why does /usr/lib/libstdc++.so.6 link in the first post have a timestamp of "May 14 02:23" when pacman doesn't have a corresponding date (install or build) for any of the files? Have you manually `make installed` gcc or something?

No, I have not. I've uninstalled and reinstalled gcc-lib. This didn't fix the problem, so I removed the offending file in case if it was corrupted and extracted the file from the gcc-lib archive in /var/cache/pacman/pkg and this didn't fix the problem either.

Sakui

Offline

#8 2023-05-15 01:17:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: libstdc++.so.6 Errors

And it's still old. WHY do you still have an old gcc-libs?

https://wiki.archlinux.org/title/System … nsupported

Last edited by Scimmia (2023-05-15 03:23:49)

Offline

#9 2023-05-15 14:04:59

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,393

Re: libstdc++.so.6 Errors

run pacman -Syu
if gcc-libs doesn't get upgraded, then something is wrong, then try
pacman -S gcc-libs
but AFTER -Syu
at least get it to version 13.1.1-1

DO NOT get it from the AUR/makepkg etc.

Last edited by jl2 (2023-05-15 14:05:27)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB