I have a server with 2 p4 HT CPU so i set the -j flag in /etc/make.conf to -j5. binutils package fails to compile. If i use -j1 flag it compiles ok. These are the flags: CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" # CFLAGS="-O2 -mcpu=pentium4" CHOST="i686-pc-linux-gnu" USE="acpi -gpm X kde qt sse crypt " CXXFLAGS="${CFLAGS}" MAKEOPTS="-j5" ACCEPT_KEYWORDS="~x86" Reproducible: Always Steps to Reproduce: 1. set ACCEPT_KEYWORDS="~x86" 2. set -j5 flag 3. emerge binutils Actual Results: it failed to compile Expected Results: it should compile cleanly gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./../bfd -I./../include -I./../intl -I../intl
I have a server with 2 p4 HT CPU so i set the -j flag in /etc/make.conf to -j5. binutils package fails to compile. If i use -j1 flag it compiles ok. These are the flags: CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" # CFLAGS="-O2 -mcpu=pentium4" CHOST="i686-pc-linux-gnu" USE="acpi -gpm X kde qt sse crypt " CXXFLAGS="${CFLAGS}" MAKEOPTS="-j5" ACCEPT_KEYWORDS="~x86" Reproducible: Always Steps to Reproduce: 1. set ACCEPT_KEYWORDS="~x86" 2. set -j5 flag 3. emerge binutils Actual Results: it failed to compile Expected Results: it should compile cleanly gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./../bfd -I./../include -I./../intl -I../intl -O2 -march=pentium4 -fomit-frame-pointer -pipe -DLOCALEDIR="\"/usr/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -march=pentium4 -fomit-frame-pointer -pipe -c ei386linux.c make[3]: *** read jobs pipe: Bad address. Stop. make[3]: *** Waiting for unfinished jobs.... make[3]: *** read jobs pipe: Bad address. Stop. make[3]: *** Waiting for unfinished jobs.... make[3]: *** read jobs pipe: Bad address. Stop. make[3]: *** Waiting for unfinished jobs.... rm -f ld.pod make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/ld' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/ld' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/ld' make: *** [all-ld] Error 2 make: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/gas' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/gas' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/gas' make: *** [all-gas] Error 2 make[3]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/binutils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/binutils' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.8-r1/work/binutils-2.14.90.0.8/binutils' make: *** [all-binutils] Error 2 !!! ERROR: sys-devel/binutils-2.14.90.0.8-r1 failed. !!! Function src_compile, Line 86, Exitcode 2 !!! (no error message)
do you get this during stage compile ?
I installed gentoo without any problems. Then I decided to add ACCEPT_KEYWORDS="~x86" flag and emerge system to upgrade packages. Then I got this error.
try emerge -ep system and see which packages it needs to upgrade before binutils
Ok. Here it is: --------------------------------------------------- root@cluster linux # emerge -ep binutils These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] sys-devel/gnuconfig-20040214 [ebuild N ] sys-devel/patch-2.5.9 [ebuild N ] sys-devel/libtool-1.5.2-r5 [ebuild N ] sys-libs/ncurses-5.4-r1 [ebuild N ] sys-devel/gettext-0.12.1-r1 [ebuild N ] sys-devel/m4-1.4-r1 [ebuild N ] sys-devel/bison-1.875 [ebuild N ] sys-apps/sed-4.0.9 [ebuild N ] sys-apps/texinfo-4.6 [ebuild N ] sys-libs/zlib-1.2.1-r2 [ebuild N ] dev-python/python-fchksum-1.7.1 [ebuild N ] app-arch/bzip2-1.0.2-r3 [ebuild N ] sys-libs/db-4.1.25_p1-r3 [ebuild N ] sys-apps/groff-1.19 [ebuild N ] sys-apps/cronbase-0.2.1-r3 [ebuild N ] sys-apps/man-1.5m [ebuild N ] sys-libs/db-1.85-r1 [ebuild N ] sys-libs/gdbm-1.8.0-r5 [ebuild N ] sys-devel/libperl-5.8.3 [ebuild N ] dev-lang/perl-5.8.3 [ebuild N ] sys-devel/autoconf-2.59-r3 [ebuild N ] sys-devel/automake-1.8.3 [ebuild N ] dev-perl/Locale-gettext-1.01-r1 [ebuild N ] sys-apps/help2man-1.33.1 [ebuild N ] sys-apps/coreutils-5.2.0 [ebuild N ] sys-apps/debianutils-1.16.7-r4 [ebuild N ] app-shells/bash-2.05b-r9 [ebuild N ] sys-libs/readline-4.3-r5 [ebuild N ] dev-libs/openssl-0.9.7d [ebuild N ] dev-libs/expat-1.95.7 [ebuild N ] dev-lang/python-2.3.3 [ebuild N ] sys-apps/portage-2.0.50-r1 *** Please update portage to the above version before proceeding. Failure to do so may result in failed or improper merges. A simple 'emerge -u portage' is sufficient. [ebuild N ] sys-devel/gcc-config-1.3.5 [ebuild N ] sys-devel/gcc-3.3.3 [ebuild N ] sys-apps/gawk-3.1.3-r1 [ebuild N ] sys-kernel/linux-headers-2.4.22 [ebuild N ] app-crypt/hashalot-0.2.0 [ebuild N ] sys-devel/flex-2.5.4a-r5 [ebuild N ] dev-libs/glib-1.2.10-r5 [ebuild N ] sys-apps/miscfiles-1.3-r1 [ebuild N ] sys-libs/cracklib-2.7-r8 [ebuild N ] sys-libs/pam-0.77-r1 [ebuild N ] sys-apps/shadow-4.0.4.1 [ebuild N ] sys-apps/pam-login-3.14 [ebuild N ] sys-apps/util-linux-2.12-r4 [ebuild N ] sys-apps/baselayout-1.8.6.13-r1 [ebuild N ] sys-libs/glibc-2.3.3_pre20040207 [ebuild N ] sys-devel/binutils-2.14.90.0.8-r1
Ok I've done some more testing. This problem is only with the 2.4.22-openmosix-r4 kernel. When I run 2.4.25-openmosix-r2 all is fine so It may be somehow kernel related. Also odd thing (with 2.4.22 om kernel) is that emerge something often hangs when tar & bunzip packages... in top tool I just see that after random amount of time bunzip disappears and there is no cpu load but emerge is running "forever" with no effect. (See attachment for emerge info)
Created attachment 28267 [details] this is some additional info from emerge info
could you attach your kernel config for openmosix ?
Created attachment 28270 [details] .config file for 2.4.22-om-r4 kernel
that's known oM problem. try .27-r2 or disable job migrating during compiling/emerging (`mosrun -h emerge -e world`, for example) and btw, there is no any (official or not) .25 openmosix kernel patches.
not a bug in binutils