All of lore.kernel.org
 help / color / mirror / Atom feed
* Building kernel the Debian way fails
@ 2015-07-25  5:23 Jose R R
  2015-07-25  5:56 ` dimas
  2015-07-25 14:58 ` Ben Hutchings
  0 siblings, 2 replies; 5+ messages in thread
From: Jose R R @ 2015-07-25  5:23 UTC (permalink / raw)
  To: debian-kernel, debian-boot, ReiserFS Development List

Niltze, all!

Trying to build a Linux kernel the Debian way -- since I need to have
udebs for my project. I am building on Stretch/Sid and have followed
instructions at:

https://wiki.debian.org/DebianInstaller/Modify/CustomKernel
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official

I get the source and decompress it:
apt-get source linux
(tried with linux-4.0.8-1 AND linux-4.0.8-2)

Apply existing patches:
fakeroot debian/rules source

Use quilt to apply Reiser4 patch:
gzip -dc ../reiser4-for-4.0.4.patch.gz | quilt fold
(finishes without errors)

I then change the configuration before build:
fakeroot make -f debian/rules.gen setup_amd64
make -C debian/build/build_amd64_none_amd64 menuconfig
(enable Reiser4 in the kernel and OS/2 HPFS as module)

And build for the amd64 flavour:
fakeroot make -f debian/rules.gen binary-arch_amd64_none_amd64

Procedure executes for a while but then:

[...]
xt_unregister_targets                            module:
net/netfilter/x_tables, version: 0x1ab6dab6 -> 0x967580ea, export:
EXPORT_SYMBOL
yield_to                                         module: vmlinux,
version: 0x64772de8 -> 0x7e986552, export: EXPORT_SYMBOL_GPL
zap_vma_ptes                                     module: vmlinux,
version: 0x51123f12 -> 0xe4761abe, export: EXPORT_SYMBOL_GPL
zero_fill_bio                                    module: vmlinux,
version: 0x999a9bec -> 0x2f0438ba, export: EXPORT_SYMBOL
zerocopy_sg_from_iter                            module: vmlinux,
version: 0x156cb754 -> 0x3396ed70, export: EXPORT_SYMBOL
zl10036_attach                                   module:
drivers/media/dvb-frontends/zl10036, version: 0x01c15872 ->
0x5ad87e01, export: EXPORT_SYMBOL
zl10039_attach                                   module:
drivers/media/dvb-frontends/zl10039, version: 0x4d52eac4 ->
0x99661045, export: EXPORT_SYMBOL
zl10353_attach                                   module:
drivers/media/dvb-frontends/zl10353, version: 0xd7c34f95 ->
0x6f771756, export: EXPORT_SYMBOL

Removed symbols:
bdi_unregister                                   ignored, module:
vmlinux, version: 0xa88ae9e6, export: EXPORT_SYMBOL
debian/rules.real:160: recipe for target
'debian/stamps/build_amd64_none_amd64_plain' failed
make[1]: *** [debian/stamps/build_amd64_none_amd64_plain] Error 1
make[1]: Leaving directory '/mnt/sda8-tekitl/usr/src/linux-4.0.8'
debian/rules.gen:25: recipe for target
'binary-arch_amd64_none_amd64_real' failed
make: *** [binary-arch_amd64_none_amd64_real] Error 2


Thank you in advance for any insight. Appreciated.


Best Professional Regards


-- 
Jose R R
http://www.metztli-it.com
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!
---------------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building kernel the Debian way fails
  2015-07-25  5:23 Building kernel the Debian way fails Jose R R
