#72964 closed defect (duplicate)

libgcc15: ld: library not found for -ld_classic

Reported by: DanyPPage Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: ventura Cc:
Port: libgcc15

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I had the very bad idea to update my Macport after days of fighting to get f2py to work, and now f2py is again broken. In particular macports now wants to install libgcc15 (don't know why, I don't use gcc15, only gcc14 !) with the error in /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc15/libgcc15/main.log:

:info:build ld: library not found for -ld_classic

I am on a iMac (2007) running Ventura 13.7.6

Attachments (1)

main.log.zip (2.5 MB) - added by DanyPPage 12 months ago.

Change History (10)

comment:1 Changed 12 months ago by DanyPPage

Summary: installing gcc15 fails when installing libgcc15: try to link to c_classicinstalling gcc15 fails when installing libgcc15: try to link to d_classic

comment:2 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: ventura added
Port: libgcc15 added
Summary: installing gcc15 fails when installing libgcc15: try to link to d_classiclibgcc15: ld: library not found for -ld_classic

comment:3 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

This looks like #70144 but please attach the main.log file to be sure. What I expect to see there is that you have Xcode 15.x and the Xcode command line tools 14.x installed, in which case my suggestion will be to make them the same version (either both 14.x or both 15.x) to work around this problem.

comment:4 Changed 12 months ago by DanyPPage

I can't upload the main.log file: it's 58 MB :( Will check compatibility of Xcode and command line tools

comment:5 Changed 12 months ago by DanyPPage

You're right: incompatible versions of Xcode and command line tools:

dany@Ulysses:~: pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 14.3.1.0.1.1683849156
volume: /
location: /
install-time: 1744351414
dany@Ulysses:~: xcodebuild -version
Xcode 15.2
Build version 15C500b
dany@Ulysses:~: 

How come stupid Macos does not offer me to update the command line tools ??????

dany@Ulysses:~:  xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" in System Settings to install updates
dany@Ulysses:~: 

but nothing about updating command line tools in Software Update.

Last edited 12 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 12 months ago by cjones051073 (Chris Jones)

You can compress the log before uploading it. Please do this so we can check a few things.

Did fixing the mismatch berween your CLT and Xcode versions fix things ?

Changed 12 months ago by DanyPPage

Attachment: main.log.zip added

comment:7 Changed 12 months ago by DanyPPage

I completely removed both Xcode and Macports, then installed only CLT and then Macports. With this I installed first gcc15, which took 5 hours to compile, but worked, then the rest of the software I need.

comment:8 Changed 12 months ago by DanyPPage

Now i have problems with f2py from newly installed version 2 of numpy, but that's another ticket.

comment:9 in reply to:  5 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Replying to DanyPPage:

You're right: incompatible versions of Xcode and command line tools:

It's not exactly that they're incompatible; it's just that we have a bug in our portfile logic that did not anticipate this situation.

How come stupid Macos does not offer me to update the command line tools ??????

Possibly due to the problem explained at ProblemHotlist#reinstall-clt

Note: See TracTickets for help on using tickets.