Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559226 - gcc-config fails if /tmp/.private/root doesn't exists
Summary: gcc-config fails if /tmp/.private/root doesn't exists
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-31 06:58 UTC by Justin Lecher (RETIRED)
Modified: 2015-09-10 00:41 UTC (History)
0 users

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 Justin Lecher (RETIRED) gentoo-dev 2015-08-31 06:58:43 UTC
# gcc-config 1
* Switching native-compiler to x86_64-pc-linux-gnu-4.9.3 ...
tac: failed to create temporary file in ‘/tmp/.private/root’: No such file or directory                                                                [ ok ]
but /etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf is empty I see things like

 # msgmerge -U ./tmp-po/da.po ./tmp-po/man-db-manpages.pot  --previous --backup=none
 msgmerge: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
 
 
After creating the temp die manually and running gcc-config again everything is fine.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2015-09-10 00:41:05 UTC
This won't have anything to do with gcc-config.  It's just a simple `tac` call that's failing because it can't write a temp file.  This should be controlled by the pam mktemp module.  If you're in a chroot try doing a su - first even if you're already $UID 0.