Skip to contentSkip to conversation

Compiling xenomai-3

Xenomai Leopold Palomo-Avellaneda 4 participants 13 messages Jan 21, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to compile xenomai-3.x series using next branch from git.

I'm trying to use the "debian" method to build the kernel, using the make-kpkg and the instructions proposed in the web page. However, I got with an strange problem not found in 2.x.

make[2]: Entering directory '/srv/packages/xenomai/linux-3.16' scripts/kconfig/conf --oldconfig Kconfig init/Kconfig:1926: can't open file "arch/x86_64/xenomai/Kconfig" scripts/kconfig/Makefile:33: recipe for target 'oldconfig' failed make[3]: *** [oldconfig] Error 1
Makefile:545: recipe for target 'oldconfig' failed

Any idea?

Leopold

Signature · 15 lines
--
Linux User 152692     GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150121/659182de/attachment.sig>
#1 lore raw
Quoted 10 lines · Leopold Palomo-Avellaneda

Hi,

I'm trying to compile xenomai-3.x series using next branch from git.

I'm trying to use the "debian" method to build the kernel, using the make-kpkg
and the instructions proposed in the web page. However, I got with an strange
problem not found in 2.x.

Quoted 3 lines

make[2]: Entering directory '/srv/packages/xenomai/linux-3.16' scripts/kconfig/conf --oldconfig Kconfig init/Kconfig:1926: can't open file "arch/x86_64/xenomai/Kconfig"

the ARCH variable is probably defined in the environment to x86_64, but for compiling the kernel, ARCH should be x86 (there as not been an arch/x86_64
directory since sometime early in the 2.6 branch).

Signature · 1 line
                    Gilles.
#2 lore raw

El Dimecres, 21 de gener de 2015, a les 14:28:02, Gilles Chanteperdrix va escriure:

Quoted 11 lines
Quoted 10 lines · Leopold Palomo-Avellaneda

Hi,

I'm trying to compile xenomai-3.x series using next branch from git.

I'm trying to use the "debian" method to build the kernel, using the make-kpkg
and the instructions proposed in the web page. However, I got with an strange
problem not found in 2.x.

Quoted 8 lines
Quoted 3 lines

make[2]: Entering directory '/srv/packages/xenomai/linux-3.16' scripts/kconfig/conf --oldconfig Kconfig init/Kconfig:1926: can't open file "arch/x86_64/xenomai/Kconfig"

the ARCH variable is probably defined in the environment to x86_64, but for compiling the kernel, ARCH should be x86 (there as not been an arch/x86_64
directory since sometime early in the 2.6 branch).

But I didn't have this problem compiling 2.6.4. Any idea to solve it?

export ARCH=x86 ? or is something of specific of xenomai?

Leopold

Signature · 15 lines
--
Linux User 152692     GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150121/0ed11b8b/attachment.sig>
#3 lore raw
Quoted 17 lines · Leopold Palomo-Avellaneda

El Dimecres, 21 de gener de 2015, a les 14:28:02, Gilles Chanteperdrix va escriure:

Quoted 15 lines
Quoted 13 lines · Leopold Palomo-Avellaneda

Hi,

I'm trying to compile xenomai-3.x series using next branch from git.

I'm trying to use the "debian" method to build the kernel, using the make-kpkg
and the instructions proposed in the web page. However, I got with an strange
problem not found in 2.x.

make[2]: Entering directory '/srv/packages/xenomai/linux-3.16' scripts/kconfig/conf --oldconfig Kconfig init/Kconfig:1926: can't open file "arch/x86_64/xenomai/Kconfig"

Quoted 8 lines
Quoted 4 lines

the ARCH variable is probably defined in the environment to x86_64, but for compiling the kernel, ARCH should be x86 (there as not been an arch/x86_64
directory since sometime early in the 2.6 branch).

But I didn't have this problem compiling 2.6.4. Any idea to solve it?

export ARCH=x86 ? or is something of specific of xenomai?

I do not know. Another possibility is that prepare-kernel.sh is broken for --arch=x86_64 or something. Do what the makefile do, step by step to understand what happens.

Signature · 1 line
                    Gilles.
#4 lore raw

El Dimecres, 21 de gener de 2015, a les 14:35:58, Gilles Chanteperdrix va escriure:

Quoted 24 lines
Quoted 23 lines · Leopold Palomo-Avellaneda

El Dimecres, 21 de gener de 2015, a les 14:28:02, Gilles Chanteperdrix va

escriure:

Quoted 19 lines
Quoted 10 lines · Leopold Palomo-Avellaneda

Hi,

I'm trying to compile xenomai-3.x series using next branch from git.

I'm trying to use the "debian" method to build the kernel, using the make-kpkg
and the instructions proposed in the web page. However, I got with an strange
problem not found in 2.x.

Quoted 3 lines

make[2]: Entering directory '/srv/packages/xenomai/linux-3.16' scripts/kconfig/conf --oldconfig Kconfig init/Kconfig:1926: can't open file "arch/x86_64/xenomai/Kconfig"

