1 |
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: |
2 |
# <https://github.com/pypa/virtualenv/issues/118> |
3 |
try: |
4 |
from platform import python_implementation |
5 |
if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
6 |
can_use_sysconfig = 0 |
7 |
except ImportError: |
8 |
pass |
9 |
if can_use_sysconfig: |
10 |
sitedir = sysconfig.get_path('platlib', vars={'platbase':'/usr'}) |
11 |
else: |
12 |
from distutils import sysconfig |
13 |
sitedir = sysconfig.get_python_lib(1, 0, prefix='/usr') |
14 |
sys.stdout.write(sitedir) |
15 |
|
16 |
F: open_wr |
17 |
S: deny |
18 |
P: /usr/lib/python3.7/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-37.pyc.140180998219360 |
19 |
A: /usr/lib/python3.7/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-37.pyc.140180998219360 |
20 |
R: /usr/lib/python3.7/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-37.pyc.140180998219360 |
21 |
C: /usr/lib/python-exec/python3.7/python -c |
22 |
import sys |
23 |
# Prefer sysconfig over distutils.sysconfig, for better compatibility |
24 |
# with python 3.x. See automake bug#10227. |
25 |
try: |
26 |
import sysconfig |
27 |
except ImportError: |
28 |
can_use_sysconfig = 0 |
29 |
else: |
30 |
can_use_sysconfig = 1 |
31 |
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: |
32 |
# <https://github.com/pypa/virtualenv/issues/118> |
33 |
try: |
34 |
from platform import python_implementation |
35 |
if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
36 |
can_use_sysconfig = 0 |
37 |
except ImportError: |
38 |
pass |
39 |
if can_use_sysconfig: |
40 |
sitedir = sysconfig.get_path('platlib', vars={'platbase':'/usr'}) |
41 |
else: |
42 |
from distutils import sysconfig |
43 |
sitedir = sysconfig.get_python_lib(1, 0, prefix='/usr') |
44 |
sys.stdout.write(sitedir) |
45 |
|
46 |
Ensure the file has the executable bit set |
47 |
Running pre-kmerge.sh in chroot: |
48 |
chroot /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z /tmp/pre-kmerge.sh |
49 |
>>> Regenerating /etc/ld.so.cache... |
50 |
emerge --quiet --usepkg --buildpkg --binpkg-respect-use=y --newuse --oneshot genkernel |
51 |
>>> Verifying ebuild manifests |
52 |
>>> Emerging (1 of 1) sys-kernel/genkernel-4.0.7-r1::gentoo |
53 |
>>> Installing (1 of 1) sys-kernel/genkernel-4.0.7-r1::gentoo |
54 |
removing /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/tmp/pre-kmerge.sh from the chroot |
55 |
removing /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/tmp/chroot-functions.sh from the chroot |
56 |
Copying kmerge.sh to /tmp |
57 |
copying kmerge.sh to /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/tmp |
58 |
copying chroot-functions.sh to /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/tmp |
59 |
Ensure the file has the executable bit set |
60 |
Running kmerge.sh in chroot: |
61 |
chroot /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z /tmp/kmerge.sh |
62 |
>>> Regenerating /etc/ld.so.cache... |
63 |
Genkernel version 4.0.7 found ... OK |
64 |
emerge --quiet --usepkg --buildpkg --binpkg-respect-use=y --newuse gentoo-sources |
65 |
>>> Verifying ebuild manifests |
66 |
>>> Emerging (1 of 2) sys-devel/bc-1.06.95-r2::gentoo |
67 |
>>> Installing (1 of 2) sys-devel/bc-1.06.95-r2::gentoo |
68 |
>>> Emerging (2 of 2) sys-kernel/gentoo-sources-5.4.38::gentoo |
69 |
>>> Installing (2 of 2) sys-kernel/gentoo-sources-5.4.38::gentoo |
70 |
>>> Recording sys-kernel/gentoo-sources in "world" favorites file... |
71 |
* Messages for package sys-kernel/gentoo-sources-5.4.38: |
72 |
* If you are upgrading from a previous kernel, you may be interested |
73 |
* in the following document: |
74 |
* - General upgrade guide: https://wiki.gentoo.org/wiki/Kernel/Upgrade |
75 |
|
76 |
|
77 |
Adjusting /usr/src/linux to point to /usr/src/linux-5.4.38-gentoo |
78 |
[32;01m*[32;01m Gentoo Linux Genkernel; Version 4.0.7[0m |
79 |
[32;01m*[0m Using genkernel configuration from '/etc/genkernel.conf' ... |
80 |
[32;01m*[0m Running with options: --cachedir=/tmp/kerncache/gentoo-genkernel_cache-20200511T171142Z --no-mountboot --kerneldir=/usr/src/linux --modulespackage=/tmp/kerncache/gentoo-modules-20200511T171142Z.tar.bz2 --minkernpackage=/tmp/kerncache/gentoo-kernel-initrd-20200511T171142Z.tar.bz2 all --kernel-config=/var/tmp/gentoo.config |
81 |
|
82 |
[32;01m*[0m Working with Linux kernel [0;01m5.4.38-gentoo[0m for [0;01mx86_64[0m |
83 |
[32;01m*[0m Using kernel config file '/var/tmp/gentoo.config' ... |
84 |
[32;01m*[0m |
85 |
[32;01m*[0m Note: The version above is subject to change (depends on config and status of kernel sources). |
86 |
|
87 |
[32;01m*[0m kernel: >> Initializing ... |
88 |
[32;01m*[0m >> Running 'make mrproper' ... |
89 |
[32;01m*[0m >> Running 'make oldconfig' ... |
90 |
[32;01m*[0m >> Re-running 'make oldconfig' due to changed kernel options ... |
91 |
[32;01m*[0m >> Kernel version has changed (probably due to config change) since genkernel start: |
92 |
[32;01m*[0m We are now building Linux kernel [0;01m5.4.38-gentoo-x86_64[0m for [0;01mx86_64[0m ... |
93 |
[32;01m*[0m >> Compiling 5.4.38-gentoo-x86_64 bzImage ... |
94 |
[32;01m*[0m >> Compiling 5.4.38-gentoo-x86_64 modules ... |
95 |
[32;01m*[0m >> Installing 5.4.38-gentoo-x86_64 modules (and stripping) ... |
96 |
[32;01m*[0m >> Generating module dependency data ... |
97 |
[32;01m*[0m >> Saving config of successful build to '/etc/kernels/kernel-config-5.4.38-gentoo-x86_64' ... |
98 |
|
99 |
[32;01m*[0m initramfs: >> Initializing ... |
100 |
[32;01m*[0m >> Appending devices cpio data ... |
101 |
[32;01m*[0m >> Appending base_layout cpio data ... |
102 |
[32;01m*[0m >> Appending auxilary cpio data ... |
103 |
[32;01m*[0m >> Appending busybox cpio data ... |
104 |
[32;01m*[0m >> Appending blkid cpio data ... |
105 |
[31;01m*[0m [31;01mACCESS DENIED[0m: open_wr: /usr/lib/python3.7/__pycache__/sysconfig.cpython-37.pyc.139723260382880 |
106 |
[31;01m*[0m [31;01mACCESS DENIED[0m: open_wr: /usr/lib/python3.7/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-37.pyc.139723258869344 |
107 |
[31;01m*[0m [31;01mACCESS DENIED[0m: open_wr: /usr/lib/python3.7/__pycache__/sysconfig.cpython-37.pyc.140180999732896 |
108 |
[31;01m*[0m [31;01mACCESS DENIED[0m: open_wr: /usr/lib/python3.7/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-37.pyc.140180998219360 |
109 |
[31;01m*[0m ERROR: create_initramfs(): append_data(): append_blkid(): populate_binpkg(): gkbuild(): Failed to create binpkg of util-linux-2.35.1! |
110 |
[31;01m*[0m Please consult '/var/log/genkernel.log' for more information and any |
111 |
[31;01m*[0m errors that were reported above. |
112 |
[31;01m*[0m |
113 |
[31;01m*[0m Report any genkernel bugs to bugs.gentoo.org and |
114 |
[31;01m*[0m assign your bug to genkernel@g.o. Please include |
115 |
[31;01m*[0m as much information as you can in your bug report; attaching |
116 |
[31;01m*[0m '/var/log/genkernel.log' so that your issue can be dealt with effectively. |
117 |
[31;01m*[0m |
118 |
[31;01m*[0m Please do [0;01m*not*[0m report [0;01mkernel[0m compilation failures as genkernel bugs! |
119 |
[31;01m*[0m |
120 |
12 May 2020 16:55:48 UTC: ERROR : CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh', 'kernel', 'gentoo']) exited 1 |
121 |
ERROR:catalyst:CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh', 'kernel', 'gentoo']) exited 1 |
122 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/tmp/portage is not a mount point. Skipping |
123 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/tmp/portage is not a mount point. Skipping |
124 |
12 May 2020 16:55:48 UTC: ERROR : CatalystError: build aborting due to kernel build error. |
125 |
Traceback (most recent call last): |
126 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1591, in build_kernel |
127 |
self._build_kernel(kname = kname) |
128 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1628, in _build_kernel |
129 |
env=self.env) |
130 |
File "/usr/lib64/python3.6/site-packages/catalyst/support.py", line 54, in cmd |
131 |
print_traceback=False) |
132 |
catalyst.support.CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh', 'kernel', 'gentoo']) exited 1 |
133 |
ERROR:catalyst:CatalystError: build aborting due to kernel build error. |
134 |
Traceback (most recent call last): |
135 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1591, in build_kernel |
136 |
self._build_kernel(kname = kname) |
137 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1628, in _build_kernel |
138 |
env=self.env) |
139 |
File "/usr/lib64/python3.6/site-packages/catalyst/support.py", line 54, in cmd |
140 |
print_traceback=False) |
141 |
catalyst.support.CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh', 'kernel', 'gentoo']) exited 1 |
142 |
12 May 2020 16:55:48 UTC: ERROR : Exception running action sequence build_kernel |
143 |
Traceback (most recent call last): |
144 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1591, in build_kernel |
145 |
self._build_kernel(kname = kname) |
146 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1628, in _build_kernel |
147 |
env=self.env) |
148 |
File "/usr/lib64/python3.6/site-packages/catalyst/support.py", line 54, in cmd |
149 |
print_traceback=False) |
150 |
catalyst.support.CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh', 'kernel', 'gentoo']) exited 1 |
151 |
|
152 |
During handling of the above exception, another exception occurred: |
153 |
|
154 |
Traceback (most recent call last): |
155 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1471, in run |
156 |
getattr(self, x)() |
157 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1597, in build_kernel |
158 |
print_traceback=True) |
159 |
catalyst.support.CatalystError: build aborting due to kernel build error. |
160 |
ERROR:catalyst:Exception running action sequence build_kernel |
161 |
Traceback (most recent call last): |
162 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1591, in build_kernel |
163 |
self._build_kernel(kname = kname) |
164 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1628, in _build_kernel |
165 |
env=self.env) |
166 |
File "/usr/lib64/python3.6/site-packages/catalyst/support.py", line 54, in cmd |
167 |
print_traceback=False) |
168 |
catalyst.support.CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh', 'kernel', 'gentoo']) exited 1 |
169 |
|
170 |
During handling of the above exception, another exception occurred: |
171 |
|
172 |
Traceback (most recent call last): |
173 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1471, in run |
174 |
getattr(self, x)() |
175 |
File "/usr/lib64/python3.6/site-packages/catalyst/base/stagebase.py", line 1597, in build_kernel |
176 |
print_traceback=True) |
177 |
catalyst.support.CatalystError: build aborting due to kernel build error. |
178 |
12 May 2020 16:55:48 UTC: NOTICE : Cleaning up... Running unbind() |
179 |
NOTICE:catalyst:Cleaning up... Running unbind() |
180 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/cache/binpkgs is not a mount point. Skipping |
181 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/cache/binpkgs is not a mount point. Skipping |
182 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/run is not a mount point. Skipping |
183 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/run is not a mount point. Skipping |
184 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/dev/shm does not exist. Skipping |
185 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/dev/shm does not exist. Skipping |
186 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/dev/pts does not exist. Skipping |
187 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/dev/pts does not exist. Skipping |
188 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/tmp/portage is not a mount point. Skipping |
189 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/tmp/portage is not a mount point. Skipping |
190 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/cache/distfiles is not a mount point. Skipping |
191 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/cache/distfiles is not a mount point. Skipping |
192 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/db/repos/gentoo is not a mount point. Skipping |
193 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/var/db/repos/gentoo is not a mount point. Skipping |
194 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/dev is not a mount point. Skipping |
195 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/dev is not a mount point. Skipping |
196 |
12 May 2020 16:55:48 UTC: NOTICE : /release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/proc is not a mount point. Skipping |
197 |
NOTICE:catalyst:/release/buildroot/amd64-dev/tmp/hardened/livecd-stage2-amd64-20200511T171142Z/proc is not a mount point. Skipping |
198 |
Command exited with non-zero status 2 |
199 |
6251.77user 932.83system 37:27.62elapsed 319%CPU (0avgtext+0avgdata 409688maxresident)k |
200 |
990904inputs+12930080outputs (212major+183475293minor)pagefaults 0swaps |
201 |
|
202 |
|
203 |
|
204 |
Full build log at /release/tmp/run/catalyst-auto.20200511T171142Z.bnBcBl/log/hardened_admincd-stage2.log |