In the process of setting up a fresh prefix on a Power Mac G4 running OS X 10.4. Made it up to step 1.14 ("USE=-git emerge -u system"), in which the merge chokes on openssl. First I get source patch errors (did some patches from bugzilla not make it into the portage tree?), then after fixing those openssl still won't build. I'll attach the build logs separately. Reproducible: Always Steps to Reproduce: Follow the prefix docs on tiger with xcode 2.5, and you hit the error when openssl tries to compile. admin@sris-power-mac-g4 ~ $ emerge --info Portage 2.2.01.19011-prefix (prefix/darwin/macos/10.4/ppc, gcc-4.2.1, unavailable, 8.11.0 Power Macintosh) ================================================================= System uname: Darwin-8.11.0-Power_Macintosh-powerpc-32bit Timestamp of tree: Tue, 16 Aug 2011 23:09:33 +0000 distcc 2.18.4-Apple.1 powerpc-apple-darwin8.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 4.2_p10 dev-lang/python: 2.7.2 dev-util/pkgconfig: 0.25-r2 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.4-r01.1 sys-devel/make: 3.82 Repositories: gentoo_prefix x-portage Installed sets: ACCEPT_KEYWORDS="~ppc-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="powerpc-apple-darwin8" CFLAGS="-mcpu=7450 -O2 -pipe -maltivec -mabi=altivec -fomit-frame-pointer -fno-strict-aliasing" CHOST="powerpc-apple-darwin8" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/portage /etc/terminfo" CXXFLAGS="-mcpu=7450 -O2 -pipe -maltivec -mabi=altivec -fomit-frame-pointer -fno-strict-aliasing" DISTDIR="/Volumes/Gentoo/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-dead_strip_dylibs" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/Volumes/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Volumes/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="/Volumes/Gentoo/var/tmp" PORTDIR="/Volumes/Gentoo/usr/portage" PORTDIR_OVERLAY="/Volumes/Gentoo/usr/local/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="altivec aqua ares bash-completion bzip2 coreaudio cracklib cxx lzma modules ncurses nls objc objc++ offensive opengl perl ppc-macos prefix python readline sqlite ssl unicode webdav-neon 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 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 283609 [details] first build log error from missing patch This can be resolved by downloading the mentioned patch from bugzilla.
Created attachment 283611 [details] Second build log error from missing patch. You can fix this error by, again, downloading the mentioned patch from bugzilla.
Created attachment 283613 [details] third build log error from missing patch Again, this can be fixed by downloading the appropriate patch, dropping it into the portage tree, and running ebuild openssl-1.0.0d.ebuild manifest.
Created attachment 283615 [details] Build log error once the patches are dropped into the portage tree (this is where openssl refuses to compile) I'm afraid my script-fu isn't good enough to decode this error.
Are you bootstrapping or done bootstrapping?
I haven't done the emerge -e system yet, so I guess not?
I have the same problem after added the missing patch file, I'm using Lion, Xcode4.1, here is my emerge --info: Portage 2.2.01.19011-prefix (prefix/darwin/macos/10.7/x86, gcc-4.2.1, unavailable, 11.1.0 x86_64) ================================================================= System uname: Darwin-11.1.0-x86_64-i386-32bit Timestamp of tree: Thu, 18 Aug 2011 01:09:53 +0000 distcc 3.1-toolwhip.1 i386-apple-darwin11.0 [disabled] app-shells/bash: 4.2_p10 dev-lang/python: 2.7.2 dev-util/pkgconfig: 0.25-r2 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.4-r01.1 sys-devel/make: 3.82 Repositories: gentoo_prefix local Installed sets: ACCEPT_KEYWORDS="~x86-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-apple-darwin11" CFLAGS="-O2 -pipe -march=nocona" CHOST="i686-apple-darwin11" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/portage /etc/terminfo" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/Users/wangbin/Gentoo/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-dead_strip_dylibs" PKGDIR="/Users/wangbin/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/wangbin/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/wangbin/Gentoo/var/tmp" PORTDIR="/Users/wangbin/Gentoo/usr/portage" PORTDIR_OVERLAY="/Users/wangbin/Gentoo/usr/local/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua coreaudio cracklib cxx mmx mmxext modules ncurses nls objc objc++ 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 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
it seems to me -Wa,--no-execstack incorrectly is added to the *FLAGS
@base-system: test-flags-CC doesn't work for -Wa,--noexecstack here, since test-flags-PROG uses -S (e.g. do not assemble). We could introduce test-flags-AS or something, or make a full link stage in test-flags-PROG, such that linkage flags can be tested as well.
(In reply to comment #9) eh ? i think your tree be outdated as i fixed this a while ago. see Bug 373743. http://sources.gentoo.org/eclass/flag-o-matic.eclass?r1=1.151&r2=1.152
Did that change not make it into the prefix tree? I've got flag-o-matic.eclass version 1.150 on a fresh sync.
(In reply to comment #10) > (In reply to comment #9) > > eh ? i think your tree be outdated as i fixed this a while ago. see Bug > 373743. > > http://sources.gentoo.org/eclass/flag-o-matic.eclass?r1=1.151&r2=1.152 Thanks for the hint. Removing from CC
synced eclass now, probably should sync all of them again
installed for me now, thanks