Summary: | dev-libs/libintl-0.22.2: config fails | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | ash <aesc> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Complete build log
gettext-0.22.2/gettext-runtime-abi_x86_64.amd64/config.log MacOSX14.0.sdk build log |
Description
ash
2023-10-04 00:17:46 UTC
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. |