Issues with ARM gcc on Ubuntu
Antwort
25.09.18 12:48

Hey All,

I just started with development on the XDK and wanted to verify my workbench installation by compiling and running one of the examples (AwsSendDataOverMQTT). Unfortunately, I keep getting the error 

/opt/XDK-Workbench/XDK/armGCC/bin/arm-none-eabi-gcc: Command not found

, which seems to be related to my arm gcc installation.

I am running Linux Mint 18.2 (based on Ubuntu 16.4) and used the latest release of the XDK workbench (3.4). I already installed the packages "gcc-arm-none-eabi" and "libnewlib--arm-none-eabi" because of previous errors, but I keep getting this error.

What I consider to be especially weird is that the binary "/opt/XDK-Workbench/XDK/armGCC/bin/arm-none-eabi-gcc" is actually there and execuatable. However, I get the same error when running it.
Can anyone come up with a solution for this problem?

Best regards,
Felix

0 (0 Stimmen)
RE: Issues with ARM gcc on Ubuntu
Antwort
25.09.18 19:57 als Antwort auf Felix Bartsch.
Hello Felix,

welcome to the XDK community and thank you for providing this hint.

Since this seems to be a bigger issue, I would like to ask you for patience. Reconstructing your case to find a working solution could take some time, but I will inform you immediately with news.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 Stimmen)
RE: Issues with ARM gcc on Ubuntu
Antwort
26.09.18 13:13 als Antwort auf Franjo Stjepandic.
Hello Franjo,

thanks for the information, it is true that this error is quite difficult to reproduce. It is also not urgent since I temporarily switched to my windows environment, which is working fine. However, it would be nicer to work on Linux in the future.
Some more information:
The "MCU" tab in "properties" is empty, which also should not happen. Moreover, when reinstalling it , the setup wizard complains about "warnings", however, I cannot find any in the installation log.

Best regards,
Felix
0 (0 Stimmen)
RE: Issues with ARM gcc on Ubuntu
Antwort
28.09.18 12:32 als Antwort auf Felix Bartsch.
Hello Felix,

Thank you for providing more information on this issue.

I was able to reproduce the issue on Linux Mint and on Linux Debian too. Unfortunately, I was not able to find a sufficient solution for it. But I forwarded it to the responsible developer and hope that it will be fixed soon.

For the meantime, I can only recommend implementing applications for the XDK on Windows or Linux Ubuntu until the issue is solved.

Kind regards,
Franjo
0 (0 Stimmen)
RE: Issues with ARM gcc on Ubuntu
Antwort
30.09.18 13:06 als Antwort auf Franjo Stjepandic.
Hey Franjo,

thank you for helping. I also already posted the issue to the Linux Mint forum, since I suspected it to be linked to Mint. On the Ubuntu env of my colleagues it is working fine.

Best regards,
Felix
0 (0 Stimmen)
RE: Issues with ARM gcc on Ubuntu
Antwort
01.10.18 14:48 als Antwort auf Felix Bartsch.
Hello Felix,

I am always glad to help.

Please feel free to ask if you have any further concerns or questions.

Kind regards,
Franjo
0 (0 Stimmen)
RE: Issues with ARM gcc on Ubuntu
Antwort
17.12.18 11:06 als Antwort auf Franjo Stjepandic.

Hello Franjo,


Today I encountered the same problem during an installation on archlinux. I also had this error when compiling an example project: /opt/XDK-Workbench/XDK/armGCC/bin/arm-none-eabi-gcc: Command not found

I found out after some time that the binary needs an additional library. With the command readelf -a arm-none-eabi-gcc I discoverd that the missing library is /lib/ld-linux.so.2.
I am running archlinux and used the latest release of the XDK workbench (3.5.0). I already installed the packages 'arm-none-eabi-gcc' and 'arm-none-eabi-newlib' because of previous errors. After installing a package containing this library, i was able to compile again as usual.

Best regards,

Lorenz

0 (0 Stimmen)
RE: Issues with ARM gcc on Ubuntu
Antwort
17.12.18 16:28 als Antwort auf Lorenz Krause.
Hello Lorenz,

Thank you for investigating this in greater detail and for proposing a solution to the issue. I assume many users of the XDK community will benefit from it.

Kind regards,
Franjo
0 (0 Stimmen)