Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 752117 - dev-lang/nim-1.4.0 unhandled exception: Resource temporarily unavailable
Summary: dev-lang/nim-1.4.0 unhandled exception: Resource temporarily unavailable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-01 14:54 UTC by Helmut Jarausch
Modified: 2020-12-04 20:58 UTC (History)
2 users (show)

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


Attachments
build log xz-compressed (nim-1.4.0.build.xz,23.90 KB, application/x-xz)
2020-11-01 14:54 UTC, Helmut Jarausch
Details
emerge --info output (nim.info,23.37 KB, text/plain)
2020-11-02 08:53 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2020-11-01 14:54:22 UTC
Created attachment 669593 [details]
build log xz-compressed

Trying to build nim-1.4.0 fails with
/var/tmp/portage/dev-lang/nim-1.4.0/temp/cache/nim/httpclient_d/runnableExamples/httpclient_examples1.nim(15) httpclient_examples1
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(247) asyncProc
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(22) asyncProcNimAsyncContinue
/var/tmp/portage/dev-lang/nim-1.4.0/temp/cache/nim/httpclient_d/runnableExamples/httpclient_examples1.nim(13) asyncProcIter
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(247) getContent
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(22) getContentNimAsyncContinue
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/httpclient.nim(1095) getContentIter
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(247) get
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(22) getNimAsyncContinue
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/httpclient.nim(1090) getIter
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(247) request
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(22) requestNimAsyncContinue
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/httpclient.nim(1066) requestIter
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(247) request
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(22) requestNimAsyncContinue
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/httpclient.nim(1042) requestIter
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(247) requestAux
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(22) requestAuxNimAsyncContinue
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/httpclient.nim(992) requestAuxIter
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(247) newConnection
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(22) newConnectionNimAsyncContinue
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/httpclient.nim(881) newConnectionIter
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(247) dial
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncmacro.nim(22) dialNimAsyncContinue
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncnet.nim(289) dialIter
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/asyncdispatch.nim(1814) dial
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/nativesockets.nim(303) getAddrInfo
/var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0/lib/pure/includes/oserr.nim(94) raiseOSError
Comment 1 Jonas Stein gentoo-dev 2020-11-01 19:14:36 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 2 Helmut Jarausch 2020-11-02 08:53:32 UTC
Created attachment 669722 [details]
emerge --info output
Comment 3 Helmut Jarausch 2020-11-02 16:45:00 UTC
The situation is strange.
I *can* build and install nim by pypassing part of portage, as follows

ebuild /usr/portage/dev-lang/nim/nim-1.4.0.ebuild prepare
pushd /var/tmp/portage/dev-lang/nim-1.4.0/work/nim-1.4.0

Now mimic src_compile of the ebuild

./build.sh
./bin/nim --parallelBuild:32 c koch./koch boot --parallelBuild:32 -d:release  -d:useGnuReadline
PATH="./bin:$PATH" ./koch --stable toolsNoExternal --parallelBuild:32
PATH="./bin:$PATH" ./koch doc --parallelBuild:32

and optionally
PATH="./bin:$PATH" ./koch nimble --parallelBuild:32   (see below)

then
touch /var/tmp/portage/dev-lang/nim-1.4.0/.compiled
ebuild /usr/portage/dev-lang/nim/nim-1.4.0.ebuild merge

All of these run without any error messages.

=====

Another point: dev-lang/nim misses some infrastructure.
Gentoo's ebuild doesn't build/install nimble.

What's the Gentoo way of installing nim packages system-wide?
Comment 4 Susan Wilson 2020-11-25 05:54:43 UTC
I am seeing the same issue when trying to compile dev-lang/nim-1.4.0 with +doc USE flag. It looks like as a part of building documentation nim tries to access some websites, but the access request is blocked by the network-sandbox. Disabling the network sandbox seems to allow the build process to complete without issues.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-04 15:36:48 UTC
Reproduced locally as well. Looking.
Comment 6 Larry the Git Cow gentoo-dev 2020-12-04 20:58:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de77e35a4100274d865926fb66f96daf218e9f0d

commit de77e35a4100274d865926fb66f96daf218e9f0d
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-12-04 20:57:55 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-12-04 20:57:55 +0000

    dev-lang/nim: drop USE=doc to avoid network access
    
    Reported-by: Helmut Jarausch
    Closes: https://bugs.gentoo.org/752117
    Package-Manager: Portage-3.0.11, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-lang/nim/nim-1.4.2.ebuild | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)