Closed recursion-ninja closed 7 years ago
Did a lot of research. I think this is a C++ issue, and not C, but not sure. It does seem that OS X/Darwin doesn't allow static linking, at least anymore.
Annoyingly, found a bunch of info on it from a long time ago, but all of the suggested fixes seem to be specific to gcc
. And weirdly no one seems to be having these problems with GHC
or Stack
.
Here's what I've tried so far:
clang
to gcc
. Using MacPorts I tried:
• gcc6---Turns out this won't even compile on OS X versions >=10.10.
• gcc7---Threw a bunch of new errors before pooping out on the same missing library BS.ghc
s settings, located in ~/.stack/programs/x86-64-osx/ghc-8.2.1/lib/ghc-8.2.1/settings
(took me a while to find that). Added -static -optl-pthread -optl-static
to force everything to compile statically, as I read that might be an option. Stack
-specific settings to change static settings. No dice.cabal
files. Couldn't figure out how to do so.Next steps:
eNewick
into master
on Linux. Maybe try hand merge those two again, with more similar code? llvm
and ld
are used in the process---llvm
partially compiles the Haskell code. Maybe trading out ld
for llvm
in the C/C++ linking procedure will help? I'm not that familiar with llvm
, so this might be a pipe dream, because they do different things.Removed the -optl-static
flag from the test suite "executable" int he pcg-file-parser
sub-library.
See commit: 568fbe6
We get the following build error on OSX
Seems to be related to the sub-packages in the new build.