Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635328 - dev-python/pypy{,3}-5.9.0 [translation:ERROR] IOError: [Errno 2] No such file or directory: '/proc/1/status'
Summary: dev-python/pypy{,3}-5.9.0 [translation:ERROR] IOError: [Errno 2] No such file...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-24 17:01 UTC by Alessandro Barbieri
Modified: 2017-10-28 18:50 UTC (History)
1 user (show)

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


Attachments
info_pypy (info_pypy,11.43 KB, text/plain)
2017-10-24 17:02 UTC, Alessandro Barbieri
Details
pqv_pypy (pqv_pypy,354 bytes, text/plain)
2017-10-24 17:02 UTC, Alessandro Barbieri
Details
info_pypy3 (info_pypy3,11.43 KB, text/plain)
2017-10-24 17:03 UTC, Alessandro Barbieri
Details
pqv_pypy3 (pqv_pypy3,311 bytes, text/plain)
2017-10-24 17:03 UTC, Alessandro Barbieri
Details
logpypy.xz (logpypy.xz,27.08 KB, application/x-xz)
2017-10-24 17:13 UTC, Alessandro Barbieri
Details
logpypy3.xz (logpypy3.xz,25.58 KB, application/x-xz)
2017-10-24 17:13 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2017-10-24 17:01:31 UTC
hardened profile
systemd
rt-kernel
libressl

Build fail with:

[translation:info] Error:
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/translator/goal/translate.py", line 318, in main
    drv.proceed(goals)
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/translator/driver.py", line 551, in proceed
    result = self._execute(goals, task_skip = self._maybe_skip())
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/translator/tool/taskengine.py", line 114, in _execute
    res = self._do(goal, taskcallable, *args, **kwds)
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/translator/driver.py", line 278, in _do
    res = func()
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/translator/driver.py", line 452, in task_source_c
    exe_name=exe_name)
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/translator/c/genc.py", line 201, in generate_source
    headers_to_precompile=headers_to_precompile)
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/translator/c/genc.py", line 365, in gen_makefile
    config=self.config)
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/translator/platform/posix.py", line 205, in gen_makefile
    if detect_pax():
   File "/var/tmp/portage/dev-python/pypy3-5.9.0/work/pypy3-v5.9.0-src/rpython/config/support.py", line 45, in detect_pax
    with open("/proc/1/status") as fd:
[translation:ERROR] IOError: [Errno 2] No such file or directory: '/proc/1/status'
[translation] batch mode, not calling interactive helpers
 * ERROR: dev-python/pypy3-5.9.0::gentoo failed (configure phase):
 *   translation failed
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_configure
 *   environment, line 4300:  Called die
 * The specific snippet of code:
 *       "${@}" || die "translation failed"
 *


See infos in attachments
Comment 1 Alessandro Barbieri 2017-10-24 17:02:23 UTC
Created attachment 499942 [details]
info_pypy

info_pypy
Comment 2 Alessandro Barbieri 2017-10-24 17:02:42 UTC
Created attachment 499944 [details]
pqv_pypy

pqv_pypy
Comment 3 Alessandro Barbieri 2017-10-24 17:03:06 UTC
Created attachment 499946 [details]
info_pypy3

info_pypy3
Comment 4 Alessandro Barbieri 2017-10-24 17:03:26 UTC
Created attachment 499948 [details]
pqv_pypy3

pqv_pypy3
Comment 5 Alessandro Barbieri 2017-10-24 17:13:16 UTC
Created attachment 499954 [details]
logpypy.xz

log_pypy
Comment 6 Alessandro Barbieri 2017-10-24 17:13:31 UTC
Created attachment 499956 [details]
logpypy3.xz

log_pypy3
Comment 7 Mike Gilbert gentoo-dev 2017-10-28 16:59:53 UTC
Your hardend kernel probably breaks the /proc filesystem by restricting access to /proc/1/status.

You can disable this "feature", or provide a patch to work around it. ;)
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-10-28 18:50:28 UTC
In any case, feel free to take it upstream. Maybe they'll know of a easy solution.