Make a mistake 127

I would like to first warn you that my knowledge on this issue is very poor, I think, so it is not too much on me, please.

So, this semester I received this new subject, where we work with Discovery STM32 F4, and we are still at the stage of its configuration. But I have this problem in the beginning.

When I try to compile this flashing code, I get this error: Error 127

So, since I got it so far, we use this shortcut "make" command to compile the code, and we were given instructions for setting it up, as shown in the figures below: setting up

Can anyone see what the problem is?

+6
source share
1 answer

Error 127 means one of two things:

  • file not found: the path you are using is invalid. double check that the program is actually located in your $PATH , or in this case the relative path is correct - remember that the current working directory for the random terminal may differ from the one you are using. it would be better to just use the absolute path instead.
  • ldso not found: you are using a precompiled binary and it needs an interpreter that is not on your system. you are probably using the x86_64 (64-bit) distribution, but pre-built for x86 (32-bit). you can determine if this is the answer by opening a terminal and trying to execute it directly. or by running file -L on /bin/sh (to get your own / own format) and the compiler itself (to see what format it is in).

if problem (2), then you can solve it in several ways:

  • get the best binary. talk to the seller who gave you the tool chain and asked them to someone who does not suck.
  • See if your distribution can install a set of files with multiple layers. Most x86_64 64-bit distributions allow you to install x86 32-bit libraries in parallel.
  • create your own cross-compiler using something like crosstool-ng .
  • you can switch between x86_64 and x86 settings, but that seems a bit sharp;).
+12
source

All Articles