Hanjun-Dai / pytorch_structure2vec

pytorch implementation of structure2vec (https://arxiv.org/abs/1603.05629)
MIT License
305 stars 76 forks source link

Error with make -j4 in Harvard CEP #13

Closed FalconLK closed 6 years ago

FalconLK commented 6 years ago

After I installed rdkit, I tried make -j4 in .../pytorch_structure2vec/harvard_cep/

I got this error, do you have any idea? """ g++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -Wall -O3 -std=c++11 -I./include -I/.../rdkit/Code -Wno-unused-local-typedef -fPIC -MMD -c -o build/lib/mol_utils.o src/lib/mol_utils.cpp g++: error: unrecognized command line option '-fno-plt' Makefile:41: recipe for target 'build/lib/mol_utils.o' failed make: *** [build/lib/mol_utils.o] Error 1 """

I've tried 3 different platforms but the same error comes out all the time.

Thank you ! I'll wait for the answer :)

Deadlyelder commented 6 years ago

To further supplement the error, I received the following error

pytorch_structure2vec/harvard_cep> $ make -j4  
g++ -Wall -O3 -std=c++11 -I./include -I/Users/BLANK/Documents/Github/rdkit/build/Code -Wno-unused-local-typedef -fPIC -MMD -c -o build/lib/mol_utils.o src/lib/mol_utils.cpp
In file included from src/lib/mol_utils.cpp:1:
In file included from ./include/mol_utils.h:5:
/Users/BLANK/Documents/Github/rdkit/build/Code/GraphMol/RingInfo.h:10:10: fatal error: 'RDGeneral/export.h' file not found
#include <RDGeneral/export.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [build/lib/mol_utils.o] Error 1

Thanks

FalconLK commented 6 years ago

Issue solved.

Solution: Reinstalled system from scratch and install the Boost library from source.

Also, use the boost_1_61_0.tar.bz2 and rdkit release version Release_2017_09_1.tar.gz.

Focus more on the prerequisites for rdkit.