Missing -lpython3.6m error while building hoom2.9.7 from source

34 views
Skip to first unread message

Alexander Patapoff

unread,
Aug 5, 2021, 4:22:29 PM8/5/21
to hoomd-users
Hello,

I've been attempting to build hoomd-2.9.7 from source on as a user on a server cluster.
After I issue "make -j4", hoomd builds until it reaches an error where the /usr/bin/ld cannot find -lpython3.6m. From what I've put together the -lpython3.6m is a library that needs to get linked ( I think ). I've tried using the shared python3 dist, creating a venv of the shared python3 dist, installing a new local python3 dist and making that the default call for path and pythonpath. While each of these attempts caused other fixable errors, I always end up back to this issue. Does anyone have any idea how to move forward with this issue?
thanks!
-----------------------ERROR--------------------------------------------
Scanning dependencies of target test_gpu_polymorph
[ 36%] Building CXX object hoomd/test/CMakeFiles/test_gpu_polymorph.dir/test_gpu_polymorph.cc.o
Linking CXX executable test_cell_list_stencil
/usr/bin/ld: cannot find -lpython3.6m
collect2: error: ld returned 1 exit status
----------------------------------------------------------------------------------

Joshua Anderson

unread,
Aug 5, 2021, 4:38:51 PM8/5/21
to hoomd...@googlegroups.com
Alexander,

Some Linux distributions don't include the python3.6m shared library by default. It is not needed to build the HOOMD Python module, only the unit tests implemented in C++. You should be able to disable the BUILD_TESTING option in CMake and complete the build:

In the build directory, run:
cmake . -DBUILD_TESTING=off
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan
> --
> You received this message because you are subscribed to the Google Groups "hoomd-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hoomd-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/533b98cd-de3f-489c-aa58-81a54e4e56een%40googlegroups.com.

Alexander Patapoff

unread,
Aug 5, 2021, 5:15:00 PM8/5/21
to hoomd-users
That fixed it, thank you!!
Reply all
Reply to author
Forward
0 new messages