Closed rindPHI closed 3 years ago
as you are on Mac OS - where does your clang come from? Xcode and brew are not good sources as these are cripplied. I highly recommend you compile your own llvm.
I took my clang from MacPorts... Think I'll better set up an Ubuntu VM before I spent more time on compiling different libraries, who knows what comes after ;) But if anyone ever manages to build symcc on a Mac, I'd anyway appreciate updated instructions with lists of caveats. VMs are nice, but it's even nicer if things work just without them. Thanks!
Hi @rindPHI,
The initial error sounds as if your linker didn't support some of the options that CMake is setting. (build.ninja
is generated by CMake.) It seems that, even if you have Clang from MacPorts on your system, the compiler that you're using is the system's Clang, which in turn calls the system's default linker. You could try to export CXX=/your/macports/clang
and CXXFLAGS="-use-ld=lld"
to force use of the MacPorts compiler and linker.
The other errors, however, look as if the code needed some adjustments to compile on MacOS. I believe the 64-bit variants of those library functions are particularities of glibc, and the missing header might just not exist on a Mac. Unfortunately, I don't have one to test with...
Dear all,
I'd love to experiment a little with your implementation, but am currently struggling with getting the project compiled on macOS. What happens:
Everything works until
ninja check
, then I first get the errorld: unknown option: -z
. I "solve" this my changing build.ninja, by removing-z,
in line 107. Now the process proceeds further, but I get a number of new errors:...
...
as well as a couple of warnings I won't post.
Anybody has any idea about how to proceed? Thanks!!! :)