Page 1 of 1

[SOLVED] "make" gives error: Exec format error

Posted: 11 Jun 2023, 20:49
by hope
My cumputer has 32 bit i686 CPU.
I am trying to install a device driver to my Porteus. Warning message said that I need to activate "devel" module to use make. I downloaded the module from http://ftp.vim.org/ftp/os/Linux/distr/p ... -devel.xzm. I can activate the module successfully. However, at the end, when install script ends, it gives :

Code: Select all

bash: /usr/bin/make cannot execute binary file Exec format error
Why I saw this error, and how can I solve it? I want to install the device driver.
Thanks.

"make" gives error: Exec format error

Posted: 11 Jun 2023, 21:33
by roadie
The link you've posted is for 64 bit architecture, not 32 bit. This one should work:

http://ftp.vim.org/ftp/os/Linux/distr/p ... -devel.xzm

"make" gives error: Exec format error

Posted: 12 Jun 2023, 11:28
by hope
roadie wrote:
11 Jun 2023, 21:33
The link you've posted is for 64 bit architecture, not 32 bit. This one should work:

http://ftp.vim.org/ftp/os/Linux/distr/p ... -devel.xzm
Thanks roadie, file in the link solved the error, but new one appeared : , can you help me about that too?

Code: Select all

make[1]: *** /lib/modules/5.12.14-porteus/build/No such file or directory
I looked to that location and found a file called build which is a link to /usr/src/linux but there is no file called linux there. Does that mean I need to download new module?
Thanks.

"make" gives error: Exec format error

Posted: 12 Jun 2023, 11:49
by beny
hi make is linked to this kernel ..have you? lib/modules/5.12.14-porteus you need crippled-source for this kernel because it need the build directory.

"make" gives error: Exec format error

Posted: 12 Jun 2023, 12:20
by hope
Hi and thanks beny, I downloaded crippled-source module and activate it and finally it worked thanks.