From: Elmar Grom <elmar@grom.net>
To: xenomai@xenomai.org
Subject: [Xenomai] Raspberry Pi 2 - again
Date: Thu, 4 Feb 2016 20:18:23 -0800 [thread overview]
Message-ID: <56B4228F.7040704@grom.net> (raw)
Gilles,
thanks again for pointing out my tyo screwup. I fixed that and tried
again, but
still no luck. Below is what happens now. This does not look like an actual
error, just some not so clean coding, hiding a potential error. I also saw a
questionable type cast warning zip by at some point.
For the time being it might be just a matter of treating this as a
warning, not
as an error. Since I have absolutely no insight into the make
infrastructure of
this project and what compiler switches are on or off at any given
point, can
you suggest a course of action?
The updated script is below again for reference.
Elmar
...
LD drivers/clk/built-in.o
CC drivers/clocksource/clksrc-of.o
CC drivers/clocksource/arm_arch_timer.o
../drivers/clocksource/arm_arch_timer.c: In function ‘timer_handler’:
../drivers/clocksource/arm_arch_timer.c:190:3: error: implicit
declaration of
function ‘__ipipe_tsc_update’ [-Werror=implicit-function-declaration]
__ipipe_tsc_update();
^
../drivers/clocksource/arm_arch_timer.c: In function
‘arch_counter_register’:
../drivers/clocksource/arm_arch_timer.c:538:2: error: implicit
declaration of
function ‘__ipipe_tsc_register’ [-Werror=implicit-function-declaration]
__ipipe_tsc_register(&tsc_info);
^
cc1: some warnings being treated as errors
make[3]: *** [drivers/clocksource/arm_arch_timer.o] Error 1
make[2]: *** [drivers/clocksource] Error 2
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `~/raspi/linux/build'
make: *** [sub-make] Error 2
failed to compile
--- script ---
#!/bin/bash
# builds the Xenomai kernel
# create the build directory
echo
echo making build directory...
mkdir -p ~/raspi/linux/build/linux
if test $? -gt 0
then
echo failed making build directory
exit
fi
# switch to the Xenomai tree
echo entering ~/raspi/xenomai-3
cd ~/raspi/xenomai-3
if test $? -gt 0
then
echo failed switching to Xenomai tree
exit
fi
# running the bootstrap script
echo
echo running bootstrap...
scripts/bootstrap
if test $? -gt 0
then
echo failed to bootstrap the Xenomai tree
exit
fi
# running the prepare script
echo
echo preparing...
~/raspi/xenomai-3/scripts/prepare-kernel.sh --arch=arm
--linux=~/raspi/linux \
--ipipe=~/raspi/xenomai-3/kernel/cobalt/arch/arm/patches/ipipe-core-3.18.20
\
-arm-6.patch
if test $? -gt 0
then
echo failed to prepare Xenomai kernel
exit
fi
# configure Xenomai
echo
echo configuring...
./configure
if test $? -gt 0
then
echo failed to configure Xenomai
exit
fi
# switch to the linux tree
echo
echo entering ~/raspi/linux
cd ~/raspi/linux
if test $? -gt 0
then
echo failed switching to linux tree
exit
fi
# run the kernel configuration
echo
echo configuring...
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=~/raspi/linux/build
bcm2709_defconfig
if test $? -gt 0
then
echo failed configuration
exit
fi
# finally compile
echo
echo building...
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=~/raspi/linux/build \
bzImage modules
if test $? -gt 0
then
echo failed to compile
exit
fi
next reply other threads:[~2016-02-05 4:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 4:18 Elmar Grom [this message]
2016-02-05 8:11 ` [Xenomai] Raspberry Pi 2 - again Gilles Chanteperdrix
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=56B4228F.7040704@grom.net \
--to=elmar@grom.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.