[MacPorts] #55413: Gcc49 not available any longer: silent bug with select
MacPorts
noreply at macports.org
Sun Nov 26 13:11:29 UTC 2017
#55413: Gcc49 not available any longer: silent bug with select
----------------------+-------------------
Reporter: lucbouge | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Keywords: select | Port: gcc49
----------------------+-------------------
Dear MacPorts people,
I encountered a subtle installation bug recently. I used to use gcc49 for
teaching because of its stability. I had my `port select gcc` set to `mp-
gcc49` so that calling `g++`was activating the right version of `g++`,
that is, `/opt/local/bin/g++-mp-49`.
At some point, MacPorts stopped supporting this version, and `
/opt/local/bin/g++-mp-49` was erased. However, the symbolic selection link
`/opt/local/bin/g++` was left unchanged.
On calling `g++`, my shell was trying to open `/opt/local/bin/g++`, which
was failing, and thus was resorting to the next g++ found in PATH, that
is, `/usr/bin/g++`, which is Apple LLVM version 9.0.0.
As a consequence, I was silently executing Apple LLVM `g++` instead of the
Gnu `g++`, without being aware of it. This caused a number of problem in
preparing my lab classes. It took me a long time before understanding the
problem.
My suggestion would be to make sure to reset the `port select` association
on erasing a currently selected version.
Best regards,
Luc.
--
Ticket URL: <https://trac.macports.org/ticket/55413>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list