Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910277 - Prepare to support linkers from XCode 15
Summary: Prepare to support linkers from XCode 15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 914828
  Show dependency tree
 
Reported: 2023-07-13 04:50 UTC by Benda Xu
Modified: 2023-12-20 08:43 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2023-07-13 04:50:59 UTC
I tried to bootstrap from macOS 14, which comes with XCode 15 command line tools.

The fatal issue is that the linker command line interface has been redesigned and our previous injected options do not work.  Would it be possible to update sys-devel/binutils-config to incorporate it?


-macosx_version_min has been renamed to -macos_version_min
ld: warning: -single_module is obsolete
ld: unknown options: -sdk_version 
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:995: libgcc_s.dylib] Error 1

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2023-07-13 07:00:55 UTC
Sure I think we can.  At first glance I think we should decide this compile/install time, e.g. not make it dynamic.
Comment 2 Benda Xu gentoo-dev 2023-07-13 09:57:26 UTC
(In reply to Fabian Groffen from comment #1)
> Sure I think we can.  At first glance I think we should decide this
> compile/install time, e.g. not make it dynamic.

Yeah, I agree.  Should be dealt with at binutils-config compile stage.
Comment 3 Benda Xu gentoo-dev 2023-07-13 10:07:05 UTC
(In reply to Benda Xu from comment #2)
> (In reply to Fabian Groffen from comment #1)
> > Sure I think we can.  At first glance I think we should decide this
> > compile/install time, e.g. not make it dynamic.
> 
> Yeah, I agree.  Should be dealt with at binutils-config compile stage.

From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110624, I see it is all about gcc, not binutils-config.
Comment 4 Larry the Git Cow gentoo-dev 2023-09-26 19:38:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=39ebcce123b877180ea3d389fb9c8bb6ce977f4f

commit 39ebcce123b877180ea3d389fb9c8bb6ce977f4f
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2023-09-26 19:37:33 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2023-09-26 19:37:33 +0000

    sys-devel/binutils-config: revbump for CLT 15
    
    Closes: https://bugs.gentoo.org/910277
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 .../{binutils-config-5.1-r5.ebuild => binutils-config-5.1-r6.ebuild}     | 1 -
 1 file changed, 1 deletion(-)

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=753907f35f78864cf66a7bc084b32eb56b31684d

commit 753907f35f78864cf66a7bc084b32eb56b31684d
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2023-09-26 19:30:33 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2023-09-26 19:35:52 +0000

    sys-apps/binutils-config: fix ldwrapper for CLT 15
    
    Because -platform_version is actually supported since a while, and we
    don't really support older versions (except Darwin 17 and 9 which use
    way different versions), just switch to using platform_version when the
    target is macos 12 or up.
    
    Closes: https://bugs.gentoo.org/910277
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 sys-devel/binutils-config/files/ldwrapper.c | 60 ++++++++++++++++++++++++-----
 1 file changed, 50 insertions(+), 10 deletions(-)