Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Kernel Modules Build failed

  1. #1

    Arrow Kernel Modules Build failed

    Hi all !
    For I couldn't get any results with ndiswrapper for my Netgear WG111 v1 I browsed the web for updated drivers. I found compat-wireless on wireless.kernel.org, an awesome work has been done there for the WiFi Dongles on Linux. I got with the p54usb drivers everything fine on openSUSE 11.1.
    Then the installation process has spent a long time on building the modules and since I recently have suscribed for a Build Service it's been obviously a good reason to open a compat-wireless package.

    Build such modules requires some knowledge, which I've been correctly guided through the openSUSE tutorials. here I list them :
    1. Kernel Module Packages - openSUSE
    2. http://developer.novell.com/wiki/ima...mpm-code11.pdf

    Then my .spec file comes from the Code11 pdf sample.
    It's short but wise, indeed.
    Now here's what OBS log returns (with openSUSE Factory repo) from %build before to exit :
    Code:
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.22550
    + umask 022
    + cd /usr/src/packages/BUILD
    + /bin/rm -rf /var/tmp/compat-wireless-2.6.30-build
    ++ dirname /var/tmp/compat-wireless-2.6.30-build
    + /bin/mkdir -p /var/tmp
    + /bin/mkdir /var/tmp/compat-wireless-2.6.30-build
    + cd compat-wireless-2.6.30
    + for flavor in default desktop pae xen
    + rm -rf obj/default
    + cp -r source obj/default
    + make -C /usr/src/linux-obj/i586/default modules M=/usr/src/packages/BUILD/compat-
    
    wireless-2.6.30/obj/default
    make: Entering directory `/usr/src/linux-2.6.31-rc6-3-obj/i386/default'
    make -C ../../../linux-2.6.31-rc6-3 O=/usr/src/linux-2.6.31-rc6-3-obj/i386/default/. 
    
    modules
    make[3]: *** /usr/src/packages/BUILD/compat-wireless-2.6.30/obj/default/: Is a directory. 
    
    Stop.
    make[2]: *** [_module_/usr/src/packages/BUILD/compat-wireless-2.6.30/obj/default] Error 2
    make[1]: *** [sub-make] Error 2
    make: *** [all] Error 2
    make: Leaving directory `/usr/src/linux-2.6.31-rc6-3-obj/i386/default'
    error: Bad exit status from /var/tmp/rpm-tmp.22550 (%build)
    
    
    RPM build errors:
    cannot open Pubkeys index using db3 - No such file or directory (2)
    Bad exit status from /var/tmp/rpm-tmp.22550 (%build)
    System halted.
    Someone ever used OBS for kernel modules here ?
    It seems the kernel source is not linked at all.

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

    Default Re: Kernel Modules Build failed

    Quote Originally Posted by broumbroum23
    Hi all !
    For I couldn't get any results with ndiswrapper for my Netgear WG111 v1
    I browsed the web for updated drivers. I found compat-wireless on
    wireless.kernel.org, an awesome work has been done there for the WiFi
    Dongles on Linux. I got with the p54usb drivers everything fine on
    openSUSE 11.1.
    Then the installation process has spent a long time on building the
    modules and since I recently have suscribed for a Build Service it's
    been obviously a good reason to open a compat-wireless package.

    Build such modules requires some knowledge, which I've been correctly
    guided through the openSUSE tutorials. here I list them :

    - 'Kernel Module Packages - openSUSE'
    (http://en.opensuse.org/Kernel_Module_Packages)
    - http://developer.novell.com/wiki/ima...mpm-code11.pdf

    Then my .spec file comes from the Code11 pdf sample.
    It's short but wise, indeed.
    Now here's what OBS log returns (with openSUSE Factory repo) from
    %build before to exit :

    Code:
    --------------------
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.22550
    + umask 022
    + cd /usr/src/packages/BUILD
    + /bin/rm -rf /var/tmp/compat-wireless-2.6.30-build
    ++ dirname /var/tmp/compat-wireless-2.6.30-build
    + /bin/mkdir -p /var/tmp
    + /bin/mkdir /var/tmp/compat-wireless-2.6.30-build
    + cd compat-wireless-2.6.30
    + for flavor in default desktop pae xen
    + rm -rf obj/default
    + cp -r source obj/default
    + make -C /usr/src/linux-obj/i586/default modules
    M=/usr/src/packages/BUILD/compat-
    wireless-2.6.30/obj/default
    make: Entering directory
    `/usr/src/linux-2.6.31-rc6-3-obj/i386/default' make
    -C ../../../linux-2.6.31-rc6-3
    O=/usr/src/linux-2.6.31-rc6-3-obj/i386/default/. modules
    make[3]:
    *** /usr/src/packages/BUILD/compat-wireless-2.6.30/obj/default/: Is a
    directory. Stop.
    make[2]: ***
    [_module_/usr/src/packages/BUILD/compat-wireless-2.6.30/obj/default]
    Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2
    make: Leaving directory `/usr/src/linux-2.6.31-rc6-3-obj/i386/default'
    error: Bad exit status from /var/tmp/rpm-tmp.22550 (%build)


    RPM build errors:
    cannot open Pubkeys index using db3 - No such file or directory (2)
    Bad exit status from /var/tmp/rpm-tmp.22550 (%build)
    System halted.
    --------------------

    Someone ever used OBS for kernel modules here ?
    It seems the kernel source is not linked at all.
    Hi
    I've built a few, but the first step is to see if someone else hasn't
    built it, so search here;
    http://software.opensuse.org/search?

    If you grab an existing kmp src rpm to look at and see where your going
    wrong. Not sure what desktop your using in Gnome you can right click
    and extract to see all the files. Also things are a little different in
    11.2, so when you searching for compat-wireless, have a search for
    au0282 in Factory and grab the au0828-2-12.1.src.rpm one and look at
    the spec file.

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
    up 14 days 18:49, 2 users, load average: 2.00, 2.05, 2.07
    GPU GeForce 8600 GTS Silent - Driver Version: 190.18


  3. #3
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    3,050
    Blog Entries
    1

    Default Re: Kernel Modules Build failed

    broumbroum23, where is your spec-file?

    I built kmp package successfully on openSUSE 11.1 but it failed on Factory.

  4. #4

    Cool Re: Kernel Modules Build failed

    thank you malcolm, google did not found any rpm, or at least I was not able to catch it up.
    So compat-wireless is already available in openSUSE Update...

    Kent I might try again if the error could be found.
    HTML Code:
    # # norootforbuild  
    # Name:                  compat-wireless  
    # BuildRequires:         %kernel_module_package_buildreqs  
    # License:               GPL  
    # Group:                 System/Kernel  
    # Summary:               Linux Wireless compatibility package  
    # Version:               2.6.30  
    # Release:               0  
    # Source0:               %name-%version.tar.bz2  
    # BuildRoot:             %{_tmppath}/%{name}-%{version}-build  
    # %kernel_module_package -x debug -x trace  
    # %description  
    # Compat-wireless was designed to allow you to install the latest  
    # bleeding edge Linux wireless drivers on older kernels. Sometimes you  
    # don't want to run bleeding edge wireless and but compat-wireless gives  
    # you no other option, that's where the compat-wireless stable snapshots  
    # come in.  
    #   
    # This package allows you install the 2.6.30 Linux wireless  
    # drivers on kernels >= 2.6.27.  
    #   
    # For more information please see:  
    #   
    # http://wireless.kernel.org/en/users/Download  
    # http://wireless.kernel.org/en/users/Download/stable  
    # %prep  
    # %setup  
    # set -- *  
    # mkdir source  
    # mv "$@" source/  
    # mkdir obj  
    # %build  
    # for flavor in %flavors_to_build; do  
    #        rm -rf obj/$flavor  
    #        cp -r source obj/$flavor  
    #        make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor  
    # done  
    # %install  
    # export INSTALL_MOD_PATH=$RPM_BUILD_ROOT  
    # export INSTALL_MOD_DIR=updates  
    # for flavor in %flavors_to_build; do  
    #        make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor  
    # done  
    # %changelog
    Well I'm also looking forward to build a .deb modules pkg.
    Today I did manage to build my own java project for .deb within the OBS, how an amazing thing to dig... but really a terrific service from SUSE !! Thks

    EDIT : compat-wireless build was "expansion error - nothing provides %kernel_module_package_buildreqs" from opensuse 11.1 oss and failed for the mentioned reason with Factory.

  5. #5

    Thumbs up Re: Kernel Modules Build failed

    from the drivers:wireless area I found the spec.
    Added this to the line # BuildRequires:
    kernel-source kernel-syms module-init-tools %kernel_module_package_buildreqs

  6. #6
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    3,050
    Blog Entries
    1

    Default Re: Kernel Modules Build failed

    I use %kernel_module_package_buildreq (w/o s at the end).
    My package is here.

  7. #7

    Default Re: Kernel Modules Build failed

    Now, now... here's my definite line :
    Code:
    BuildRequires : %kernel_module_package_buildreqs
    # kernel-source kernel-syms module-init-tools
    Factory has found the macro
    and OSS runs without macro and uncommenting the next line :
    Code:
    BuildRequires : 
    # kernel_module_package_buildreqs
     kernel-source kernel-syms module-init-tools
    Anyway, that issue stays unsolved :
    Code:
    Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2
    make: Leaving directory `/usr/src/linux-2.6.31-rc6-3-obj/i386/default'
    error: Bad exit status from /var/tmp/rpm-tmp.22550 (%build)

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

    Default Re: Kernel Modules Build failed

    Quote Originally Posted by broumbroum23
    Now, now... here's my definite line :

    Code:
    --------------------
    BuildRequires : %kernel_module_package_buildreqs
    # kernel-source kernel-syms module-init-tools
    --------------------

    Factory has found the macro
    and OSS runs without macro and uncommenting the next line :

    Code:
    --------------------
    BuildRequires :
    # kernel_module_package_buildreqs
    kernel-source kernel-syms module-init-tools
    --------------------


    Anyway, that issue stays unsolved :
    Code:
    --------------------
    Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2
    make: Leaving directory `/usr/src/linux-2.6.31-rc6-3-obj/i386/default'
    error: Bad exit status from /var/tmp/rpm-tmp.22550 (%build)
    --------------------
    Hi
    But you haven't defined any %flavors_to_build??

    Have a look at my spec file for an au0828 here;
    http://www.nopaste.com/p/aj1PG4kOG

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
    up 20:49, 2 users, load average: 3.76, 3.00, 2.47
    GPU GeForce 8600 GTS Silent - Driver Version: 190.18


  9. #9

    Default Re: Kernel Modules Build failed

    Then it looks like this :
    https://build.opensuse.org/project/s...3Abroumbroum23
    Code:
    # norootforbuild
    Name:                  compat-wireless
    BuildRequires:         %kernel_module_package_buildreqs
    # kernel-source kernel-syms module-init-tools
    License:               GPL
    Group:                 System/Kernel
    Summary:               Linux Wireless compatibility package
    Version:               2.6.30
    Release:               1
    Source0:               %name-%version.tar.gz
    BuildRoot:             %{_tmppath}/%{name}-%{version}-build
    %kernel_module_package -x debug -x trace
    %description
    Compat-wireless was designed to allow you to install the latest
    bleeding edge Linux wireless drivers on older kernels. Sometimes you
    don't want to run bleeding edge wireless and but compat-wireless gives
    you no other option, that's where the compat-wireless stable snapshots
    come in.
    
    This package allows you install the 2.6.30 Linux wireless
    drivers on kernels >= 2.6.27.
    
    For more information please see:
    
    http://wireless.kernel.org/en/users/Download
    http://wireless.kernel.org/en/users/Download/stable
    %prep
    %setup
    set -- *
    mkdir source
    mv "$@" source/
    mkdir obj
    %build
    # Set build to default kernel
    %if 0%{?suse_version} == 1120
    export flavors to build=desktop pae default
    %else
    export flavors to build=default pae
    %endif
    export EXTRA_CFLAGS='-DVERSION=\"%version\"'
    for flavor in %flavors_to_build; do
           rm -rf obj/$flavor
           cp -r source obj/$flavor
           make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
    done
    %install
    %if 0%{?suse_version} == 1120
    export flavor=desktop pae default
    %else
    export flavor=default pae
    %endif
    export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
    export INSTALL_MOD_DIR=updates
    for flavor in %flavors_to_build; do
           make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
    done
    %changelog
    Im no C or shell script programmer, I know about PHP and Java much better.
    BTW Im wondering how to do the same with debian package, how to define and find the uname -r in the debian/control and debian/dsc file.

  10. #10

    Default Re: Kernel Modules Build failed

    I missed the macro
    Code:
    %if 0%{?suse_version} == 1120
    %suse_kernel_module_package -x desktop pae default
    %else
    %suse_kernel_module_package -x default pae
    %endif
    in the place of %kernel_module_package -x debug -x trace
    hope this helps. building's been scheduled...

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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