the ARCH variable is probably defined in the environment to x86_64, but for compiling the kernel, ARCH should be x86 (there as not been an arch/x86_64
directory since sometime early in the 2.6 branch).

Quoted 7 lines
Quoted 3 lines

But I didn't have this problem compiling 2.6.4. Any idea to solve it?

export ARCH=x86 ? or is something of specific of xenomai?

I do not know. Another possibility is that prepare-kernel.sh is broken for --arch=x86_64 or something. Do what the makefile do, step by step to understand what happens.

it fails when I execute the debian command. But it works when I just execute make bzImage modules.

So, I don't think that it could be prepare-kernel.sh script

Signature · 15 lines
--
Linux User 152692     GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150121/e87ce57e/attachment.sig>
#5 lore raw
Quoted 4 lines · Leopold Palomo-Avellaneda

it fails when I execute the debian command. But it works when I just execute make bzImage modules.

So, I don't think that it could be prepare-kernel.sh script

Which kernel version and which make-kpkg version? Could be the make-kpkg is too old for the kernel version.

I hadn't noticed xenomai support for 3.16 yet either, only 3.14, but I haven't checked lately.

Signature · 1 line
Len Sorensen
#6 lore raw
Quoted 2 lines · Lennart Sorensen

I hadn't noticed xenomai support for 3.16 yet either, only 3.14, but I haven't checked lately.

The I-pipe patches for 3.16 are in the GNA download area. We have not released a version of Xenomai with it yet, but they exist.

Signature · 1 line
                    Gilles.
#7 lore raw
Quoted 2 lines · Gilles Chanteperdrix

The I-pipe patches for 3.16 are in the GNA download area. We have not released a version of Xenomai with it yet, but they exist.

Excellent. Not that I need them any time soon. :)

Signature · 1 line
Len Sorensen
#8 lore raw
Quoted 6 lines · Lennart Sorensen
Quoted 2 lines · Gilles Chanteperdrix

The I-pipe patches for 3.16 are in the GNA download area. We have not released a version of Xenomai with it yet, but they exist.

Excellent. Not that I need them any time soon. :)

I am just trying to answer clearly your claim, and repeating what has been exchanged on another mailing list (which you do not seem to read). But the I-pipe patches are in the GNA download area for everyone to see. It is all in the open. If you do not know whether the patch exists, simply look in the download area before insinuating that the patch does not exist.

Signature · 1 line
                    Gilles.
#9 lore raw
Quoted 5 lines · Gilles Chanteperdrix

I am just trying to answer clearly your claim, and repeating what has been exchanged on another mailing list (which you do not seem to read). But the I-pipe patches are in the GNA download area for everyone to see. It is all in the open. If you do not know whether the patch exists, simply look in the download area before insinuating that the patch does not exist.

Well I did mention I hadn't checked lately.

Signature · 1 line
Len Sorensen
#10 lore raw
Quoted 9 lines · Lennart Sorensen
Quoted 5 lines · Gilles Chanteperdrix

I am just trying to answer clearly your claim, and repeating what has been exchanged on another mailing list (which you do not seem to read). But the I-pipe patches are in the GNA download area for everyone to see. It is all in the open. If you do not know whether the patch exists, simply look in the download area before insinuating that the patch does not exist.

Well I did mention I hadn't checked lately.

That's ok. C'mon guys, please relax a bit. I'm the one who sends the patches to the download area, and as a matter of fact, I'm not announcing them. So I'll announce them on this mailing list from now on, which should help.

We have x3 -rc3 pending, some work remains to release it. Let's use our time efficiently.

Signature · 1 line
Philippe.
#11 lore raw
In reply to Leopold Palomo-Avellaneda
Quoted 39 lines · Leopold Palomo-Avellaneda

El Dimecres, 21 de gener de 2015, a les 14:35:58, Gilles Chanteperdrix va escriure:

Quoted 29 lines
Quoted 1 line · Leopold Palomo-Avellaneda

El Dimecres, 21 de gener de 2015, a les 14:28:02, Gilles Chanteperdrix

va

Quoted 6 lines

escriure:

Quoted 4 lines
Quoted 3 lines · Leopold Palomo-Avellaneda

Hi,

I'm trying to compile xenomai-3.x series using next branch from

git.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I'm trying to use the "debian" method to build the kernel, using

the

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

make-kpkg
and the instructions proposed in the web page. However, I got with

an

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

strange
problem not found in 2.x.

make[2]: Entering directory '/srv/packages/xenomai/linux-3.16' scripts/kconfig/conf --oldconfig Kconfig init/Kconfig:1926: can't open file "arch/x86_64/xenomai/Kconfig"

the ARCH variable is probably defined in the environment to x86_64,

but

Quoted 4 lines
Quoted 3 lines

for compiling the kernel, ARCH should be x86 (there as not been an arch/x86_64
directory since sometime early in the 2.6 branch).

Quoted 7 lines
Quoted 3 lines

But I didn't have this problem compiling 2.6.4. Any idea to solve it?

