Help diagnosing gcc7 on MacOS 10.13 and SIGABRT

Chris Jones jonesc at hep.phy.cam.ac.uk
Tue Sep 11 08:08:51 UTC 2018


Hi,

Good suggestion. Certianly would be an issue if different c++ runtimes 
are being mixed.

Easiest solution, if this is the case - Use clang (either system or one 
of MacPorts versions) instead of gcc, as then there will be no c++ 
runtime mis-matches, as these all use the same runtime.

Chris

On 11/09/18 06:49, Ken Cunningham wrote:
>  > run() is in generated code that we compile and link to the system as 
> a shared library.
> 
> 
> Is the generated code in the shared library compiled and linked to the 
> system and against libc++ by any chance?
> 
> 
> If it is, then your gcc7 code is not linked against libc++, but against 
> /opt/local/bin/libstdc++
> 
> and your c++ standard libs and c++ abis would be different.
> 
> Would be surprising if it worked at all, I would think.
> 
> If I'm following your issue correctly.
> 
> K
> 
> 


More information about the macports-users mailing list