Emerging gcc fails with the following message: make[3]: *** No rule to make target `gmon.o', needed by `libgcc-extra-parts'. Stop. make[3]: Leaving directory `/nilfisk/home/dve/gentoo32/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/i386-pc-solaris2.10/libgcc' make[2]: *** [all-stage1-target-libgcc] Error 2 make[2]: Leaving directory `/nilfisk/home/dve/gentoo32/var/tmp/portage/sys-devel/gcc-4.4.1/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/nilfisk/home/dve/gentoo32/var/tmp/portage/sys-devel/gcc-4.4.1/work/build' make: *** [bootstrap-lean] Error 2 * ERROR: sys-devel/gcc-4.4.1 failed: * emake failed with bootstrap-lean * * Call stack: * ebuild.sh: 51: <call call-ebuildshell 'src_compile'> * environment: 818: <call src_compile> * environment:5141: <call gcc_src_compile> * environment:3282: <call gcc_do_make> * environment:3072: emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * * If you need support, post the topmost build error, and the call stack if relevant.
Created attachment 205279 [details] Build-log
dve@nilfsik-ng ~/gentoo32/usr/portage/sys-apps/coreutils $ emerge --info WARNING: One or more repositories have missing repo_name entries: /nilfisk/home/dve/gentoo32/usr/local/overlay/profiles/repo_name NOTE: Each repo_name entry should be a plain text file containing a unique name for the repository on the first line. Portage 2.2.00.14200-prefix (prefix/sunos/solaris/5.10/x86, gcc-4.3.2, unavailable, 5.10 i86pc) ================================================================= System uname: Solaris-2.10-i86pc-i386-32bit-ELF Timestamp of tree: Sat, 26 Sep 2009 07:33:26 +0000 app-shells/bash: 4.0_p33 dev-lang/python: 2.6.2-r01.1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4-r2 sys-devel/autoconf: 2.13, 2.63-r01.1 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2-r00.1, 1.11 sys-devel/binutils: 2.20.51.0.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6a-r00.1 ACCEPT_KEYWORDS="~x86-solaris" CBUILD="i386-pc-solaris2.10" CFLAGS="-O2 -pipe -march=native" CHOST="i386-pc-solaris2.10" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/nilfisk/home/dve/gentoo32/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE.ISO8859-1" LDFLAGS="" LINGUAS="en de" PKGDIR="/nilfisk/home/dve/gentoo32/usr/portage/packages" PORTAGE_CONFIGROOT="/nilfisk/home/dve/gentoo32/" 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="/nilfisk/home/dve/gentoo32/var/tmp" PORTDIR="/nilfisk/home/dve/gentoo32/usr/portage" PORTDIR_OVERLAY="/nilfisk/home/dve/gentoo32/usr/local/overlay" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="X apache2 bcmath berkdb bzip2 calendar cdb cjk cracklib crypt curl curlwrappers enclode exif filter ftp gd gif gmp gtk hash iconv jpeg json kpathsea lcms ldap mhash modules mp3 mysql ncurses nls ogg openexr pcntl pcre perl png postgres prefix qt3support raw readline reflection session sharedext simplexml soap sockets spell spi ssl svg threads tidy tiff tokenizer truetype unicode wddx x86-solaris xml xmlreader xmlrpc xmlwriter xpm xsl zip zlib zlip" 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 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 proxy" ELIBC="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
bash-3.00# emerge --info =sys-devel/gcc-4.4.1 Portage 2.2.00.14555-prefix (prefix/sunos/solaris/5.10/x86, gcc-4.2.4, unavailable, 5.10 i86pc) ================================================================= System Settings ================================================================= System uname: Solaris-2.10-i86pc-i386-32bit-ELF Timestamp of tree: Sat, 17 Oct 2009 17:40:20 +0000 app-shells/bash: 4.0_p33-r00.1 dev-lang/python: 2.6.2-r2 sys-devel/autoconf: 2.63-r01.1 sys-devel/automake: 1.10.2-r00.1, 1.11 sys-devel/binutils: 2.20.51.0.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6a-r00.2 ACCEPT_KEYWORDS="~x86-solaris" CBUILD="i386-pc-solaris2.10" CFLAGS="" CHOST="i386-pc-solaris2.10" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="" DISTDIR="/opt/gentoo/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="" PKGDIR="/opt/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/opt/gentoo/" 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="/opt/gentoo/var/tmp" PORTDIR="/opt/gentoo/usr/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="cracklib modules ncurses prefix readline x86-solaris 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="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 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" ELIBC="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY bash-3.00# emerge -pqv =sys-devel/gcc-4.4.1 [ebuild NS ] sys-devel/gcc-4.4.1 [4.2.4-r01.2] USE="(-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -graphite -gtk (-hardened) -ip28 -ip32r10k (-libffi) -mudflap (-multilib) -multislot (-n32) (-n64) -nls -nocxx -nptl -objc -objc++ -objc-gc -openmp -test -vanilla" I can provide a build log if that would be helpful.
same problem for 4.4.2 :(
Ok, got that bitch working: gcc-v: gcc version 4.4.2 (Gentoo 4.4.2 p1.0) uname -a: SunOS opensolaris 5.11 snv_111b i86pc i386 i86pc Solaris As noticed yesterday evening it did built by hand but not within portage. Finally i know why: libgcc for the t-sol2 target uses a variable named T. One may notice it's the same as the var T used by portage. Those two collide and break the build. I'll attach a patch, that fixes the issue. A major Makefile-geek might have a better solution, though.
Created attachment 207668 [details, diff] Don't use ${T} withing libgcc build to avoid build breakage. Just add it to the 4.4.2 ebuild and have fun.
thanks Heiko, I just added it
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7f22b6f72d59eff006b910f3f52a13b7396b60fc commit 7f22b6f72d59eff006b910f3f52a13b7396b60fc Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2024-08-10 14:41:51 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2024-08-10 14:41:51 +0000 eclass/toolchain: drop T variable hack from 2009 Drop hack to avoid T being defined due to interference with libgcc's makefiles. It seems it still references @T, but it seems non-Prefix should've picked up on that too, so I'm willing to try without this fix. Bug: https://bugs.gentoo.org/286494 Signed-off-by: Fabian Groffen <grobian@gentoo.org> eclass/toolchain.eclass | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)