GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That's a good start, however, since the breakage was somewhat important, I'd do this:
Code:
$ emerge -eva @system
Check the output and if there's nothing wrong go ahead. That should recompile the whole system set (it will take a while). The system set is the basic system, which is more-or-less what comes in the stage (but not exactly).
After that ends, if there's no problem, see this
Code:
gcc-config -l
See what compiler is set as system compiler (marked with an asterisk). If there's a newer one you might want to enable it. After that, if nothing fails (that'd surprise me greatly), do this to update your whole world, and ensure that everything is consistent
>>> Emerging (2 of 321) app-arch/bzip2-1.0.6-r3
* bzip2-1.0.6.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking bzip2-1.0.6.tar.gz to /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work
>>> Source unpacked in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work
>>> Preparing source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
* Applying bzip2-1.0.4-makefile-CFLAGS.patch ... [ ok ]
* Applying bzip2-1.0.6-saneso.patch ... [ ok ]
* Applying bzip2-1.0.4-man-links.patch ... [ ok ]
* Applying bzip2-1.0.6-progress.patch ... [ ok ]
* Applying bzip2-1.0.3-no-test.patch ... [ ok ]
* Applying bzip2-1.0.4-POSIX-shell.patch ... [ ok ]
* Applying bzip2-1.0.6-mingw.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
make -j3 CC=i686-pc-linux-gnu-gcc AR=i686-pc-linux-gnu-ar RANLIB=i686-pc-linux-gnu-ranlib -f Makefile-libbz2_so all
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c blocksort.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c huffman.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c crctable.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c randtable.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c compress.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c decompress.c
blocksort.c: In function 'mainSort':
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': function not considered for inlining [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': call is unlikely and code size would grow [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': call is unlikely and code size would grow [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c bzlib.c
i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -o bzip2-shared bzip2.c libbz2.so.1.0.6
bzip2.c: In function 'testStream':
bzip2.c:612:37: warning: variable 'nread' set but not used [-Wunused-but-set-variable]
bzip2.c: In function 'compress':
bzip2.c:1225:44: error: 'errno' undeclared (first use in this function)
bzip2.c:1225:44: note: each undeclared identifier is reported only once for each function it appears in
bzip2.c: In function 'uncompress':
bzip2.c:1414:44: error: 'errno' undeclared (first use in this function)
bzip2.c: In function 'testf':
bzip2.c:1594:44: error: 'errno' undeclared (first use in this function)
bzip2.c: In function 'applySavedFileAttrToOutputFile':
bzip2.c:1128:4: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result [-Wunused-result]
make: *** [all] Error 1
emake failed
* ERROR: app-arch/bzip2-1.0.6-r3::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2114: Called bemake '-f' 'Makefile-libbz2_so' 'all'
* environment, line 374: Called die
* The specific snippet of code:
* emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" "$@" || die
*
* If you need support, post the output of `emerge --info '=app-arch/bzip2-1.0.6-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-arch/bzip2-1.0.6-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment'.
* Working directory: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
* S: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
>>> Failed to emerge app-arch/bzip2-1.0.6-r3, Log file:
* ERROR: app-arch/bzip2-1.0.6-r3::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2114: Called bemake '-f' 'Makefile-libbz2_so' 'all'
* environment, line 374: Called die
* The specific snippet of code:
* emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" "$@" || die
*
* If you need support, post the output of `emerge --info '=app-arch/bzip2-1.0.6-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-arch/bzip2-1.0.6-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment'.
* Working directory: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
* S: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
I'll upload a bin package for binutils. It's one of these packages that won't work from another CHOST, so I am preparing one for i686. As soon as it's up I'll give you the link, then you can install like the others above.
That error might have something to do with binutils, we can't be sure though. But trying is for free.
By the way, once you install that, you can resume the last emerge operation by using "emerge --resume", as long as you didn't launch another emerge in the while.
You might also find useful to know that "emerge --resume --skipfirst" will skip the last package and continue from the next upwards.
ps. While I was writing it finished, so here you are:
It seems however, the compilation fails with the same error as before.
Weird, 2 packages just emerged and it is bzip2 to crash.
Code:
Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-libs/pam-1.1.6-r2
openpty failed: 'out of pty devices'
>>> Emerging (1 of 321) virtual/libintl-0
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/virtual/libintl-0/work
>>> Compiling source in /var/tmp/portage/virtual/libintl-0/work ...
>>> Source compiled.
>>> Test phase [not enabled]: virtual/libintl-0
>>> Install libintl-0 into /var/tmp/portage/virtual/libintl-0/image/ category virtual
>>> Completed installing libintl-0 into /var/tmp/portage/virtual/libintl-0/image/
>>> Installing (1 of 321) virtual/libintl-0
* checking 0 files for package collisions
>>> Merging virtual/libintl-0 to /
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> virtual/libintl-0 merged.
>>> Emerging (2 of 321) app-arch/bzip2-1.0.6-r3
* bzip2-1.0.6.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking bzip2-1.0.6.tar.gz to /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work
>>> Source unpacked in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work
>>> Preparing source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
* Applying bzip2-1.0.4-makefile-CFLAGS.patch ... [ ok ]
* Applying bzip2-1.0.6-saneso.patch ... [ ok ]
* Applying bzip2-1.0.4-man-links.patch ... [ ok ]
* Applying bzip2-1.0.6-progress.patch ... [ ok ]
* Applying bzip2-1.0.3-no-test.patch ... [ ok ]
* Applying bzip2-1.0.4-POSIX-shell.patch ... [ ok ]
* Applying bzip2-1.0.6-mingw.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
make -j3 CC=i686-pc-linux-gnu-gcc AR=i686-pc-linux-gnu-ar RANLIB=i686-pc-linux-gnu-ranlib -f Makefile-libbz2_so all
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c blocksort.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c huffman.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c crctable.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c randtable.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c compress.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c decompress.c
blocksort.c: In function 'mainSort':
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': function not considered for inlining [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': call is unlikely and code size would grow [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': call is unlikely and code size would grow [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c bzlib.c
i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -o bzip2-shared bzip2.c libbz2.so.1.0.6
bzip2.c: In function 'testStream':
bzip2.c:612:37: warning: variable 'nread' set but not used [-Wunused-but-set-variable]
bzip2.c: In function 'compress':
bzip2.c:1225:44: error: 'errno' undeclared (first use in this function)
bzip2.c:1225:44: note: each undeclared identifier is reported only once for each function it appears in
bzip2.c: In function 'uncompress':
bzip2.c:1414:44: error: 'errno' undeclared (first use in this function)
bzip2.c: In function 'testf':
bzip2.c:1594:44: error: 'errno' undeclared (first use in this function)
bzip2.c: In function 'applySavedFileAttrToOutputFile':
bzip2.c:1128:4: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result [-Wunused-result]
make: *** [all] Error 1
emake failed
* ERROR: app-arch/bzip2-1.0.6-r3::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2114: Called bemake '-f' 'Makefile-libbz2_so' 'all'
* environment, line 374: Called die
* The specific snippet of code:
* emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" "$@" || die
*
* If you need support, post the output of `emerge --info '=app-arch/bzip2-1.0.6-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-arch/bzip2-1.0.6-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment'.
* Working directory: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
* S: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
>>> Failed to emerge app-arch/bzip2-1.0.6-r3, Log file:
>>> '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/build.log'
* Messages for package app-arch/bzip2-1.0.6-r3:
* ERROR: app-arch/bzip2-1.0.6-r3::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2114: Called bemake '-f' 'Makefile-libbz2_so' 'all'
* environment, line 374: Called die
* The specific snippet of code:
* emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" "$@" || die
*
* If you need support, post the output of `emerge --info '=app-arch/bzip2-1.0.6-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-arch/bzip2-1.0.6-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment'.
* Working directory: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
* S: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
* GNU info directory index is up-to-date.
* IMPORTANT: 5 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
[32;01m * [39;49;00mPackage: app-arch/bzip2-1.0.6-r3
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: base-system@gentoo.org
[32;01m * [39;49;00mUSE: abi_x86_32 elibc_glibc kernel_linux userland_GNU x86
[32;01m * [39;49;00mFEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking bzip2-1.0.6.tar.gz to /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work
>>> Source unpacked in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work
>>> Preparing source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
[32;01m*[0m Applying bzip2-1.0.4-makefile-CFLAGS.patch ...
[A[106C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying bzip2-1.0.6-saneso.patch ...
[A[106C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying bzip2-1.0.4-man-links.patch ...
[A[106C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying bzip2-1.0.6-progress.patch ...
[A[106C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying bzip2-1.0.3-no-test.patch ...
[A[106C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying bzip2-1.0.4-POSIX-shell.patch ...
[A[106C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying bzip2-1.0.6-mingw.patch ...
[A[106C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6 ...
make -j3 CC=i686-pc-linux-gnu-gcc AR=i686-pc-linux-gnu-ar RANLIB=i686-pc-linux-gnu-ranlib -f Makefile-libbz2_so all
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c blocksort.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c huffman.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c crctable.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c randtable.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c compress.c
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c decompress.c
blocksort.c: In function 'mainSort':
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': function not considered for inlining [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': call is unlikely and code size would grow [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
blocksort.c:347:6: warning: inlining failed in call to 'mainGtU.part.0': call is unlikely and code size would grow [-Winline]
blocksort.c:751:6: warning: called from here [-Winline]
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -c bzlib.c
i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -O2 -march=native -pipe -fpic -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64 -o bzip2-shared bzip2.c libbz2.so.1.0.6
bzip2.c: In function 'testStream':
bzip2.c:612:37: warning: variable 'nread' set but not used [-Wunused-but-set-variable]
bzip2.c: In function 'compress':
bzip2.c:1225:44: error: 'errno' undeclared (first use in this function)
bzip2.c:1225:44: note: each undeclared identifier is reported only once for each function it appears in
bzip2.c: In function 'uncompress':
bzip2.c:1414:44: error: 'errno' undeclared (first use in this function)
bzip2.c: In function 'testf':
bzip2.c:1594:44: error: 'errno' undeclared (first use in this function)
bzip2.c: In function 'applySavedFileAttrToOutputFile':
bzip2.c:1128:4: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result [-Wunused-result]
make: *** [all] Error 1
emake failed
[31;01m*[0m ERROR: app-arch/bzip2-1.0.6-r3::gentoo failed (compile phase):
[31;01m*[0m (no error message)
[31;01m*[0m
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 93: Called src_compile
[31;01m*[0m environment, line 2114: Called bemake '-f' 'Makefile-libbz2_so' 'all'
[31;01m*[0m environment, line 374: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" "$@" || die
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=app-arch/bzip2-1.0.6-r3::gentoo'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=app-arch/bzip2-1.0.6-r3::gentoo'`.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment'.
[31;01m*[0m Working directory: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
[31;01m*[0m S: '/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
That's my same sys-devel/gcc version, so I uploaded a binary package.
If glibc is 2.17, then just pick those and install them. The sys-libs/glibc absolutely must match, so, if it's even slightly different, don't install my 2.17 package. Installing a different glibc from the stage is probably what started all of this, so be careful... Note that the "errno.h" file that appears mentioned in the bzip2 error is part of the standard glibc library, so it's very likely that the problem is due to mismatching components. If your glibc is some other version, you will need a binary package for that concrete version.
After that, just to be sure, use "gcc-config -l" to check that that's the only compiler, and re-set it using "gcc-config 1". To be on the safe side do also this:
Code:
$ env-update
$ source /etc/profile
Then cross your fingers and try to emerge bzip2 again.
In case that doesn't work, just download this bzip2 binary, and install it. Then do the emerge -e world thing, and if bzip2 fails again just use --resume --skipfirst. Maybe you've just hit a rare bzip2 bug and the rest will compile ok.
ps. My packages are a bit big because I have debug symbols enabled. But don't worry, they won't slow down your system because the debug stuff is split from the binaries. Anyway, that will go away as soon as you are able to recompile them yourself.
I'm not a programmer myself but it seems glibs complains abaou some main directories missing.
Maybe I should run
Quote:
emerge -Kva
from /root ?
Quote:
>>> Extracting info
[32;01m * [39;49;00mPackage: sys-libs/glibc-2.17
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mUSE:
[32;01m * [39;49;00mFEATURES: preserve-libs sandbox userpriv usersandbox
>>> Extracting sys-libs/glibc-2.17
[32;01m*[39;49;00m checking 1693 files for package collisions
1000 files checked ...
>>> Merging sys-libs/glibc-2.17 to /
sed: can't read /home/tmp/portage/sys-libs/glibc-2.17/image//etc/host.conf: No such file or directory
[32;01m*[0m Defaulting /etc/host.conf:multi to on
/var/tmp/portage/sys-libs/glibc-2.17/temp/environment: line 2410: pushd: /home/tmp/portage/sys-libs/glibc-2.17/image//lib: No such file or directory
/var/tmp/portage/sys-libs/glibc-2.17/temp/environment: line 2418: ./ld-*.so: No such file or directory
[31;01m*[0m ERROR: sys-libs/glibc-2.17::gentoo failed (preinst phase):
[31;01m*[0m simple run test (/bin/date) failed
[31;01m*[0m
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 93: Called pkg_preinst
[31;01m*[0m environment, line 3111: Called eblit-run 'pkg_preinst'
[31;01m*[0m environment, line 982: Called eblit-glibc-pkg_preinst
[31;01m*[0m environment, line 796: Called glibc_sanity_check
[31;01m*[0m environment, line 2418: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m ./ld-*.so --library-path . ${x} > /dev/null || die "simple run test (${x}) failed";
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=sys-libs/glibc-2.17::gentoo'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.17::gentoo'`.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.17/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.17/temp/environment'.
[31;01m*[0m Working directory: '/'
[31;01m*[0m S: '/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17'
!!! FAILED preinst: 1
Yes. Binary package usually don't include files under /etc for security reasons. I'll try to upload a new package soon. It'll take a bit because it's big and my upload speed is not so good.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.