View previous topic :: View next topic |
Author |
Message |
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Fri Oct 14, 2011 12:11 pm Post subject: Failed to emerge sys-devel/gcc-4.5.3-r1 |
|
|
Hi,
I have problem when compiling GCC 4.5.3-r1.
Here is error output:
Code: | checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
* ERROR: sys-devel/gcc-4.5.3-r1 failed (compile phase):
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 4616: Called toolchain_src_compile
* environment, line 5312: Called gcc_do_make
* environment, line 2731: Called die
* The specific snippet of code:
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
*
* If you need support, post the output of 'emerge --info =sys-devel/gcc-4.5.3-r1',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.3-r1'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/environment'.
* S: '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
>>> Failed to emerge sys-devel/gcc-4.5.3-r1, Log file:
>>> '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'
* Messages for package sys-devel/gcc-4.5.3-r1:
* ERROR: sys-devel/gcc-4.5.3-r1 failed (compile phase):
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 4616: Called toolchain_src_compile
* environment, line 5312: Called gcc_do_make
* environment, line 2731: Called die
* The specific snippet of code:
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
*
* If you need support, post the output of 'emerge --info =sys-devel/gcc-4.5.3-r1',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.3-r1'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/environment'.
* S: '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
|
config.log can be found here: http://pastebin.com/ZKgDurzz
Im using hardened gentoo profile: hardened/linux/amd64
I have this problem on all boxes.
Thank you for help
Another note:
It seems that ebuild for gcc has been changed few days ago
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.5.3-r1.ebuild,v 1.7 2011/10/09 16:59:23 maekke Exp $ _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Fri Oct 14, 2011 4:17 pm Post subject: |
|
|
Please add emerge --info |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Fri Oct 14, 2011 8:08 pm Post subject: |
|
|
Here you have it:
Code: | Portage 2.1.10.11 (hardened/linux/amd64, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-hardened-r8securix x86_64)
=================================================================
System uname: Linux-2.6.39-hardened-r8securix-x86_64-QEMU_Virtual_CPU_version_-cpu64-rhel6-with-gentoo-2.0.3
Timestamp of tree: Thu, 13 Oct 2011 11:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 4.1_p9
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/ccache: 2.4-r9
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.8.3
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc: 2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fforce-addr -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/bash/bashrc /etc/conf.d/hostname /etc/issue /etc/profile /etc/ssh/sshd_config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fforce-addr -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion bashlogger berkdb bzip2 chroot cli cracklib crypt cups cxx dri gdbm gnutls gpm hardened iconv jpeg justify ldap mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pax_kernel pcre perl pic png pppd python readline secure-delete session snmp sse sse2 ssl symlink sysfs tcpd unicode urandom vim-syntax xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
Thank you _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Oct 15, 2011 12:26 am Post subject: Re: Failed to emerge sys-devel/gcc-4.5.3-r1 |
|
|
Martin Cmelik wrote: | Code: |
checking for suffix of object files... configure: error: in `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/x86_64-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details. |
|
Code: | configure:4518: checking for suffix of object files
configure:4540: x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe conftest.c >&5
configure:4544: $? = 0
configure:4565: result: o
|
So your config.log isn't the one that were produce by this build failure...
You have already build that gcc version maybe, and re-building it is now failing -> disable ccache and retry |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Sat Oct 15, 2011 12:49 am Post subject: Re: Failed to emerge sys-devel/gcc-4.5.3-r1 |
|
|
krinn wrote: |
So your config.log isn't the one that were produce by this build failure...
You have already build that gcc version maybe, and re-building it is now failing -> disable ccache and retry |
Maybe that I take different config.log
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/config.log -- is that one OK?
It is not rebuild but new installation:
Code: | emerge -pv gcc
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS ] sys-devel/gcc-4.5.3-r1 [4.4.5] USE="hardened mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -graphite -gtk (-libffi) -lto -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 0 kB
Total: 1 package (1 in new slot), Size of downloads: 0 kB
|
_________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Oct 15, 2011 12:57 am Post subject: |
|
|
gave the build.log then, portage should gave you the full path to it at end of a build failure
(and please try to build it without ccache, this helper tools is more a bugger than an helper) |
|
Back to top |
|
|
ded n00b
Joined: 24 Jan 2007 Posts: 6
|
Posted: Sat Oct 15, 2011 12:11 pm Post subject: |
|
|
krinn wrote: | gave the build.log then, portage should gave you the full path to it at end of a build failure
(and please try to build it without ccache, this helper tools is more a bugger than an helper) |
FYI
I had the same problem. I was using an old version of gcc and kept on failing to emerge any newer version between 4.4.4-r2 and 4.5.3-r1.
Errors were : segmentation fault, internal compiler error or even header file not found (!?).
Other ebuilds were failing randomly.
Disabling ccache in make.conf fixed them all.
Thanks a lot krinn. |
|
Back to top |
|
|
cedeel n00b
Joined: 15 Oct 2011 Posts: 1 Location: Canada
|
Posted: Sat Oct 15, 2011 12:44 pm Post subject: |
|
|
I don't think ccache is the culprit in this case.
I have a similar problem, and have never used ccache.
Being unable to upgrade gcc is a real pita, since doing a -uDNav world isn't possible |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Sun Oct 16, 2011 5:41 pm Post subject: |
|
|
krinn wrote: | gave the build.log then, portage should gave you the full path to it at end of a build failure
(and please try to build it without ccache, this helper tools is more a bugger than an helper) |
can you tell me where exactly build log is? error is above
without ccache problem occur as well
Thank you _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Oct 17, 2011 1:26 am Post subject: |
|
|
krinn wrote: | portage should gave you the full path to it at end of a build failure |
Quote: |
* If you need support, post the output of 'emerge --info =sys-devel/gcc-4.5.3-r1',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.5.3-r1'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/environment'. |
Feel free to ask if you need more hints |
|
Back to top |
|
|
spectre4 n00b
Joined: 17 Oct 2011 Posts: 1
|
Posted: Mon Oct 17, 2011 6:33 am Post subject: |
|
|
I had the same problem after emerging libpng:1.5.
Repeatedly executing
Code: | revdep-rebuild --library libpng14.so.14 -- --keep-going
|
solved the problem for me. |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Mon Oct 17, 2011 7:52 am Post subject: |
|
|
krinn wrote: | Feel free to ask if you need more hints |
Yes, I'm blind :]
Here you have it: http://pastebin.ca/2090710
Thank you! _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Mon Oct 17, 2011 7:53 am Post subject: |
|
|
spectre4 wrote: | I had the same problem after emerging libpng:1.5.
Repeatedly executing
Code: | revdep-rebuild --library libpng14.so.14 -- --keep-going
|
solved the problem for me. |
Hi,
I dont have libpng installed.
Thank you _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Mon Oct 17, 2011 12:40 pm Post subject: |
|
|
Looking at the log, it seems like the compiler created in the first phase of the bootstrap process does not work. It would be interesting to see the corresponding config.log, but I have the suspicion that your CFLAGS might be the culprit. Try reducing them, removing the -fforce-addr (if you don't exactly know what this does, you should remove it anyway) and changing -march=native to something more conservative for this one compile. |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Mon Oct 17, 2011 12:53 pm Post subject: |
|
|
DirtyHairy wrote: | Looking at the log, it seems like the compiler created in the first phase of the bootstrap process does not work. It would be interesting to see the corresponding config.log, but I have the suspicion that your CFLAGS might be the culprit. Try reducing them, removing the -fforce-addr (if you don't exactly know what this does, you should remove it anyway) and changing -march=native to something more conservative for this one compile. |
Hi,
-fforce-addr is safe flag (also for hardened-sources) and -march=native is supported by GCC for long time.
In fact I can try it, but this is default setup in my distribution so I would rather find the root cause of this problem and solve it.
I was able to compile apps few days before (this is new installation).
Thank you for your help _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
Siedi n00b
Joined: 22 Oct 2006 Posts: 8
|
Posted: Mon Oct 17, 2011 8:44 pm Post subject: |
|
|
Actually I have the same problem when upgrading gcc.
What I found out is, it is due to the CFLAGS, more congrete the "march=native"
Up till now I had: CFLAGS="-march=native -O2 -pipe"
After removing march=native it is working.
In the config.log I found:
Code: |
configure:3233: /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -c -g -march=native -O2 -pipe conftest.c >&5
conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set
|
Removing the march=native the command works fine.
I'm running as a qemu/kvm guest.
Not sure what has changed and why the new gcc won't compile with that flag any more.
Any ideas? |
|
Back to top |
|
|
leifbk Guru
Joined: 05 Jan 2004 Posts: 415 Location: Bærum, Norway
|
Posted: Mon Oct 17, 2011 8:55 pm Post subject: |
|
|
Same here. On my desktop with an Intel i7 930 gcc compiles fine with march=native, but on my laptop with an Intel T 4500 and the same march=native, the build breaks.
Is there a way to change the march= for this build only? And what should it be? _________________ Grumpy old man |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Oct 17, 2011 10:01 pm Post subject: |
|
|
if it's that you can solve it with
Code: | mkdir -p /etc/portage/env/sys-devel
echo "-march=generic -O2 -pipe" > /etc/portage/env/sys-devel/gcc |
leifbk you're running also in qemu? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Mon Oct 17, 2011 11:29 pm Post subject: |
|
|
For those with the problem, please post the output of emerge --info ; cat -n /proc/cpuinfo. |
|
Back to top |
|
|
leifbk Guru
Joined: 05 Jan 2004 Posts: 415 Location: Bærum, Norway
|
Posted: Tue Oct 18, 2011 4:03 am Post subject: |
|
|
krinn wrote: | if it's that you can solve it with
Code: | mkdir -p /etc/portage/env/sys-devel
echo "-march=generic -O2 -pipe" > /etc/portage/env/sys-devel/gcc |
|
I tried that, but it still tries to compile gcc with march=native. Just to verify that I did follow your instructions:
Code: | barbara ~ # cat /etc/portage/env/sys-devel/gcc
march=generic -O2 -pipe |
krinn wrote: | leifbk you're running also in qemu? |
Nope, Gentoo on the iron.
Code: | barbara ~ # emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Pentium-R-_Dual-Core_CPU_T4500_@_2.30GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 17 Oct 2011 19:30:01 +0000
app-shells/bash: 4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4-r1
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.8.3-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc: 2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.df.lth.se/pub/gentoo/"
LANG="nb_NO.UTF-8"
LC_ALL="nb_NO.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="nb no en nb_NO"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 berkdb branding bzip2 cairo cdda cdparanoia cdr cleartype cli consolekit corefonts cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif fam ffmpeg firefox flac fortran gd gdbm gdu gif gpm gtk iconv icu ipv6 java jpeg kde kipi lame lcms ldap libnotify mad mime mmx mng modules mp3 mp4 mpeg mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pango pcre pdf phonon plasma png policykit postgres ppds pppd qt3support qt4 quicktime readline sdl semantic-desktop session spell sql sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype udev unicode usb vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard synaptics mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nb no en nb_NO" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
barbara ~ # cat -n /proc/cpuinfo
1 processor : 0
2 vendor_id : GenuineIntel
3 cpu family : 6
4 model : 23
5 model name : Pentium(R) Dual-Core CPU T4500 @ 2.30GHz
6 stepping : 10
7 cpu MHz : 2299.759
8 cache size : 1024 KB
9 physical id : 0
10 siblings : 2
11 core id : 0
12 cpu cores : 2
13 apicid : 0
14 initial apicid : 0
15 fpu : yes
16 fpu_exception : yes
17 cpuid level : 13
18 wp : yes
19 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dts
20 bogomips : 4599.51
21 clflush size : 64
22 cache_alignment : 64
23 address sizes : 36 bits physical, 48 bits virtual
24 power management:
25
26 processor : 1
27 vendor_id : GenuineIntel
28 cpu family : 6
29 model : 23
30 model name : Pentium(R) Dual-Core CPU T4500 @ 2.30GHz
31 stepping : 10
32 cpu MHz : 2299.759
33 cache size : 1024 KB
34 physical id : 0
35 siblings : 2
36 core id : 1
37 cpu cores : 2
38 apicid : 1
39 initial apicid : 1
40 fpu : yes
41 fpu_exception : yes
42 cpuid level : 13
43 wp : yes
44 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dts
45 bogomips : 4599.95
46 clflush size : 64
47 cache_alignment : 64
48 address sizes : 36 bits physical, 48 bits virtual
49 power management:
50
|
_________________ Grumpy old man |
|
Back to top |
|
|
leifbk Guru
Joined: 05 Jan 2004 Posts: 415 Location: Bærum, Norway
|
Posted: Tue Oct 18, 2011 8:22 am Post subject: |
|
|
leifbk wrote: | krinn wrote: | if it's that you can solve it with
Code: | mkdir -p /etc/portage/env/sys-devel
echo "-march=generic -O2 -pipe" > /etc/portage/env/sys-devel/gcc |
|
I tried that, but it still tries to compile gcc with march=native. Just to verify that I did follow your instructions:
Code: | barbara ~ # cat /etc/portage/env/sys-devel/gcc
march=generic -O2 -pipe |
|
I sniffed around a bit on the net, and rewrote the file as
Code: | barbara ~ # cat /etc/portage/env/sys-devel/gcc
CFLAGS="march=generic -O2 -pipe"
CXXFLAGS="${CFLAGS}" |
And now gcc doesn't compile with "march=native". Yet it breaks, after more than an hour of compiling:
Code: | /bin/sh ./libtool --tag=CC --mode=compile /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran -iquote/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/io -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/../gcc -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/../gcc/config -I../../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -O2 -pipe -m32 -MT unix.lo -MD -MP -MF .deps/unix.Tpo -c -o unix.lo `test -f 'io/unix.c' || echo '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/'`io/unix.c
libtool: compile: /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran -iquote/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/io -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/../gcc -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/../gcc/config -I../../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -O2 -pipe -m32 -MT unix.lo -MD -MP -MF .deps/unix.Tpo -c /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/io/unix.c -fPIC -DPIC -o .libs/unix.o
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/io/unix.c: In function ‘find_file’:
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/io/unix.c:1351:30: error: ‘id’ undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgfortran/io/unix.c:1351:30: note: each undeclared identifier is reported only once for each function it appears in
make[6]: *** [unix.lo] Error 1 |
The /var partition on this computer is 20 GB of which 18 GB is free, so I don't think there's a space problem.
I've posted the entire build.log (9 MB) as http://solumslekt.org/temp/build.log.txt. _________________ Grumpy old man |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Tue Oct 18, 2011 11:55 am Post subject: |
|
|
Hi,
its good to see progress on this issue. Anyway I'm running in KVM/Qemu as well, but I was able to simulate same problem in VirtualBox. I have third server on VirtualBox as well and I was able to compile GCC 4.5.3-r1 fine with march=native... I don't understand.
I will try delete GCC archive and fetch it again.
If there is anything else what I can test please let me know.
Thank you _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Tue Oct 18, 2011 6:25 pm Post subject: |
|
|
Hi all,
I try to use leifbk hint:
Code: | cat /etc/portage/env/sys-devel/gcc
CFLAGS="march=generic -O2 -pipe"
CXXFLAGS="${CFLAGS}" |
And I compile GCC successfully.
Should we notify somebody? GCC team? Ebuild maintainers?
Thank you _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
Siedi n00b
Joined: 22 Oct 2006 Posts: 8
|
Posted: Tue Oct 18, 2011 8:38 pm Post subject: |
|
|
compiling with march=generic works for gcc itself.
After that I cannot even compile vim with the new gcc version
output is:
Code: | checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/app-editors/vim-7.3.266/work/vim73/src':
configure: error: C compiler cannot create executables
|
|
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Tue Oct 18, 2011 9:05 pm Post subject: |
|
|
I don't have same issue.
I was able make after that "-uDN world" and also install another +- 5 applications _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
|