@ 2015-07-25  5:56 ` dimas
  2015-07-25  6:19   ` Jose R R
  2015-07-25 14:58 ` Ben Hutchings
  1 sibling, 1 reply; 5+ messages in thread
From: dimas @ 2015-07-25  5:56 UTC (permalink / raw)
  To: reiserfs-devel

firstly, why don't you use make-kpkg to build?
and does unpatcheed kernel build? seems, there is nothing relevant to r4, but
to xtables


2015-205 22:23 Jose R R <Jose.r.r@metztli-it.com> wrote:
> Niltze, all!
> 
> Trying to build a Linux kernel the Debian way -- since I need to have
> udebs for my project. I am building on Stretch/Sid and have followed
> instructions at:
> 
> https://wiki.debian.org/DebianInstaller/Modify/CustomKernel
> http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official
> 
> I get the source and decompress it:
> apt-get source linux
> (tried with linux-4.0.8-1 AND linux-4.0.8-2)
> 
> Apply existing patches:
> fakeroot debian/rules source
> 
> Use quilt to apply Reiser4 patch:
> gzip -dc ../reiser4-for-4.0.4.patch.gz | quilt fold
> (finishes without errors)
> 
> I then change the configuration before build:
> fakeroot make -f debian/rules.gen setup_amd64
> make -C debian/build/build_amd64_none_amd64 menuconfig
> (enable Reiser4 in the kernel and OS/2 HPFS as module)
> 
> And build for the amd64 flavour:
> fakeroot make -f debian/rules.gen binary-arch_amd64_none_amd64
> 
> Procedure executes for a while but then:
> 
> [...]
> xt_unregister_targets                            module:
> net/netfilter/x_tables, version: 0x1ab6dab6 -> 0x967580ea, export:
> EXPORT_SYMBOL
> yield_to                                         module: vmlinux,
> version: 0x64772de8 -> 0x7e986552, export: EXPORT_SYMBOL_GPL
> zap_vma_ptes                                     module: vmlinux,
> version: 0x51123f12 -> 0xe4761abe, export: EXPORT_SYMBOL_GPL
> zero_fill_bio                                    module: vmlinux,
> version: 0x999a9bec -> 0x2f0438ba, export: EXPORT_SYMBOL
> zerocopy_sg_from_iter                            module: vmlinux,
> version: 0x156cb754 -> 0x3396ed70, export: EXPORT_SYMBOL
> zl10036_attach                                   module:
> drivers/media/dvb-frontends/zl10036, version: 0x01c15872 ->
> 0x5ad87e01, export: EXPORT_SYMBOL
> zl10039_attach                                   module:
> drivers/media/dvb-frontends/zl10039, version: 0x4d52eac4 ->
> 0x99661045, export: EXPORT_SYMBOL
> zl10353_attach                                   module:
> drivers/media/dvb-frontends/zl10353, version: 0xd7c34f95 ->
> 0x6f771756, export: EXPORT_SYMBOL
> 
> Removed symbols:
> bdi_unregister                                   ignored, module:
> vmlinux, version: 0xa88ae9e6, export: EXPORT_SYMBOL
> debian/rules.real:160: recipe for target
> 'debian/stamps/build_amd64_none_amd64_plain' failed
> make[1]: *** [debian/stamps/build_amd64_none_amd64_plain] Error 1
> make[1]: Leaving directory '/mnt/sda8-tekitl/usr/src/linux-4.0.8'
> debian/rules.gen:25: recipe for target
> 'binary-arch_amd64_none_amd64_real' failed
> make: *** [binary-arch_amd64_none_amd64_real] Error 2
> 
> 
> Thank you in advance for any insight. Appreciated.
> 
> 
> Best Professional Regards
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building kernel the Debian way fails
  2015-07-25  5:56 ` dimas
