You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was wondering if anyone can help, or share their recipe on how to properly compile and link libraries using enzyme on Mac OS. I think since julia is working on Mac with enzyme so this should be possible. Here are the list of issues I faced. Any help is welcome.
For LLVM 13, I can compile my library, but as it is a multisource library, it uses lld from brew to perform lto and my library compiles fine. Problem is that on Mac now if I want to link my enzyme gradiated library against any other program, I cant use any other linker, as I get following error
ld: __DATA_CONST segment missing SG_READ_ONLY flag in '/Users/ec2-user/libdescriptor/bin/libdescriptor.dylib'
I tried various steps like adding following linker options, -Wl,-segprot,__DATA_CONST,r,r etc, but none helps, I get similar messages.
3. If I use lld linker, above issue is sorted, but I get a different error,
ld64.lld: error: LC_DYLD_INFO_ONLY not found in /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/lib/python3.12/config-3.12-darwin/libpython3.12.dylib
So have anyone compiled a multifile library on Mac, and linked against a project? If so, can you tell compiler versions, mode of installation etc? Thank you
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I was wondering if anyone can help, or share their recipe on how to properly compile and link libraries using enzyme on Mac OS. I think since julia is working on Mac with enzyme so this should be possible. Here are the list of issues I faced. Any help is welcome.
I tried various steps like adding following linker options,
-Wl,-segprot,__DATA_CONST,r,r
etc, but none helps, I get similar messages.3. If I use
lld
linker, above issue is sorted, but I get a different error,Which is apparently an issue with Mac? (llvm/llvm-project#64865)
So have anyone compiled a multifile library on Mac, and linked against a project? If so, can you tell compiler versions, mode of installation etc? Thank you
Beta Was this translation helpful? Give feedback.
All reactions