Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 559226

Summary: gcc-config fails if /tmp/.private/root doesn't exists
Product: Gentoo Linux Reporter: Justin Lecher (RETIRED) <jlec>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.