- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Infineon Support,
I'm trying to setup ModusToolbox on a Raspberry Pi build server my team has for running builds with CI/CD. I was able to install ModusToolbox on the Pi without any issues.
However, when I try to run make getlibs inside my project folder, I get the following output and error:
$ make getlibs
Tools Directory: /build/tools/ModusToolbox/tools_2.4/
make -C ../app_cm0p/ getlibs
make[1]: Entering directory '/var/lib/gitlab-runner/builds/<build-dir>/app_cm0p'
Tools Directory: /build/tools/ModusToolbox/tools_2.4/
==============================================================================
= Importing libraries =
==============================================================================
/build/tools/ModusToolbox/tools_2.4/proxy-helper/proxy-helper: 4: exec: /build/tools/ModusToolbox/tools_2.4/proxy-helper/bin/proxy-helper: Exec format error
make[1]: *** [/build/tools/ModusToolbox/tools_2.4//make/getlibs.mk:121: getlibs] Error 2
make[1]: Leaving directory '/var/lib/gitlab-runner/builds/<build-dir>/app_cm0p'
make: *** [Makefile:210: getlibs_cm0p] Error 2
Does anyone have any ideas what might be causing this error?
Best regards,
Cory
Solved! Go to Solution.
- Labels:
-
ModusToolbox General
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @cvanbeek
Apologies for the delay but I was checking with the internal team regarding this issue and I found out that unfortunately the ModusToolbox tools executables are not supported on an ARM-based platform (which is what Raspberry PI is based on). ModusToolbox is currently only supported on the x86-64 platform which is why you are facing this exec format error.
Hope this helps.
Warm Regards
Alen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @cvanbeek ,
Can you please try the following command and share us the output of the same here:
$ proxy-helper --config list
You can also have a look at the user manual I have attached here for the proxy-helper tool to set your proxy settings or verify if the proxy settings are accurate.
If in case you are using a proxy, that is "manual" mode, you can either verify if the proxy settings are correct from the above "list" command as mentioned in the manual or you can set the mode as "direct" using the below command to not use any proxy and check if you are still facing this error.
proxy-helper --config set mode=direct
Regards
Alen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alen,
Thank you for your response. It looks like no matter what args I give to the proxy-helper script, it gives this same error:
I get the same error if I call the binary file directly:
Best regards,
Cory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @cvanbeek
Apologies for the delay but I was checking with the internal team regarding this issue and I found out that unfortunately the ModusToolbox tools executables are not supported on an ARM-based platform (which is what Raspberry PI is based on). ModusToolbox is currently only supported on the x86-64 platform which is why you are facing this exec format error.
Hope this helps.
Warm Regards
Alen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alen,
Thanks for letting me know. I have a Windows runner as well so I'll see if I can get it going on that.
Best regards,
Cory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that use of proxy-helper tool is optional (not needed in regular networks without custom proxy server requirement).
It is possible to delete the complete tools_2.4/proxy-helper directory and "make getlibs" will not attempt to use this tool:
rm -rf /build/tools/ModusToolbox/tools_2.4/proxy-helper
make getlibs
Alternative option is to clear CY_PROXY_HELPER_CMD make variable:
make getlibs CY_PROXY_HELPER_CMD=
(see tools_2.4/make/getlibs.mk line 91)