trishullab / Quasimodo

MIT License
6 stars 6 forks source link

Encountered a compiling problem when linking #2

Closed Acdimy closed 1 year ago

Acdimy commented 1 year ago

Hi, I encountered a problem at the final linking stage of the command "invoke build-quasimodo". Here is the error information:

g++ -shared -o libquasimodo.so quantum_circuit.o ... -lgmp -lmpfr -lgmpxx

/usr/bin/ld: cflobdd/cudd-complex-big/cudd/.libs/libcudd.a(libcudd_la-cuddGenCof.o): warning: relocation against Cudd_bddInterpolate' in read-only section.text' /usr/bin/ld: cflobdd/cudd-complex-big/cplusplus/.libs/libobj.a(libobj_la-cuddObj.o): relocation R_X86_64_PC32 against symbol `_ZSt4cout@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make: *** [Makefile:43: libquasimodo.so] Error 1

I have followed the guide all along except for _Set Python include path to PYTHONINCLUDE variable. I'm not sure if it is the cause. But the error seems to occurred at a stage that had nothing to do with Python.

Acdimy commented 1 year ago

See install.sh, and some detailed modifications need to be done