Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant compile atom npm error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
picarica
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2018
Posts: 115

PostPosted: Fri Aug 09, 2019 8:50 am    Post subject: cant compile atom npm error Reply with quote

so a little backstory i was trying ti compile atom using latest testing nodejs andi got some other npm error so i tried nodejs-99999999 and i got this new error :) which is good i guess

build.log

--info

-pqv


so i guess this is the most important one this is the log from npm
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22057
Location: here

PostPosted: Fri Aug 09, 2019 9:40 am    Post subject: Reply with quote

Code:
12744 verbose stack FetchError: request to https://registry.npmjs.org/ms/-/ms-2.1.2.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
12744 verbose stack     at ClientRequest.<anonymous> (/usr/lib64/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
12744 verbose stack     at ClientRequest.emit (events.js:209:13)
12744 verbose stack     at TLSSocket.socketErrorListener (_http_client.js:399:9)
12744 verbose stack     at TLSSocket.emit (events.js:209:13)
12744 verbose stack     at emitErrorNT (internal/streams/destroy.js:91:8)
12744 verbose stack     at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
12744 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:77:11)
12745 verbose cwd /var/tmp/portage/app-editors/atom-9999/work/atom-9999/script

I'm not sure but seems the package wants download a something in compilation phases and it "is not possible".
A possible workaround is disable feature network-sandbox but is not recommended for security risk
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
picarica
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2018
Posts: 115

PostPosted: Fri Aug 09, 2019 11:44 am    Post subject: Reply with quote

fedeliallalinea wrote:
Code:
12744 verbose stack FetchError: request to https://registry.npmjs.org/ms/-/ms-2.1.2.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
12744 verbose stack     at ClientRequest.<anonymous> (/usr/lib64/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
12744 verbose stack     at ClientRequest.emit (events.js:209:13)
12744 verbose stack     at TLSSocket.socketErrorListener (_http_client.js:399:9)
12744 verbose stack     at TLSSocket.emit (events.js:209:13)
12744 verbose stack     at emitErrorNT (internal/streams/destroy.js:91:8)
12744 verbose stack     at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
12744 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:77:11)
12745 verbose cwd /var/tmp/portage/app-editors/atom-9999/work/atom-9999/script

I'm not sure but seems the package wants download a something in compilation phases and it "is not possible".
A possible workaround is disable feature network-sandbox but is not recommended for security risk


thanks for the answer but how do i disable the feature network sandbox ? like
Code:
sandbox --ns-net-off


because the sandbox command doesnt work on my system i get thsi error

Code:
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD
red.


!!! /etc/portage/make.profile is not a symlink and wi
!!! It should point into a profile within /usr/portag
!!! (You can safely ignore this message when syncing.


!!! Your current profile is invalid. If you have just
!!! configuration, you should revert back to the prev
!!! Allowed actions are limited to --help, --info, --
!!! --version.

also /etc/portage/make.profile doesn't exist
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22057
Location: here

PostPosted: Fri Aug 09, 2019 11:55 am    Post subject: Reply with quote

picarica wrote:
thanks for the answer but how do i disable the feature network sandbox ? like

Simply with
Code:
# FEATURES="-network-sandbox" emerge <your_package>

don't add FEATURES="-network-sandbox" directly in make.conf because this disable sandbox on all packages
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13997

PostPosted: Sat Aug 10, 2019 3:46 am    Post subject: Reply with quote

If the package does not build under the network sandbox, then that is a bug. Disabling the sandbox and letting it download directly from the Internet may make it work this time, but there is a good chance that such a package cannot be rebuilt offline.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum