Re: Trouble compiling generic kernel

2010-07-26 Thread Dave Witbrodt

On 07/26/2010 11:04 AM, Sven Joachim wrote:

There's another advice I need to give: while dpkg-dev will automatically
use fakeroot when necessary, make-kpkg currently does not unless you set
ROOT_CMD=fakeroot in the environment.  You can put this setting into
~/.kernel-pkg.conf (I have it there for ages, and forgot about it).


One can also add a command line option,

  --rootcmd=fakeroot

or one can simply run the whole 'make-kpkg' command as the argument to 
fakeroot:


fakeroot  make-kpkg  [...]


Dave W.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4c4da6ee.8010...@sbcglobal.net



Re: Trouble compiling generic kernel

2010-07-26 Thread Sven Joachim
On 2010-07-26 14:00 +0200, Curt Howland wrote:

> On Monday 26 July 2010, Sven Joachim  was heard to 
> say:
>> You need to install the fakeroot package to build Debian packages
>> as an ordinary user.  In Squeeze, dpkg-dev recommends fakeroot for
>> that reason.
>
> Well, that solves that question. I thought the fakeroot package was 
> for "that extra bit of security", because I had it confused 
> with "chroot" and that whole "jail" thing.
>
> Got it! I'll try again on my main system (the Lenny one) again today 
> with all the advice given. I think it will work this time! And this 
> may be the first time I didn't get advice from Ron Johnson. :^)

There's another advice I need to give: while dpkg-dev will automatically
use fakeroot when necessary, make-kpkg currently does not unless you set
ROOT_CMD=fakeroot in the environment.  You can put this setting into
~/.kernel-pkg.conf (I have it there for ages, and forgot about it).

See kernel-pkg.conf(5) for other settings you may want to put into
~/.kernel-pkg.conf.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87mxtel1xm@turtle.gmx.de



Re: Trouble compiling generic kernel

2010-07-26 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 26 July 2010, Sven Joachim  was heard to 
say:
> You need to install the fakeroot package to build Debian packages
> as an ordinary user.  In Squeeze, dpkg-dev recommends fakeroot for
> that reason.

Well, that solves that question. I thought the fakeroot package was 
for "that extra bit of security", because I had it confused 
with "chroot" and that whole "jail" thing.

Got it! I'll try again on my main system (the Lenny one) again today 
with all the advice given. I think it will work this time! And this 
may be the first time I didn't get advice from Ron Johnson. :^)

Peace, may your aim never waver,

Curt- 

- -- 
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTE14zy9Y35yItIgBAQIMUQf8CYY9pwPWAclrgaICSGmRna/YrNXntV8z
19bcK4Ac/mtK2TXuvwgzRieRS8VpBN7aEmlm5qbn8PvPl6sB/e86gQfCRVISnTym
6yKJmtfp2QbugPMSyhPIJpsoZp4ot7lZd9GPj664gMtwFe5/+2TAfshRjNlahzxb
Tz4C5ErAjN7DPtxXLp0hYDDdWi7PFl8a+juL9BgKoaToiiAUF7R15JVL1OnbzTd4
6k2sCbSs4Rndy2f6j6+/boDOvrYflg9iLn8bbWS4oY5CR3F+aunzfmvQRsKPXxlL
lXsVAH8M9vSSj83L7n8GxNODOtq/P/4sIjpfl5hvFET38sDC8VTnXw==
=KDgy
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201007260800.15737.howl...@priss.com



Re: Trouble compiling generic kernel

2010-07-25 Thread Sven Joachim
On 2010-07-26 03:32 +0200, Curt Howland wrote:

> Well, I've run into another problem with the compile that folks might
> find interesting.
>
> All while running as the only user account on this machine (other than
> root), I ran into a very interesting permissions error at the end of
> the "make-kpkg kernel_image" process. I did the compile as root
> successfully after seeing this error the first time, just to see if it
> was user related, and the compile completed successfully.
>
> In fact, I'm running 2.6.35-rc6 right now, no problems.
>
> But I erased the directory and un-tarred the generic kernel source
> again just to be sure, and received the same permission error again.
> I'm just not sure if this is a debian "make-kpkg" error or not...

You need to install the fakeroot package to build Debian packages as an
ordinary user.  In Squeeze, dpkg-dev recommends fakeroot for that reason.

> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d':
> Operation not permitted

What fakeroot does is to install a wrapper around chown and other system
calls to pretend they succeeded.  It also starts a daemon that remembers
the new owner, so that the files are actually owned by that user
(usually root) when the package is created.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/871vaqn8sl@turtle.gmx.de



Re: Trouble compiling generic kernel

2010-07-25 Thread Angus Hedger
On Mon, Jul 26, 2010 at 2:32 AM, Curt Howland  wrote:
> Well, I've run into another problem with the compile that folks might
> find interesting.
>
> All while running as the only user account on this machine (other than
> root), I ran into a very interesting permissions error at the end of
> the "make-kpkg kernel_image" process. I did the compile as root
> successfully after seeing this error the first time, just to see if it
> was user related, and the compile completed successfully.
>
> In fact, I'm running 2.6.35-rc6 right now, no problems.
>
> But I erased the directory and un-tarred the generic kernel source
> again just to be sure, and received the same permission error again.
> I'm just not sure if this is a debian "make-kpkg" error or not...
>
> Here's the error and ls -a of the directories I think its referring to:
>
> =
> echo done > debian/stamp/build/kernel
> /usr/bin/make -f ./debian/rules
> debian/stamp/binary/pre-linux-image-2.6.35-rc6-curt.02
> make[1]: Entering directory `/usr/src/linux-2.6.35-rc6'
> == making target
> debian/stamp/install/linux-image-2.6.35-rc6-curt.02 [new prereqs:
> ]==
> This is kernel package version 12.036.
> rm -f -r .//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02
> .//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02.deb
> install -p -d -o root -g root  -m  755
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d
> \
>
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d':
> Operation not permitted
> install: cannot change owner and permissions of
> `/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d':
> Operation not permitted
> make[1]: *** [debian/stamp/install/linux-image-2.6.35-rc6-curt.02] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
> make: *** [kernel_image] Error 2
>
> $ dir 
> /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/
> total 16
> drwx-- 2 curt curt 4096 Jul 25 21:12 postinst.d
> drwx-- 2 curt curt 4096 Jul 25 21:12 postrm.d
> drwx-- 2 curt curt 4096 Jul 25 21:12 preinst.d
> drwx-- 2 curt curt 4096 Jul 25 21:12 prerm.d
>
> $ dir /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/
> total 4
> drwxr-xr-x 6 curt curt 4096 Jul 25 21:12 kernel
> =

I had the same error when i was compiling the 2.6.34.1, both inside
and outside the /usr/src/ dir, and again worked fine when i did it as
root.

I don’t think a normal user can changer owner and permissions can they?

Regards, Angus

ps thinking about it, you would have had to untar or cp the source as
root in order to get it into the /usr/src folder right, if so wouldn’t
it end up belonging to root? (im still a bit new to how *nix
permissions work, so pardon my ignorance)


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktiknzvhyqiixkhzs-2gxgwytiuudrhsxqxdc6...@mail.gmail.com



Re: Trouble compiling generic kernel

2010-07-25 Thread Curt Howland
Well, I've run into another problem with the compile that folks might
find interesting.

All while running as the only user account on this machine (other than
root), I ran into a very interesting permissions error at the end of
the "make-kpkg kernel_image" process. I did the compile as root
successfully after seeing this error the first time, just to see if it
was user related, and the compile completed successfully.

In fact, I'm running 2.6.35-rc6 right now, no problems.

But I erased the directory and un-tarred the generic kernel source
again just to be sure, and received the same permission error again.
I'm just not sure if this is a debian "make-kpkg" error or not...

Here's the error and ls -a of the directories I think its referring to:

