From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Undefined references at cross compiling
Date: Wed, 25 Nov 2015 21:10:45 +0100 [thread overview]
Message-ID: <20151125201045.GA19641@hermes.click-hack.org> (raw)
In-Reply-To: <20151125181847.GA25177@csclub.uwaterloo.ca>
On Wed, Nov 25, 2015 at 01:18:47PM -0500, Lennart Sorensen wrote:
> On Wed, Nov 25, 2015 at 08:58:38AM +0000, Hartl, Fabian AVL/AT wrote:
> > Hello,
> >
> > I successfully installed xenomai on a native ubuntu installation, the I tried installing xenomai on a BeagleBone Black by compiling it on the BeagleBone itself.
> > This also worked.
> > Now I am trying to cross compile the kernel on a Linux machine for the BeagleBone Black.
> > Doing so I encountered the problem of undefined references while making the kernel (see below)
> >
> >
> > make[1]: Entering directory '/home/mmg-linux/rtk/linux-3.18.20'
> > scripts/kconfig/conf --silentoldconfig Kconfig
> > CHK include/config/kernel.release
> > CHK include/generated/uapi/linux/version.h
> > CHK include/generated/utsrelease.h
> > make[2]: 'include/generated/mach-types.h' is up to date.
> > CALL scripts/checksyscalls.sh
> > CHK include/generated/compile.h
> > LINK vmlinux
> > LD vmlinux.o
> > MODPOST vmlinux.o
> > GEN .version
> > CHK include/generated/compile.h
> > UPD include/generated/compile.h
> > CC init/version.o
> > LD init/built-in.o
> > arch/arm/kernel/built-in.o: In function `ipipe_get_sysinfo':
> > /home/mmg-linux/rtk/linux-3.18.20/arch/arm/kernel/ipipe.c:244: undefined reference to `__ipipe_mach_get_tscinfo'
> > arch/arm/xenomai/built-in.o: In function `mach_arm_calibrate':
> > /home/mmg-linux/rtk/linux-3.18.20/arch/arm/xenomai/machine.c:59: undefined reference to `__ipipe_mach_get_tsc'
> > /home/mmg-linux/rtk/linux-3.18.20/arch/arm/xenomai/machine.c:61: undefined reference to `__ipipe_mach_get_tsc'
> > /home/mmg-linux/rtk/linux-3.18.20/arch/arm/xenomai/machine.c:68: undefined reference to `__ipipe_mach_get_tsc'
> > /home/mmg-linux/rtk/linux-3.18.20/arch/arm/xenomai/machine.c:72: undefined reference to `__ipipe_mach_get_tsc'
> > kernel/built-in.o: In function `xnclock_core_read_raw':
> > /home/mmg-linux/rtk/linux-3.18.20/include/xenomai/cobalt/kernel/clock.h:118: undefined reference to `__ipipe_mach_get_tsc'
> > kernel/built-in.o:/home/mmg-linux/rtk/linux-3.18.20/include/xenomai/cobalt/kernel/clock.h:118: more undefined references to `__ipipe_mach_get_tsc' follow
> > Makefile:923: recipe for target 'vmlinux' failed
> > make[1]: *** [vmlinux] Error 1
> > make[1]: Leaving directory '/home/mmg-linux/rtk/linux-3.18.20'
> > debian/ruleset/targets/common.mk:295: recipe for target 'debian/stamp/build/kernel' failed
> > make: *** [debian/stamp/build/kernel] Error 2
> >
> >
> >
> > I am compiling the kernel using this command:
> >
> > CONCURRENCY_LEVEL=8 CLEAN_SOURCE=no CC=arm-linux-gnueabihf-gcc fakeroot make-kpkg --arch arm --cross-compile arm-linux-gnueabihf- --initrd --append-to-version -xenomai-3.0.1 --revision 1.0 kernel_image kernel_headers
> >
> > What is causing this error? Patching the kernel was successful under native Linux and native BeagleBone.
>
> Did you enable ipipe and xenomai in your kernel config before building it?
The undefined references to ipipe functions and the fact that
march_arm_calibration or xnclock_core_read_raw are compiled prove
that I-pipe and Xenomai are enabled. What is probably lacking is
enabling a processor supported by the I-pipe kernel. You should be
able to use for cross-compilation the kernel configurations you used
for native compilation.
--
Gilles.
https://click-hack.org
prev parent reply other threads:[~2015-11-25 20:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 8:58 [Xenomai] Undefined references at cross compiling Hartl, Fabian AVL/AT
2015-11-25 18:18 ` Lennart Sorensen
2015-11-25 20:10 ` Gilles Chanteperdrix [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=20151125201045.GA19641@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=lsorense@csclub.uwaterloo.ca \
--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.