Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GentooBSD gcc fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
serg_sk
Guru
Guru


Joined: 10 Jul 2004
Posts: 315
Location: Ukraine

PostPosted: Thu Mar 14, 2013 11:29 am    Post subject: GentooBSD gcc fails Reply with quote

want to update from 9.0 to 9.1

Code:
GentooBSD ~ # uname -a
FreeBSD GentooBSD 9.1-Gentoo FreeBSD Gentoo 9.1 #0: Wed Mar 13 20:19:09 EET 2013     root@GentooBSD:/usr/src/sys/amd64/compile/GENERIC  amd64


i do this
Quote:
The first emerge the core library.
root # USE=build emerge -1 --nodeps sys-freebsd/freebsd-lib
Update the userland of FreeBSD.
root # emerge -C sys-process/fuser-bsd
root # USE=symlink emerge -auN boot0 freebsd-bin freebsd-cddl freebsd-contrib freebsd-lib freebsd-libexec freebsd-mk-defs freebsd-pam-modules freebsd-sbin freebsd-share freebsd-ubin freebsd-usbin
Cleanup, utmp related files
root # rm /var/run/utmp /var/log/lastlog /var/log/wtmp*

root # gsed -i 's:CHOST=.*:CHOST="x86_64-gentoo-freebsd9.1":g' /etc/portage/make.conf


no problems here.

Code:
root # gsed -i 's:CHOST=.*:CHOST="x86_64-gentoo-freebsd9.1":g' /etc/portage/make.conf


Code:
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/libitm_i.h:36:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/aatree.cc:28:
/usr/include/stdlib.h:82:1: error: expected unqualified-id before '[' token
/usr/include/stdlib.h:92:1: error: expected unqualified-id before '[' token
/usr/include/stdlib.h:151:1: error: expected unqualified-id before '[' token
/usr/include/stdlib.h:158:1: error: expected unqualified-id before '[' token
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/libitm_i.h:86:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/aatree.cc:28:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/stmlock.h: In function 'GTM::gtm_version GTM::gtm_inc_clock()':
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/stmlock.h:115:12: error: 'abort' was not declared in this scope
gmake[3]: *** [aatree.lo] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/x86_64-gentoo-freebsd9.1/libitm'
gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/x86_64-gentoo-freebsd9.1/libitm'
gmake[1]: *** [install-target-libitm] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
gmake: *** [install] Error 2
emake failed
 * ERROR: sys-devel/gcc-4.7.2-r1 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 4141:  Called toolchain_src_install
 *   environment, line 4812:  Called die
 * The specific snippet of code:
 *       S=${WORKDIR}/build emake -j1 DESTDIR="${D}" install || die;
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.7.2-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.7.2-r1'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/gcc-build-logs.tar.bz2 in your bug report
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'

>>> Failed to emerge sys-devel/gcc-4.7.2-r1, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/build.log'

 * Messages for package sys-devel/gcc-4.7.2-r1:

 *
 * LTO support is still experimental and unstable.
 * Any bugs resulting from the use of LTO will not be fixed.
 *
 * ERROR: sys-devel/gcc-4.7.2-r1 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 4141:  Called toolchain_src_install
 *   environment, line 4812:  Called die
 * The specific snippet of code:
 *       S=${WORKDIR}/build emake -j1 DESTDIR="${D}" install || die;
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.7.2-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.7.2-r1'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/gcc-build-logs.tar.bz2 in your bug report
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'


Code:
GentooBSD ~ # emerge --info '=sys-devel/gcc-4.7.2-r1'
Portage 2.2.0_alpha166 (default/bsd/fbsd/amd64/9.1, gcc-4.5.4, freebsd-lib-9.1, 9.1-Gentoo amd64)
=================================================================
                        System Settings
