This is about the error in RSB for RTEMS 4.12 on Ubuntu 14.04 LTS.
Most likely, we can directly follow the tutorial here: https://devel.rtems.org/wiki/Developer/Tools/RSB
Or deeply refer to the document https://docs.rtems.org/rsb/#_why_build_from_source
Please note that the version of this document is still for 4.11. You have to change it accordingly to 4.12.
If there is any one who has this error message before (for gdb):
checking whether to use python... yes
checking for python... /usr/local/bin/python
checking for python2.7... no
configure: error: python is missing or unusable
However, you think you definitely have python2.7 in your system, either you used sudo apt-get install or built the source code by yourself.
By referring to http://askubuntu.com/questions/513626/cannot-compile-gdb7-8-with-python-support, we can see that the automatic configuration will check if the environment of your host can compile that simple C program.
Therefore, I focus on the problem that why I cannot compile that simple C program.
By reading a ton of similar solution, I notice that install Python-dev cannot solve my problem.
For example, here, http://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
However, I fail still. I will find the solution but maybe the above information is useful for some folks.
----------------Alternatives----------------
Instead of hanging on the Python 2.7, the alternative way is directly assigned python3 to compile gdb. Go to
and change the end of line 64 or the line for the default without path:
checking whether to use python... yes
checking for python... /usr/local/bin/python
checking for python2.7... no
configure: error: python is missing or unusable
However, you think you definitely have python2.7 in your system, either you used sudo apt-get install or built the source code by yourself.
By referring to http://askubuntu.com/questions/513626/cannot-compile-gdb7-8-with-python-support, we can see that the automatic configuration will check if the environment of your host can compile that simple C program.
Therefore, I focus on the problem that why I cannot compile that simple C program.
By reading a ton of similar solution, I notice that install Python-dev cannot solve my problem.
For example, here, http://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
However, I fail still. I will find the solution but maybe the above information is useful for some folks.
----------------Alternatives----------------
Instead of hanging on the Python 2.7, the alternative way is directly assigned python3 to compile gdb. Go to
rtems/rtems-source-builder/source-builder/config/gdb-7-1.cfg
and change the end of line 64 or the line for the default without path:
using python3
--with-python=/usr/bin/python3You should change it to your destination accordingly.
Comments
Post a Comment