Gentoo Archives: gentoo-alt

From: "Askar Bektassov (Аскар Бектасов)" <askar.bektassov@×××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Re: Bootstrap python-3.3.3 error on OSX 10.11 (El Capitan)
Date: Sun, 13 Dec 2015 12:25:18
Message-Id: CAJkPO_TXgJm6vR=Ga7S5NDV5BVF74xSmiT3t_djmYJADTj3m4Q@mail.gmail.com
In Reply to: [gentoo-alt] Bootstrap python-3.3.3 error on OSX 10.11 (El Capitan) by "Askar Bektassov (Аскар Бектасов)"
1 Hi All,
2
3 In case you find it useful, below are the steps that allowed me installing
4 gentoo prefix on macos 10.11 (El Capitan).
5
6 Before you launch the bootstrap-prefix.sh script, it is advised giving
7 another look to the manual
8 <https://wiki.gentoo.org/wiki/Project:Prefix/Manual_Bootstrap> and making
9 sure that command line tools have been installed (sudo xcode-select
10 --install).
11
12 If the the script completes with no error, you can skip the rest of this
13 message.
14
15 == issues during stage2 ==
16
17 If bootstrap-prefix.sh fails with "$EPREFIX/tmp/etc/portage/make.profile is
18 not a symlink and will probably prevent most merges.", you can replicate
19 macos 10.10 profile (cp -r
20 $EPREFIX/usr/portage/profiles/prefix/darwin/macos/10.10
21 $EPREFIX/usr/portage/profiles/prefix/darwin/macos/10.11), until such time
22 macos 10.11 is fully supported.
23
24 If llvm-3.4.2 compilation fails with "ld: library not found for -lc++",
25 make sure that xcode command line tools are used instead of full Xcode 7
26 package (sudo xcode-select -s /Library/Developer/CommandLineTools).
27
28 After any of the above fixes, you can relaunch bootstrap-prefix.sh from the
29 last checkpoint (bootstrap-prefix.sh $EPREFIX stage2).
30
31 == issues during stage3 ==
32
33 If perl-5.22.0 compilation fails with "ld: library not found for
34 -lgcc_s.10.4", you can create the missing symlink (ln
35 -s /usr/lib/libgcc_s.1.dylib $EPREFIX/usr/lib/libgcc_s.10.4.dylib). This is
36 a known bug [1].
37
38 If python-3.3.3 compilation fails with "dyld: Library not loaded:
39 $EPREFIX/usr/lib/libpython3.3.dylib", you can create the missing symlink
40 (ln -s
41 $EPREFIX/tmp/var/tmp/portage/dev-lang/python-3.3.3/work/x86_64-apple-darwin14/libpython3.3.dylib
42 $EPREFIX/usr/lib/libpython3.3.dylib).
43
44 If python-3.3.3 compilation fails with "fatal error: too many errors
45 emitted, stopping now [-ferror-limit=]", you need to download Xcode_6.4.dmg
46 [2], copy MacOSX10.10.sdk from its contents to a location of your
47 preference (cp -rv
48 /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
49 $HOME/Downloads) and add SDKROOT variable pointing to that location into
50 your make.conf (echo SDKROOT=$HOME/Downloads/MacOSX10.10.sdk >>
51 $EPREFIX/etc/portage/make.conf).
52
53 If python-3.3.3 installation fails with "Detected file collision(s):
54 $EPREFIX/usr/lib/libpython3.3.dylib", then remove the symlink created above
55 and complete the package merge manually (rm -rf
56 $EPREFIX/usr/lib/libpython3.3.dylib; ebuild
57 $EPREFIX/usr/portage/dev-lang/python/python-3.3.3.ebuild qmerge clean)
58
59 If mhash-1.4 fails with "mhash.c:23:10: fatal error: 'mhash.h' file not
60 found", then comment out the SDKROOT variable in
61 $EPREFIX/etc/portage/make.conf.
62
63 After any of the above fixes, you can relaunch bootstrap-prefix.sh from the
64 last checkpoint (bootstrap-prefix.sh $EPREFIX stage3).
65
66 == after completion ==
67
68 If during the script you notice some complaints that some confdir-14B---
69 folders cannot be deleted, you may need to manually go into the
70 $EPREFIX/tmp/var/tmp folder and delete perform some manual cleaning [3].
71
72 Good [luck]
73
74 [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42825
75 [2] http://adcdownload.apple.com/Developer_Tools/Xcode_6.4/Xcode_6.4.dmgvi
76 [3]
77 https://archives.gentoo.org/gentoo-alt/message/d58e58248d9ea541282b35fb55a92edb
78
79
80 --
81 Askar Bektassov (Аскар Бектасов)
82 Sent from webmail
83
84 For more info, LinkedIn
85 <https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile>
86
87 On Sun, Nov 22, 2015 at 12:42 AM, Askar Bektassov (Аскар Бектасов) <
88 askar.bektassov@×××××.com> wrote:
89
90 > Hi all,
91 >
92 > during stage3 bootstrap, I am getting the following error during
93 > python-3.3.3 compilation.
94 >
95 > python$EXE ../../Tools/scripts/h2py.py -i '(u_long)'
96 > /usr/include/netinet/in.h
97 > dyld: Library not loaded:
98 > /Users/askarbektassov/Gentoo/usr/lib/libpython3.3.dylib
99 > Referenced from:
100 > /Users/askarbektassov/Gentoo/tmp/var/tmp/portage/dev-lang/python-3.3.3/work/x86_64-apple-darwin14/python.exe
101 > Reason: image not found
102 > ./regen: line 3: 38802 Trace/BPT trap: 5 python$EXE
103 > ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h
104 > Makefile:523: recipe for target 'platformspecificmods' failed
105 > make: *** [platformspecificmods] Error 1
106 > * ERROR: dev-lang/python-3.3.3::gentoo_prefix failed (compile phase):
107 > * emake failed
108 > *
109 > * If you need support, post the output of `emerge --info
110 > '=dev-lang/python-3.3.3::gentoo_prefix'`,
111 > * the complete build log and the output of `emerge -pqv
112 > '=dev-lang/python-3.3.3::gentoo_prefix'`.
113 > * The complete build log is located at
114 > '/Users/askarbektassov/Gentoo/tmp/var/tmp/portage/dev-lang/python-3.3.3/temp/build.log'.
115 > * The ebuild environment file is located at
116 > '/Users/askarbektassov/Gentoo/tmp/var/tmp/portage/dev-lang/python-3.3.3/temp/environment'.
117 > * Working directory:
118 > '/Users/askarbektassov/Gentoo/tmp/var/tmp/portage/dev-lang/python-3.3.3/work/x86_64-apple-darwin14'
119 > * S:
120 > '/Users/askarbektassov/Gentoo/tmp/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3'
121 >
122 > I understand that OSX 10.11 may not be supported yet. Indeed, reaching
123 > stage3 was not without few bumps. But I understand that a similar issue was
124 > already addressed and eventually solved in the past.
125 >
126 >
127 > https://archives.gentoo.org/gentoo-alt/message/bec67ff5325b67dfc6b3078123e6f06c
128 > .
129 >
130 > Did anyone else successfully managed to bootstrap prefix on OSX 10.11 and
131 > overcome the above issue?
132 >
133 > build.log is attached.
134 >
135 > Below output of emerge --info
136 >
137 > Askars-iMac:Gentoo askarbektassov$ emerge --info
138 > '=dev-lang/python-3.3.3::gentoo_prefix'
139 > !!! Section 'gentoo' in repos.conf has name different from repository name
140 > 'gentoo_prefix' set inside repository
141 > Portage 2.2.20-prefix (python 2.7.3-final-0,
142 > prefix/darwin/macos/10.10/x64, clang-3.4.2, unavailable, 15.0.0 x86_64)
143 > =================================================================
144 > System Settings
145 > =================================================================
146 > System uname: Darwin-15.0.0-x86_64-i386-64bit
147 > Timestamp of repository gentoo_prefix: Wed, 17 Jun 2015 21:37:42 +0000
148 > sh bash 4.3_p39
149 > app-shells/bash: 4.3_p39::gentoo_prefix
150 > dev-lang/perl: 5.22.0::gentoo_prefix
151 > dev-util/pkgconfig: 0.28-r3::gentoo_prefix
152 > sys-devel/autoconf: 2.69::gentoo_prefix
153 > sys-devel/automake: 1.14.1::gentoo_prefix
154 > sys-devel/libtool: 2.4.2-r1::gentoo_prefix
155 > sys-devel/make: 4.1-r1::gentoo_prefix
156 > Repositories:
157 >
158 > gentoo_prefix
159 > location: /Users/askarbektassov/Gentoo/tmp/usr/portage
160 > sync-type: rsync
161 > sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
162 > priority: -1000
163 > aliases: gentoo
164 >
165 > ACCEPT_KEYWORDS="~x64-macos"
166 > ACCEPT_LICENSE="* -@EULA"
167 > CBUILD="x86_64-apple-darwin14"
168 > CFLAGS="-march=nocona -O2 -pipe"
169 > CHOST="x86_64-apple-darwin14"
170 > CONFIG_PROTECT="/etc"
171 > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release
172 > /etc/terminfo"
173 > CXXFLAGS="-march=nocona -O2 -pipe"
174 > DISTDIR="/Users/askarbektassov/Gentoo/tmp/usr/portage/distfiles"
175 > FCFLAGS=""
176 > FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect
177 > config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix
178 > merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms
179 > strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged
180 > userfetch userpriv usersandbox usersync"
181 > FFLAGS=""
182 > GENTOO_MIRRORS="http://distfiles.gentoo.org"
183 > LANG="en_US.UTF-8"
184 > LDFLAGS="-Wl,-dead_strip_dylibs"
185 > MAKEOPTS="-j5"
186 > PKGDIR="/Users/askarbektassov/Gentoo/tmp/usr/portage/packages"
187 > PORTAGE_CONFIGROOT="/Users/askarbektassov/Gentoo/tmp/"
188 > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
189 > --omit-dir-times --compress --force --whole-file --delete --stats
190 > --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
191 > --exclude=/packages"
192 > PORTAGE_TMPDIR="/Users/askarbektassov/Gentoo/tmp/var/tmp"
193 > USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses nls objc
194 > objc++ prefix prefix-guest readline sse sse2 ssl unicode x64-macos zlib"
195 > APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias
196 > auth_basic authn_alias authn_anon authn_dbm authn_default authn_file
197 > authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user
198 > autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env
199 > expires ext_filter file_cache filter headers include info log_config logio
200 > mem_cache mime mime_magic negotiation rewrite setenvif speling status
201 > unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow
202 > plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2"
203 > COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
204 > CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech
205 > aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea
206 > ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf
207 > superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard
208 > mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
209 > lb216 lcdm001 mtxorb ncurses text"
210 > LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
211 > OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5"
212 > PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3"
213 > RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" XTABLES_ADDONS="quota2 psd
214 > pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition
215 > tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
216 > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
217 > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
218 > PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
219 >
220 > --
221 > Askar Bektassov (Аскар Бектасов)
222 > Sent from webmail
223 >
224 > For more info, LinkedIn
225 > <https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile>
226 >

Replies