Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 84748 - emerge binutils crashed -
Summary: emerge binutils crashed -
Status: RESOLVED DUPLICATE of bug 84707
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-10 06:27 UTC by Christian Häßler
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Häßler 2005-03-10 06:27:07 UTC
Hi, 

while i was trying to make an emerger -uD world i get an error on binutils. But i don't habe the error message here. I have only the error message (it is nearly the same) from gcc:

./configure --prefix=/usr --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --datadir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2 --infodir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/info --mandir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/man --bindir=/usr/i686-pc-linux-gnu/binutils-bin/2.15.92.0.2 --libdir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2 --libexecdir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2 --includedir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2/include --enable-shared --enable-64-bit-bfd --without-included-gettext
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc -march=athlon-xp -O2 -pipe -fstack-protector ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: sys-devel/binutils-2.15.92.0.2-r5 failed.
!!! Function toolchain-binutils_src_compile, Line 108, Exitcode 1
!!! configure failed
!!! If you need support, post the topmost build error, NOT this status message.

after that i have installed the binaries (gcc an glibc) from http://dev.gentoo.org/~avenj/bins/i686/

But none of them helps. Now i have this error on removing binutils

pcjunior junior # emerge binutils
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/binutils-2.15.92.0.2-r5 to /
>>> md5 src_uri ;-) binutils-2.15.92.0.2.tar.bz2
>>> md5 src_uri ;-) binutils-2.15.92.0.2-patches-1.6.tar.bz2
>>> md5 src_uri ;-) binutils-2.15.92.0.2-uclibc-patches-1.1.tar.bz2
>>> Unpacking source...
>>> Unpacking binutils-2.15.92.0.2.tar.bz2 to /var/tmp/portage/binutils-2.15.92.0.2-r5/work
>>> Unpacking binutils-2.15.92.0.2-patches-1.6.tar.bz2 to /var/tmp/portage/binutils-2.15.92.0.2-r5/work
>>> Unpacking binutils-2.15.92.0.2-uclibc-patches-1.1.tar.bz2 to /var/tmp/portage/binutils-2.15.92.0.2-r5/work
 * Applying various patches (bugfixes/updates) ...
 *   02_all_binutils-2.15.92.0.2-ltconfig-multilib.patch.bz2 ...                                                       [ ok ] *   03_all_binutils-2.15.92.0.2-ppc64-pie.patch.bz2 ...                                                               [ ok ] *   04_all_binutils-2.15.92.0.2-place-orphan.patch.bz2 ...                                                            [ ok ] *   05_all_binutils-2.15-elf32-arm-textrel.patch.bz2 ...                                                              [ ok ] *   05_all_binutils-2.15.92.0.2-relro-fix.patch.bz2 ...                                                               [ ok ] *   07_all_binutils-2.15.92.0.2-elfvsb-test.patch.bz2 ...                                                             [ ok ] *   23_all_binutils-2.15.90.0.1.1-rev-variable-page-size-support.patch.bz2 ...                                        [ ok ] *   53_all_gcc4-lovin.patch.bz2 ...                                                                                   [ ok ] *   61_all_binutils-001_libiberty-nolimits.patch.bz2 ...                                                              [ ok ] *   63_all_binutils-2.15.91.0.2-pt-pax-flags-200410091215.patch.bz2 ...                                               [ ok ] *   70_all_binutils_x86_64_testsuite.patch.bz2 ...                                                                    [ ok ] *   72_all_skip-comments.patch.bz2 ...                                                                                [ ok ] *   73_all_x86-64-gotpcrel.patch.bz2 ...                                                                              [ ok ] *   76_all_use-new-ld-dtags.patch.bz2 ...                                                                             [ ok ] *   91_all_libiberty-pic.patch.bz2 ...                                                                                [ ok ] * Done with patching
 * Applying various patches (bugfixes/updates) ...
 *   52_all_binutils-20041010-uclibc-100-conf.patch.bz2 ...                                                            [ ok ] * Done with patching
 * Using GNU config files from /usr/share/gnuconfig
 *  Updating config.sub                                                                                                [ ok ] *  Updating config.guess                                                                                              [ ok ] * Patching ${S}/ltmain.sh ...
 *   Applying portage-1.4.1.patch ...
 *   Applying relink-1.4.0a-GCC3.0-2.patch ...
 *   Applying sed-1.4.3.patch ...
 *   Applying tmp-1.3.5.patch ...
