Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582104 - dev-libs/glib-2.46.2-r1 on OS X 15.4 - In file included from .../work/glib-2.46.2/gio/gcocoanotificationbackend.c:22: /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:21: error: expected a type
Summary: dev-libs/glib-2.46.2-r1 on OS X 15.4 - In file included from .../work/glib-2....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-04 18:57 UTC by Sascha Wintz
Modified: 2016-05-10 18:21 UTC (History)
0 users

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


Attachments
glib build log (build.log,489.59 KB, text/plain)
2016-05-04 18:57 UTC, Sascha Wintz
Details
glib-2.45.2 build log (build-abi_x86_64.amd64.log,517.26 KB, text/plain)
2016-05-07 14:41 UTC, PMcG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Wintz 2016-05-04 18:57:53 UTC
Created attachment 433224 [details]
glib build log

This happens during a fresh install. Using bootstrap-prefix.sh 20160420

make[4]: Leaving directory '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2-abi_x86_64.amd64/gio'
Makefile:4076: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2-abi_x86_64.amd64/gio'
Makefile:1842: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2-abi_x86_64.amd64/gio'
Makefile:1199: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2-abi_x86_64.amd64'
Makefile:838: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: dev-libs/glib-2.46.2-r1::gentoo_prefix failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/glib-2.46.2-r1::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/glib-2.46.2-r1::gentoo_prefix'`.
 * The complete build log is located at '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/temp/environment'.
 * Working directory: '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2-abi_x86_64.amd64'
 * S: '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2'

>>> Failed to emerge dev-libs/glib-2.46.2-r1, Log file:

>>>  '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/temp/build.log'
 * Messages for package app-arch/xz-utils-5.2.2:
 *   Darwin patch set 'darwin-conf' failed to apply!
 * Messages for package dev-libs/libiconv-1.14-r1:
 *   Darwin patch set 'darwin-conf' failed to apply!
 *   Darwin patch set 'darwin-conf' failed to apply!
 * Messages for package dev-libs/libffi-3.2.1:
 *   Darwin patch set 'darwin-conf' failed to apply!
 * Messages for package sys-apps/man-1.6g-r1:
 * 'enewgroup()' disabled in Gentoo Prefix with non-root user (by design)
 *     Group: 'man' not created
 * 'enewuser()'  disabled in Gentoo Prefix with non-root user (by design)
 *     User: 'man' not created
 * Messages for package net-misc/openssh-7.1_p1-r2:
 * 'enewgroup()' disabled in Gentoo Prefix with non-root user (by design)
 *     Group: 'sshd' not created
 * 'enewuser()'  disabled in Gentoo Prefix with non-root user (by design)
 *     User: 'sshd' not created
 * Messages for package dev-libs/libxml2-2.9.3:
 *   Darwin patch set 'darwin-conf' failed to apply!
 * Messages for package app-arch/libarchive-3.1.2-r4:
 *   Darwin patch set 'darwin-conf' failed to apply!
 * Messages for package dev-libs/libxslt-1.1.28-r5:
 *   Darwin patch set 'darwin-conf' failed to apply!
 * Messages for package dev-libs/glib-2.46.2-r1:
 *   Darwin patch set 'darwin-conf' failed to apply!
 * ERROR: dev-libs/glib-2.46.2-r1::gentoo_prefix failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/glib-2.46.2-r1::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/glib-2.46.2-r1::gentoo_prefix'`.
 * The complete build log is located at '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/temp/environment'.
 * Working directory: '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2-abi_x86_64.amd64'
 * S: '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2'
Hmmmm, I was already afraid of this to happen.  Running
  /Users/Sascha/Gentoo/bin/bash ./bootstrap-prefix.sh "/Users/Sascha/Gentoo" stage3
