Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: make: *** [modules] Error 2

  1. #1

    Angry make: *** [modules] Error 2

    hi guys when i try to
    use make comm to build my
    network Drive its Give me this Errors


    1. err0r1096@linux-w2ky:~/Driver> sudo make
    2. root's password:
    3. "******************************************"
    4. "NO SKRC,we will use default KSRC"
    5. "******************************************"
    6. make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.27-2-default/build M=/home/err0r1096/Driver modules
    7. make[1]: Entering directory '/lib/modules/4.4.27-2-default/build'
    8. make[1]: *** No rule to make target 'modules'. Stop.
    9. make[1]: Leaving directory '/lib/modules/4.4.27-2-default/build'
    10. Makefile:1367: recipe for target 'modules' failed
    11. make: *** [modules] Error 2
    12. err0r1096@linux-w2ky:~/Driver>


      how i fix it

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,788

    Default Re: make: *** [modules] Error 2

    Hello and welcome on the openSUSE forums.

    While this is not a direct answer to your question, just a few remarks.


    We have a difficult to find, but important feature on the forums.

    Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

    Second, you run make as root. That is normally not needed because running compilers and the like can be done by anyone. And when something is not needed to be done as superuser, it should not be done as superuser.
    Only installation of a product in it's places in the system directories requires root access.
    Henk van Velden

  3. #3

    Default Re: make: *** [modules] Error 2

    And it would also help if you explained what you are actually trying to do...

    It seems you are trying to compile some kernel module.
    But which one, and why?
    Maybe it's not even necessary.

    Also, do you have kernel-devel and kernel-default-devel installed?

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: make: *** [modules] Error 2

    Your makefile is faulty.
    Where did you get it from? Did you build it yourself or is it from a project's source?

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: make: *** [modules] Error 2

    Also,
    You don't need to build comm, it's already installed and is a part of the core-utils package.

    eg
    Code:
    comm --help
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6

    Default Re: make: *** [modules] Error 2

    Quote Originally Posted by wolfi323 View Post
    And it would also help if you explained what you are actually trying to do...

    It seems you are trying to compile some kernel module.
    But which one, and why?
    Maybe it's not even necessary.

    Also, do you have kernel-devel and kernel-default-devel instal5led?
    im trying to build my network cart

  7. #7

    Unhappy Re: make: *** [modules] Error 2

    Quote Originally Posted by hcvv View Post
    Hello and welcome on the openSUSE forums.

    While this is not a direct answer to your question, just a few remarks.


    We have a difficult to find, but important feature on the forums.

    Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

    Second, you run make as root. That is normally not needed because running compilers and the like can be done by anyone. And when something is not needed to be done as superuser, it should not be done as superuser.
    Only installation of a product in it's places in the system directories requires root access.
    im root but i cant bulid it

  8. #8

    Default Re: make: *** [modules] Error 2

    Quote Originally Posted by tsu2 View Post
    Also,
    You don't need to build comm, it's already installed and is a part of the core-utils package.

    eg
    Code:
    comm --help
    TSU
    no i want make install my network cart

  9. #9

    Default Re: make: *** [modules] Error 2

    Quote Originally Posted by tsu2 View Post
    Your makefile is faulty.
    Where did you get it from? Did you build it yourself or is it from a project's source?

    TSU
    i run
    sudo mkdir lib/modules/4.4.27-2-default/build

  10. #10
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: make: *** [modules] Error 2

    Quote Originally Posted by Err0r1096 View Post
    i run
    sudo mkdir lib/modules/4.4.27-2-default/build
    Hi
    Your going to break your system running the above command, where where you when running this?

    Nothing needs to be built as root user, only installing....

    Take a step back and tell everyone the exact network card your trying to get working, provide output from;

    Code:
    /sbin/lspci -nnk | egrep -A3 "Ethernet|Network"
    Also, provide the link to where you downloaded the driver from as well.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •