All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Re: get the simulator running...
Date: Sat, 18 Mar 2006 19:56:26 +0100	[thread overview]
Message-ID: <441C57DA.8080708@domain.hid> (raw)
In-Reply-To: <441C5562.7000800@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 2416 bytes --]

Philippe Gerum wrote:
> Jan Kiszka wrote:
>> Philippe Gerum wrote:
>>
>>> Philippe Gerum wrote:
>>>
>>>> Jan Kiszka wrote:
>>>> Fortunately, I had that demo I once produced
>>>>
>>>>
>>>>> (last year), but that one was easier to build. I first had to drag in
>>>>> the libs and includes of both the simulator and a regular xenomai
>>>>> installation (I think to remember this once worked without this
>>>>> add-ons). Then I need this additional trick in the simulators include
>>>>> dir:
>>>>>
>>>>> mkdir asm
>>>>> ln -s <xeno-inst-dir>/include/asm-sim asm/xenomai
>>>>>
>>>>> This maps #include <asm/xenomai/system.h> to the correct "arch".
>>>>> Shouldn't this be created automatically during the simulator
>>>>> installation? Or is something else broken on my box?
>>>>>
>>>>
>>>> You clearly should not need this trick to compile apps against the
>>>> simulation environment; the instrumenter (gcic) sets the proper flags.
>>>> I'm going to rebuild one and let you know.
>>>
>>> Confirmed. You don't need this hand-made link.
>>>
>>
>>
>> Err, "confirmed" means that it works for you without the link and the
>> extra paths for gcic?
> 
> Yes (actually, it has always worked for me this way).
> 
>  The compilation of the simulator runs fine with
>> latest SVN here, but gcic still does not know any include paths.
>> Attached is the native skin demo I tried.
> 
> gcic explicitely sets -I<install-dir>/include/asm-sim before invoking
> the gcc toolchain. Try adding --verbose to see what's passed.
> 

kiszka@domain.hid> ../inst/bin/gcic -c nat-demo.c -o
nat-demo_sim.o --verbose
/usr/src/xeno-sim/inst/libexec/gcic/bin/gcc  -isystem
/usr/src/xeno-sim/inst/libexec/gcic/i686-pc-linux-gnu/include -isystem
/usr/src/xeno-sim/inst/libexec/gcic/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include
-E -B/usr/src/xeno-sim/inst/libexec/gcic/lib/gcc-lib/ -D__GCIC__
-D__XENO_SIM__ -D__XENO__ -I/usr/src/xeno-sim/inst/include/asm-sim
-I/usr/src/xeno-sim/inst/include nat-demo.c > /tmp/ic0@domain.hid
nat-demo.c:22: native/task.h: Datei oder Verzeichnis nicht gefunden
nat-demo.c:23: native/sem.h: Datei oder Verzeichnis nicht gefunden
gcic: failed to preprocess nat-demo.c.

I only see the simulator include paths, no link to the xenomai source
base (here: /usr/src/xenomai) or its installation
(/usr/src/xenomai/inst, but I haven't submitted this anyway).

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

  reply	other threads:[~2006-03-18 18:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-18 15:21 [Xenomai-core] get the simulator running Jan Kiszka
2006-03-18 17:01 ` Gilles Chanteperdrix
2006-03-18 17:23   ` Jan Kiszka
2006-03-18 17:25 ` [Xenomai-core] " Philippe Gerum
2006-03-18 17:33   ` Philippe Gerum
2006-03-18 18:37     ` Jan Kiszka
2006-03-18 18:45       ` Philippe Gerum
2006-03-18 18:56         ` Jan Kiszka [this message]
2006-03-19 12:08           ` Philippe Gerum
2006-03-19 12:48             ` Jan Kiszka
2006-03-18 17:30 ` 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=441C57DA.8080708@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=rpm@xenomai.org \
    --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.