Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528526 - 'dev-lang/python-2.7.8': build "PythonLancher" failed while running bootstrap-prefix.sh in Mac OS X 10.10
Summary: 'dev-lang/python-2.7.8': build "PythonLancher" failed while running bootstrap...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 527514
  Show dependency tree
 
Reported: 2014-11-07 03:20 UTC by proxy.vk
Modified: 2014-11-27 13:13 UTC (History)
2 users (show)

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


Attachments
build.log (python2.7.8.build.log.bz2,41.86 KB, text/plain)
2014-11-07 03:25 UTC, proxy.vk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description proxy.vk 2014-11-07 03:20:47 UTC
compiling "dev-lang/python-2.7.8' failed in stage 3 while installing gentoo-prefix in Mac OS X 10.10 by 'bootstrap-prefix.sh"

the error msg:
--------------------------------------
gcc -m64 -march=nocona -fwrapv -fno-strict-aliasing -fno-common -dynamic -DNDEBUG  -o FileSettings.o -c /opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/Python-2.7.8/Mac/PythonLauncher/FileSettings.m
In file included from /usr/include/os/object.h:75,
                 from /usr/include/dispatch/dispatch.h:48,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55,
                 from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/Python-2.7.8/Mac/PythonLauncher/FileSettings.h:9,
                 from /opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/Python-2.7.8/Mac/PythonLauncher/FileSettings.m:9:
/usr/include/objc/NSObject.h:22: error: expected ')' before 'instancetype'
/usr/include/objc/NSObject.h:36: error: expected ')' before 'instancetype'
/usr/include/objc/NSObject.h:38: error: expected ')' before 'instancetype'
/usr/include/objc/NSObject.h:60: error: expected ')' before 'instancetype'
/usr/include/objc/NSObject.h:62: error: expected ')' before 'instancetype'
/usr/include/objc/NSObject.h:63: error: expected ')' before 'instancetype'
/usr/include/objc/NSObject.h:64: error: expected ')' before 'instancetype'
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:119,
                 from /opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/Python-2.7.8/Mac/PythonLauncher/FileSettings.h:9,
                 from /opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/Python-2.7.8/Mac/PythonLauncher/FileSettings.m:9:
/System/Library/Frameworks/Foundation.framework/Headers/NSUserActivity.h:55: error: expected a property attribute before 'weak'
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:171,
                 from /opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/Python-2.7.8/Mac/PythonLauncher/FileSettings.h:9,
                 from /opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/Python-2.7.8/Mac/PythonLauncher/FileSettings.m:9:
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:17: error: expected ',' or '}' before '__attribute__'
Makefile:61: recipe for target 'FileSettings.o' failed
make[2]: *** [FileSettings.o] Error 1
make[2]: Leaving directory '/opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/x86_64-apple-darwin14/Mac/PythonLauncher'
Makefile:147: recipe for target 'install_PythonLauncher' failed
make[1]: *** [install_PythonLauncher] Error 2
make[1]: Leaving directory '/opt/gentoo/var/tmp/portage/dev-lang/python-2.7.8/work/x86_64-apple-darwin14/Mac'
Makefile:1228: recipe for target 'frameworkinstallapps' failed
make: *** [frameworkinstallapps] Error 2


Reproducible: Always

Steps to Reproduce:
1. chmod +x ./bootstrap-prefix.sh
2. ./bootstrap-prefix.sh
3.



Portage 2.2.10.1-prefix (python 2.7.3-final-0, prefix/darwin/macos/10.10/x64, gcc-4.2.1, unavailable, 14.0.0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-14.0.0-x86_64-i386-64bit
Timestamp of tree: Thu, 06 Nov 2014 18:05:27 +0000
app-shells/bash:      4.2_p53
dev-lang/perl:        5.20.1
dev-util/pkgconfig:   0.28-r2
sys-devel/autoconf:   2.69
sys-devel/automake:   1.14.1
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4.2-r1
sys-devel/make:       4.1-r1
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin14"
CFLAGS="-march=nocona"
CHOST="x86_64-apple-darwin14"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CXXFLAGS=""
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS="-j3"
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses objc objc++ prefix readline sse sse2 ssl 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 author" 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 ublox 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 proxy.vk 2014-11-07 03:25:13 UTC
Created attachment 388724 [details]
build.log
Comment 2 yegle 2014-11-09 04:36:37 UTC
Related upstream discussion:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63651
Comment 3 yegle 2014-11-09 04:48:41 UTC
If this is really related to upstream GCC problem, we may out of luck in solving it with a deprecated GCC version.

My current workaround is set CC=/usr/bin/clang and CXX=/usr/bin/clang++ in make.conf before building python and remove those settings later.
Comment 4 yegle 2014-11-16 02:31:15 UTC
I tried to emerge python2.7.8 today and looks like it works just fine. Guess this issue have been fixed?
Comment 5 Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-11-27 13:12:49 UTC
Fixed for now due to using clang for python.