Re: -macosx_version_min has been renamed to -macos_version_min

Jacques Bloch <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
Hello Giuliano,

My system updated Xcode automatically to 15.0 and since then my code compiles but no longer link. I get the same warning as you do "macosx_version_min has been renamed to -macos_version_min”, but on top of that I get errors as well: 
"ld: Assertion failed: (resultIndex < sectData.atoms.size())”

After googling a little bit I found a couple of people having the same problem with the new Xcode combined with gcc. Seeminly some important things changed in the linker. 

The only solution so far seems to downgrade the whole Xcode package (just downgrading the command line tools didn't do the trick). So I downloaded Xcode 14.3.1 from the Apple developer web site and reinstalled it. Now everything works again (but I have to make sure that the new Xcode does not get installed automatically again).

I am not sure if this problem can be resolved. Maybe gcc has to be recompiled with Xcode15 installed, but I am not able to test this.

Best,
Jacques


> On 22. Sep 2023, at 07:07, Franchetti, Giuliano Dr. <[email protected]> wrote:
> 
> Hello, 
> 
> last week I updated, according to order of the Mac release, 
> 
> 1) the command line tools and afterward 
> 2) the Xcode. 
> 
> But macOS is Ventura 13.5.2
> 
> Now Xcode version is 15
> 
> and 
> 
> command line tools are 
>> pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
> package-id: com.apple.pkg.CLTools_Executables
> version: 15.0.0.0.1.1694021235
> volume: /
> location: /
> install-time: 1695112399
>> 
> 
> 
> I have a strange message if I compile a program with Fortran. Look 
> 
> 
>> gfortran a1.f95 
> -macosx_version_min has been renamed to -macos_version_min
> ld: warning: ignoring duplicate libraries: '-lgcc', '-lgcc_s.1.1'
>> 
> 
> 
> What is going on? How do I solve these issues on the version and ld? 
> 
> Many thanks 
> 
> 	Giuliano
> 
> 
> 
> _______________________________________________
> Fink-users mailing list
> [email protected]
> List archive:
> https://sourceforge.net/p/fink/mailman/fink-users/
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-users

_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.