linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Forconi <forconi@wavecomm.it>
To: linux-rt-users@vger.kernel.org
Subject: Cyclictest compile error when cross compiling for AT91SAM9260
Date: Wed, 26 Sep 2012 09:26:56 +0000 (UTC)	[thread overview]
Message-ID: <1481347384.3944129.1348651616613.JavaMail.root@zmail.sgconsulting.it> (raw)
In-Reply-To: <1482871759.3943500.1348650924961.JavaMail.root@zmail.sgconsulting.it>

Hi, 
I have compiled and installed an RT_PREEMPT patched kernel (2.6.33.7-rt29) on a AT91SAM9260 board.
I'd like to test latencies using cyclictest software (obtained from git repository).
My cross compile environment is gcc-4.2.3 with glibc-2.3.3 (obtained from the producer of the board).

This is the error I get when I try to compile:

$ make CROSS_COMPILE=arm-unknown-linux-gnu- librttest.a 
arm-unknown-linux-gnu-gcc -D VERSION_STRING=0.84 -c src/lib/rt-utils.c -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include -O2
arm-unknown-linux-gnu-gcc -D VERSION_STRING=0.84 -c src/lib/error.c -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include -O2
arm-unknown-linux-gnu-gcc -D VERSION_STRING=0.84 -c src/lib/rt-get_cpu.c -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include -O2
ar rcs librttest.a rt-utils.o error.o rt-get_cpu.o

$ make CROSS_COMPILE=arm-unknown-linux-gnu- cyclictest
arm-unknown-linux-gnu-gcc -D VERSION_STRING=0.84 -c src/cyclictest/cyclictest.c -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include -O2
In file included from /opt/glomation/gcc-4.2.3-glibc-2.3.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.2.3/../../../../arm-unknown-linux-gnu/sys-include/sys/sysinfo.h:25,
                 from src/cyclictest/cyclictest.c:34:
/opt/glomation/gcc-4.2.3-glibc-2.3.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.2.3/../../../../arm-unknown-linux-gnu/sys-include/linux/kernel.h:716:2: warning: #warning Attempt to use kernel headers from user space, see http:
In file included from /opt/glomation/gcc-4.2.3-glibc-2.3.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.2.3/../../../../arm-unknown-linux-gnu/sys-include/sys/resource.h:25,
                 from src/cyclictest/cyclictest.c:37:
/opt/glomation/gcc-4.2.3-glibc-2.3.3/bin/../lib/gcc/arm-unknown-linux-gnu/4.2.3/../../../../arm-unknown-linux-gnu/sys-include/bits/resource.h:35: error: expected identifier before numeric constant
src/cyclictest/cyclictest.c: In function 'timerthread':
src/cyclictest/cyclictest.c:703: warning: implicit declaration of function 'pthread_setaffinity_np'
make: *** [cyclictest.o] Error 1



Thank you for any suggestions and help.

Regards,
Samuele Forconi.

       reply	other threads:[~2012-09-26  9:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1482871759.3943500.1348650924961.JavaMail.root@zmail.sgconsulting.it>
2012-09-26  9:26 ` Forconi [this message]
2012-09-26 19:34   ` Cyclictest compile error when cross compiling for AT91SAM9260 Frank Rowand
2012-09-27  8:23     ` Forconi
2012-09-27 19:02       ` Frank Rowand

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=1481347384.3944129.1348651616613.JavaMail.root@zmail.sgconsulting.it \
    --to=forconi@wavecomm.it \
    --cc=linux-rt-users@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).