Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318283 - Building sy-devel/gcc-4.3.3-r2 is failing on a x86-macosx prefix
Summary: Building sy-devel/gcc-4.3.3-r2 is failing on a x86-macosx prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 14:24 UTC by Mounir Lamouri (volkmar) (RETIRED)
Modified: 2011-04-06 18:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build Log (build.log,1.59 MB, text/plain)
2010-05-03 14:24 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2010-05-03 14:24:00 UTC
I'm trying to build gcc-4.4.3-r2 to use it instead of gcc-apple but I get a failure while building it. Build log is following.
Comment 1 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2010-05-03 14:24:52 UTC
Created attachment 230141 [details]
Build Log
Comment 2 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2010-05-03 14:25:13 UTC
emerge --info:

Portage 2.2.00.15842-prefix (prefix/darwin/macos/10.6/x86, gcc-4.2.1, unavailable, 10.3.0 i386)
=================================================================
System uname: Darwin-10.3.0-i386-32bit
Timestamp of tree: Mon, 03 May 2010 12:38:53 +0000
distcc 3.1 i386-apple-darwin10.3.0 [disabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.2-r00.1, 1.11.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin10"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="i686-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/Users/paul/Library/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"
LDFLAGS=""
PKGDIR="/Users/paul/Library/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/paul/Library/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="/Users/paul/Library/Gentoo/var/tmp"
PORTDIR="/Users/paul/Library/Gentoo/usr/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib cxx mmx mmxext modules ncurses nls objc objc++ openmp prefix readline sse sse2 ssl unicode x86-macos zlib" 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="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-03 16:00:14 UTC
FYI: similar problems. http://old.nabble.com/gcc43-4.3.0-1000-failed-compiling-td16040370.html

Seems related to ld version.
Comment 4 Heiko 2010-05-11 15:23:31 UTC
(In reply to comment #3)
> FYI: similar problems.
> http://old.nabble.com/gcc43-4.3.0-1000-failed-compiling-td16040370.html
> 
> Seems related to ld version.
> 

(In reply to comment #3)
> FYI: similar problems.
> http://old.nabble.com/gcc43-4.3.0-1000-failed-compiling-td16040370.html
> 
> Seems related to ld version.
> 

Backporting gcc fixes from upstream could resolve the issue:

http://gcc.gnu.org/viewcvs/branches/gcc-4_4-branch/gcc/cp/ChangeLog?r1=151555&r2=151554&pathrev=151555
http://gcc.gnu.org/viewcvs/branches/gcc-4_4-branch/gcc/cp/Make-lang.in?r1=151555&r2=151554&pathrev=151555

Macports also seems to use that approach:

http://trac.macports.org/browser/trunk/dports/lang/gcc44/files/Make-lang.in.diff

This is just an assumption, since I haven't tested this.
Comment 5 Fabian Groffen gentoo-dev 2010-05-13 19:12:29 UTC
I applied a patch that does the same as the MacPorts one.
Comment 6 Fabian Groffen gentoo-dev 2011-04-06 18:05:41 UTC
should be fix0rzed