brentp / somalier

fast sample-swap and relatedness checks on BAMs/CRAMs/VCFs/GVCFs... "like damn that is one smart wine guy"
MIT License
254 stars 35 forks source link

Static OSX binary? #68

Open ssadedin opened 3 years ago

ssadedin commented 3 years ago

We deploy things with linux but most developers are using OSX. It would be very convenient to have a somalier binary compiled for OSX.

I tried to do it myself but it invoked quite a large chain of installs to bring a lot of the nim ecosystem onto my laptop and then it failed with a linker error.

Would be happy to try and sort that out but the issues might be specific to me (old XCode, etc) - I feel like getting a binary available for OSX might be a more generally useful option for others in the same position.

ssadedin commented 3 years ago

NB: I see that the linker error I got was identical to this:

https://github.com/brentp/slivar/issues/13

So I guess perhaps this request is probably dependent on sorting that out.

andrewpatto commented 2 years ago

With the upstream Darwin fixes for minizip and slivar - the OS X build of somalier now proceeds further! (it still fails though.. will add some more comments here about those workarounds)

andrewpatto commented 2 years ago

I managed to produce a working mac binary.

I deleted --d:openmp from the nim.cfg as openmp is not present in my os x compiler (though apparently this is fixable).

I brew installed openblas and set the ld library path in my shell to use it

export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/usr/local/opt/openblas/lib

I have now got a somalier on mac that at least prints the help messages..

(not saying these are the right workarounds - am going to keep playing and see how things go)

brentp commented 2 years ago

excellent! out of curiosity, Are you, or someone you're working with doing a lot of genomics processing on Mac?

andrewpatto commented 2 years ago

No, just needing to do some dev work - and wanted to be able to run some simple test cases on my Mac dev machine. I guess I probably should have just been able to use the docker image

nuin commented 1 year ago

@brentp Just saw this issue, coming from a sliver issue, and yes, I do lots of genomic processing in Macs.