Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379495 - dev-libs/openssl-1.0.0d doesn't build when assembler doesn't understand --noexecstack
Summary: dev-libs/openssl-1.0.0d doesn't build when assembler doesn't understand --noe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: PPC OS X
: Normal critical
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 23:51 UTC by Sri Gupta
Modified: 2011-08-21 07:53 UTC (History)
0 users

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


Attachments
first build log error from missing patch (build.log,2.19 KB, text/plain)
2011-08-16 23:53 UTC, Sri Gupta
Details
Second build log error from missing patch. (build.log,2.29 KB, text/plain)
2011-08-16 23:55 UTC, Sri Gupta
Details
third build log error from missing patch (build.log,2.38 KB, text/plain)
2011-08-16 23:57 UTC, Sri Gupta
Details
Build log error once the patches are dropped into the portage tree (this is where openssl refuses to compile) (build.log,71.04 KB, text/plain)
2011-08-17 00:03 UTC, Sri Gupta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sri Gupta 2011-08-16 23:51:47 UTC
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
Comment 1 Sri Gupta 2011-08-16 23:53:37 UTC
Created attachment 283609 [details]
first build log error from missing patch

This can be resolved by downloading the mentioned patch from bugzilla.
Comment 2 Sri Gupta 2011-08-16 23:55:50 UTC
Created attachment 283611 [details]
Second build log error from missing patch.

You can fix this error by, again, downloading the mentioned patch from bugzilla.
Comment 3 Sri Gupta 2011-08-16 23:57:21 UTC
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.
Comment 4 Sri Gupta 2011-08-17 00:03:37 UTC
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.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-08-17 00:09:43 UTC
Are you bootstrapping or done bootstrapping?
Comment 6 Sri Gupta 2011-08-17 01:49:39 UTC
I haven't done the emerge -e system yet, so I guess not?
Comment 7 Wang Bin 2011-08-18 02:10:06 UTC
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
Comment 8 Fabian Groffen gentoo-dev 2011-08-18 09:31:31 UTC
it seems to me -Wa,--no-execstack incorrectly is added to the *FLAGS
Comment 9 Fabian Groffen gentoo-dev 2011-08-18 09:37:45 UTC
@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.
Comment 10 SpanKY gentoo-dev 2011-08-18 20:53:22 UTC
(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
Comment 11 Sri Gupta 2011-08-18 21:13:17 UTC
Did that change not make it into the prefix tree?  I've got flag-o-matic.eclass version 1.150 on a fresh sync.
Comment 12 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-08-18 21:15:59 UTC
(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
Comment 13 Fabian Groffen gentoo-dev 2011-08-19 06:32:15 UTC
synced eclass now, probably should sync all of them again
Comment 14 Fabian Groffen gentoo-dev 2011-08-21 07:53:21 UTC
installed for me now, thanks