Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568038 - sci-libs/lapack-reference cannot create directory ‘/etc/env.d/alternatives/lapack/reference’
Summary: sci-libs/lapack-reference cannot create directory ‘/etc/env.d/alternatives/la...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-12 01:34 UTC by Stephen
Modified: 2015-12-14 07:54 UTC (History)
1 user (show)

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


Attachments
emerge-info (emerge_info,5.44 KB, text/plain)
2015-12-12 01:34 UTC, Stephen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen 2015-12-12 01:34:56 UTC
Created attachment 419008 [details]
emerge-info

The install step for lapack-reference fails, stating it can't create a directory,  If I manually create the directory prior to the emerge the install fails because the directory already exists.

 * ACCESS DENIED:  mkdir:        /etc/env.d/alternatives/lapack/reference
mkdir: cannot create directory ‘/etc/env.d/alternatives/lapack/reference’: Permission denied
!!! Error: Failed to create /etc/env.d/alternatives/lapack/reference
Call stack:
    * alternatives_do_add (alternatives-common.bash:288)
    * do_add (alternatives.eselect:147)
    * check_do (core.bash:24)
    * do_action (core.bash:105)
    * main (eselect:309)
exiting
 * ERROR: sci-libs/lapack-reference-3.6.0-r1::science failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   90:  Called src_install
 *   environment, line 4642:  Called numeric-int64-multibuild_install_alternative 'lapack' 'reference'
 *   environment, line 3400:  Called numeric-int64-multibuild_foreach_int_abi 'pc_install' 'lapack' 'reference'
 *   environment, line 3370:  Called multibuild_foreach_variant 'numeric-int64-multibuild_multilib_wrapper' 'pc_install' 'lapack' 'reference'
 *   environment, line 2868:  Called _multibuild_run 'numeric-int64-multibuild_multilib_wrapper' 'pc_install' 'lapack' 'reference'
 *   environment, line 2866:  Called numeric-int64-multibuild_multilib_wrapper 'pc_install' 'lapack' 'reference'
 *   environment, line 3409:  Called pc_install 'lapack' 'reference'
 *   environment, line 3397:  Called alternatives_for 'lapack' 'reference' '0' '/usr/lib64/pkgconfig/lapack.pc' 'reflapack.pc'
 *   environment, line  865:  Called die
 * The specific snippet of code:
 *       ALTERNATIVESDIR_ROOT="${D%/}" eselect alternatives add ${@} || die;
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/lapack-reference-3.6.0-r1::science'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/lapack-reference-3.6.0-r1::science'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/work/lapack-3.6.0'
 * S: '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/work/lapack-3.6.0'
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-11574.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: reference
A: /etc/env.d/alternatives/lapack/reference
R: /etc/env.d/alternatives/lapack/reference
C: mkdir -p /etc/env.d/alternatives/lapack/reference 
 * --------------------------------------------------------------------------------

>>> Failed to emerge sci-libs/lapack-reference-3.6.0-r1, Log file:

>>>  '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/temp/build.log'

 * Messages for package sci-libs/lapack-reference-3.6.0-r1:

 * ERROR: sci-libs/lapack-reference-3.6.0-r1::science failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   90:  Called src_install
 *   environment, line 4642:  Called numeric-int64-multibuild_install_alternative 'lapack' 'reference'
 *   environment, line 3400:  Called numeric-int64-multibuild_foreach_int_abi 'pc_install' 'lapack' 'reference'
 *   environment, line 3370:  Called multibuild_foreach_variant 'numeric-int64-multibuild_multilib_wrapper' 'pc_install' 'lapack' 'reference'
 *   environment, line 2868:  Called _multibuild_run 'numeric-int64-multibuild_multilib_wrapper' 'pc_install' 'lapack' 'reference'
 *   environment, line 2866:  Called numeric-int64-multibuild_multilib_wrapper 'pc_install' 'lapack' 'reference'
 *   environment, line 3409:  Called pc_install 'lapack' 'reference'
 *   environment, line 3397:  Called alternatives_for 'lapack' 'reference' '0' '/usr/lib64/pkgconfig/lapack.pc' 'reflapack.pc'
 *   environment, line  865:  Called die
 * The specific snippet of code:
 *       ALTERNATIVESDIR_ROOT="${D%/}" eselect alternatives add ${@} || die;
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/lapack-reference-3.6.0-r1::science'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/lapack-reference-3.6.0-r1::science'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/work/lapack-3.6.0'
 * S: '/var/tmp/portage/sci-libs/lapack-reference-3.6.0-r1/work/lapack-3.6.0'
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-12-13 19:16:21 UTC
are you updating from 3.6.0? That version was broken.

try

eselect alternatives remove lapack reference

and reemerge lapack-reference
Comment 2 Stephen 2015-12-14 00:04:40 UTC
(In reply to Justin Lecher from comment #1)
> are you updating from 3.6.0? That version was broken.
> 
> try
> 
> eselect alternatives remove lapack reference
> 
> and reemerge lapack-reference

I uninstalled lapack-reference earlier while trying to troubleshoot it, so right now my system shouldn't have any version present.

It looks like I'm trying to emerge in 3.6.0. Here's my emerge output:
# emerge -avDN lapack-reference

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] sci-libs/lapack-reference-3.6.0-r1:0/3.6.0::science  USE="deprecated -int64 -static-libs {-test} -xblas" ABI_X86="(64) -32 (-x32)" 0 KiB


I ran 'layman -S' and 'emaint -A sync' prior to emerging.  Am I picking up the wrong version?

Also, I tried 'eselect alternatives remove lapack reference' and got an error:
# eselect alternatives remove lapack reference
/usr/share/eselect/libs/alternatives-common.bash: line 362: einfo: command not found


# equery l eselect
 * Searching for eselect ...
[I--] [??] app-admin/eselect-1.4.5-r102:0
Comment 3 François Bissey 2015-12-14 00:29:02 UTC
You want to sync that and upgrade to eselect-1.4.5-r103.
Comment 4 Stephen 2015-12-14 01:07:06 UTC
(In reply to Francois Bissey from comment #3)
> You want to sync that and upgrade to eselect-1.4.5-r103.

That was the issue.  After upgrading eselect I was able to install lapack-reference.  Thank you for your help.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2015-12-14 07:54:04 UTC
commit e46d6814190a2905159ff9fadb03f2928df9f4c8
Author: Justin Lecher <jlec@gentoo.org>
Date:   Mon Dec 14 08:52:53 2015 +0100

    Raise eselect version requirement
    
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563292
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=568038
    
    Signed-off-by: Justin Lecher <jlec@gentoo.org>