Opened 12 months ago
Closed 12 months ago
#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)
Change History (10)
comment:1 Changed 12 months ago by DanyPPage
| Summary: | installing gcc15 fails when installing libgcc15: try to link to c_classic → installing 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_classic → libgcc15: ld: library not found for -ld_classic |
comment:3 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
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 follow-up: 9 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.
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 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
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

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.