Open dktanwar opened 7 years ago
Hi Peter, did you get a chance to look at it?
Sorry, not yet. I suspect that you’re using a newer installation which somehow messed up backwards compatibility with the hash_map. We could switch to unordered_map, which will take a bit of code work. That will break compatibility with the older systems though … -peter.
On Feb 10, 2017, at 11:22 AM, Deepak Tanwar notifications@github.com wrote:
Hi Peter, did you get a chance to look at it?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hms-dbmi/spp/issues/12#issuecomment-278989358, or mute the thread https://github.com/notifications/unsubscribe-auth/ALT78i6h9CCd0j84dNEEz9ZfV2GxLk81ks5rbI7ZgaJpZM4L4k-7.
I too have this issue
same issue as you, and I tried 1.14, still does not work.
I am having this problem using a Linux machine and R version 3.4.0. Did anyone find a fix?
I sent in a pull request with the fixes I made to get the installation to work...
@sklasfeld I tried to install using your fixes but look to be running into the same problem as @dktanwar
I'm using a macOS .... below is my error:
In file included from bed2vector.cpp:1:
In file included from ./pc.h:4:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ext/hash_map:213:5: warning: Use of the header <ext/hash_map> is deprecated. Migrate to
^
1 warning and 1 error generated. make: *** [bed2vector.o] Error 1 ERROR: compilation failed for package ‘spp’
So I was able to run it on a linux server with my fixes, but I wonder what would happen if you ran the following commands:
sed -e 's/hash_map/unordered_map/g' /PATH/TO/spp-1.14/src/bed2vector.cpp
From what I understand, the code has a lot of deprecations so the names of some of the commands have changed since the last time this code was updated.
@pkharchenko I was able to build an OSX conda package for spp by patching Makevars.in
to use -ferror-limit=0 -stdlib=libstdc++
(see https://github.com/bioconda/bioconda-recipes/pull/5108/files). Would it be possible to add these flags in an arch-dependent manner, or at least describe this workaround in documentation? Thanks.
Hi.
I am having the same issues as the OP (@dktanwar) and @jkanbar. I am unable to compile spp on any Mac (running macOS Sierra). Has there been any update on ensuring that spp compiles & runs successfully on a Mac? This seems to be a pretty serious issue, as it completely breaks functionality of spp on Mac-flavoured Unix systems.
Is there any advice on how to get spp to run on a current Mac?
Cheers, M
@daler Unfortunately I don't have a mac dev environment set up. Not sure if simply making Makevars.osx with these additional directives would fix the issue ...
Hi,
I'm seeing another issue now when trying to install it on my Mac. Is there a way to be able to disable this in the clang step here?
clang -I/usr/local/Cellar/r/3.4.2/lib/R/include -DNDEBUG -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include -I./ -D_FASTMAP -DMAQ_LONGREADS -std=c++11 -fPIC -g -O2 -c cdensum.c -o cdensum.o
error: invalid argument -std=c++11 not allowed with C/ObjC
Oh, that was actually a mistake in Makevars.in. The c++11 flag should be only for C++. I've just checked in a fix. Please try.
Hi, I tried it and I still have the same error
I am on linux server and getting the following error:
bed2vector.cpp(2530): error: "hash" is ambiguous
hash_map<string, int, hash
The fix by @daler did not work as well. Any suggestions please?
@muhammed-ali could you try the version in the development branch? https://github.com/hms-dbmi/spp/tree/development Do you get the same error?
@fferrari I was able to install the latest spp package from https://github.com/hms-dbmi/spp/archive/1.15.2.tar.gz