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

Post here if you are a new Porteus member and you're looking for some help.
hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

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

Post#1 by hope » 11 Jun 2023, 20:49

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.
Last edited by hope on 12 Jun 2023, 12:21, edited 1 time in total.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

roadie
Full of knowledge
Full of knowledge
Posts: 400
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 5.0-RC1
Location: In a hayfield

"make" gives error: Exec format error

Post#2 by roadie » 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

hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

"make" gives error: Exec format error

Post#3 by hope » 12 Jun 2023, 11:28

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.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

"make" gives error: Exec format error

Post#4 by beny » 12 Jun 2023, 11:49

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.

hope
Black ninja
Black ninja
Posts: 64
Joined: 04 Jul 2020, 12:07
Distribution: porteus 5.0rc1 KDE desktop

"make" gives error: Exec format error

Post#5 by hope » 12 Jun 2023, 12:20

Hi and thanks beny, I downloaded crippled-source module and activate it and finally it worked thanks.
Newbie to Linux-Unix systems, try to read,learn, apply, modify and create.

Post Reply