All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Le Douarain <marc.le-douarain@laposte.net>
To: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Error "field ‘pse51_si’ has incomplete type" in syscall.h after upgrading Ubuntu Distrib to 13.04
Date: Sun, 01 Sep 2013 15:06:21 +0200	[thread overview]
Message-ID: <52233BCD.9070002@laposte.net> (raw)
In-Reply-To: <522337CF.2010402@xenomai.org>

Le 01/09/2013 14:49, Gilles Chanteperdrix a écrit :
> On 09/01/2013 01:58 PM, Marc Le Douarain wrote:
>> Hello everybody,
>>
>> I have an application using Xenomai that do no more compile after I have
>> recently upgraded from Ubuntu 12.10 to 13.04
>>
>> Here the error I have in one one file including "phread.h" :
>> gcc -c tasks.c -o tasks.o -march=i486 ...(custom defines)...
>> `xeno-config --skin posix --cflags`
>> In file included from /usr/xenomai/include/asm/xenomai/syscall.h:23:0,
>>                    from /usr/xenomai/include/nucleus/trace.h:52,
>>                    from /usr/xenomai/include/nucleus/system.h:27,
>>                    from /usr/xenomai/include/asm/xenomai/system_32.h:137,
>>                    from /usr/xenomai/include/asm/xenomai/system.h:2,
>>                    from /usr/xenomai/include/nucleus/types.h:41,
>>                    from /usr/xenomai/include/nucleus/thread.h:25,
>>                    from /usr/xenomai/include/posix/pthread.h:136,
>>                    from tasks.c:34:
>> /usr/xenomai/include/asm-generic/xenomai/syscall.h:78:17: erreur: field
>> ‘pse51_si’ has incomplete type
>> make: *** [tasks.o] Erreur 1
>>
>> gcc installed on this version is 4.7.3
>> My project based on Linux kernel 2.6.38.8 and Xenomai 2.5.6
>>
>> any one have an idea, on something that could be done...?
>> else I'm thinking to install an older version in virtual machine to no
>> more encounter bad surprises with upgrades !
> You are probably lacking a #include, add the missing include and it
> should be fine. Also, Xenomai 2.5.6 and Linux 2.6.38 are really old,
> updating is recommended.
>
>
Thank for the tip, but I've exactly the same error, with an old little 
"hello" example,
I've included.
Example using native tasks, and that was compiling correctly before 
distrib upgrade...

Bye, bye.

gcc hello_test.c -march=i486 -O2 -fno-omit-frame-pointer 
`/usr/xenomai/bin/xeno-config --skin=native --cflags` -march=i486 -O2 
`/usr/xenomai/bin/xeno-config --skin=native --ldflags` -o hello_test
In file included from /usr/xenomai/include/asm/xenomai/syscall.h:23:0,
                   from /usr/xenomai/include/nucleus/trace.h:52,
                   from /usr/xenomai/include/nucleus/system.h:27,
                   from /usr/xenomai/include/asm/xenomai/system_32.h:137,
                   from /usr/xenomai/include/asm/xenomai/system.h:2,
                   from /usr/xenomai/include/nucleus/types.h:41,
                   from /usr/xenomai/include/nucleus/thread.h:25,
                   from /usr/xenomai/include/nucleus/sched.h:31,
                   from /usr/xenomai/include/native/task.h:25,
                   from hello_test.c:7:
/usr/xenomai/include/asm-generic/xenomai/syscall.h:78:17: erreur: field 
‘pse51_si’ has incomplete type
make: *** [all] Erreur 1



-------------- next part --------------
CFLAGS = -march=i486 -O2 -fno-omit-frame-pointer
LDFLAGS = -march=i486 -O2

CFLAGS += `/usr/xenomai/bin/xeno-config --skin=native --cflags`
LDFLAGS += `/usr/xenomai/bin/xeno-config --skin=native --ldflags`


all:
	gcc hello_test.c $(CFLAGS) $(LDFLAGS) -o hello_test

cflags:
	echo $(CFLAGS)

ldflags:
	echo $(LDFLAGS)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello_test.c
Type: text/x-csrc
Size: 1171 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130901/52b8a415/attachment.c>

  reply	other threads:[~2013-09-01 13:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-01 11:58 [Xenomai] Error "field ‘pse51_si’ has incomplete type" in syscall.h after upgrading Ubuntu Distrib to 13.04 Marc Le Douarain
2013-09-01 12:49 ` Gilles Chanteperdrix
2013-09-01 13:06   ` Marc Le Douarain [this message]
2013-09-01 13:11   ` Marc Le Douarain
     [not found]   ` <52233B54.7060402@laposte.net>
2013-09-02 11:06     ` 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=52233BCD.9070002@laposte.net \
    --to=marc.le-douarain@laposte.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.