@ 2015-07-25  6:19   ` Jose R R
  0 siblings, 0 replies; 5+ messages in thread
From: Jose R R @ 2015-07-25  6:19 UTC (permalink / raw)
  To: reiserfs-devel, dimas000

Здравствуйте, Dimas-

On Fri, Jul 24, 2015 at 10:56 PM, dimas <dimas000@ya.ru> wrote:
> firstly, why don't you use make-kpkg to build?

I need the udebs to create a custom Debian Installation (d-i) CD media.

> and does unpatcheed kernel build? seems, there is nothing relevant to r4

Indeed I can build relevant Linux kernel with Reiser4 support the
non-debian, way but I would not get the needed udebs ;-)

, but
> to xtables

In my query I had to include *all* the variables if I expect to
receive more relevant suggestions.


>
>
> 2015-205 22:23 Jose R R <Jose.r.r@metztli-it.com> wrote:
>> Niltze, all!
>>
>> Trying to build a Linux kernel the Debian way -- since I need to have
>> udebs for my project. I am building on Stretch/Sid and have followed
>> instructions at:
>>
>> https://wiki.debian.org/DebianInstaller/Modify/CustomKernel
>> http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official
>>
>> I get the source and decompress it:
>> apt-get source linux
>> (tried with linux-4.0.8-1 AND linux-4.0.8-2)
>>
>> Apply existing patches:
>> fakeroot debian/rules source
>>
>> Use quilt to apply Reiser4 patch:
>> gzip -dc ../reiser4-for-4.0.4.patch.gz | quilt fold
>> (finishes without errors)
>>
>> I then change the configuration before build:
>> fakeroot make -f debian/rules.gen setup_amd64
>> make -C debian/build/build_amd64_none_amd64 menuconfig
>> (enable Reiser4 in the kernel and OS/2 HPFS as module)
>>
>> And build for the amd64 flavour:
>> fakeroot make -f debian/rules.gen binary-arch_amd64_none_amd64
>>
>> Procedure executes for a while but then:
>>
>> [...]
>> xt_unregister_targets                            module:
>> net/netfilter/x_tables, version: 0x1ab6dab6 -> 0x967580ea, export:
>> EXPORT_SYMBOL
>> yield_to                                         module: vmlinux,
>> version: 0x64772de8 -> 0x7e986552, export: EXPORT_SYMBOL_GPL
>> zap_vma_ptes                                     module: vmlinux,
>> version: 0x51123f12 -> 0xe4761abe, export: EXPORT_SYMBOL_GPL
>> zero_fill_bio                                    module: vmlinux,
>> version: 0x999a9bec -> 0x2f0438ba, export: EXPORT_SYMBOL
>> zerocopy_sg_from_iter                            module: vmlinux,
>> version: 0x156cb754 -> 0x3396ed70, export: EXPORT_SYMBOL
>> zl10036_attach                                   module:
>> drivers/media/dvb-frontends/zl10036, version: 0x01c15872 ->
>> 0x5ad87e01, export: EXPORT_SYMBOL
>> zl10039_attach                                   module:
>> drivers/media/dvb-frontends/zl10039, version: 0x4d52eac4 ->
>> 0x99661045, export: EXPORT_SYMBOL
>> zl10353_attach                                   module:
>> drivers/media/dvb-frontends/zl10353, version: 0xd7c34f95 ->
>> 0x6f771756, export: EXPORT_SYMBOL
>>
>> Removed symbols:
>> bdi_unregister                                   ignored, module:
>> vmlinux, version: 0xa88ae9e6, export: EXPORT_SYMBOL
>> debian/rules.real:160: recipe for target
>> 'debian/stamps/build_amd64_none_amd64_plain' failed
>> make[1]: *** [debian/stamps/build_amd64_none_amd64_plain] Error 1
>> make[1]: Leaving directory '/mnt/sda8-tekitl/usr/src/linux-4.0.8'
>> debian/rules.gen:25: recipe for target
>> 'binary-arch_amd64_none_amd64_real' failed
>> make: *** [binary-arch_amd64_none_amd64_real] Error 2
>>
>>
>> Thank you in advance for any insight. Appreciated.
>>
>>
>> Best Professional Regards
>>

Cheers!

-- 
Jose R R
http://www.metztli-it.com
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building kernel the Debian way fails
  2015-07-25  5:23 Building kernel the Debian way fails Jose R R
  2015-07-25  5:56 ` dimas
@ 2015-07-25 14:58 ` Ben Hutchings
  2015-07-25 15:12   ` Jose R R
  1 sibling, 1 reply; 5+ messages in thread
From: Ben Hutchings @ 2015-07-25 14:58 UTC (permalink / raw)
  To: Jose R R, debian-kernel, debian-boot, ReiserFS Development List

[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]

