From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Sinisa Denic <sinisa.denic@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] xenomai 2.5.0 uclibc 0.30 compatibility?
Date: Thu, 04 Feb 2010 14:21:27 +0100 [thread overview]
Message-ID: <4B6AC9D7.6080107@domain.hid> (raw)
In-Reply-To: <201002041404.32949.sinisa.denic@domain.hid>
Sinisa Denic wrote:
> On Wednesday 03 February 2010 19:30:00 you wrote:
>> Sinisa Denic wrote:
>>> On Monday 01 February 2010 14:07:15 Gilles Chanteperdrix wrote:
>>>> Sinisa Denic wrote:
>>>>> On Sunday 31 January 2010 11:31:28 Gilles Chanteperdrix wrote:
>>>>>> This is bad news, the problem is that uclibc's stdio.h needs
>>>>>> pthread.h, which because of the -I flags we pass is xenomai's
>>>>>> pthread.h, which includes asm/syscall.h, which needs stdio.h.
>>>>> Same thing,
>>>>> I can't figure out which file to include in pthread.h
>>>>> posix/init.c - same error
>>>>> include/asm-arm/xenomai/syscall.h - produce error from start building
>>>>> rtdm ...
>>>> In every .c file where you get the error, you should try and include
>>>> pthread.h before anything else.
>>> Ok, now I've got it built. In attach there is a patch, maybe usefull to
>>> someone.
>> Xenomai v2.5.1 should include a cleaner fix (along with the I-pipe for
>> Linux 2.6.30 fixed for the arm926ejs issue, as well as some improvements
>> on at91). So, it would be nice if you could test this release and report.
> Ok , previos problems didn't appear, but now I'm getting this:
>
> latency.c:12:22: error: execinfo.h: No such file or directory
> latency.c: In function ‘mode_sw’:
> latency.c:460: warning: implicit declaration of function ‘backtrace’
> latency.c:461: warning: implicit declaration of
> function ‘backtrace_symbols_fd’
> make[3]: *** [latency-latency.o] Error 1
> make[3]: Leaving directory
> `/opt/pct210_build/xenomai-2.5.1-eabi/src/testsuite/latency'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/opt/pct210_build/xenomai-2.5.1-eabi/src/testsuite'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/pct210_build/xenomai-2.5.1-eabi/src'
> make: *** [all-recursive] Error 1
>
> In order to compile xeno2.5.1 I skipped testsuite building and it passed
Ok. Could you try the following patch?
diff --git a/src/testsuite/latency/latency.c
b/src/testsuite/latency/latency.c
index ca5f1bf..f397b42 100644
--- a/src/testsuite/latency/latency.c
+++ b/src/testsuite/latency/latency.c
@@ -9,7 +9,9 @@
#include <sys/time.h>
#include <unistd.h>
+#ifndef __UCLIBC__
#include <execinfo.h>
+#endif /* !__UCLIBC__ */
#include <native/task.h>
#include <native/timer.h>
@@ -447,7 +449,13 @@ void faulthand(int sig)
void mode_sw(int sig)
{
+#ifndef __UCLIBC__
const char buffer[] = "Mode switch, aborting. Backtrace:\n";
+#else /* __UCLIBC__ */
+ const char buffer[] = "Mode switch, aborting."
+ " Backtrace unavailable with uclibc.\n";
+#endif /* __UCLIBC__ */
+
static void *bt[200];
unsigned n;
@@ -457,8 +465,10 @@ void mode_sw(int sig)
}
write(STDERR_FILENO, buffer, sizeof(buffer));
+#ifndef __UCLIBC__
n = backtrace(bt, sizeof(bt)/sizeof(bt[0]));
backtrace_symbols_fd(bt, n, STDERR_FILENO);
+#endif /* !__UCLIBC__ */
signal(sig, SIG_DFL);
kill(getpid(), sig);
--
Gilles Chanteperdrix, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2010-02-04 13:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-30 13:28 [Xenomai-help] xenomai 2.5.0 uclibc 0.30 compatibility? sinisa.denic
2010-01-31 10:31 ` Gilles Chanteperdrix
2010-02-01 11:32 ` Sinisa Denic
2010-02-01 13:07 ` Gilles Chanteperdrix
2010-02-01 14:32 ` Sinisa Denic
2010-02-03 18:30 ` Gilles Chanteperdrix
2010-02-04 13:04 ` Sinisa Denic
2010-02-04 13:21 ` Gilles Chanteperdrix [this message]
[not found] ` <201002041515.13220.sinisa.denic@domain.hid>
[not found] ` <4B6AD8CF.4060706@domain.hid>
2010-02-04 16:36 ` Sinisa Denic
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=4B6AC9D7.6080107@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=sinisa.denic@domain.hid \
--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.