Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld section not supported after Mojave upgrade

Tags:

dyld

I have updated macos to Mojave and after updating the command tools and when I run my c++ program I am getting the following error

dyld: __dyld section not supported in /Users/rameshkolluru/Dropbox/1D_Multiphase_Euler_Equations_FVM/./1D_Multiphase_Euler_solver Abort trap: 6

Any help is appreciated

like image 563
Ramesh K Avatar asked Sep 26 '18 14:09

Ramesh K


1 Answers

Are you compiling with the -pg option to enable profiling? If yes, try to remove that flag.

Using -pg Apple LLVM version 10.0.0 (clang-1000.11.45.2) still seems to add a __DATA,__dyld section to your executable, which dyld in Mojave does not seem to support/accept any more.

like image 66
simonfi Avatar answered Oct 02 '22 13:10

simonfi