View previous topic :: View next topic |
Author |
Message |
mikefot l33t
Joined: 19 Nov 2014 Posts: 709
|
Posted: Sat Sep 22, 2018 3:43 pm Post subject: [SOLVED] access denied problem with node js compilation |
|
|
Dear All,
I am running gentoo testing on an AMD box and in a recent world update nodejs crashed with an access denied grumble.
The log file is here:
https://paste.pound-python.org/show/JCmgdQJDFQ6pH7dQ3Dmd/
My make.conf file is as follows:
Code: | djt /etc/portage # more make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="X alsa alsa-plugin aqua asyncns blender bluetooth bmp branding
bullet bzip2 caps classic colorio crypt css cycles dbus dds djvu
corefonts debug dri3 eet egl elbeem examples fbcondecor ffmpeg fftw filecap
s fontconfig gallium
game-engine gbm glamor gles glib gpl grub gtk gtk3 gui handbook
hardcoded-tables hardened ico iconv icu idn imx introspection ipv6 jack jit
jpeg
kde latex ldap legacy-systray libkms llvm lock mmap ndof nettle network
networkmanager nls npm nptl nss openal openimageio openmp openssl orc pcre
pdf pie plasma plymouth png policykit polkit postproc postscript ppm psd
pulseaudio qtmedia readline recursion-limit sctp session snapshot sndfile
sound ssl startup-notification suid symlink tcl tcpd -test tftpd threads th
unar tiff
truetype udev udisks unicode upower vanilla wayland webgl webrtc-aec xcb xv
zlib -caps -clang -dot -doxysearch -drm -fbcon -filecaps
-fribidi -gif -gles2 -gpm gstreamer -harfbuzz -ibus -idn
-minimal -oldlua -opencv -oss -physics -pim -qt4 -qt5
-raw -scim -sdk -sdl -system -systemd -tga -tslib
-v4l -valgrind -vivante -xim -xine -xpm -zip"
FEATURES="buildpkg"
FEATURES="ccache"
CCACHE_SIZE="30G"
MAKEOPTS="-j5"
CPU_FLAGS_X86="mmx sse sse2 3dnow 3dnowext aes avx avx2 fma3 fma4 mmx mmxext sse
3 sse4_1 sse4_2 ssse3 xop"
FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex
pktdumper qt-faststart sidxindex trasher"
#ABI_X86="32 64 x32"
#PYTHON_TARGETS="(python2_7)(python3_4)(python3_5)(python3_6)"
#PYTHON_SINGLE_TARGET ="(python3_4)"
PORTAGE_BINHOST="http://binhost.genfic.com/packages"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
VIDEO_CARDS="amdgpu radeonsi radeon"
ACCEPT_KEYWORDS="~amd64"
# (For mouse, keyboard, and Synaptics touchpad support)
INPUT_DEVICES="evdev synaptics"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/"
#SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
djt /etc/portage # |
Comments appreciated.
Regards
Michael Fothergill
Last edited by mikefot on Mon Sep 24, 2018 11:41 am; edited 1 time in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21595
|
Posted: Sat Sep 22, 2018 5:01 pm Post subject: |
|
|
This appears to be a bug. One of the node programs attempted to write to your home directory. It should not be writing to anyone's home directory, but in particular not to a user home directory. Further, it gives blatantly incorrect advice.
How did you open your root shell? I have seen people post weird problems before when emerging packages without clearing their user environment. The safe way is to use /bin/su -, then run emerge from there. Running /bin/su without - does not clear some parts of the user's environment, which can confuse certain build systems. |
|
Back to top |
|
|
mikefot l33t
Joined: 19 Nov 2014 Posts: 709
|
Posted: Mon Sep 24, 2018 11:40 am Post subject: |
|
|
Many thanks for the suggestion.
I ran the command and it worked.
Nodejs compiled successfully.
Cheers
MF |
|
Back to top |
|
|
|