Failed to install libgcc9: no destroot found

Chris Jones jonesc at
Fri Sep 27 00:49:06 UTC 2019

From your log file....

nfo:activate x ./opt/local/include/gcc/c++/decimal/decimal.h
:error:activate Failed to activate libgcc9: Image error: /opt/local/lib/libgcc/libatomic.1.dylib is being used by the active libgcc port.  Please deactivate this port first, or use 'port -f activate libgcc9' to force the activation.

That is your problem. 

Do not though do what it says. The only way you can have this problem is if your libgcc port is very very out of date... try (force) removing it

sudo port uninstall libgcc

Say yes to the do you really want to do this question. Then

sudo port selfupdate
sudo port sync
sudo port upgrade outdated


> On 27 Sep 2019, at 1:42 am, Vahid Askarpour <vh261281 at> wrote:
> I am attempting to install xcrysden on Mojave 10.14.6 with Xcode 11.1. I get the following error:
> --->  Computing dependencies for xcrysden
> The following dependencies will be installed: 
> libgcc
> libgcc9
> Continue? [Y/n]: y
> --->  Installing libgcc9 @9.2.0_0
> Error: Failed to install libgcc9: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/destroot
> Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/main.log for details.
> Error: Follow to report a bug.
> Error: Processing of port xcrysden failed
> I have attached the main.log file. Any suggestions would be appreciated.
> Thank you,
> Vahid
> <main.log>

More information about the macports-users mailing list