Created attachment 872117 [details] Complete build log I'm failing to emerge dev-libs/libintl-0.22.2 with the following error: checking for x86_64-apple-darwin22-gcc... x86_64-apple-darwin22-gcc checking whether the C compiler works... no configure: error: in `/Users/ash/Gentoo/var/tmp/portage/dev-libs/libintl-0.22.2/work/gettext-0.22.2/gettext-runtime-abi_x86_64.amd64': configure: error: C compiler cannot create executables emerge --info '=dev-libs/libintl-0.22.2::gentoo_prefix' Portage 3.0.49 (python 3.11.3-final-0, prefix/darwin/macos/13.0/x64/gcc, gcc-12.2.0, unavailable, 22.6.0 x86_64) ================================================================= System Settings ================================================================= System uname: macOS-13.6-x86_64-i386-64bit Timestamp of repository gentoo_prefix: Tue, 03 Oct 2023 23:26:28 +0000 Head commit of repository gentoo_prefix: 6cded3b440a889fbea35205c5c42ab70373b4ff6 sh bash 5.2_p15-r6 ld xtools-2.2.4 ld (Gentoo binutils-apple-8.2.1-r103) app-misc/pax-utils: 1.3.7::gentoo_prefix app-shells/bash: 5.2_p15-r6::gentoo_prefix dev-lang/perl: 5.38.0-r1::gentoo_prefix dev-lang/python: 3.11.3::gentoo_prefix dev-util/cmake: 3.27.4-r1::gentoo_prefix dev-util/meson: 1.2.1-r1::gentoo_prefix sys-apps/baselayout: 2.14::gentoo_prefix sys-devel/autoconf: 2.71-r7::gentoo_prefix sys-devel/automake: 1.16.5-r1::gentoo_prefix sys-devel/binutils-config: 5.1-r5::gentoo_prefix sys-devel/gcc: 12.2.0-r2::gentoo_prefix sys-devel/gcc-config: 2.7-r1::gentoo_prefix sys-devel/libtool: 2.4.7-r1::gentoo_prefix sys-devel/make: 4.4.1-r1::gentoo_prefix Repositories: gentoo_prefix location: /Users/ash/Gentoo/var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix priority: -1000 aliases: gentoo volatile: True sync-rsync-extra-opts: sync-rsync-verify-metamanifest: no sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="~x64-macos" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-apple-darwin22" CFLAGS="-march=native -march=skylake-avx512 -mmacosx-version-min=13 -O2 -pipe" CHOST="x86_64-apple-darwin22" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release" CONFIG_SHELL="/Users/ash/Gentoo/bin/bash" CXXFLAGS="-march=native -march=skylake-avx512 -mmacosx-version-min=13 -O2 -pipe" DISTDIR="/Users/ash/Gentoo/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live case-insensitive-fs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distfiles.prefix.bitzolder.nl/prefix" LANG="en_US.UTF-8" LDFLAGS="-Wl,-dead_strip_dylibs" LEX="flex" MAKEOPTS="--jobs 28 --load-average 29" PKGDIR="/Users/ash/Gentoo/var/cache/binpkgs" PORTAGE_CONFIGROOT="/Users/ash/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/ash/Gentoo/var/tmp" SHELL="/bin/zsh" USE="aqua bzip2 coreaudio gdbm ipv6 ncurses nls nptl objc objc++ prefix prefix-guest readline ssl test-rust unicode x64-macos zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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="karbon sheets words" 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 872118 [details] gettext-0.22.2/gettext-runtime-abi_x86_64.amd64/config.log
configure:5632: $? = 0 configure:5621: x86_64-apple-darwin22-gcc -V >&5 x86_64-apple-darwin22-gcc: error: unrecognized command-line option '-V' x86_64-apple-darwin22-gcc: fatal error: no input files compilation terminated. configure:5632: $? = 1 configure:5621: x86_64-apple-darwin22-gcc -qversion >&5 x86_64-apple-darwin22-gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'? x86_64-apple-darwin22-gcc: fatal error: no input files compilation terminated. configure:5632: $? = 1 configure:5621: x86_64-apple-darwin22-gcc -version >&5 x86_64-apple-darwin22-gcc: error: unrecognized command-line option '-version' x86_64-apple-darwin22-gcc: fatal error: no input files compilation terminated. configure:5632: $? = 1 configure:5652: checking whether the C compiler works configure:5674: x86_64-apple-darwin22-gcc -march=native -march=skylake-avx512 -mmacosx-version-min=13 -O2 -pipe -Wl,-dead_strip_dylibs conftest.c >&5 ld: library not found for -lSystem collect2: error: ld returned 1 exit status configure:5678: $? = 1 configure:5718: result: no configure: failed program was: | /* confdefs.h */
Comment on attachment 872117 [details] Complete build log build.log:48: * Darwin patch set 'darwin-conf' failed to apply!
do you have commandline tools installed? What is your EPREFIX/MacOSX.sdk pointing to?
(In reply to Fabian Groffen from comment #4) > do you have commandline tools installed? Yes. > What is your EPREFIX/MacOSX.sdk pointing to? Ah, it was pointed to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk. I don't remember ever changing that, did I miss somewhere in the documentation where it says I'm supposed to update that myself when Xcode updates? Or was bootstrap supposed to point it at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk? Or should I be retaining old SDKs? It is now pointed at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk, which is now pointing at MacOSX14.0.sdk. Now it configures successfully but the build fails. I will attach an updated build log.
Created attachment 872130 [details] MacOSX14.0.sdk build log $ ls -l ~/Gentoo/MacOSX.sdk lrwxr-xr-x 1 ash staff 94 Oct 4 08:49 Gentoo/MacOSX.sdk -> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk $ ls -l /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ total 0 drwxr-xr-x 7 root wheel 224 Aug 31 14:12 MacOSX.sdk lrwxr-xr-x 1 root wheel 10 Sep 19 02:49 MacOSX14.0.sdk -> MacOSX.sdk lrwxr-xr-x 1 root wheel 10 Sep 19 02:49 MacOSX14.sdk -> MacOSX.sdk emerge still fails but this time during build phase. This attachment is the new build log.
Can confirm, same error here. The problem seems to be the new command line tools. Trying to figure out the issue, but it seems that the problem is triggered somewhere inside the MacOSX14.0.sdk. In file included from /Users/askarbektassov/Gentoo/MacOSX.sdk/usr/include/dispatch/dispatch.h:67, from /Users/askarbektassov/Gentoo/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20, from /Users/askarbektassov/Gentoo/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:18, from /Users/askarbektassov/Gentoo/var/tmp/portage/dev-libs/libintl-0.22.3/work/gettext-0.22.3/gettext-runtime/intl/langprefs.c:36: /Users/askarbektassov/Gentoo/MacOSX.sdk/usr/include/dispatch/queue.h:103:1: error: unknown type name 'dispatch_queue_t' 103 | DISPATCH_DECL_SUBCLASS(dispatch_queue_global, dispatch_queue); My suspicion is that gcc and ld need to be rebuilt with the new SDK, and then will try again. PS: same problem seems to affect - dev-libs/libintl-0.22.3 - sys-devel/gettext-0.22.3 - dev-util/cmake-3.27.7 Since it was only the above three packages that created problem, I did not think initially it could be something that requires recompilation/relinking of some core packages... but who knows.
I worked around this by updating the MacOSX.sdk symlink to the 13 SDK specifically. I'm not sure about the 14 SDK yet. It could be that indeed a new fixinclude fixes things, but I feel this is ObjC api, and probably GCC doesn't support this.
If fixinclude mainly changes the order of include dirs, I tend to agree it may not solve the issue. By comparing /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/dispatch and /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/dispatch it appears that most of the changes are simply change in macros, which probably triggers the issue at a higher level (maybe, as you put it, some of the macros refer to commands that gcc is unable to comprehend). I tried to recompiling gcc with MacOSX14.sdk but that needs to be fixed as well.
I did: $ ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk MacOSX.sdk Then tried to emerge libintl-0.22.2, built entirely, then during the install phase, right after: >>> Original instance of package unmerged safely. I got a dyld error for missing symbol. Without changing anything, I tried emerging again, and this time got the dyld missing symbol right after: /Users/ash/Gentoo/var/tmp/portage/dev-libs/libintl-0.22.2/work/gettext-0.22.2/gettext-runtime/configure --prefix=/Users/ash/Gentoo/usr --build=x86_64-apple-darwin22 --host=x86_64-apple-darwin22 --mandir=/Users/ash/Gentoo/usr/share/man --infodir=/Users/ash/Gentoo/usr/share/info --datadir=/Users/ash/Gentoo/usr/share --sysconfdir=/Users/ash/Gentoo/etc --localstatedir=/Users/ash/Gentoo/var/lib --datarootdir=/Users/ash/Gentoo/usr/share --disable-dependency-tracking --disable-silent-rules --disable-static --docdir=/Users/ash/Gentoo/usr/share/doc/libintl-0.22.2 --htmldir=/Users/ash/Gentoo/usr/share/doc/libintl-0.22.2/html --with-sysroot=/Users/ash/Gentoo --libdir=/Users/ash/Gentoo/usr/lib --cache-file=/Users/ash/Gentoo/var/tmp/portage/dev-libs/libintl-0.22.2/work/gettext-0.22.2/gettext-runtime-abi_x86_64.amd64/config.cache --without-emacs --without-lispdir --enable-nls --with-included-gettext --disable-c++ --disable-libasprintf --disable-java --disable-static --enable-threads which is the very first command in the config stage. And now I can't seem to get *anything* to build. emerge --empty gets a dyld error compiling sys-devel/gnuconfig. I've tried setting the MacOSX.sdk symlink to different things without luck.
Apparently the issue below has been addressed upstream and the new releases libintl-0.22.3 compiles successfully. Another issue is now coming up in gettext-0.22.3 (which is strange, as I suspect the two packages are developed by the same team). I suppose is better submitting a separate bug.
0.22.5 versions of these respective packages install fine on recent prefixes (Sanoma)