=
echo done > debian/stamp/build/kernel
/usr/bin/make -f ./debian/rules
debian/stamp/binary/pre-linux-image-2.6.35-rc6-curt.02
make[1]: Entering directory `/usr/src/linux-2.6.35-rc6'
== making target
debian/stamp/install/linux-image-2.6.35-rc6-curt.02 [new prereqs:
]==
This is kernel package version 12.036.
rm -f -r .//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02
.//usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02.deb
install -p -d -o root -g root  -m  755
/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d
/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d
\

/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d
/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d
install: cannot change owner and permissions of
`/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postinst.d':
Operation not permitted
install: cannot change owner and permissions of
`/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/preinst.d':
Operation not permitted
install: cannot change owner and permissions of
`/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/postrm.d':
Operation not permitted
install: cannot change owner and permissions of
`/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/prerm.d':
Operation not permitted
make[1]: *** [debian/stamp/install/linux-image-2.6.35-rc6-curt.02] Error 1
make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
make: *** [kernel_image] Error 2

$ dir 
/usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/kernel/
total 16
drwx-- 2 curt curt 4096 Jul 25 21:12 postinst.d
drwx-- 2 curt curt 4096 Jul 25 21:12 postrm.d
drwx-- 2 curt curt 4096 Jul 25 21:12 preinst.d
drwx-- 2 curt curt 4096 Jul 25 21:12 prerm.d

$ dir /usr/src/linux-2.6.35-rc6/debian/linux-image-2.6.35-rc6-curt.02/etc/
total 4
drwxr-xr-x 6 curt curt 4096 Jul 25 21:12 kernel
=


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktikwv7mrwgotrllvhbvhywhgfoqqr3bwel7ka...@mail.gmail.com



Re: Trouble compiling generic kernel

2010-07-25 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 25 July 2010, Sven Joachim  was heard to 
say:
> Not really.  The libc6-dev package is too old, lacking sys/eventfd.

Got it. I will give up with this machine. I don't want to upgrade to 
Squeeze due to preferring KDE3.

Curt-

- -- 
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTEyCwC9Y35yItIgBAQJMxgf+Js5gSXNl/05x09wt7nW4oC4790plhiBq
Z8UlJoeonJPHeyDxHwqRTAYwdjNwBRSF/oixZ1wYLwFh73ytB2bgnxRchtDIHeDr
i+JL78DVoj6buQPHGAVfDC74t/WjezasL1R2EiHW0xyQzYBYkmGcsQ72zvEhdULj
mzFR0kX6TZhrsVvaQ1Pk/cjFi68ekVbCD7813yHHS4dBplR43gtYKco8QhuFXkvs
uCbyhO0gIDxPS3z4Orkoi0cx0QrnJrCeZG2IkpVhEUIe8Raa8UEJUTVODfk1byw9
mKoZCL+G9Ao7ZMs1jIzNyUiEr7v9LBVbMPcPkhuACrDXypaRdMCODw==
=wnUa
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201007251430.29846.howl...@priss.com



Re: Trouble compiling generic kernel

2010-07-25 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 25 July 2010, Rares Aioanei was heard to say:
> If you are certain that the kernel tree isn't missing some files,
> then this is a situation for bugzilla.kernel.org . :)

Well, no, it must be just me. I pulled down and tried the 2.6.34.1 
mainline kernel and received an almost identical error, but the 
same "sys/eventfd.h" line:

===
make[1]: Leaving directory `/usr/src/linux-2.6.34.1'
/usr/bin/make -j4   ARCH=i386 \
 -C Documentation/lguest
make[1]: Entering directory 
`/usr/src/linux-2.6.34.1/Documentation/lguest'
cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include 
-I../../arch/x86/include -U_FORTIFY_SOURCE
lguest.c   -o lguest
lguest.c:21:25: error: sys/eventfd.h: No such file or directory
lguest.c: In function ‘create_thread’:
lguest.c:1026: warning: implicit declaration of function ‘eventfd’
make[1]: *** [lguest] Error 1
make[1]: Leaving directory 
`/usr/src/linux-2.6.34.1/Documentation/lguest'
make: *** [debian/stamp/build/kernel] Error 2
===

