| View previous topic :: View next topic |
| Author |
Message |
swann25 n00b

Joined: 04 Dec 2006 Posts: 50 Location: Bucharest, Romania
|
Posted: Tue Jan 09, 2007 10:50 am Post subject: Emerge gcc-4.1.1-r3 failed |
|
|
I have gcc-4.1.1
| Code: |
Using built-in specs.
Target: i386-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i386-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i386-pc-linux-gnu/4.1.1/include/g++-v4 --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r1)
|
I tried to emerge gcc-4.1.1-r3 but I've got this error after a while:
| Code: |
include -I/var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/../libcpp/include /var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/c-lex.c -o c-lex.o
/var/tmp/portage/gcc-4.1.1-r3/temp/ccki8xEe.s: Assembler messages:
/var/tmp/portage/gcc-4.1.1-r3/temp/ccki8xEe.s:2969: Error: invalid sections for operation on `.LCFI22' and `.LCFI21'
/var/tmp/portage/gcc-4.1.1-r3/temp/ccki8xEe.s:3038: Error: invalid sections for operation on `.LCFI38' and `.LCFI37'
/var/tmp/portage/gcc-4.1.1-r3/temp/ccki8xEe.s:3232: Error: invalid sections for operation on `.LCFI76' and `.LCFI75'
/var/tmp/portage/gcc-4.1.1-r3/temp/ccki8xEe.s:3269: Error: invalid sections for operation on `.LCFI83' and `.LCFI82'
make[2]: *** [c-lex.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r3/work/build/gcc'
make[1]: *** [stagefeedback_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r3/work/build/gcc'
make: *** [profiledbootstrap] Error 2
!!! ERROR: sys-devel/gcc-4.1.1-r3 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
ebuild.sh, line 1255: Called toolchain_src_compile
toolchain.eclass, line 24: Called gcc_src_compile
toolchain.eclass, line 1537: Called gcc_do_make
toolchain.eclass, line 1411: Called die
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
emerge --info
| Code: |
Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r4 i686)
=================================================================
System uname: 2.6.18-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.6
Last Sync: Tue, 09 Jan 2007 08:20:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://lug.mtu.edu/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.lug.ro/gentoo http://ftp.lug.ro/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ ftp://ftp.roedu.net/pub/mirrors/gentoo.org/ ftp://ftp.romnet.org/gentoo/ http://ftp.romnet.org/gentoo/ http://mirror.etf.bg.ac.yu/gentoo ftp://mirror.etf.bg.ac.yu/gentoo/ "
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 apm arts berkdb bitmap-fonts bzip2 cli cracklib crypt cups dlloader eds elibc_glibc emboss encode esd flac flash font-server foomaticdb gdbm gif gnome gstreamer gtk gtk2 hal iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kdeenablefinal kernel_linux libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptonly ogg opengl oss pam pcre png pppd qt3 qt4 quicktime readline reflection samba sdl session spell spl sse ssl tiff truetype truetype-fonts type1-fonts udev userland_GNU video_cards_i810 video_cards_vga vorbis xml xorg xscreensaver xv zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
|
/etc/make.conf
| Code: |
CFLAGS="-O2 -mtune=i686 -pipe"
FEATURES="parallel-fetch ccache"
CHOST="i586-pc-linux-gnu"
CXXFLAGS="-O2 -mtune=i686 -pipe"
MAKEOPTS="-j1"
USE="nptl nptonly bzip2 flash font-server hal kdeenablefinal mmx samba sse tiff
xscreensaver flac -dri -fortran -gpm -ipv6 -perl -python -tcpd
-xmms"
INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="vga i810"
PORTDIR_OVERLAY="/usr/local/portage"
|
Could anyone help me? Thank you. |
|
| Back to top |
|
 |
loki_val Retired Dev

Joined: 13 Nov 2006 Posts: 418 Location: Denmark
|
Posted: Tue Jan 09, 2007 11:54 am Post subject: |
|
|
Looks to me like you've hit an unfixed bug in Gentoo's gcc.
This is the unfixed bug. I have checked our tarballs. gcc-4.1.1-r3 does not have this fix: | Code: | loki gcc # cat dwarf2out.c|grep -A 10 "\/\*\ Set the location counter to the new label. \*\/"
/* Set the location counter to the new label. */
xcfi = new_cfi ();
xcfi->dw_cfi_opc = DW_CFA_advance_loc4;
xcfi->dw_cfi_oprnd1.dw_cfi_addr = label;
add_cfi (&fde->dw_fde_cfi, xcfi);
}
add_cfi (&fde->dw_fde_cfi, cfi);
} |
Nor, apparently, do any of the patches in the patches tarball.
I will file a bug.
EDIT: Bug filed |
|
| Back to top |
|
 |