=================================================================
System uname: FreeBSD-9.1-Gentoo-amd64-64bit-ELF
KiB Mem:     4174280 total
KiB Swap:   12380060 total
Timestamp of tree: Wed, 13 Mar 2013 18:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:         4.2_p45
dev-lang/python:         2.7.3-r2, 3.2.3-r1
dev-util/pkgconfig:      0.28
sys-apps/baselayout:     2.2
sys-apps/openrc:         0.9.9.3
sys-devel/autoconf:      2.69
sys-devel/automake:      1.9.6-r3, 1.11.6
sys-devel/binutils:      2.22-r1
sys-devel/gcc:           4.5.4
sys-devel/gcc-config:    1.8
sys-devel/libtool:       2.4.2
sys-devel/make:          3.82-r4
sys-freebsd/freebsd-lib: 9.1 (virtual/os-headers)
Repositories: gentoo
ACCEPT_KEYWORDS="amd64-fbsd ~amd64-fbsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-freebsd9.1"
CFLAGS="-O2 -pipe"
CHOST="x86_64-gentoo-freebsd9.1"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs chflags config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd"
LDFLAGS=""
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --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-fbsd berkdb cracklib crypt cxx dri gdbm iconv ipv6 java5 java6 mmx modules multilib ncurses nls oss pam pcre python2 readline sse sse2 ssl tcpd unicode zlib" 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="FreeBSD" 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" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="BSD" VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 intel mach64 mga nv r128 radeon rendition s3 s3virge savage siliconmotion sis tga trident tseng fbdev" 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, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Code:
GentooBSD ~ # emerge -pqv '=sys-devel/gcc-4.7.2-r1'
[ebuild  NS   ] sys-devel/gcc-4.7.2-r1 [4.5.4] USE="cxx (multilib) nls (-altivec) -doc (-fixed-point) -fortran -gcj -go -graphite -gtk -hardened (-libssp) -mudflap -multislot -nopie -nossp (-nptl) -objc -objc++ -objc-gc -openmp {-test} -vanilla"

_________________
Sorry for my bad englilsh. :)
irc.freenode.net #fluxbox-ru - Fluxbox russian speaking channel.
Back to top
View user's profile Send private message
nigoro
Retired Dev
Retired Dev


Joined: 27 Dec 2004
Posts: 12
Location: Japan

PostPosted: Tue Mar 19, 2013 11:29 am    Post subject: Re: GentooBSD gcc fails Reply with quote

serg_sk wrote:

[code]In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/libitm_i.h:36:0,
from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/aatree.cc:28:
/usr/include/stdlib.h:82:1: error: expected unqualified-id before '[' token
/usr/include/stdlib.h:92:1: error: expected unqualified-id before '[' token
/usr/include/stdlib.h:151:1: error: expected unqualified-id before '[' token
/usr/include/stdlib.h:158:1: error: expected unqualified-id before '[' token
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/libitm_i.h:86:0,
from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/aatree.cc:28:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/stmlock.h: In function 'GTM::gtm_version GTM::gtm_inc_clock()':
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libitm/stmlock.h:115:12: error: 'abort' was not declared in this scope
gmake[3]: *** [aatree.lo] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/x86_64-gentoo-freebsd9.1/libitm'
gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/x86_64-gentoo-freebsd9.1/libitm'
gmake[1]: *** [install-target-libitm] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
gmake: *** [install] Error 2
emake failed
* ERROR: sys-devel/gcc-4.7.2-r1 failed (install phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 4141: Called toolchain_src_install
* environment, line 4812: Called die
* The specific snippet of code:
* S=${WORKDIR}/build emake -j1 DESTDIR="${D}" install || die;
*
* If you need support, post the output of `emerge --info '=sys-devel/gcc-4.7.2-r1'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.7.2-r1'`.
*
* Please include /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/gcc-build-logs.tar.bz2 in your bug report
*
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/environment'.
* Working directory: '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
* S: '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'

>>> Failed to emerge sys-devel/gcc-4.7.2-r1, Log file:


This issue has been reported to bugzilla.
Please check this URL.

https://bugs.gentoo.org/show_bug.cgi?id=444678

You can fix the following procedure.
1. cd /usr/portage/eclass
2. wget -O toolchain.eclass.patch "https://bugs.gentoo.org/attachment.cgi?id=341102"
3. patch -p0 < toolchain.eclass.patch
4. emerge gcc
Back to top
View user's profile Send private message
serg_sk
Guru
Guru


Joined: 10 Jul 2004
Posts: 315
Location: Ukraine

PostPosted: Wed Mar 20, 2013 9:02 am    Post subject: Reply with quote

thank you
_________________
Sorry for my bad englilsh. :)
irc.freenode.net #fluxbox-ru - Fluxbox russian speaking channel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
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