>>> Source unpacked.
./configure --prefix=/usr --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --datadir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2 --infodir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/info --mandir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/man --bindir=/usr/i686-pc-linux-gnu/binutils-bin/2.15.92.0.2 --libdir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2 --libexecdir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2 --includedir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2/include --enable-shared --enable-64-bit-bfd --without-included-gettext
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc -march=athlon-xp -O2 -pipe -fstack-protector ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: sys-devel/binutils-2.15.92.0.2-r5 failed.
!!! Function toolchain-binutils_src_compile, Line 108, Exitcode 1
!!! configure failed
!!! If you need support, post the topmost build error, NOT this status message.

pcjunior junior #


i know my description is not really good but i hope you can help me

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




pcjunior junior # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3,
glibc-2.3.4.20040808-r0, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.5 [2.3.5 (#1,
Feb 18 2005, 18:06:53)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r3
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="german"
LC_ALL="de_DE.UTF-8"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apm avi berkdb bitmap-fonts bonobo bsh cdr clamav
crypt cups curl dga directfb dnd dvd emboss encode esd ethereal fam fbdev fbvon
ffmpeg flac flash font-server foomaticdb fortran gb gdbm gif gimp gnome gnome2
gpg gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java
jpeg ldap libg++ libwww mad maildir mikmod mmx motif mozilla moznocompose
moznoirc moznomail mozsvg mp3 mpeg mplayermoznomail msing ncurses nls oggvorbis
opengl openssh openssl oss pam pdflib perl php png python qt quicktime readline
samba sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff transcode
truetype truetype-fonts type1-fonts unicode wmf xchattext xface xine xml xml2
xmms xv zlib video_cards_nvidia"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Peter S. Mazinger 2005-03-10 06:32:46 UTC
remove -fstack-protector from CFLAGS, you should USE="hardened"
Comment 2 SpanKY gentoo-dev 2005-03-10 07:26:04 UTC
post the config.log from the build directory
Comment 3 Christian Häßler 2005-03-10 09:43:10 UTC
------- Additional Comment #1 From Peter S. Mazinger  2005-03-10 06:32 PST -------
remove -fstack-protector from CFLAGS, you should USE="hardened"

i hade done it, but it don't works

------ Additional Comment #2 From SpanKY  2005-03-10 07:26 PST -------
post the config.log from the build directory

Sorry, but i don't know where the build directory is. 
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-03-11 10:20:33 UTC
That binutils had the broken GCC4 patch in it I believe.  `as' is probably segfaulting.

Christian, the build directory would be /var/tmp/portage/binutils-2.15.92.0.2-r5/work/build  Look in the config log there to see if `as' is segfaulting.  If it is, you'll need to emerge a binary package of binutils before you have a working build environment.
Comment 5 Christian Häßler 2005-03-11 11:14:08 UTC
i hade installed a binary now and then i emerged the binutils again.

But i can't emerge gcc anyway (get the following error:)

pcjunior / # USE="hardened" emerge gcc
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/gcc-3.4.3.20050110 to /
>>> md5 src_uri ;-) gcc-3.4.3.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.3-branch-update-20050110.patch.bz2
>>> md5 src_uri ;-) protector-3.4.3.20050110-0.tar.gz
>>> md5 src_uri ;-) gcc-3.4.3-manpages.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.3-patches-1.1.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.3-piepatches-v8.7.7.tar.bz2
>>> Unpacking source...
>>> Unpacking gcc-3.4.3.tar.bz2 to /var/tmp/portage/gcc-3.4.3.20050110/work
 * Applying gcc-3.4.3-branch-update-20050110.patch.bz2 ...                                                             [ ok ]>>> Unpacking gcc-3.4.3-patches-1.1.tar.bz2 to /var/tmp/portage/gcc-3.4.3.20050110/work