loki_val Retired Dev

Joined: 13 Nov 2006 Posts: 418 Location: Denmark
|
Posted: Tue Jan 09, 2007 12:55 pm Post subject: |
|
|
| Bug closed. Jakub sure is efficient. There's a workaround, though. Change the chost variable in make.conf to i686 from i586, since this is an issue that only seems to affect i586 and below. But that would mean first changing your chost, then going through the steps (including compiling world) to make sure of no ill effects and THEN upgrading to the new compiler version. Or you can just mask the new gcc and wait for 4.1.2, since that includes the fix. Or even upgrade to 4.2. I hear it's stable-ish. |
|
| Back to top |
|
 |
swann25 n00b

Joined: 04 Dec 2006 Posts: 50 Location: Bucharest, Romania
|
Posted: Tue Jan 09, 2007 1:25 pm Post subject: |
|
|
| Thank you, I think I'll wait for 4.1.2 |
|
| Back to top |
|
 |
piggie Tux's lil' helper


Joined: 01 Jan 2003 Posts: 113 Location: Sydney, Australia
|
Posted: Mon Jan 15, 2007 12:18 am Post subject: |
|
|
I get a different error when trying to compile:
| Code: |
In file included from insn-conditions.c:38:
/var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/flags.h:30: error: expected identifier before numeric constant
/var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/config/i386/i386.md:19822: warning: string length '903' is greater than the length '509' ISO C89 compilers are required to support
/var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/gcc/config/i386/i386.md:7887: warning: string length '510' is greater than the length '509' ISO C89 compilers are required to support
make[2]: *** [build/insn-conditions.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r3/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r3/work/build/gcc'
make: *** [profiledbootstrap] Error 2
!!! ERROR: sys-devel/gcc-4.1.1-r3 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
ebuild.sh, line 1255: Called toolchain_src_compile
toolchain.eclass, line 24: Called gcc_src_compile
toolchain.eclass, line 1537: Called gcc_do_make
toolchain.eclass, line 1411: Called die
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
| Code: | emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.16-gentoo-r12 i686)
=================================================================
System uname: 2.6.16-gentoo-r12 i686 Intel(R) Xeon(TM) CPU 2.00GHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 14 Jan 2007 22:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.4.19-r1, 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -ffast-math -mfpmath=sse,387 -DNO_DEBUG -DG_DISABLE_ASSERT -DNDEBUG"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -ffast-math -mfpmath=sse,387 -DNO_DEBUG -DG_DISABLE_ASSERT -DNDEBUG"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo http://ftp.swin.edu.au/gentoo ftp://mirror.pacific.net.au/linux/Gentoo/ http://mirror.pacific.net.au/linux/Gentoo/"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 apm arts berkdb bitmap-fonts cli cracklib crypt cups dlloader dri eds elibc_glibc emboss encode esd foomaticdb fortran gd gdbm gif gpm gstreamer gtk2 iconv imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kde kerberos kernel_linux ldap libclamav libg++ libwww linguas_en mad mikmod motif mp3 mpeg mysql ncurses netpbm nls nptl nptlonly ogg opengl oss pam pcre pdf perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl svgalib tcpd truetype truetype-fonts type1-fonts udev userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis xml xorg xv zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
Anyone seen this one, or should I file a bug? |
|
| Back to top |
|
 |
loki_val Retired Dev

Joined: 13 Nov 2006 Posts: 418 Location: Denmark
|
Posted: Mon Jan 15, 2007 7:52 am Post subject: |
|
|
I'd fix your CFlags & CXXFlags before filing a bug. It'll get marked invalid with those Cflags. | Code: | CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" | Should be okay. |
|
| Back to top |
|
 |
piggie Tux's lil' helper


Joined: 01 Jan 2003 Posts: 113 Location: Sydney, Australia
|
Posted: Mon Jan 15, 2007 7:58 am Post subject: |
|
|
Thanks I'll try those before I submit.
I don't remember putting those in, so I wonder if one of the Juniors has been tinkering. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|