Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootstrapping on Mac OS X fails when compiling python
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
vwegert
n00b
n00b


Joined: 12 Mar 2005
Posts: 31
Location: Germany

PostPosted: Wed Nov 16, 2011 10:55 pm    Post subject: Bootstrapping on Mac OS X fails when compiling python Reply with quote

Hi all,

I'm trying to re-bootstrap Gentoo-prefix on two macs following the instructions from http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml, and I get the same error on both machines when attempting to re-emerge portage using
Code:
env FEATURES="-collision-protect" emerge --oneshot portage

The error message is
Code:
...
make[1]: Leaving directory `/Users/mwegert/Library/Gentoo/var/tmp/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Mac'
make DESTDIR=/Users/mwegert/Library/Gentoo/var/tmp/portage/dev-lang/python-2.7.2/image/ maninstall
/Users/mwegert/Library/Gentoo/usr/bin/install -c -m 644 ./Misc/python.man \
   /Users/mwegert/Library/Gentoo/var/tmp/portage/dev-lang/python-2.7.2/image//Users/mwegert/Library/Gentoo/usr/lib/Python.framework/Versions/2.7/share/man/man1/python2.7.1
ld: can't open output file for writing: /Users/mwegert/Library/Gentoo/var/tmp/portage/dev-lang/python-2.7.2/image/Users/mwegert/Library/Gentoo//usr/bin/python2.7, errno=2 for architecture i386
collect2: ld returned 1 exit status
 * ERROR: dev-lang/python-2.7.2 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  98:  Called src_install
 *   environment, line 5869:  Called die
 * The specific snippet of code:
 *           $(tc-getCC) "${ED}"/usr/$(get_libdir)/libpython${SLOT}.dylib -o "${ED}"/usr/bin/python${SLOT} Modules/python.o || die;
 *
 * If you need support, post the output of 'emerge --info =dev-lang/python-2.7.2',
 * the complete build log and the output of 'emerge -pqv =dev-lang/python-2.7.2'.
 * The complete build log is located at '/Users/mwegert/Library/Gentoo/var/tmp/portage/dev-lang/python-2.7.2/temp/build.log'.
 * The ebuild environment file is located at '/Users/mwegert/Library/Gentoo/var/tmp/portage/dev-lang/python-2.7.2/temp/environment'.
 * S: '/Users/mwegert/Library/Gentoo/var/tmp/portage/dev-lang/python-2.7.2/work/Python-2.7.2'

>>> Failed to emerge dev-lang/python-2.7.2, Log file:

emerge --info =dev-lang/python-2.7.2:

Code:
Portage 2.2.01.19572-prefix (prefix/darwin/macos/10.6/x86, gcc-4.2.1, unavailable, 10.8.0 i386)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-10.8.0-i386-64bit
Timestamp of tree: Wed, 16 Nov 2011 21:40:03 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled]
app-shells/bash:      4.2_p10
dev-util/pkgconfig:   0.26
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-r4
sys-devel/make:       3.82
Repositories: gentoo_prefix
Installed sets:
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin10"
CFLAGS="-march=prescott"
CHOST="i686-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS=""
DISTDIR="/Users/mwegert/Library/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles 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/mwegert/Library/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/mwegert/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/mwegert/Library/Gentoo/var/tmp"
PORTDIR="/Users/mwegert/Library/Gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib cxx mmx mmxext modules ncurses objc objc++ prefix readline sse sse2 ssl 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="kexi words flow plan stage tables krita karbon braindump" 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

I already tried to --sync the portage tree on one of the machines, but that didn't help. What else could I try?

Thanks
Volker
Back to top
View user's profile Send private message
Xplod
n00b
n00b


Joined: 23 Nov 2011
Posts: 1

PostPosted: Wed Nov 23, 2011 3:51 pm    Post subject: Reply with quote

I found this tumblr post referring to this same problem, which happens to be in Japanese:

http://blog.kiyoya.shi-ba.org/post/13080107339


Using google translate, it looks like a workaround which i tried and successfully emerged python and then portage:

Code:
env USE="-aqua" FEATURES="-collision-protect" emerge --oneshot portage


I can't confirm this isn't causing side-effects elsewhere but at least i could bootstrap and emerge my Prefix system in Mac OS X Lion.
Back to top
View user's profile Send private message
vwegert
n00b
n00b


Joined: 12 Mar 2005
Posts: 31
Location: Germany

PostPosted: Sun Nov 27, 2011 9:20 am    Post subject: Reply with quote

Xplod wrote:

Using google translate, it looks like a workaround which i tried and successfully emerged python and then portage:

Code:
env USE="-aqua" FEATURES="-collision-protect" emerge --oneshot portage


I can't confirm this isn't causing side-effects elsewhere but at least i could bootstrap and emerge my Prefix system in Mac OS X Lion.


There appears to be another problem, see also bug 390861
Back to top
View user's profile Send private message
b0nafide
Apprentice
Apprentice


Joined: 17 Feb 2008
Posts: 171
Location: ~/

PostPosted: Fri Dec 02, 2011 5:44 am    Post subject: Reply with quote

Thanks, this post was helpful!
Back to top
View user's profile Send private message
grobian
Developer
Developer


Joined: 31 May 2006
Posts: 67

PostPosted: Sun Dec 04, 2011 7:25 pm    Post subject: Reply with quote

The problem was actually in the ebuild, and only happened first time python was emerged, hence never noticed before. It's fixed now, thanks!
_________________
Gentoo on a different level
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum