Make Error 127 when running trying to compile code

Emir :

This semester I got this new subject where we get to work with Discovery STM32 F4, and we are still in the phase of setting it up. But I have this problem in the beginning.

When I try to compile this "blink" code I get this error:

Error 127

So, as I got it so far, we are using this shortcut command "make" to compile code, and we were given instruction to set it up as it's shown in images below:

Setup]

Can anyone see what's the problem here?

Mike Frysinger :

Error 127 means one of two things:

  1. file not found: the path you're using is incorrect. double check that the program is actually in your $PATH, or in this case, the relative path is correct -- remember that the current working directory for a random terminal might not be the same for the IDE you're using. it might be better to just use an absolute path instead.
  2. ldso is not found: you're using a pre-compiled binary and it wants an interpreter that isn't on your system. maybe you're using an x86_64 (64-bit) distro, but the prebuilt is for x86 (32-bit). you can determine whether this is the answer by opening a terminal and attempting to execute it directly. or by running file -L on /bin/sh (to get your default/native format) and on the compiler itself (to see what format it is).

if the problem is (2), then you can solve it in a few diff ways:

  1. get a better binary. talk to the vendor that gave you the toolchain and ask them for one that doesn't suck.
  2. see if your distro can install the multilib set of files. most x86_64 64-bit distros allow you to install x86 32-bit libraries in parallel.
  3. build your own cross-compiler using something like crosstool-ng.
  4. you could switch between an x86_64 & x86 install, but that seems a bit drastic ;).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Compile error when trying to run make

Error when trying to compile SASS code

Compilation results in an error when trying to compile code containing binary ifstream

Error running C program compiled with Geany IDE Error Code: 127

Error 127 when trying to install ms-sys

Illegal Character when trying to compile java code

Docker: Error code 127 when executing shell script

Error code 127 when adding R kernal to Jupyter Notebook

I'm trying to make a simple app in flutter that fetches data from an API. However when I try running the code I get the following error

Compile error when trying to use increment operator

Namespace not found error when trying to compile

Compile error when trying to install qjournalctl

Why do I get the error "cannot find -lcurl" when trying to compile example code?

Linux "make" command Error 127

"FirewallD not running" error when trying to install a printer

Trying to run Docker resulted in exit code 127

elm-make fails to compile when running with yarn on nixos

Error when trying to make another query on Firestore

Error when trying to make relation in laravel

Error when trying to make an instance of a file manager

#1064 ERROR when trying to make an trigger sql

boost::spirit -- compiler error trying to compile most simple code

Compile Error: Invalid Outside Procedure on code trying to ping multiple servers

gcc doesn't do anything when trying to compile a code

Ambiguous errors when trying to compile C++ code

Im trying to make a html or javascript code to make it were when the alertbox ok button is pressed it will send yu to another site is there any error?

ERROR when trying to compile protoc files: file not found or had errors

Compile Error when trying to return PChar or OleVariant for UDF

Golang: compile error when trying to delete an item in map