somewhere failed :(  Details might be found in the build log:
  /Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/temp/build.log
I have no clue, really.  Please find friendly folks in #gentoo-prefix on
irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug
at bugs.gentoo.org under Gentoo/Alt, Prefix Support.  This is most
inconvenient, and it crushed my ego.  Sorry, I give up.
Should you want to give it a try, there is /Users/Sascha/Gentoo/stage3.log


$ Gentoo/usr/bin/emerge --info '=dev-libs/glib-2.46.2-r1::gentoo_prefix'
Portage 2.2.28-prefix (python 3.5.1-final-0, prefix/darwin/macos/10.11/x64, clang-3.5.2, unavailable, 15.4.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Darwin-15.4.0-x86_64-i386-64bit
Timestamp of repository gentoo_prefix: Wed, 04 May 2016 18:27:56 +0000
sh bash 4.3_p39
app-shells/bash:    4.3_p39::gentoo_prefix
dev-lang/perl:      5.22.1::gentoo_prefix
dev-lang/python:    2.7.11::gentoo_prefix, 3.4.3-r5::gentoo_prefix, 3.5.1::gentoo_prefix
dev-util/pkgconfig: 0.29.1::gentoo_prefix
sys-devel/autoconf: 2.69::gentoo_prefix
sys-devel/automake: 1.14.1::gentoo_prefix, 1.15::gentoo_prefix
sys-devel/libtool:  2.4.6-r1::gentoo_prefix
sys-devel/make:     4.1-r1::gentoo_prefix
Repositories:

gentoo_prefix
    location: /Users/Sascha/Gentoo/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
    priority: -1000
    aliases: gentoo

ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin15"
CC="x86_64-apple-darwin15-clang"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-apple-darwin15"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CXX="x86_64-apple-darwin15-clang++"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/Users/Sascha/Gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs case-insensitive-fs 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 unprivileged userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS="-j5"
PKGDIR="/Users/Sascha/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/Sascha/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 --exclude=/.git"
PORTAGE_TMPDIR="/Users/Sascha/Gentoo/var/tmp"
USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses nls objc objc++ prefix prefix-guest readline sse sse2 ssl unicode x64-macos zlib" ABI_X86="64" 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 python3_4 python3_5" RUBY_TARGETS="ruby20 ruby21" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

$ Gentoo/usr/bin/emerge -pqv '=dev-libs/glib-2.46.2-r1::gentoo_prefix'
[ebuild  N    ] dev-libs/glib-2.46.2-r1  USE="mime -dbus -debug -fam (-selinux) -static-libs (-systemtap) {-test} -utils -xattr" PYTHON_TARGETS="python2_7"
[ebuild  N    ] x11-misc/shared-mime-info-1.6  USE="{-test}"
Comment 1 Fabian Groffen gentoo-dev 2016-05-06 08:16:12 UTC
/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2/gmodule -DG_DISABLE_CAST_CHECKS -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/Users/Sascha/Gentoo/usr/lib/gio/modules\" -I/Users/Sascha/Gentoo/usr/include -D_REENTRANT -fvisibility=hidden -xobjective-c -c /Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2/gio/gcocoanotificationbackend.c  -fno-common -DPIC -o .libs/libgio_2_0_la-gcocoanotificationbackend.o
/Users/Sascha/Gentoo/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-apple-darwin15-clang -DHAVE_CONFIG_H -I. -I/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2/gio -I..   -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I../glib -I/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2/glib -I/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2 -I/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2/gmodule -DG_DISABLE_CAST_CHECKS -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/Users/Sascha/Gentoo/usr/lib/gio/modules\"	 -I/Users/Sascha/Gentoo/usr/include -D_REENTRANT  -fvisibility=hidden -xobjective-c  -c -o libgio_2_0_la-gactiongroup.lo `test -f 'gactiongroup.c' || echo '/Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2/gio/'`gactiongroup.c
In file included from /Users/Sascha/Gentoo/var/tmp/portage/dev-libs/glib-2.46.2-r1/work/glib-2.46.2/gio/gcocoanotificationbackend.c:22:
In file included from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:21: error: expected a type
- (id)copyWithZone:(nullable NSZone *)zone;
                    ^
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25:28: error: expected a type
- (id)mutableCopyWithZone:(nullable NSZone *)zone;
                           ^
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:32:4: error: expected a type
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder; // NS_DESIGNATED_INITIALIZER
   ^
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:53:4: error: expected a type
- (nullable id)replacementObjectForCoder:(NSCoder *)aCoder;
   ^
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:54:4: error: expected a type
- (nullable id)awakeAfterUsingCoder:(NSCoder *)aDecoder NS_REPLACES_RECEIVER;
   ^

I bet this is clang-3.5 not understanding this, but I thought we added a workaround for this.
Comment 2 PMcG 2016-05-07 14:41:27 UTC
Created attachment 433520 [details]
glib-2.45.2 build log

Believe I'm suffering from this as well, new install.

Portage 2.2.28-prefix (python 3.5.1-final-0, prefix/darwin/macos/10.11/x64, clang-3.5.2, unavailable, 15.4.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Darwin-15.4.0-x86_64-i386-64bit
Timestamp of repository gentoo_prefix: Sat, 07 May 2016 13:58:08 +0000
sh bash 4.3_p39
app-shells/bash:    4.3_p39::gentoo_prefix
dev-lang/perl:      5.22.1::gentoo_prefix
dev-lang/python:    2.7.11::gentoo_prefix, 3.4.3-r5::gentoo_prefix, 3.5.1::gentoo_prefix
dev-util/pkgconfig: 0.29.1::gentoo_prefix
sys-devel/autoconf: 2.69::gentoo_prefix
sys-devel/automake: 1.14.1::gentoo_prefix, 1.15::gentoo_prefix
sys-devel/libtool:  2.4.6-r1::gentoo_prefix
sys-devel/make:     4.1-r1::gentoo_prefix
Repositories:

gentoo_prefix
    location: /Users/paul/Gentoo/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
    priority: -1000
    aliases: gentoo

ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin15"
CC="x86_64-apple-darwin15-clang"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-apple-darwin15"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CXX="x86_64-apple-darwin15-clang++"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/Users/paul/Gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs case-insensitive-fs 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 unprivileged userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS="-j9"
PKGDIR="/Users/paul/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/paul/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 --exclude=/.git"
PORTAGE_TMPDIR="/Users/paul/Gentoo/var/tmp"
USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses nls objc objc++ prefix prefix-guest readline sse sse2 ssl unicode x64-macos zlib" ABI_X86="64" 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 python3_4 python3_5" RUBY_TARGETS="ruby20 ruby21" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

[ebuild  N    ] dev-libs/glib-2.46.2-r1  USE="mime -dbus -debug -fam (-selinux) -static-libs (-systemtap) {-test} -utils -xattr" PYTHON_TARGETS="python2_7" 
[ebuild  N    ] x11-misc/shared-mime-info-1.6  USE="{-test}"
Comment 3 Fabian Groffen gentoo-dev 2016-05-10 10:48:25 UTC
I see a build error too
Comment 4 Fabian Groffen gentoo-dev 2016-05-10 18:19:42 UTC
I succesfully worked around this in the bootstrap-prefix.sh now:

-       # Portage should figure out itself what it needs to do, if anything
+       # Portage should figure out itself what it needs to do, if anything.
+       # Avoid glib compiling for Cocoa libs if it finds them, since we're
+       # still with an old llvm that may not understand the system headers
+       # very well on Darwin (-DGNUSTEP_BASE_VERSION hack)
+       CPPFLAGS="-DGNUSTEP_BASE_VERSION" \
        CFLAGS= CXXFLAGS= USE="-git" emerge -u system || return 1