I wonder if the problem is from using make-kpkg somehow

- -- 
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTEx6CS9Y35yItIgBAQJifgf/Xuz7T5zLuERyrhbH+qvi0jBpcU7AyOli
HjvIKXnZqFIb3BEhFxVIWR3A1wXwmaUXa35sHS2QwSkxH4LJ5JbHU9HIEMSs0hoS
jKpGXWK84YnYyE6HZk99gHn9tmnCUirKneS8gzx9g4+hHD32Xtiq4bFzN5yOj+4+
CGfySDGhhWhB+9s8L7Sk0U7QrQ/USlVBH3XvZBBTYBbrP2FhE4FZURHj11OWsfGi
B9qpNq8s8L7+5hTjyPBKU5oMc61XMMKwvirkyPtiqSMXRvPaKr2nuzwTx+2f8Une
e6WMV5HRJRqMLHgu6xe361U31BuNh8aRCy5LvRLe4dD9lCpKH5R28w==
=VqCE
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201007251353.13713.howl...@priss.com



Re: Trouble compiling generic kernel

2010-07-25 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 25 July 2010, Rares Aioanei was heard to say:
> If you are certain that the kernel tree isn't missing some files,
> then this is a situation for bugzilla.kernel.org . :)

As certain as I can be, having been careful not to delete anything.

Just "make menuconfig" then "make-kpkg..."

Golly, I feel so ... awed! Li'l ol' me? Post to kernel.org? 

Gee wilikers.

- -- 
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTEx0Di9Y35yItIgBAQJ4Bgf/U1yR0EgGdj304Z1VTKspR36Mz2c4H7TQ
dNVOFydw6RY+vf0i8HxHZBNX3N5r49BRp06lt+Huk9Ed9wwuoN5bBE3lSeLdFbdf
9s2wjRfix8zt0Z/FUCIq61pNRznGnnxZX5K0nfzQdcRrDspBGYLnAQi1H3bdxSLS
xupJsUNdjIuj9ryh4kb5DmHaCrGN7+mwWVd9dC7Rc6CfT+NxgfJCUWgcREdRBhgf
BPhc4wnIUlEdmCFKMrnmV8F8wuLSUbEG5Efd4HKC5pUWw4VCvQwF/SlIlZbqjaJm
dizD6k9Lw2qT2YLHsu6ztyAnF3Km0MZQmgl7cCRGy++0q48UJLkyrg==
=+K/1
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201007251327.42289.howl...@priss.com



Re: Trouble compiling generic kernel

2010-07-25 Thread Sven Joachim
On 2010-07-25 18:25 +0200, Curt Howland wrote:

> Now on to something new: Build failure! Who'd'a thought? I changed 
> back to single-concurrency just to make sure that it wasn't 
> related, "make clean", then tried again with the same result.
>
> Any suggestions?
>
> ==
> $ make-kpkg --revision=curt0.1 kernel_image 

When using kernel-package, make sure that you install the latest version
(12.036).  Earlier versions will likely not work, in particular the
Lenny version is known to be broken with kernels >= 2.6.33.

