diff options
author | bnewbold <bnewbold@robocracy.org> | 2015-06-13 20:43:06 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2015-06-13 21:23:26 -0700 |
commit | 6aa0a382c9b47620b2fe56344d208eac3e460602 (patch) | |
tree | ad3d4ef740b68fbe6e296da67b628d597e0b10ba | |
parent | ca169f475240c59775d1df1faa7033204294a08d (diff) | |
download | librambutan-6aa0a382c9b47620b2fe56344d208eac3e460602.tar.gz librambutan-6aa0a382c9b47620b2fe56344d208eac3e460602.zip |
docs: add some linux gcc troubleshooting entries
-rw-r--r-- | docs/source/troubleshooting.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/source/troubleshooting.rst b/docs/source/troubleshooting.rst index 0e9e13d..5ddea4b 100644 --- a/docs/source/troubleshooting.rst +++ b/docs/source/troubleshooting.rst @@ -155,6 +155,32 @@ Ubuntu 9.10, this goes a little something like:: $ sudo rmmod cdc-acm $ sudo insmod /lib/modules/2.6.31-20-generic/kernel/drivers/usb/class/cdc-acm.ko +[Linux] ``bash: arm-none-eabi-gdb: No such file or directory`` +--------------------------------------------------------------- + +Assuming the ``gdb`` executable actually exists and is on your ``$PATH``, this +is usually due to the executable not matching the host computer's instruction +set: for example, you are on a 64-bit machine trying to run a 32-bit +executable, and are missing some 32-bit libraries. You might need to do the +"multiarch" dance if you are on a Debian-based distribution. + +For more details see this `Ubuntu Q&A entry +<http://askubuntu.com/questions/133389/no-such-file-or-directory-but-the-file-exists>`_. + +[Linux] ``arm-none-eabi-gdb: error while loading shared libraries`` +------------------------------------------------------------------- + +The full text is usually something like:: + + arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory + +You need to install ``libncurses5:i386`` (the 32-bit version of this library), +because the ``arm-none-eabi-*`` toolchain you are using is compiled for a +32-bit host (eg, i386) and you are on an 64-bit host (eg, x86_64). The reason +you didn't run in to this earlier while compiling is that most of the toolchain +doesn't require ``ncurses`` or other libraries, but ``gdb`` (the debugger) +does. + .. _troubleshooting-tips-tricks: =============== |