Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation on Mac #38

Open
edgardomortiz opened this issue Aug 15, 2019 · 0 comments
Open

Compilation on Mac #38

edgardomortiz opened this issue Aug 15, 2019 · 0 comments

Comments

@edgardomortiz
Copy link

Hi, I found the tool useful and easy to use, therefore I wanted to include it in a pipeline that I would like to make available in Mac and Linux. The compiler gives this error:

$ make
rm -rf target
mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------------< abra2:abra2 >-----------------------------
[INFO] Building abra 2.19
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ abra2 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.303 s
[INFO] Finished at: 2019-08-15T23:12:11+02:00
[INFO] ------------------------------------------------------------------------
mkdir target
clang -g -O2 -Isrc/main/c -I/Users/pbiodiv/miniconda2/include -I/Users/pbiodiv/miniconda2/include/linux -shared -fPIC src/main/c/assembler.cpp src/main/c/sg_aligner.cpp -o target/libAbra.so
In file included from src/main/c/assembler.cpp:11:
src/main/c/sparsehash/sparse_hash_map:94:10: fatal error: 'tr1/functional' file not found
#include HASH_FUN_H                 // for hash<>
         ^
src/main/c/sparsehash/internal/sparseconfig.h:10:20: note: expanded from macro 'HASH_FUN_H'
#define HASH_FUN_H <tr1/functional>
                   ^~~~~~~~~~~~~~~~
1 error generated.
make: *** [native] Error 1

And doing some research I found out it is caused by the use of libstdc++ which became deprecated in Mac since version 10.8. Is it possible to modify ABRA2 to be able to compile using libc++ ? or it basically would imply re-writing it?

Thanks

Edgardo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant