Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406731 - dev-lang/python-2.7.2-r3: --as-needed failures on sparc64-solaris
Summary: dev-lang/python-2.7.2-r3: --as-needed failures on sparc64-solaris
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: Sparc64 Solaris
: Normal minor (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-03 07:26 UTC by Richard Yao (RETIRED)
Modified: 2017-11-15 17:10 UTC (History)
0 users

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


Attachments
dev-lang/python-2.7.2-r3 build.log of failure (build.log,158.66 KB, text/plain)
2012-03-03 07:26 UTC, Richard Yao (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-03-03 07:26:33 UTC
Created attachment 304091 [details]
dev-lang/python-2.7.2-r3 build.log of failure

dev-lang/python-2.7.2-r3 builds successfully without -Wl,--as-needed in LDFLAGS, but will fail when it is added.

$ emerge --info dev-lang/python                                                                                                                                                                                                                               
Portage 2.2.01.20271-prefix (prefix/sunos/solaris/5.10/sparc64, gcc-4.6.2, unavailable, 5.10 sun4u)                                                                                                                                                                            
=================================================================
                        System Settings
=================================================================
System uname: Solaris-2.10-sun4u-sparc-64bit-ELF
Timestamp of tree: Fri, 02 Mar 2012 21:42:15 +0000
distcc 3.1 sparcv9-sun-solaris2.10 [disabled]
ccache version 3.1.4 [disabled]
app-shells/bash:      4.2_p20::gentoo_prefix
dev-lang/python:      2.7.2-r3::gentoo_prefix
dev-util/ccache:      3.1.4::gentoo_prefix
dev-util/pkgconfig:   0.26::gentoo_prefix
sys-devel/autoconf:   2.13::gentoo_prefix, 2.68::gentoo_prefix
sys-devel/automake:   1.11.1::gentoo_prefix
sys-devel/binutils:   2.22-r1::gentoo_prefix
sys-devel/gcc:        4.6.2::gentoo_prefix
sys-devel/gcc-config: 1.5-r2::gentoo_prefix
sys-devel/libtool:    2.4-r4::gentoo_prefix
sys-devel/make:       3.82::gentoo_prefix
Repositories: gentoo_prefix local_overlay
Installed sets: 
ACCEPT_KEYWORDS="~sparc64-solaris"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparcv9-sun-solaris2.10"
CFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -O2 -pipe"
CHOST="sparcv9-sun-solaris2.10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -O2 -pipe"
DISTDIR="/home/stufs1/ryao/Gentoo-Solaris/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS=" -Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
MAKEOPTS="-j2"
PKGDIR="/home/stufs1/ryao/Gentoo-Solaris/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/stufs1/ryao/Gentoo-Solaris/"
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="/tmp/ryao"
PORTDIR="/home/stufs1/ryao/Gentoo-Solaris/usr/portage"
PORTDIR_OVERLAY="/home/stufs1/ryao/Gentoo-Solaris/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="cracklib cxx modules ncurses nls prefix readline sparc64-solaris ssl 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="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="SunOS" 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="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby19" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-lang/python-2.7.2-r3 was built with the following:
USE="ncurses (prefix) readline ssl threads (wide-unicode) xml (-aqua) (-berkdb) -build -doc -examples -gdbm -ipv6 -sqlite -tk -wininst"
CFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -O2 -pipe -fwrapv -I/home/stufs1/ryao/Gentoo-Solaris/usr/include"
CXXFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -O2 -pipe -fwrapv -I/home/stufs1/ryao/Gentoo-Solaris/usr/include"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -L/home/stufs1/ryao/Gentoo-Solaris/lib -L/home/stufs1/ryao/Gentoo-Solaris/usr/lib -L."
Comment 1 Richard Yao (RETIRED) gentoo-dev 2012-03-03 07:35:14 UTC
The failures involve the _socket and _multiprocessing modules, with the _socket failure causing a _ssl failure. The key issues are two missing symbols:

*** WARNING: renaming "_socket" since importing it failed: ld.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-sun4u-2.7/_socket.so: symbol h_errno: referenced symbol not found
*** WARNING: renaming "_multiprocessing" since importing it failed: ld.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-sun4u-2.7/_multiprocessing.so: symbol __xnet_sendmsg: referenced symbol not found

Fixing these should make this work perfectly.
Comment 2 Fabian Groffen gentoo-dev 2017-11-15 17:10:08 UTC
Things changed in the meanwhile, we need to revisit this.