[MacPorts] #59727: gcc9: fails to link properly (-lSystem no found)
MacPorts
noreply at macports.org
Tue Nov 19 19:08:36 UTC 2019
#59727: gcc9: fails to link properly (-lSystem no found)
------------------------+--------------------
Reporter: akimd | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: gcc8 gcc9 |
------------------------+--------------------
Comment (by akimd):
Hi Ken,
Replying to [comment:5 kencu]:
> I think you'll probably have to rebuild gcc8 and gcc9 on your system
from source to get the proper SDK baked into gcc.
I had uninstalled and reinstalled.
> It looks like you're building into a prefix that is not `/opt/local`, so
you're building yourself. I see `_opt_bblocal`, so I presume you have it
prefixing into `/opt/bblocal`.
I certainly did not. And I would like to point out that 'bb' sounds
awfully like "Buildbot".
> So uninstall gcc8 and gcc9 (and perhaps all the libgccN versions as
well, ugh). And then reinstall gcc9, and it should pick up your proper CLT
SDK and then all will (hopefully) be well for you.
>
> BTW, life is 1000% easier if you use `/opt/local` and then the buildbot
prebuilt binaries, but that is up to you.
Which is what I do.
I'm (sort of) offline right now, so I will try again at home, but be sure
I did nothing specific. And I _do_ remember that GCC9 was pulled
prebuilt, it was not compiled on my machine. And I _think_ GCC7 was
compiled locally. So I would suggest having a close look at what
MacPorts' buildbot does.
Cheers!
--
Ticket URL: <https://trac.macports.org/ticket/59727#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list