View previous topic :: View next topic |
Author |
Message |
jswails1 n00b
Joined: 19 Oct 2011 Posts: 20
|
Posted: Thu Oct 20, 2011 9:39 pm Post subject: |
|
|
I had to remove "-march=core2" from my make.conf to get different GCCs to compile successfully. I'm not sure why it happened, but the log message said that -march=core2 was an unrecognized option (yet it had been working for all of the other packages I tried emerging before that).
I just removed that flag for gcc and put it back after I was done, so I was seeing this issue as well.
All the best,
Jason |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Fri Oct 21, 2011 7:20 am Post subject: |
|
|
Krinn: Don't you know who should be notified about this issue?
Thank you _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Fri Oct 21, 2011 2:06 pm Post subject: |
|
|
Martin Cmelik wrote: | Krinn: Don't you know who should be notified about this issue?
Thank you |
Yes, the toolchain guys, report it to portage/ebuild and someone will redirect it to them for you, https://bugs.gentoo.org |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Fri Oct 21, 2011 2:47 pm Post subject: |
|
|
krinn wrote: | Yes, the toolchain guys, report it to portage/ebuild and someone will redirect it to them for you, https://bugs.gentoo.org |
I put comment to this bug https://bugs.gentoo.org/show_bug.cgi?id=378375 because it can be related.
Thank you _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
sinanqapudan Apprentice
Joined: 26 Oct 2004 Posts: 234 Location: Milan
|
Posted: Wed Nov 02, 2011 7:31 am Post subject: |
|
|
Hi there, I have the same issue. Here is the emerge --info output:
Code: | Portage 2.1.10.11 (default/linux/x86/10.0/desktop/kde, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo i686)
=================================================================
System uname: Linux-3.0.6-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 02 Nov 2011 07:00:01 +0000
app-shells/bash: 4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.2-r3, 3.1.4-r3
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.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.5.3-r1
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="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
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="ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ rsync://mirrors.tera-byte.com/gentoo http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ rsync://de-mirror.org/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ rsync://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it de"
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="X a52 aac acl acpi alsa audiofile berkdb bluetooth branding bzip2 cairo canna cdda cddb cdinstall cdparanoia cdr cli consolekit cracklib crypt css cups cxx dbus dbx declarative device-mapper dga djvu dri dts dv dvb dvd dvdr emboss encode exif extras fam firefox flac fortran ftp gd gdbm gdu gif ginac gphoto2 gpm gstreamer handbook hardened iconv icu idn imagemagick imap ipod ipv6 java java6 javascript jbig jpeg jpeg2k kde kerberos kipi kolab kontact ladspa lame lash lcms ldap libnotify mad matroska mikmod mmx mng modules mp3 mp4 mpeg mplayer mudflap musepack mysql ncurses netboot nls nptl nptlonly ofx ogg openal opengl openmp oracle oss pam pango pcre pda pdf phonon php plasma png policykit ppds pppd pulseaudio qt3support qt4 quicktime raw rdesktop readline samba sdl semantic-desktop session shorten smartcard sockets sound source sox speex spell sql sse sse2 ssl startup-notification svg svga symlink sysfs syslog tcpd theora threads tiff timidity truetype udev unicode usb v4l v4l2 vcd videos vorbis wavpack webkit win32codecs wmf x264 x86 xcb xcomposite xft xine xinerama xinetd xml xmlrpc xorg xscreensaver xsl xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
and that of the cat -n /proc/cpuinfo:
Code: | 1 processor : 0
2 vendor_id : GenuineIntel
3 cpu family : 15
4 model : 3
5 model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
6 stepping : 4
7 cpu MHz : 2792.935
8 cache size : 1024 KB
9 fdiv_bug : no
10 hlt_bug : no
11 f00f_bug : no
12 coma_bug : no
13 fpu : yes
14 fpu_exception : yes
15 cpuid level : 5
16 wp : yes
17 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 constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr
18 bogomips : 5585.87
19 clflush size : 64
20 cache_alignment : 128
21 address sizes : 36 bits physical, 32 bits virtual
22 power management:
23
|
I'm trying to rebuild the compiler as a botched emerge --depclean left me without one that is working as the g++ file disappeared from the /usr/bin directory. |
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
|
Back to top |
|
|
sinanqapudan Apprentice
Joined: 26 Oct 2004 Posts: 234 Location: Milan
|
Posted: Wed Nov 02, 2011 8:44 pm Post subject: |
|
|
Well, it did not work. I set up the flags for gcc as requested
Code: | sargon portage # cat /etc/portage/env/sys-devel/gcc
CFLAGS="march=generic -O2 -pipe"
CXXFLAGS="${CFLAGS}"
|
and this is the output of emerge gcc:
Code: | libtool: link: /usr/i686-pc-linux-gnu/bin/ranlib .libs/libgfortran.a
libtool: link: ( cd ".libs" && rm -f "libgfortran.la" && ln -s "../libgfortran.la" "libgfortran.la" )
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/i686-pc-linux-gnu/libgfortran'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/i686-pc-linux-gnu/libgfortran'
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 4581: Called toolchain_src_compile
* environment, line 5281: Called gcc_do_make
* environment, line 2741: 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 4581: Called toolchain_src_compile
* environment, line 5281: Called gcc_do_make
* environment, line 2741: 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'
|
|
|
Back to top |
|
|
Martin Cmelik n00b
Joined: 14 Oct 2010 Posts: 42 Location: Prague
|
Posted: Thu Nov 03, 2011 8:35 am Post subject: |
|
|
Hmm than it seems to be different issue.
Can you try to rebuild libgfortran first? revdep-rebuild have some special flag for libraries
Thank you _________________
Code: | where there is a shell, there is a way |
|
|
Back to top |
|
|
sinanqapudan Apprentice
Joined: 26 Oct 2004 Posts: 234 Location: Milan
|
Posted: Thu Nov 03, 2011 10:30 am Post subject: |
|
|
Nope, revdep-rebuild is not working due to a botched emerge --depclean. The g++ file is missing from the /usr/bin directory and I'm trying to re-install the gcc compiler to fix that. |
|
Back to top |
|
|
crististm n00b
Joined: 24 Nov 2011 Posts: 7
|
Posted: Thu Nov 24, 2011 9:32 pm Post subject: |
|
|
Same here, on an Athlon XP. Compiling gcc 4.5.3 segfaults (march=athlon-xp).
The install is from a recent stage3 which segfault-ed randomly during emerge -e system. Also, the LiveDVD crashed and I could not finish the install... Bootstrapped with an Ubuntu 8 CD.
I managed to install a gcc 4.4.5 and now emerge -e system segfaults only when building gcc 4.5.3.
The machine is stable with old distro CDs (and Windows) but for completeness I'll run a memtest tonight
EDIT: 12 passes - no errors |
|
Back to top |
|
|
randalla Tux's lil' helper
Joined: 14 Oct 2008 Posts: 79 Location: Seattle, WA
|
Posted: Fri Nov 25, 2011 6:15 pm Post subject: |
|
|
Is there not supposed to be a - in front of the march=<platform> that people keep throwing around in here? |
|
Back to top |
|
|
newtonian Guru
Joined: 19 Jan 2005 Posts: 465 Location: Hokkaido Japan
|
Posted: Sat Feb 25, 2012 3:21 pm Post subject: kvm gcc compile error |
|
|
I think gcc is choking on the default qemu cpu reported in /proc/cpu.
To fix this here is what I did:
On the KVM Hosting running libvirtd I ran this command:
Code: | virsh capabilities
<capabilities>
<host>
<uuid>e2d54a4a-196c-11e0-b578-001e6702be96</uuid>
<cpu>
<arch>x86_64</arch>
<model>Nehalem</model>
<vendor>Intel</vendor>
<topology sockets='1' cores='4' threads='1'/>
<feature name='rdtscp'/>
<feature name='xtpr'/>
<feature name='tm2'/>
<feature name='est'/>
<feature name='vmx'/>
<feature name='ds_cpl'/>
<feature name='monitor'/>
<feature name='pbe'/>
<feature name='tm'/>
<feature name='ht'/>
<feature name='ss'/>
<feature name='acpi'/>
<feature name='ds'/>
<feature name='vme'/>
</cpu> |
Then get into the guest config and set the cpu info using the cpu info from the host:
Code: |
<domain type='kvm'>
<name>beaver</name>
<uuid>7be7b326-3e52-8443-0c2a-bc20066c2018</uuid>
<memory>2097152</memory>
<currentMemory>2097152</currentMemory>
<vcpu>4</vcpu>
<os>
<type arch='x86_64' machine='pc-1.0'>hvm</type>
<boot dev='hd'/>
<boot dev='cdrom'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu match='minimum'>
<model>Nehalem</model>
<vendor>Intel</vendor>
<topology sockets='1' cores='4' threads='1'/>
</cpu>
snip... |
Then shutdown your guest vm
Code: | virsh shutdown my_guest_vm |
Then start your guest vm for the changes to take effect
Code: | virsh start my_guest_vm |
Login to your guest vm and do a cat /proc/cpuinfo. You'll see that the generic qemu cpu names are gone.
Then emerge gcc and you should be good to go.
Cheers, |
|
Back to top |
|
|
newtonian Guru
Joined: 19 Jan 2005 Posts: 465 Location: Hokkaido Japan
|
Posted: Sat Feb 25, 2012 3:29 pm Post subject: minus in from of march |
|
|
randalla wrote: | Is there not supposed to be a - in front of the march=<platform> that people keep throwing around in here? |
Yep, there should be a - in front of march.
Here are the gentoo docs on that:
example from the gentoo optimization docs:
Code: |
CFLAGS="-march=athlon64 -O2 -pipe"
CXXFLAGS="${CFLAGS}" |
http://www.gentoo.org/doc/en/gcc-optimization.xml
http://en.gentoo-wiki.com/wiki/Safe_Cflags
Cheers, |
|
Back to top |
|
|
yanlinlin82 n00b
Joined: 27 Aug 2013 Posts: 2 Location: Beijing, China
|
|
Back to top |
|
|
diablo465 Apprentice
Joined: 10 Sep 2013 Posts: 194
|
Posted: Mon Feb 17, 2014 2:44 pm Post subject: |
|
|
make a mark here, this problem has spent me a whole night |
|
Back to top |
|
|
|