1 |
Hello Everyone, I was able to get as far as installing grub however through |
2 |
the installation I would find some strange behaviour such as not being able |
3 |
to mount /dev/sda2 to the boot directory. I would do it on the livecd (ie, |
4 |
mount /dev/sda2 /mnt/gentoo/boot). |
5 |
|
6 |
When it came to installing `grub grub-install /dev/sda` I got an 'Illegal |
7 |
State'. emerge -e world would fail with: |
8 |
|
9 |
>>> Installing (4 of 199) app-arch/bzip2-1.0.6-r8::gentoo |
10 |
bash: line 1: 26183 Illegal instruction |
11 |
${PORTAGE_BUNZIP2_COMMAND:-${PORTAGE_BZIP2_COMMAND} -d} -c -- |
12 |
/var/db/pkg/app-arch/bzip2-1.0.6-r8/environment.bz2 > |
13 |
/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/temp/environment |
14 |
!!! FAILED prerm: 132 |
15 |
* ERROR: app-arch/bzip2-1.0.6-r8::gentoo failed (postrm phase): |
16 |
* eutils.eclass could not be found by inherit() |
17 |
* |
18 |
* Call stack: |
19 |
* ebuild.sh, line 611: Called source |
20 |
'/var/db/pkg/app-arch/bzip2-1.0.6-r8/bzip2-1.0.6-r8.ebuild' |
21 |
* bzip2-1.0.6-r8.ebuild, line 9: Called inherit 'eutils' |
22 |
'toolchain-funcs' 'multilib' 'multilib-minimal' |
23 |
* ebuild.sh, line 284: Called die |
24 |
* The specific snippet of code: |
25 |
* [[ -z ${location} ]] && die "${1}.eclass could not be found by |
26 |
inherit()" |
27 |
* |
28 |
* If you need support, post the output of `emerge --info |
29 |
'=app-arch/bzip2-1.0.6-r8::gentoo'`, |
30 |
* the complete build log and the output of `emerge -pqv |
31 |
'=app-arch/bzip2-1.0.6-r8::gentoo'`. |
32 |
* The complete build log is located at |
33 |
'/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/temp/build.log'. |
34 |
* The ebuild environment file is located at |
35 |
'/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/temp/die.env'. |
36 |
* Working directory: |
37 |
'/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/homedir' |
38 |
* S: '/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/work/bzip2-1.0.6' |
39 |
* QA Notice: ECLASS 'eutils' inherited illegally in |
40 |
app-arch/bzip2-1.0.6-r8 |
41 |
* ERROR: app-arch/bzip2-1.0.6-r8::gentoo failed: |
42 |
* eutils.eclass could not be found by inherit() |
43 |
* |
44 |
* Call stack: |
45 |
* misc-functions.sh, line 17: Called source |
46 |
'/var/tmp/portage/._portage_reinstall_.vay4msqy/bin/ebuild.sh' |
47 |
* ebuild.sh, line 611: Called source |
48 |
'/var/db/pkg/app-arch/bzip2-1.0.6-r8/bzip2-1.0.6-r8.ebuild' |
49 |
* bzip2-1.0.6-r8.ebuild, line 9: Called inherit 'eutils' |
50 |
'toolchain-funcs' 'multilib' 'multilib-minimal' |
51 |
* ebuild.sh, line 284: Called die |
52 |
* The specific snippet of code: |
53 |
* [[ -z ${location} ]] && die "${1}.eclass could not be found by |
54 |
inherit()" |
55 |
* |
56 |
* If you need support, post the output of `emerge --info |
57 |
'=app-arch/bzip2-1.0.6-r8::gentoo'`, |
58 |
* the complete build log and the output of `emerge -pqv |
59 |
'=app-arch/bzip2-1.0.6-r8::gentoo'`. |
60 |
* The complete build log is located at |
61 |
'/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/temp/build.log'. |
62 |
* The ebuild environment file is located at |
63 |
'/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/temp/die.env'. |
64 |
* Working directory: |
65 |
'/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/homedir' |
66 |
* S: '/var/tmp/portage/._unmerge_/app-arch/bzip2-1.0.6-r8/work/bzip2-1.0.6' |
67 |
!!! FAILED postrm: 1 |
68 |
* The 'postrm' phase of the 'app-arch/bzip2-1.0.6-r8' package has failed |
69 |
* with exit value 1. |
70 |
* |
71 |
* The problem occurred while executing the ebuild file named |
72 |
* 'bzip2-1.0.6-r8.ebuild' located in the '/var/db/pkg/app- |
73 |
* arch/bzip2-1.0.6-r8' directory. If necessary, manually remove the |
74 |
* environment.bz2 file and/or the ebuild file located in that directory. |
75 |
* |
76 |
* Removal of the environment.bz2 file is preferred since it may allow the |
77 |
* removal phases to execute successfully. The ebuild will be sourced and |
78 |
* the eclasses from the current portage tree will be used when necessary. |
79 |
* Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm() |
80 |
* removal phases to be skipped entirely. |
81 |
Traceback (most recent call last): |
82 |
File |
83 |
"/var/tmp/portage/._portage_reinstall_.vay4msqy/bin/filter-bash-environment.py", |
84 |
line 157, in <module> |
85 |
re.compile(var_pattern), file_in, file_out) |
86 |
File |
87 |
"/var/tmp/portage/._portage_reinstall_.vay4msqy/bin/filter-bash-environment.py", |
88 |
line 81, in filter_bash_environment |
89 |
file_out.write(line.replace("\1", "")) |
90 |
BrokenPipeError: [Errno 32] Broken pipe |
91 |
* ERROR: app-arch/bzip2-1.0.6-r8::gentoo failed (postinst phase): |
92 |
* filter-bash-environment.py failed |
93 |
* |
94 |
* Call stack: |
95 |
* ebuild.sh, line 767: Called __ebuild_main 'postinst' |
96 |
* phase-functions.sh, line 949: Called __filter_readonly_variables |
97 |
'--filter-path' '--filter-sandbox' '--allow-extra-vars' |
98 |
* phase-functions.sh, line 137: Called die |
99 |
* The specific snippet of code: |
100 |
* "${PORTAGE_PYTHON:-/usr/bin/python}" |
101 |
"${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die |
102 |
"filter-bash-environment.py failed" |
103 |
* |
104 |
* If you need support, post the output of `emerge --info |
105 |
'=app-arch/bzip2-1.0.6-r8::gentoo'`, |
106 |
* the complete build log and the output of `emerge -pqv |
107 |
'=app-arch/bzip2-1.0.6-r8::gentoo'`. |
108 |
* The complete build log is located at |
109 |
'/var/tmp/portage/app-arch/bzip2-1.0.6-r8/temp/build.log'. |
110 |
* The ebuild environment file is located at |
111 |
'/var/tmp/portage/app-arch/bzip2-1.0.6-r8/temp/environment'. |
112 |
* Working directory: '/var/tmp/portage/._portage_reinstall_.vay4msqy/pym' |
113 |
* S: '/var/tmp/portage/app-arch/bzip2-1.0.6-r8/work/bzip2-1.0.6' |
114 |
/var/tmp/portage/._portage_reinstall_.vay4msqy/bin/phase-functions.sh: line |
115 |
926: 26392 Exit 141 __save_ebuild_env --exclude-init-phases |
116 |
26393 Exit 1 | __filter_readonly_variables |
117 |
--filter-path --filter-sandbox --allow-extra-vars |
118 |
26394 Illegal instruction | ${PORTAGE_BZIP2_COMMAND} -c -f9 > |
119 |
"$PORTAGE_UPDATE_ENV" |
120 |
* FAILED postinst: 1 |
121 |
|
122 |
>>> Failed to execute postinst for app-arch/bzip2-1.0.6-r8 |
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 |
*emerge --info* |
130 |
Portage 2.3.6 (python 3.4.5-final-0, hardened/linux/amd64, gcc-5.4.0, |
131 |
glibc-2.23-r4, 4.8.17-hardened-r2 x86_64) |
132 |
================================================================= |
133 |
System uname: |
134 |
Linux-4.8.17-hardened-r2-x86_64-Intel-R-_Xeon-TM-_CPU_3.60GHz-with-gentoo-2.3 |
135 |
KiB Mem: 8061620 total, 2699596 free |
136 |
KiB Swap: 0 total, 0 free |
137 |
Timestamp of repository gentoo: Sun, 06 Aug 2017 19:00:01 +0000 |
138 |
sh bash 4.3_p48-r1 |
139 |
ld GNU ld (Gentoo 2.28 p1.2) 2.28 |
140 |
app-shells/bash: 4.3_p48-r1::gentoo |
141 |
dev-lang/perl: 5.24.1-r2::gentoo |
142 |
dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo |
143 |
dev-util/pkgconfig: 0.28-r2::gentoo |
144 |
sys-apps/baselayout: 2.3::gentoo |
145 |
sys-apps/openrc: 0.28::gentoo |
146 |
sys-apps/sandbox: 2.10-r3::gentoo |
147 |
sys-devel/autoconf: 2.69::gentoo |
148 |
sys-devel/automake: 1.15-r2::gentoo |
149 |
sys-devel/binutils: 2.28-r2::gentoo |
150 |
sys-devel/gcc: 5.4.0-r3::gentoo |
151 |
sys-devel/gcc-config: 1.7.3::gentoo |
152 |
sys-devel/libtool: 2.4.6-r3::gentoo |
153 |
sys-devel/make: 4.2.1::gentoo |
154 |
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) |
155 |
sys-libs/glibc: 2.23-r4::gentoo |
156 |
Repositories: |
157 |
|
158 |
gentoo |
159 |
location: /usr/portage |
160 |
sync-type: rsync |
161 |
sync-uri: rsync://rsync.gentoo.org/gentoo-portage |
162 |
priority: -1000 |
163 |
|
164 |
ACCEPT_KEYWORDS="amd64" |
165 |
ACCEPT_LICENSE="* -@EULA" |
166 |
CBUILD="x86_64-pc-linux-gnu" |
167 |
CFLAGS="-O2 -pipe -fomit-frame-pointer -mcx16 -msahf -maes -mpclmul |
168 |
-mpopcnt -mabm -mlwp -mavx -march=native" |
169 |
CHOST="x86_64-pc-linux-gnu" |
170 |
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc |
171 |
/usr/share/gnupg/qualified.txt" |
172 |
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf |
173 |
/etc/gentoo-release /etc/sandbox.d /etc/terminfo" |
174 |
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -mcx16 -msahf -maes -mpclmul |
175 |
-mpopcnt -mabm -mlwp -mavx -march=native" |
176 |
DISTDIR="/usr/portage/distfiles" |
177 |
FCFLAGS="-O2 -pipe" |
178 |
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks |
179 |
ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs |
180 |
protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs |
181 |
unmerge-orphans userfetch userpriv usersandbox usersync xattr" |
182 |
FFLAGS="-O2 -pipe" |
183 |
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ |
184 |
ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/" |
185 |
LANG="en_US.utf8" |
186 |
LDFLAGS="-Wl,-O1 -Wl,--as-needed" |
187 |
MAKEOPTS="-j4" |
188 |
PKGDIR="/usr/portage/packages" |
189 |
PORTAGE_CONFIGROOT="/" |
190 |
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times |
191 |
--omit-dir-times --compress --force --whole-file --delete --stats |
192 |
--human-readable --timeout=180 --exclude=/distfiles --exclude=/local |
193 |
--exclude=/packages --exclude=/.git" |
194 |
PORTAGE_TMPDIR="/var/tmp" |
195 |
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri gdbm |
196 |
hardened iconv ipv6 justify modules multilib ncurses nls nptl openmp pam |
197 |
pax_kernel pcre pie readline seccomp session ssl ssp tcpd unicode urandom |
198 |
xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp |
199 |
atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 |
200 |
fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx |
201 |
via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb |
202 |
unixd actions alias auth_basic authn_alias authn_anon authn_dbm |
203 |
authn_default authn_file authz_dbm authz_default authz_groupfile authz_host |
204 |
authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate |
205 |
dir disk_cache env expires ext_filter file_cache filter headers include |
206 |
info log_config logio mem_cache mime mime_magic negotiation rewrite |
207 |
setenvif speling status unique_id userdir usertrack vhost_alias" |
208 |
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon |
209 |
braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool |
210 |
swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" |
211 |
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt |
212 |
gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore |
213 |
rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox |
214 |
ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" |
215 |
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb |
216 |
ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console |
217 |
presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" |
218 |
PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" |
219 |
PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" |
220 |
RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel |
221 |
nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock |
222 |
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee |
223 |
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" |
224 |
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, |
225 |
LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, |
226 |
PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON |
227 |
|
228 |
|
229 |
This is the second time I attempted this with the same behaviour. Please |
230 |
help. |
231 |
|
232 |
Thanks in Advance, |
233 |
|
234 |
Nick. |