Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541114 - on uclibc profile, env-update does not include individual gcc library directory in /etc/ld.so.conf
Summary: on uclibc profile, env-update does not include individual gcc library directo...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-23 10:06 UTC by Michael Dec
Modified: 2016-01-03 00:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Dec 2015-02-23 10:06:06 UTC
Changing the systemwide gcc version will cause env-update to fail every time to add the new gcc's library directory to /etc/ld.so.conf

Reproducible: Always

Steps to Reproduce:
1. Install Gentoo with uClibc stage3.
2. Install a different version of gcc than the one the stage3 was shipped with.
3. Switch over to the new gcc with gcc-config

Actual Results:  
/etc/ld.so.conf does not include /usr/lib/gcc/$toolchain/$gcc_version. Re-running env-update and ldconfig will not fix this. One of the consequences of this is inability to run binaries linked dynamically against the C++ standard library.

Expected Results:  
/etc/ld.so.conf should include /usr/lib/gcc/$toolchain/$gcc_version

Adding /usr/lib/gcc/$toolchain/$gcc_version to /etc/ld.so.conf and running ldconfig seems to fix the issue if /lib and /usr/lib will be uncommented from the file.

Also, /etc/ld.so.conf.d directory is missing in stage3 and this is required to build kernels with genkernel. Making this directory in advance give the system an opportunity to generate a file called 05gcc-x86_64-gentoo-linux-uclibc.conf at some point (not exactly sure when) that contains the line missing from ld.so.conf.
Comment 1 Andrew Savchenko gentoo-dev 2015-02-28 01:34:58 UTC
Please submit emerge --info output.
Comment 2 SpanKY gentoo-dev 2015-02-28 05:31:30 UTC
why do you think genkernel requires /etc/ld.so.conf.d ?

did you create that dir *before* running gcc-config ?  if you delete that dir and then run gcc-config, do things work correctly ?
Comment 3 Anthony Basile gentoo-dev 2016-01-03 00:18:09 UTC
this is a long standing unconfirmed bug that i can't reproduce.  i'm going to close it NEEDINFO.  if something is going on here, i can't make sense of it without more clues.