[MacPorts] #64577: advice on macports-gcc-10 errors on 10.5.8: gcc works but g++ fails: library not found for -lgcc_s.1.1
MacPorts
noreply at macports.org
Wed Feb 2 20:39:04 UTC 2022
#64577: advice on macports-gcc-10 errors on 10.5.8: gcc works but g++ fails:
library not found for -lgcc_s.1.1
---------------------------+-------------------------------------
Reporter: barracuda156 | Owner: (none)
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: powerpc, Leopard, ppc64
Port: gcc10 |
---------------------------+-------------------------------------
Comment (by barracuda156):
So for whatever reason `libgcc_s.1.1.dylib` and `libgfortran.5.dylib` did
not build and not present in `/opt/local/lib/libgcc`, while
`/opt/local/lib/gcc10` has symlinks pointing to nowhere.
After I manually copied these dylibs from gcc10 built outside Macports,
Macports `g++-mp-10` started working:
{{{
36-47:~ svacchanda$ /opt/local/bin/g++-mp-10 /Users/svacchanda/Dev/hw.cpp
-o hello
36-47:~ svacchanda$ /Users/svacchanda/hello
Hello world!
}}}
Of course I still want to figure out why dylibs didn't build in the first
place.
--
Ticket URL: <https://trac.macports.org/ticket/64577#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list