Find the answer to your Linux question:
Results 1 to 2 of 2
when trying to run rpmbuild -bb SPECS/netxtreme2.spec command on a RH box I get the following error messages and I'm going crazy trying to figure out why. I have kernel ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    9

    No such file or directory. Stop. When compiling driver

    when trying to run rpmbuild -bb SPECS/netxtreme2.spec command on a RH box I get the following error messages and I'm going crazy trying to figure out why. I have kernel sources setup in /usr/src/kernel. I'm not even sure which directory the script is looking for because the /usr/src/redhat/BUILD/netxtreme2-4.8.10/bnx2-1.8.5b/src definitelly does exist. Please give me any suggestions that you might have.

    thanks you very much

    make -C bnx2/src KVER=2.6.9-78.0.5.ELsmp PREFIX=
    make[1]: Entering directory `/usr/src/redhat/BUILD/netxtreme2-4.8.10/bnx2-1.8.5b/src'
    make -C SUBDIRS=/usr/src/redhat/BUILD/netxtreme2-4.8.10/bnx2-1.8.5b/src modules
    make: *** SUBDIRS=/usr/src/redhat/BUILD/netxtreme2-4.8.10/bnx2-1.8.5b/src: No such file or directory. Stop.
    make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [default] Error 2
    make[1]: Leaving directory `/usr/src/redhat/BUILD/netxtreme2-4.8.10/bnx2-1.8.5b/src'
    make: *** [default] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.71600 (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.71600 (%build)

  2. #2
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    I can't help you with your error, but I have a tip for building rpm files. Use Emacs to open the spec file. You will then be able to build the rpm using Emacs. I found that it is easier to troubleshoot the problems, when you don't have to jump between the terminal and a text editor.

    After you open a .spec file with Emacs, a RPM Build menu will appear. You then can select to build the source rpm, binary rpm or both.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

Posting Permissions

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