All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leopold Palomo-Avellaneda <leo@alaxarxa.net>
To: xenomai@xenomai.org
Subject: Re: [Xenomai] Compiling xenomai-3
Date: Wed, 21 Jan 2015 17:56:24 +0100	[thread overview]
Message-ID: <61823146.fdOxUhZZt6@soho> (raw)
In-Reply-To: <15627875.xOGqqJnifV@soho>

El Dimecres, 21 de gener de 2015, a les 14:44:59, Leopold Palomo-Avellaneda va 
escriure:
> El Dimecres, 21 de gener de 2015, a les 14:35:58, Gilles Chanteperdrix va
> 
> escriure:
> > Leopold Palomo-Avellaneda wrote:
> > > El Dimecres, 21 de gener de 2015, a les 14:28:02, Gilles Chanteperdrix
> > > va
> > > 
> > > escriure:
> > >> Leopold Palomo-Avellaneda wrote:
> > >> > 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"
> > >> 
> > >> 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.
> 
> 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

-- 
--
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>

      parent reply	other threads:[~2015-01-21 16:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21 12:37 [Xenomai] Compiling xenomai-3 Leopold Palomo-Avellaneda
2015-01-21 13:28 ` Gilles Chanteperdrix
2015-01-21 13:31   ` Leopold Palomo-Avellaneda
2015-01-21 13:35     ` Gilles Chanteperdrix
2015-01-21 13:44       ` Leopold Palomo-Avellaneda
2015-01-21 14:37         ` Lennart Sorensen
2015-01-21 14:40           ` Gilles Chanteperdrix
2015-01-21 15:23             ` Lennart Sorensen
2015-01-21 15:32               ` Gilles Chanteperdrix
2015-01-21 15:45                 ` Lennart Sorensen
2015-01-21 16:04                   ` Philippe Gerum
2015-01-21 15:36         ` Gilles Chanteperdrix
2015-01-21 16:56         ` Leopold Palomo-Avellaneda [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61823146.fdOxUhZZt6@soho \
    --to=leo@alaxarxa.net \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.