export ARCH=x86 ? or is something of specific of xenomai?

I do not know. Another possibility is that prepare-kernel.sh is broken for --arch=x86_64 or something. Do what the makefile do, step by step to understand what happens.

Quoted 5 lines

it fails when I execute the debian command. But it works when I just execute
make bzImage modules.

So, I don't think that it could be prepare-kernel.sh script

Indeed. I will try and check.

Signature · 1 line
                    Gilles.
#12 lore raw
In reply to Leopold Palomo-Avellaneda

El Dimecres, 21 de gener de 2015, a les 14:44:59, Leopold Palomo-Avellaneda va escriure:

Quoted 32 lines

El Dimecres, 21 de gener de 2015, a les 14:35:58, Gilles Chanteperdrix va

escriure:

Quoted 29 lines
Quoted 27 lines · Leopold Palomo-Avellaneda

El Dimecres, 21 de gener de 2015, a les 14:28:02, Gilles Chanteperdrix va

escriure:

Quoted 11 lines
Quoted 10 lines · Leopold Palomo-Avellaneda

Hi,

I'm trying to compile xenomai-3.x series using next branch from git.

I'm trying to use the "debian" method to build the kernel, using the make-kpkg
and the instructions proposed in the web page. However, I got with an strange
problem not found in 2.x.

Quoted 8 lines
Quoted 3 lines

make[2]: Entering directory '/srv/packages/xenomai/linux-3.16' scripts/kconfig/conf --oldconfig Kconfig init/Kconfig:1926: can't open file "arch/x86_64/xenomai/Kconfig"

the ARCH variable is probably defined in the environment to x86_64, but for compiling the kernel, ARCH should be x86 (there as not been an arch/x86_64
directory since sometime early in the 2.6 branch).

But I didn't have this problem compiling 2.6.4. Any idea to solve it?

export ARCH=x86 ? or is something of specific of xenomai?

Quoted 8 lines
Quoted 3 lines

I do not know. Another possibility is that prepare-kernel.sh is broken for --arch=x86_64 or something. Do what the makefile do, step by step to understand what happens.

it fails when I execute the debian command. But it works when I just execute make bzImage modules.

So, I don't think that it could be prepare-kernel.sh script

Well,

some test:

scenario:

kernel: linux-3.16
ipipe-patch: ipipe-core-3.16-x86-1.patch (it's the same in the adeos repos that xenomai repo, I checked it ;-)
xenomai-3.git, checked today branch "next".
chroot with jessie/sid environtment. updated today.

decompress kernel and execute in the linux dir:

../xenomai-3.git/scripts/prepare-kernel.sh --linux=. -- ipipe=../xenomai-3.git/kernel/cobalt/arch/x86/patches/ipipe-core-3.16- x86-1.patch --arch=x86

- copy an old config and do:
make oldconfig (ok)

- CONCURRENCY_LEVEL=8 CLEAN_SOURCE=no fakeroot make-kpkg --verbose --initrd -- append-to-version -xenomai-3.0.0 --revision 1.0 kernel_image kernel_headers

fails with this message:
make[1]: Entering directory '/srv/packages/xenomai/linux-3.16' ====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======

make EXTRAVERSION=-xenomai-3.0.0   ARCH=x86_64 \
                    oldconfig;

make[2]: Entering directory '/srv/packages/xenomai/linux-3.16' make -f scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
make -f scripts/Makefile.build obj=scripts/kconfig oldconfig scripts/kconfig/conf --oldconfig Kconfig
init/Kconfig:1926: can't open file "arch/x86_64/xenomai/Kconfig" scripts/kconfig/Makefile:33: recipe for target 'oldconfig' failed make[3]: *** [oldconfig] Error 1
Makefile:545: recipe for target 'oldconfig' failed
make[2]: *** [oldconfig] Error 2
make[2]: Leaving directory '/srv/packages/xenomai/linux-3.16' debian/ruleset/targets/common.mk:194: recipe for target 'debian/stamp/conf/kernel-conf' failed
make[1]: *** [debian/stamp/conf/kernel-conf] Error 2
make[1]: Leaving directory '/srv/packages/xenomai/linux-3.16' /usr/share/kernel-package/ruleset/minimal.mk:93: recipe for target 'debian/stamp/conf/minimal_debian' failed
make: *** [debian/stamp/conf/minimal_debian] Error 2
Failed to create a ./debian directory: El fitxer o directori no existeix at /usr/bin/make-kpkg line 966.

the file init/Kconfig has in that line

if XENOMAI
source "arch/$ARCH/xenomai/Kconfig"
endif

if I put here x86 (instead of $ARCH that was x86_64), it seems it compile and build the packages.

Please could you put the contents here that match with the contents of the
directory: linux-x.y.z/arch?

Also, I would like to say, that a folder with the name x86_64 was created by make-kpkg.

Best regadrs,

Leopold

Signature · 15 lines
--
Linux User 152692     GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150121/76ce30d1/attachment.sig>