problem appears after upgrading to sys-libs/glibc-2.22-r1 Reproducible: Always Steps to Reproduce: 1.try to start gdb from console 2. 3. Actual Results: gdb: error while loading shared libraries: /usr/lib64/libm.so.6: invalid ELF header Expected Results: gdb running…
readelf shows that gdb has a runpath set to /usr/lib64. as a temporary solution I start it like this: $ LD_LIBRARY_PATH=/lib gdb
every bug report should have `emerge --info` attached to it. please do so. there should be no /usr/lib64/libm.so.6 file. please attach the output of: qlist -e sys-libs/glibc also attach the full build log of your glibc
Created attachment 415510 [details] full build log
Created attachment 415512 [details] glibc package content
Created attachment 415514 [details] my system info
your glibc doesn't own /usr/lib64/libm.so.6, so where is it coming from ? run: file /usr/lib*/libm.so.6 file -L /usr/lib*/libm.so.6 qfile /usr/lib*/libm.so.6 and post the output
it is a symlink unowned by any package... removing it had fixed the problem.