> {scrolled so many as I'm sure you know... Then,}
> make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
> /usr/bin/make -j1   ARCH=i386 \
>  -C Documentation/lguest
> make[1]: Entering directory 
> `/usr/src/linux-2.6.35-rc6/Documentation/lguest'
> cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include 
> -I../../arch/x86/include -U_FORTIFY_SOURCE
> lguest.c   -o lguest
> lguest.c:21:25: error: sys/eventfd.h: No such file or directory

Oh yeah, sys/eventfd.h is in the libc6-dev package.  But not in Lenny,
only in Squeeze.  Since you probably don't want to upgrade libc6, you
should build the kernel without CONFIG_LGUEST: under "Virtualization",
uncheck "Linux hypervisor example code (NEW)".  This should hopefully do
the trick.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87tynnlb4u@turtle.gmx.de



Re: Trouble compiling generic kernel

2010-07-25 Thread Sven Joachim
On 2010-07-25 18:54 +0200, Rares Aioanei wrote:

>  On 07/25/2010 07:25 PM, Curt Howland wrote:
>>
>> ==
>> $ make-kpkg --revision=curt0.1 kernel_image
>> {scrolled so many as I'm sure you know... Then,}
>> make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
>> /usr/bin/make -j1   ARCH=i386 \
>>   -C Documentation/lguest
>> make[1]: Entering directory
>> `/usr/src/linux-2.6.35-rc6/Documentation/lguest'
>> cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 
>> -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE
>> lguest.c   -o lguest
>> lguest.c:21:25: error: sys/eventfd.h: No such file or directory
>> lguest.c: In function ‘create_thread’:
>> lguest.c:1026: warning: implicit declaration of function ‘eventfd’
>> make[1]: *** [lguest] Error 1
>> make[1]: Leaving directory
>> `/usr/src/linux-2.6.35-rc6/Documentation/lguest'
>> make: *** [debian/stamp/build/kernel] Error 2
>> ==
>>
>>
>>
> If you are certain that the kernel tree isn't missing some files, then this
> is a situation for bugzilla.kernel.org . :)

Not really.  The libc6-dev package is too old, lacking sys/eventfd.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/8739v7mq11@turtle.gmx.de



Re: Trouble compiling generic kernel

2010-07-25 Thread Rares Aioanei

 On 07/25/2010 07:25 PM, Curt Howland wrote:


==
$ make-kpkg --revision=curt0.1 kernel_image
{scrolled so many as I'm sure you know... Then,}
make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
/usr/bin/make -j1   ARCH=i386 \
  -C Documentation/lguest
make[1]: Entering directory
`/usr/src/linux-2.6.35-rc6/Documentation/lguest'
cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include 
-I../../arch/x86/include -U_FORTIFY_SOURCE
lguest.c   -o lguest
lguest.c:21:25: error: sys/eventfd.h: No such file or directory
lguest.c: In function ‘create_thread’:
lguest.c:1026: warning: implicit declaration of function ‘eventfd’
make[1]: *** [lguest] Error 1
make[1]: Leaving directory
`/usr/src/linux-2.6.35-rc6/Documentation/lguest'
make: *** [debian/stamp/build/kernel] Error 2
==




If you are certain that the kernel tree isn't missing some files, then this
is a situation for bugzilla.kernel.org . :)


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4c4c6c30.8030...@gmail.com



Re: Trouble compiling generic kernel

2010-07-25 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 25 July 2010, Sven Joachim  was heard to 
say:
> > Setting CONCURRENCY_LEVEL=4 in your user environment should fix
> > this, at least, it used to.
>
> This only works if you use kernel-package to build the kernel.  The
> generic way is to use "make -j4".

Excellent advice to the novice.

> There is no need to ever build the kernel as root.

Strangely enough, I wasn't. Not quite _that_ novice I guess. :^)

Now on to something new: Build failure! Who'd'a thought? I changed 
back to single-concurrency just to make sure that it wasn't 
related, "make clean", then tried again with the same result.

Any suggestions?

==
$ make-kpkg --revision=curt0.1 kernel_image 
{scrolled so many as I'm sure you know... Then,}
make[1]: Leaving directory `/usr/src/linux-2.6.35-rc6'
/usr/bin/make -j1   ARCH=i386 \
 -C Documentation/lguest
make[1]: Entering directory 
`/usr/src/linux-2.6.35-rc6/Documentation/lguest'
cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include 
-I../../arch/x86/include -U_FORTIFY_SOURCE
lguest.c   -o lguest
lguest.c:21:25: error: sys/eventfd.h: No such file or directory
lguest.c: In function ‘create_thread’:
lguest.c:1026: warning: implicit declaration of function ‘eventfd’
make[1]: *** [lguest] Error 1
make[1]: Leaving directory 
`/usr/src/linux-2.6.35-rc6/Documentation/lguest'
make: *** [debian/stamp/build/kernel] Error 2
==




- -- 
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTExlkC9Y35yItIgBAQIkZQf/XJqNfWBom12LWS6mBIM1aBjjoQaDBFlv
cTCZoMbPlnkVZiq8QokP3PL+ChPTmf63NV3grbUNKSfDMPADrNhhs0OsjBDbY5zd
DDoga+1wIUwTMwCiNH1McqFM682R36Z9SwqdJOCU1Cii8aBwQ7IchcJP8dGU9+3+
SUVnlprhsXTYsTNHxa8+0AiZPOdkSWCotii26Mo4ljeaIgCiTmCahD9nLiLt9OOw
VnkiE0OWHDybZ4JK6JDHYK67Gk6xIUSvndUYIhjYAgxuh9TCicaxn2LrWagwScCH
sMxYVtmGP0iHz41kP1daSpYiHbvMlpZHxdt00TGQnR3yWAoIeRBapA==
=4oN7
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201007251225.52779.howl...@priss.com



Re: Trouble compiling generic kernel

2010-07-25 Thread Sven Joachim
On 2010-07-25 03:49 +0200, Curt Howland wrote:

> Not compiling often (as you can tell), I note that the compile is 
> using only one cpu of 4 at a time. I'm sure there is a parallel 
> compilation tweak somewhere.

Yes, the "-j" switch for make.  If you want to build a Debian package
that you can install and test, use "make -j4 deb-pkg".

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87eiesnhvt@turtle.gmx.de



Re: Trouble compiling generic kernel

2010-07-25 Thread Sven Joachim
On 2010-07-25 05:22 +0200, Stan Hoeppner wrote:

> Curt Howland put forth on 7/24/2010 8:49 PM:
>
>> Not compiling often (as you can tell), I note that the compile is 
>> using only one cpu of 4 at a time. I'm sure there is a parallel 
>> compilation tweak somewhere.
>
> Setting CONCURRENCY_LEVEL=4 in your user environment should fix this, at
> least, it used to.

This only works if you use kernel-package to build the kernel.  The
generic way is to use "make -j4".

> If you regularly do your kernel work while logged on as root, you'd need to
> append it to /root/.bashrc or /root/.profile

There is no need to ever build the kernel as root.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87k4okni2i@turtle.gmx.de



Re: Trouble compiling generic kernel

2010-07-24 Thread Celejar
On Sat, 24 Jul 2010 22:22:29 -0500
Stan Hoeppner  wrote:

> Curt Howland put forth on 7/24/2010 8:49 PM:
> 
> > Not compiling often (as you can tell), I note that the compile is 
> > using only one cpu of 4 at a time. I'm sure there is a parallel 
> > compilation tweak somewhere.
> 
> Setting CONCURRENCY_LEVEL=4 in your user environment should fix this, at
> least, it used to.  From the bash command line, for the current session only:
> 
> export CONCURRENCY_LEVEL=4
> 
> To make it permanent you need to edit /home/[user]/.bash_profile and append:
> 
> export CONCURRENCY_LEVEL=4
> 
> If you regularly do your kernel work while logged on as root, you'd need to
> append it to /root/.bashrc or /root/.profile

And assuming you're using kernel-package, from its manpage:

--jobs  number
  -j  number Set the environment variable CONCURRENCY_LEVEL to 
"number".

Celejar
-- 
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100725001136.f19fdb7f.cele...@gmail.com



RE: Trouble compiling generic kernel

2010-07-24 Thread Mike Viau

> On Sat, 24 Jul 2010 22:22:29 -0500  wrote:
> 
> Setting CONCURRENCY_LEVEL=4 in your user environment should fix this, at
> least, it used to.  From the bash command line, for the current session only:
> 
> export CONCURRENCY_LEVEL=4
> 
> To make it permanent you need to edit /home/[user]/.bash_profile and append:
> 
> export CONCURRENCY_LEVEL=4
> 
> If you regularly do your kernel work while logged on as root, you'd need to
> append it to /root/.bashrc or /root/.profile

You might also want to read http://www.wowway.com/~zlinuxman/Kernel.htm

or from google's cache at 
http://webcache.googleusercontent.com/search?q=cache:7D7TfZqA1wMJ:www.wowway.com/~zlinuxman/Kernel.htm+http://www.wowway.com/~zlinuxman/Kernel.htm&cd=4&hl=en&ct=clnk&gl=ca


-M
  
_
Game on: Challenge friends to great games on Messenger
http://go.microsoft.com/?linkid=9734387

Re: Trouble compiling generic kernel

2010-07-24 Thread Stan Hoeppner
Curt Howland put forth on 7/24/2010 8:49 PM:

> Not compiling often (as you can tell), I note that the compile is 
> using only one cpu of 4 at a time. I'm sure there is a parallel 
> compilation tweak somewhere.

Setting CONCURRENCY_LEVEL=4 in your user environment should fix this, at
least, it used to.  From the bash command line, for the current session only:

export CONCURRENCY_LEVEL=4

To make it permanent you need to edit /home/[user]/.bash_profile and append:

export CONCURRENCY_LEVEL=4

If you regularly do your kernel work while logged on as root, you'd need to
append it to /root/.bashrc or /root/.profile

-- 
Stan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c4badf5.6030...@hardwarefreak.com



Re: Trouble compiling generic kernel

2010-07-24 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 24 July 2010, Sven Joachim  was heard to 
say:
> > Suggestions?
>
> Install libncurses5-dev and use "make menuconfig" or "make nconfig"
> (the latter is new in 2.6.35).

Got it, and it works fine. Thank you.

Not compiling often (as you can tell), I note that the compile is 
using only one cpu of 4 at a time. I'm sure there is a parallel 
compilation tweak somewhere.

If it is easy, fine. If not, then forget about it, I'm not in any 
rush.

Curt-

- -- 
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTEuYNC9Y35yItIgBAQII7wf+P5vId/fhyN1YSvVjQF6x0S4fHBCfvHCf
qnsgceZuuTjnRZAhy+pFmJ20avvf9bLcD88RPgBYrcSCHB2pYOXN03JbIS26VXyj
Y4YMz6XXZIFuE+GQaINEKd+Yfs5gXxTNq9HlL34TQx0foY0Pvu9MCS/DJPsZOjM4
BtIIifDA0Rpb0dCBiwGT7X3OSxTmPbRG9R7VHOWH2L3TMA+WfAsgV1wXjMf9dMDA
peZvCimNDMEDVRDMEDf5fXU+8UqytuZYEhbZRCEXtmbwTEv3Fbw8sSIad0zuV6wV
6FU3i1KWRRfJYMOo2s3SD9W1T4LYkWe1KYVmxyL/dxMFnN+lXUe9gg==
=Qc2b
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201007242149.47058.howl...@priss.com



Re: Trouble compiling generic kernel

2010-07-24 Thread John Hasler
Curt writes:
> I was surprised with the failure of menuconfig, since I have all of
> ncurses installed and the "ncurses-devel" suggestion isn't a Debian
> package name anyway.

> Suggestions?

libncurses5-dev
-- 
John Hasler


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87pqyctx33@thumper.dhh.gt.org



Re: Trouble compiling generic kernel

2010-07-24 Thread Sven Joachim
On 2010-07-24 22:26 +0200, Curt Howland wrote:

> Hi. Lenny, up to date with security and backports.
>
> I pulled down 2.6.35-rc6.tar.bz2 from kernel.org, and would like to 
> try compiling it to see what's Coming Soon To A Disto Near Me.
>
> Its been about 9 years since the last time I compiled a kernel, but 
> I'm having trouble I didn't have then. For some reason, none of 
> the "make" things that I've used in the past are working now:

This is due to missing development packages.

> ===
> $ make xconfig
>   CHECK   qt
> *
> * Unable to find the QT3 installation. Please make sure that
> * the QT3 development package is correctly installed and
> * either install pkg-config or set the QTDIR environment
> * variable to the correct location.
> *
> make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', 
> needed by `scripts/kconfig/qconf.o'.  Stop.
> make: *** [xconfig] Error 2
> ===

This target needs the libqt3-mt-dev package (and possibly others).

> ===
> $ make menuconfig
>  *** Unable to find the ncurses libraries or the
>  *** required header files.
>  *** 'make menuconfig' requires the ncurses libraries.
>  ***
>  *** Install ncurses (ncurses-devel) and try again.
>  ***
> make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
> make: *** [menuconfig] Error 2
> ===

This target needs libncurses5-dev.

> ===
> $ make gconfig
> *
> * Unable to find the GTK+ installation. Please make sure that
> * the GTK+ 2.0 development package is correctly installed...
> * You need gtk+-2.0, glib-2.0 and libglade-2.0.
> *
> make[1]: *** No rule to make target `scripts/kconfig/.tmp_gtkcheck', 
> needed by `scripts/kconfig/gconf.o'.  Stop.
> make: *** [gconfig] Error 2
> ===

This target needs libglade2-dev (and possibly other packages).

> "make config" did work, but working through everything in text is 
> enough to make a sane person INSANE.

Yes, this is only for people who are or want to become crazy.

> I was surprised with the failure of menuconfig, since I have all of 
> ncurses installed and the "ncurses-devel" suggestion isn't a Debian 
> package name anyway.

The -devel namespace comes from Red Hat based distributions, in Debian
development packages always end in -dev and very often begin with "lib".

> Suggestions?

Install libncurses5-dev and use "make menuconfig" or "make nconfig" (the
latter is new in 2.6.35).

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87bp9wegr3@turtle.gmx.de



Trouble compiling generic kernel

2010-07-24 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi. Lenny, up to date with security and backports.

I pulled down 2.6.35-rc6.tar.bz2 from kernel.org, and would like to 
try compiling it to see what's Coming Soon To A Disto Near Me.

Its been about 9 years since the last time I compiled a kernel, but 
I'm having trouble I didn't have then. For some reason, none of 
the "make" things that I've used in the past are working now:

===
$ make xconfig
  CHECK   qt
*
* Unable to find the QT3 installation. Please make sure that
* the QT3 development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', 
needed by `scripts/kconfig/qconf.o'.  Stop.
make: *** [xconfig] Error 2
===
===
$ make menuconfig
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
===
===
$ make gconfig
*
* Unable to find the GTK+ installation. Please make sure that
* the GTK+ 2.0 development package is correctly installed...
* You need gtk+-2.0, glib-2.0 and libglade-2.0.
*
make[1]: *** No rule to make target `scripts/kconfig/.tmp_gtkcheck', 
needed by `scripts/kconfig/gconf.o'.  Stop.
make: *** [gconfig] Error 2
===

"make config" did work, but working through everything in text is 
enough to make a sane person INSANE.

I was surprised with the failure of menuconfig, since I have all of 
ncurses installed and the "ncurses-devel" suggestion isn't a Debian 
package name anyway.

Suggestions?

- -- 
Those who torment us for our own good will torment us without end,
for they do so with the approval of their consciences.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iQEVAwUBTEtMeS9Y35yItIgBAQKOfAf/UDR2ITg8Idcu/2Z3yxRalWOkJ51DeQtl
XJ+7SxYj11LvSQAWdltbRAABK8BeFq9ylzdFxT+ncxUvwCnZT+iqBxMDquzj3smA
vyzAe7xcAm9th4Sqw+krr5nWzovj6bPDmkhNhIknvGVEcFAmaPgihL6GEgAjcAbA
Tvxu8OqPnS5tnGJcBNpMtV2htUmSju8QuGI4e8IQkygRX/46dgQbI0tnU3O8+1YK
3X59amdukZxgl6lsVh3C/kGq5yL+YhKfNRRtf52VtN0UTe8x01jMoJrrIkI8IjVf
gGPqFPjD3IDwdvgiD273MVvIW56dbIMyGN58W6FAZsg9IdZK4eXIvA==
=y66Y
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201007241626.33562.howl...@priss.com