relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
I've done this steps like 7 times. I re-install foxy like 7 times too. I fail to see why it's not working now, it was working another day. This colcon build error drives me crazy
I was following this tutorial: https://emanual.robotis.com/docs/en/p...
I'm on foxy version
bwuk@robot:~/turtlebot3_ws/src$ rosversion -d
foxy
python:
/usr/bin/python
I was able to following until colcon build --symlink -install under 1.1.4 install turtbot3 package
*bwuk@robot:~/turtlebot3_ws/src$ colcon build --symlink-install
Starting >>> turtlebot3_msgs
Starting >>> turtlebot3_description
Starting >>> turtlebot3_cartographer
Starting >>> turtlebot3_navigation2
Starting >>> turtlebot3_teleop
Finished <<< turtlebot3_description [0.60s]
Finished <<< turtlebot3_cartographer [0.63s]
Finished <<< turtlebot3_navigation2 [0.62s]
--- stderr: turtlebot3_msgs
/usr/bin/ld: /usr/local/lib/libpython3.9.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' 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[2]: *** [CMakeFiles/turtlebot3_msgs__python.dir/build.make:193: rosidl_generator_py/turtlebot3_msgs/libturtlebot3_msgs__python.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:240: CMakeFiles/turtlebot3_msgs__python.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed <<< turtlebot3_msgs [0.72s, exited with code 2]
Aborted <<< turtlebot3_teleop [0.77s]
Summary: 3 packages finished [1.14s]
1 package failed: turtlebot3_msgs
1 package aborted: turtlebot3_teleop
1 package had stderr output: turtlebot3_msgs
4 packages not processed*
What am I missing here? It was working very well last week. How did it happen?