Closed antoniocapanema closed 2 years ago
Hi @antoniocapanema there seems to be a problem linking google perftools on MacOS; compare #372 and #236.
In case you do not need them try to the following cmake command:
cmake .. -DNO_TCMALLOC=TRUE
Hi @lukasmerten, Thank you so much for your prompt reply. I was able to bypass this issue with the flag -DNO_TCMALLOC=TRUE. However, I ran into another issue a little further ahead during the "make" stage:
[ 88%] Linking CXX shared module _crpropa.so
Undefined symbols for architecture arm64:
"_PyBytes_AsStringAndSize", referenced from:
SWIG_AsCharPtrAndSize(_object*, char, unsigned long, int) in crpropa_wrap.cxx.o
"_PyCMethod_New", referenced from:
SWIG_PyInstanceMethod_New(_object, _object) in crpropa_wrap.cxx.o
"_PyInstanceMethod_New", referenced from:
SWIG_PyInstanceMethod_New(_object, _object) in crpropa_wrap.cxx.o
"_PyModule_Create2", referenced from:
_PyInitcrpropa in crpropa_wrap.cxx.o
"_PySlice_AdjustIndices", referenced from:
crpropa_ParticleCollector_getitem__SWIG_1(crpropa::ParticleCollector, _object) in crpropa_wrap.cxx.o
"_PySlice_Unpack", referenced from:
crpropaParticleCollectorgetitem__SWIG_1(crpropa::ParticleCollector, _object) in crpropa_wrap.cxx.o
"_PyUnicode_AsUTF8", referenced from:
SWIG_Python_AddErrorMsg(char const*) in crpropa_wrap.cxx.o
crpropa_Candidate_setPropertySWIG_1(crpropa::Candidate, _object, _object) in crpropa_wrap.cxx.o
crpropa_Candidate_getProperty(crpropa::Candidate, _object) in crpropa_wrap.cxx.o
crpropa_Output_enableProperty__SWIG_0(crpropa::Output, std::1::basic_string<char, std::__1::char_traits
As far as I could find, there was no similar error reported in this forum. Any help will be greatly appreciated!
Best, Antonio
EDIT: I made a mistake when specifying the exact paths of the python library and interpreter in the CMAKE step. I have solved this problem.
As the problem is solved I close the issue now. If there are further problems please reopen the issue.
Dear developers,
I have problems installing CRPropa on my system System Information:
I installed version 3.1.7 from git.
I read and followed the installation instructions at https://crpropa.github.io/CRPropa3/ . Before writing this request I also checked previous installation issues at https://github.com/CRPropa/CRPropa3/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Ainstallation+ . However, I could not find the solution to my problem.
After cmake is complete, upon running the "make" command, I get the following error at error at 74% progress:
[ 74%] Linking CXX shared library libcrpropa.dylib ld: library not found for -lprofiler clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [libcrpropa.dylib] Error 1 make[1]: [CMakeFiles/crpropa.dir/all] Error 2 make: *** [all] Error 2
Thank you for any assistance you can give. Best, Antonio