On Fri, 2015-07-24 at 22:23 -0700, Jose R R wrote:
[...]
> Procedure executes for a while but then:
> 
> [...]
> xt_unregister_targets                            module:
> net/netfilter/x_tables, version: 0x1ab6dab6 -> 0x967580ea, export:
> EXPORT_SYMBOL
> yield_to                                         module: vmlinux,
> version: 0x64772de8 -> 0x7e986552, export: EXPORT_SYMBOL_GPL
> zap_vma_ptes                                     module: vmlinux,
> version: 0x51123f12 -> 0xe4761abe, export: EXPORT_SYMBOL_GPL
> zero_fill_bio                                    module: vmlinux,
> version: 0x999a9bec -> 0x2f0438ba, export: EXPORT_SYMBOL
> zerocopy_sg_from_iter                            module: vmlinux,
> version: 0x156cb754 -> 0x3396ed70, export: EXPORT_SYMBOL
> zl10036_attach                                   module:
> drivers/media/dvb-frontends/zl10036, version: 0x01c15872 ->
> 0x5ad87e01, export: EXPORT_SYMBOL
> zl10039_attach                                   module:
> drivers/media/dvb-frontends/zl10039, version: 0x4d52eac4 ->
> 0x99661045, export: EXPORT_SYMBOL
> zl10353_attach                                   module:
> drivers/media/dvb-frontends/zl10353, version: 0xd7c34f95 ->
> 0x6f771756, export: EXPORT_SYMBOL
> 
> Removed symbols:
> bdi_unregister                                   ignored, module:
> vmlinux, version: 0xa88ae9e6, export: EXPORT_SYMBOL
[...]

See
<http://kernel-handbook.alioth.debian.org/ch-versions.html#s-abi-maintenance>

Ben.

-- 
Ben Hutchings
It is easier to change the specification to fit the program than vice versa.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building kernel the Debian way fails
  2015-07-25 14:58 ` Ben Hutchings
@ 2015-07-25 15:12   ` Jose R R
  0 siblings, 0 replies; 5+ messages in thread
From: Jose R R @ 2015-07-25 15:12 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: debian-kernel, debian-boot, ReiserFS Development List

Appreciated, Ben!


On Sat, Jul 25, 2015 at 7:58 AM, Ben Hutchings <ben@decadent.org.uk> wrote:
> On Fri, 2015-07-24 at 22:23 -0700, Jose R R wrote:
> [...]
>> Procedure executes for a while but then:
>>
>> [...]
>> xt_unregister_targets                            module:
>> net/netfilter/x_tables, version: 0x1ab6dab6 -> 0x967580ea, export:
>> EXPORT_SYMBOL
>> yield_to                                         module: vmlinux,
>> version: 0x64772de8 -> 0x7e986552, export: EXPORT_SYMBOL_GPL
>> zap_vma_ptes                                     module: vmlinux,
>> version: 0x51123f12 -> 0xe4761abe, export: EXPORT_SYMBOL_GPL
>> zero_fill_bio                                    module: vmlinux,
>> version: 0x999a9bec -> 0x2f0438ba, export: EXPORT_SYMBOL
>> zerocopy_sg_from_iter                            module: vmlinux,
>> version: 0x156cb754 -> 0x3396ed70, export: EXPORT_SYMBOL
>> zl10036_attach                                   module:
>> drivers/media/dvb-frontends/zl10036, version: 0x01c15872 ->
>> 0x5ad87e01, export: EXPORT_SYMBOL
>> zl10039_attach                                   module:
>> drivers/media/dvb-frontends/zl10039, version: 0x4d52eac4 ->
>> 0x99661045, export: EXPORT_SYMBOL
>> zl10353_attach                                   module:
>> drivers/media/dvb-frontends/zl10353, version: 0xd7c34f95 ->
>> 0x6f771756, export: EXPORT_SYMBOL
>>
>> Removed symbols:
>> bdi_unregister                                   ignored, module:
>> vmlinux, version: 0xa88ae9e6, export: EXPORT_SYMBOL
> [...]
>
> See
> <http://kernel-handbook.alioth.debian.org/ch-versions.html#s-abi-maintenance>
>
> Ben.
>
> --
> Ben Hutchings
> It is easier to change the specification to fit the program than vice versa.
>

A couple of hours ago I increased the abi and repeated the
instructions for the procedure -- which finally ended successfully.


Best Professional Regards.

-- 
Jose R R
http://www.metztli-it.com
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!
---------------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-25 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-25  5:23 Building kernel the Debian way fails Jose R R
2015-07-25  5:56 ` dimas
2015-07-25  6:19   ` Jose R R
2015-07-25 14:58 ` Ben Hutchings
2015-07-25 15:12   ` Jose R R

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.