All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Alix <alixbenjamin53@gmail.com>
To: xenomai@xenomai.org
Subject: [Xenomai] Fwd:  Compilation error
Date: Fri, 31 Mar 2017 15:49:13 +0200	[thread overview]
Message-ID: <CAHz_r8DUdsE7HEDWQk1mULAEw1xZ4GqgNW71ggWUHn1_ZGtfQg@mail.gmail.com> (raw)
In-Reply-To: <CAHz_r8DdqD_jRhr452riik5wu55hDmjOr3T4ap8r3PwAaWAPpw@mail.gmail.com>

---------- Forwarded message ----------
From: Benjamin Alix <alixbenjamin53@gmail.com>
Date: 2017-03-30 17:56 GMT+02:00
Subject: [Xenomai] Compilation error
To: xenomai@xenomai.org


Hi,

I'm compiling Xenomai 3.0.3 with a cross toolchain built with
buildroot (based on gcc 6.3.0) and when it comes to build xenomai I
get the following errors :

make[5]: Entering directory
`/free/stagiaire/buildroot-2017.02/output/build/xenomai-3.0.3/lib/boilerplate/init'
  CC       libbootstrap_a-bootstrap.o
  CC       libbootstrap_pic_la-bootstrap.lo
In file included from
/free/stagiaire/buildroot-2017.02/output/build/xenomai-3.0.3/include/cobalt/time.h:26:0,
                 from
/free/stagiaire/buildroot-2017.02/output/host/usr/powerpc-buildroot-linux-uclibc/sysroot/usr/include/sys/types.h:132,
                 from bootstrap.c:18:
/free/stagiaire/buildroot-2017.02/output/build/xenomai-3.0.3/include/cobalt/stdio.h:68:1:
error: pasting "__cobalt_" and "(" does not give a valid preprocessing
token
 COBALT_DECL(int, fputc(int c, FILE *stream));
 ^
/free/stagiaire/buildroot-2017.02/output/build/xenomai-3.0.3/include/cobalt/stdio.h:68:18:
error: expected declaration specifiers or '...' before '(' token
 COBALT_DECL(int, fputc(int c, FILE *stream));
                  ^
/free/stagiaire/buildroot-2017.02/output/build/xenomai-3.0.3/include/cobalt/stdio.h:68:18:
error: expected declaration specifiers or '...' before '(' token
 COBALT_DECL(int, fputc(int c, FILE *stream));
                  ^
/free/stagiaire/buildroot-2017.02/output/build/xenomai-3.0.3/include/cobalt/stdio.h:68:1:
error: pasting "__real_" and "(" does not give a valid preprocessing
token
 COBALT_DECL(int, fputc(int c, FILE *stream));
 ^
/free/stagiaire/buildroot-2017.02/output/build/xenomai-3.0.3/include/cobalt/stdio.h:68:18:
error: expected declaration specifiers or '...' before '(' token
 COBALT_DECL(int, fputc(int c, FILE *stream));

I think it has something to do with token concatenation in
preprocessors in include/cobalt/wrappers.h but I'm not even sure. I

Sorry, I mistakingly sent the email earlier than I wanted and could'nt
correct it until now.

More context : I'm compiling for a powerpc 32 bits architecture. The
configuration is :
[...]build/xenomai-3.0.3 > ./scripts/xeno-config --info
Xenomai version: 3.0.3
Cobalt core is NOT present on this system
Compiler: gcc version 6.3.0 (Buildroot 2017.02)
Build args: --target=powerpc-buildroot-linux-uclibc
--host=powerpc-buildroot-linux-uclibc --build=x86_64-pc-linux-gnu
--prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
--localstatedir=/var --program-prefix= --disable-gtk-doc
--disable-gtk-doc-html --disable-doc --disable-docs
--disable-documentation --with-xmlto=no --with-fop=no
--disable-dependency-tracking --enable-ipv6 --disable-nls
--disable-static --enable-shared --includedir=/usr/include/xenomai/
--disable-doc-install build_alias=x86_64-pc-linux-gnu
host_alias=powerpc-buildroot-linux-uclibc
target_alias=powerpc-buildroot-linux-uclibc
CC=/buildroot-2017.02/output/host/usr/bin/powerpc-buildroot-linux-uclibc-gcc
CFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64  -O2  LDFLAGS= CPPFLAGS=-D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
CPP=/buildroot-2017.02/output/host/usr/bin/powerpc-buildroot-linux-uclibc-cpp
PKG_CONFIG=/buildroot-2017.02/output/host/usr/bin/pkg-config

Buildroot adds a lot of configuration options, anyway I tried to
compile outside buildroot and still got the same error message.

Thanks for your attention.

Regards,

Benjamin


  reply	other threads:[~2017-03-31 13:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30 15:56 [Xenomai] Compilation error Benjamin Alix
2017-03-31 13:49 ` Benjamin Alix [this message]
2017-04-01  9:34   ` [Xenomai] Fwd: " Philippe Gerum
2017-04-01  9:40     ` Philippe Gerum

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=CAHz_r8DUdsE7HEDWQk1mULAEw1xZ4GqgNW71ggWUHn1_ZGtfQg@mail.gmail.com \
    --to=alixbenjamin53@gmail.com \
    --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.