>>> Unpacking protector-3.4.3.20050110-0.tar.gz to /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3
>>> Unpacking gcc-3.4.3-piepatches-v8.7.7.tar.bz2 to /var/tmp/portage/gcc-3.4.3.20050110/work
 * Applying various patches (bugfixes/updates) ...
 *   02_all_gcc34-ice-hack.patch.bz2 ...                                                                               [ ok ] *   03_all_gcc34-ppc64-m32-m64-multilib-only.patch.bz2 ...                                                            [ ok ] *   04_all_gcc34-java-nomulti.patch.bz2 ...                                                                           [ ok ] *   05_all_gcc34-ia64-libunwind.patch.bz2 ...                                                                         [ ok ] *   06_all_gcc34-ppc64-pr17751.patch.bz2 ...                                                                          [ ok ] *   07_all_gcc34-gnuc-rh-release.patch.bz2 ...                                                                        [ ok ] *   08_all_gcc34-chk.patch.bz2 ...                                                                                    [ ok ] *   09_all_gcc34-pr18282.patch.bz2 ...                                                                                [ ok ] *   10_all_gcc34-cc1-non-existent-ice.patch.bz2 ...                                                                   [ ok ] *   11_all_gcc34-ia64-sibcall-unw.patch.bz2 ...                                                                       [ ok ] *   12_all_gcc34-strict_low_part.patch.bz2 ...                                                                        [ ok ] *   20_all_gcc34-visibility1.patch.bz2 ...                                                                            [ ok ] *   21_all_gcc34-visibility2-20041025.patch.bz2 ...                                                                   [ ok ] *   22_all_gcc34-visibility3.patch.bz2 ...                                                                            [ ok ] *   30_all_gcc34-arm-ldm-peephole.patch.bz2 ...                                                                       [ ok ] *   31_all_gcc34-arm-ldm.patch.bz2 ...                                                                                [ ok ] *   32_all_sdk-libstdc++-includes.patch.bz2 ...                                                                       [ ok ] *   33_all_pr15068-fix.patch.bz2 ...                                                                                  [ ok ] *   34_all_arm-bigendian.patch.bz2 ...                                                                                [ ok ] *   50_all_gcc-3.4.0-posix-1.patch.bz2 ...                                                                            [ ok ] *   51_all_gcc-3.4-libiberty-pic.patch.bz2 ...                                                                        [ ok ] *   53_all_c-decl-rename-builtin.patch.bz2 ...                                                                        [ ok ] *   90_all_uclibc-conf.patch.bz2 ...                                                                                  [ ok ] *   91_all_uclibc-locale.patch.bz2 ...                                                                                [ ok ] * Done with patching
 * Applying gcc_3.4.3.20050110.dif ...                                                                                 [ ok ]gcc: installation problem, cannot exec `as': No such file or directory
/usr/portage/eclass/toolchain.eclass: line 429: readelf: command not found
 * Applying various patches (bugfixes/updates) ...
 *   00_all_gcc-4.0-cvs-incompat.patch.bz2 ...                                                                         [ ok ] *   00_all_gcc-4.0-cvs-mips-pic-for-3.4.3.patch.bz2 ...                                                               [ ok ] *   00_all_gcc-4.0-cvs-pic.patch.bz2 ...                                                                              [ ok ] *   00_all_gcc-4.0-cvs-start_endfile-for-3.4.3.patch.bz2 ...                                                          [ ok ] *   03_all_gcc-3.4.0-v8.7.6.1-pie-arm.patch.bz2 ...                                                                   [ ok ] *   04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 ...                                                            [ ok ] * Done with patching
 * Applying various patches (bugfixes/updates) ...
 *   02_all_gcc-3.4.3-v8.7.1-pie-rs6000-nondefault.patch.bz2 ...                                                       [ ok ] *   02_all_gcc-3.4.3-v8.7.6.7-pie-sparc-nondefault.patch.bz2 ...                                                      [ ok ] * Done with patching
 * Applying various patches (bugfixes/updates) ...
 *   00_all_gcc-3.4.3-v8.7.6.7-incompat-default.patch.bz2 ...                                                          [ ok ] *   01_all_gcc-3.4.3-v8.7.7-pie-generic-default.patch.bz2 ...                                                         [ ok ] *   02_all_gcc-3.4.3-v8.7.6.7-pie-alpha-default.patch.bz2 ...                                                         [ ok ] *   02_all_gcc-3.4.3-v8.7.6.7-pie-arm-default.patch.bz2 ...                                                           [ ok ] *   02_all_gcc-3.4.3-v8.7.6.7-pie-ia64-default.patch.bz2 ...                                                          [ ok ] *   02_all_gcc-3.4.3-v8.7.6.7-pie-rs6000-default.patch.bz2 ...                                                        [ ok ] *   02_all_gcc-3.4.3-v8.7.6.7-pie-sparc-default.patch.bz2 ...                                                         [ ok ] * Done with patching
 * updating configuration to build hardened GCC
 * Updating gcc to use automatic PIE + SSP building ...
 * patching gcc version: 3.4.3-20050110 (Gentoo Hardened Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7)
 * Patching ${S}/ltmain.sh ...
 *   Applying portage-1.4.1.patch ...
 *   Applying relink-1.4.0a-GCC3.0-2.patch ...
 *   Applying sed-1.4.3.patch ...
 *   Applying tmp-1.3.5.patch ...
 * Using GNU config files from /usr/share/gnuconfig
 *  Updating config.sub                                                                                                [ ok ] *  Updating boehm-gc/config.sub                                                                                       [ ok ] *  Updating libjava/libltdl/config.sub                                                                                [ ok ] *  Updating config.guess                                                                                              [ ok ] *  Updating boehm-gc/config.guess                                                                                     [ ok ] *  Updating libjava/libltdl/config.guess                                                                              [ ok ] * Applying gcc34-reiser4-fix.patch ...                                                                                [ ok ] * Applying gcc-spec-env.patch ...                                                                                     [ ok ] * Applying 810-arm-bigendian-uclibc.patch ...                                                                         [ ok ] * Applying gcc34-m32-no-sse2.patch ...                                                                                [ ok ] * Applying gcc34-fix-sse2_pinsrw.patch ...                                                                            [ ok ] * Applying gcc-3.4.3-cross-compile.patch ...                                                                          [ ok ]>>> Source unpacked.
 * CFLAGS="-march=athlon-xp -O2 -pipe"
 * CXXFLAGS="-march=athlon-xp -O2 -pipe"
 * Configuring gcc ...
QA Notice: USE Flag 'altivec' not in IUSE for sys-devel/gcc-3.4.3.20050110
 * running gcc-compiler-configure
 * The f95 language is not supported by this release of gcc
 * configuring for GCC_LANG: c,c++,f77

 * PREFIX:          /usr
 * BINPATH:         /usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110
 * LIBPATH:         /usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110
 * DATAPATH:        /usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110
 * STDCXX_INCDIR:   /usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3

 * Configuring GCC with: --enable-version-specific-runtime-libs                 --prefix=/usr           --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110               --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include          --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110           --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110/man            --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110/info             --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu                 --with-system-zlib              --disable-checking           --disable-werror                --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix

creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)
gcc: installation problem, cannot exec `as': No such file or directory
conftest.c:1: fatal error: error closing -: Broken pipe
compilation terminated.
The bug is not reproducible, so it is likely a hardware or OS problem.
*** The command 'gcc -o conftest -march=athlon-xp -O2 -pipe   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: sys-devel/gcc-3.4.3.20050110 failed.
!!! Function gcc_do_configure, Line 1046, Exitcode 1
!!! failed to run configure
!!! If you need support, post the topmost build error, NOT this status message.
Comment 6 SpanKY gentoo-dev 2005-03-12 14:54:01 UTC

*** This bug has been marked as a duplicate of 84707 ***