Summary: | dev-lang/python-3.3.0 failed to build in src_install - sed: can't read "${ED}$(python_get_libdir)/config-${SLOT}/Makefile" No such file or directory | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Moritz Schlarb <moschlar> |
Component: | Prefix Support | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | junghans, moschlar, prefix, ryao, sylvchev |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Moritz Schlarb
2013-01-17 18:56:53 UTC
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(+) |