Just set up Prefix using the automated installer - "emerge -e system" failed at dev-lang/python-3.3.0 with the following: sed: can't read /opt/gentoo/var/tmp/portage/dev-lang/python-3.3.0/image/opt/gentoo//usr/lib/python3.3/config-3.3/Makefile: No such file or directory * ERROR: dev-lang/python-3.3.0 failed (install phase): * sed failed * * Call stack: * ebuild.sh, line 93: Called call-ebuildshell 'src_install' * environment, line 1469: Called src_install * environment, line 6074: Called die * The specific snippet of code: * sed -e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" -e "s/\(PY_LDFLAGS=\).*/\1/" -i "${ED}$(python_get_libdir)/config-${SLOT}/Makefile" || die "sed failed"; And apparentely, sed is right: There is just a directory called ${ED}/usr/lib/python3.3/config-3.3m in there, which contains the Makefile! Reproducible: Always $ emerge -pqv '=dev-lang/python-3.3.0' [ebuild R ] dev-lang/python-3.3.0 [3.3.0] USE="gdbm ipv6 ncurses readline ssl threads xml -build -doc -examples -sqlite -tk -wininst" $ emerge --info '=dev-lang/python-3.3.0' Portage 2.2.01.21580-prefix (prefix/linux/amd64, gcc-4.6.3, unavailable, 2.6.32-279.11.1.el6.x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.32-279.11.1.el6.x86_64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7600_@_3.06GHz-with-redhat-6.2-Carbon Timestamp of tree: Thu, 17 Jan 2013 15:38:43 +0000 ld GNU ld (GNU Binutils) 2.23 app-shells/bash: 4.2_p39-r1::gentoo_prefix dev-lang/python: 2.7.3-r2::gentoo_prefix, 3.3.0::gentoo_prefix dev-util/pkgconfig: 0.27.1::gentoo_prefix sys-devel/autoconf: 2.69::gentoo_prefix sys-devel/automake: 1.12.4::gentoo_prefix sys-devel/binutils: 2.23::gentoo_prefix sys-devel/gcc: 4.2.4-r01.4::gentoo_prefix, 4.6.3::gentoo_prefix sys-devel/gcc-config: 1.8-r00.1::gentoo_prefix sys-devel/libtool: 2.4.2::gentoo_prefix sys-devel/make: 3.82-r4::gentoo_prefix sys-kernel/linux-headers: 3.5::gentoo_prefix (virtual/os-headers) Repositories: gentoo_prefix ACCEPT_KEYWORDS="~amd64-linux" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/portage /etc/terminfo" CXXFLAGS="-O2 -pipe -march=core2 -O2 -pipe" DISTDIR="/opt/gentoo/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/opt/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/opt/gentoo/" 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="/opt/gentoo/var/tmp" PORTDIR="/opt/gentoo/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl openmp pcre pppd prefix readline session sse sse2 ssl tcpd unicode zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= dev-lang/python-3.3.0 was built with the following: USE="gdbm ipv6 ncurses (prefix) readline ssl threads xml -build -doc -examples -sqlite -tk -wininst" CFLAGS="-O2 -pipe -march=core2 -O2 -pipe -fwrapv" CXXFLAGS="-O2 -pipe -march=core2 -O2 -pipe -fwrapv" LDFLAGS="-Wl,-O1 -L."
Created attachment 335942 [details] build.log The build log from a run with LC_ALL=C and no MAKEOPTS
If I change the ebuild to add that "m" to the path config-3.3m - then suddenly there is the directory config-3.3. I removed the fix and paused emerge just before installing and created a symlink. Something is really weird here!
I think this is cruft related to: checking LDVERSION... $(VERSION)$(ABIFLAGS) checking SO... .cpython-33m.so ABIFLAGS being "m" or something. # * --with-pymalloc (adds a 'm') so, huh? I'm affraid it finds it something on your system. I've added --without-pymalloc to the configure call, hopefully that fixes the issue for you, could you try that?
My clean bootstrap on OS X failed because of the --with-pymalloc during the last step (emerge -e system). I get the following error : x86_64-apple-darwin12-gcc -c -fno-strict-aliasing -DNDEBUG -march=nocona -O2 -pipe -fwrapv -I. -I./Include -DPy_BUILD_CORE -o Objects/setobject.o Objects/setobject.c Objects/obmalloc.c: In function 'printone': Objects/obmalloc.c:1743: error: 'uint' undeclared (first use in this function) Objects/obmalloc.c:1743: error: (Each undeclared identifier is reported only once Objects/obmalloc.c:1743: error: for each function it appears in.) Objects/obmalloc.c:1743: error: expected ';' before 'digit' Objects/obmalloc.c:1745: error: expected ')' before '+' token Objects/obmalloc.c:1745: error: expected expression before ';' token make: *** [Objects/obmalloc.o] Erreur 1 make: *** Attente des tâches non terminées.... emake failed * ERROR: dev-lang/python-3.3.0 failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 85: Called call-ebuildshell 'src_compile' * environment, line 1414: Called src_compile * environment, line 5968: Called die * The specific snippet of code: * emake CPPFLAGS="" CFLAGS="" LDFLAGS="" || die "emake failed"; * It seems to be partly a problem for upstream, because --without-pymalloc implies that the definition of uint is dropped even if it used in the remaining code. I'll try to file a bug for upstream. Anyway, when modifying the ebuild to return to --with-pymalloc, everything compile fine. $ emerge -pvt python [ebuild NS ] dev-lang/python-3.3.0::gentoo [2.7.3-r2::gentoo_prefix] USE="ipv6 ncurses readline ssl threads xml -build -doc -examples -gdbm -sqlite -tk -wininst" 0 kB $ emerge --info Portage 2.2.01.20837-prefix (prefix/darwin/macos/10.8/x64, gcc-4.2.1, unavailable, 12.2.1 x86_64) ================================================================= System uname: Darwin-12.2.1-x86_64-i386-64bit Timestamp of tree: Mon, 04 Feb 2013 00:52:17 +0000 app-shells/bash: 4.2_p39-r1::gentoo_prefix dev-lang/python: 2.7.3-r2::gentoo_prefix sys-devel/autoconf: 2.69::gentoo_prefix sys-devel/automake: 1.12.4::gentoo_prefix sys-devel/gcc-config: 1.8-r00.1::gentoo_prefix sys-devel/libtool: 2.4.2::gentoo_prefix sys-devel/make: 3.82-r4::gentoo_prefix Repositories: gentoo_prefix ACCEPT_KEYWORDS="~x64-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin12" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-apple-darwin12" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/portage /etc/terminfo" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/Users/sylchev/gentoo/usr/portage/distfiles" FCFLAGS="" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix news nostrip parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="fr_FR.UTF-8" LC_ALL="C" LDFLAGS="-Wl,-dead_strip_dylibs" MAKEOPTS="-j1" PKGDIR="/Users/sylchev/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/sylchev/gentoo/" 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="/Users/sylchev/gentoo/var/tmp" PORTDIR="/Users/sylchev/gentoo/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses nls objc objc++ prefix readline sse sse2 ssl unicode x64-macos zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_2" RUBY_TARGETS="ruby18 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Why wasn't this bug assigned to python@? i will fix it in a minute.
Oh wait, this about -r0. Could you try to reproduce it using -r1?
(In reply to comment #5) > Why wasn't this bug assigned to python@? i will fix it in a minute. Because the prefix ebuild significantly differs, and the python maintainer used to dislike that, as such not really appreciating any prefix-related bugs. It seems that we have to conditionalise this with/without pymalloc for OSX, because (yay, Python, gotta love it) it breaks there, apparently.
*** Bug 456096 has been marked as a duplicate of this bug. ***
*** Bug 458168 has been marked as a duplicate of this bug. ***
thanks to Richard, this is fixed now too. @python, if you want see the patch for upstream bug. It's in the prefix patchset now.
Can you please attach it here, at least?
http://overlays.gentoo.org/proj/alt/changeset?reponame=&new=61548%40trunk%2Fprefix-overlay%2Fdev-lang%2Fpython%2Fpython-3.3.0.ebuild&old=61504%40trunk%2Fprefix-overlay%2Fdev-lang%2Fpython%2Fpython-3.3.0.ebuild http://prefix.gentooexperimental.org:8000/python-patches-3_3/file/78a82e44ce77/14_all_darwin_uint.patch http://bugs.python.org/issue17228
Ah, sorry, I missed that this was a duplicate of bug 458168.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=87737d08c50db52ba1abbf7c363182d31f0f05ba commit 87737d08c50db52ba1abbf7c363182d31f0f05ba Author: Michael Haubenwallner <haubi@gentoo.org> AuthorDate: 2019-02-14 16:59:44 +0000 Commit: Michael Haubenwallner <haubi@gentoo.org> CommitDate: 2019-02-14 16:59:51 +0000 dev-lang/python: sync 3.6.6 Disabling ABIFLAGS is long gone in gentoo repo, to align with upstream and other distros. While --without-pymalloc would omit the 'm' abi flag, this breaks 'import ctypes' on Cygwin. However, bug#452720 is handled differently now, so this is not a problem any more. Not changing 3.6.5 in hope for less breakage, yet that one's patches still apply to 3.6.6. Bug: https://bugs.gentoo.org/452720 Package-Manager: Portage-2.3.55.1-prefix, Repoman-2.3.12 Signed-off-by: Michael Haubenwallner <haubi@gentoo.org> dev-lang/python/Manifest | 2 + dev-lang/python/python-3.6.6.ebuild | 427 ++++++++++++++++++++++++++++++++++++ 2 files changed, 429 insertions(+)