openSUSE Forums > openSUSE Build Service (OBS) » Kernel Modules Build failed

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-Aug-2009, 07:03
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
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.
Reply With Quote
  #2 (permalink)  
Old 19-Aug-2009, 10:15
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,642
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
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

Reply With Quote
  #3 (permalink)  
Old 19-Aug-2009, 14:08
Puzzled Penguin
 
Join Date: Jun 2008
Location: Russia
Posts: 27
Lazy_Kent hasn't been rated much yet
Send a message via Yahoo to Lazy_Kent
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.
Reply With Quote
  #4 (permalink)  
Old 20-Aug-2009, 16:01
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
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.
Reply With Quote
  #5 (permalink)  
Old 20-Aug-2009, 16:14
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
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
Reply With Quote
  #6 (permalink)  
Old 20-Aug-2009, 19:43
Puzzled Penguin
 
Join Date: Jun 2008
Location: Russia
Posts: 27
Lazy_Kent hasn't been rated much yet
Send a message via Yahoo to Lazy_Kent
Default Re: Kernel Modules Build failed

I use %kernel_module_package_buildreq (w/o s at the end).
My package is here.
Reply With Quote
  #7 (permalink)  
Old 21-Aug-2009, 04:58
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
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)
Reply With Quote
  #8 (permalink)  
Old 21-Aug-2009, 08:54
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,642
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
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

Reply With Quote
  #9 (permalink)  
Old 21-Aug-2009, 09:39
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
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.
Reply With Quote
  #10 (permalink)  
Old 21-Aug-2009, 16:10
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
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...
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks

Tags
build, kernel, modules, package, wireless


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2