All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodolfo Bamberg <rolfetas@domain.hid>
To: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] problem compiling for user space
Date: Fri, 25 May 2007 11:13:05 +0200	[thread overview]
Message-ID: <4656A8A1.5050202@domain.hid> (raw)
In-Reply-To: <4656A71C.2010801@domain.hid>

I thought I did compile xenomai for the same target by passing the
--build=i386-linux-uclibc option to .configure.

Gilles Chanteperdrix wrote:
> Rodolfo Bamberg wrote:
>   
>> I am trying to cross-compile for i386 a user-space xenomai RT binary, I
>> installed xenomai in the root file system of the target with the
>> --build=i386-linux-uclibc option to cross compile for the target. 
>>
>> Here's the relevant makefile part of the program I'm trying to compile:
>>
>> XENOMAI_INCLUDE_DIR_USP    :=/tftpboot/192.168.0.2/include
>> XENOMAI_INCLUDE_LIB_USP :=/tftpboot/192.168.0.2/lib
>>
>> user:
>>     i386-linux-uclibc-gcc -I$(XENOMAI_INCLUDE_DIR_USP)
>> -L$(XENOMAI_INCLUDE_LIB_USP) -lnative -o rt_process_user rt_process_user.c
>>     chmod a+x rt_process_user
>>
>> and here the error:
>>
>>  # make user
>> i386-linux-uclibc-gcc -I/tftpboot/192.168.0.2/include
>> -L/tftpboot/192.168.0.2/lib -lnative -o rt_process_user rt_process_user.c
>> rt_process_user.c: In function 'latency_init':
>> rt_process_user.c:115: warning: passing argument 2 of 'rt_task_start'
>> from incompatible pointer type
>> /home/rodolfo/buildroot-2/build_i386/staging_dir/lib/gcc/i386-linux-uclibc/4.1.2/../../../../i386-linux-uclibc/bin/ld:
>> warning: libc.so.6, needed by /tftpboot/192.168.0.2/lib/libnative.so,
>> not found (try using -rpath or -rpath-link)
>> /tftpboot/192.168.0.2/lib/libnative.so: undefined reference to
>> `free@domain.hid'........
>>
>> does anyone know why it needs libc.so.6? thanks!
>>     
>
> Well, it is pretty obvious from the error message you show us:
> libnative.so uses free and is linked with glibc. If you want to compile
> your applications with i386-linux-uclibc, you should compile Xenomai
> with the same compiler.
>
>   




  reply	other threads:[~2007-05-25  9:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-25  8:58 [Xenomai-help] problem compiling for user space Rodolfo Bamberg
2007-05-25  9:06 ` Gilles Chanteperdrix
2007-05-25  9:13   ` Rodolfo Bamberg [this message]
     [not found]   ` <4656A7FA.9000408@domain.hid>
2007-05-25  9:19     ` Gilles Chanteperdrix
     [not found]     ` <4656A938.9000501@domain.hid>
2007-05-25  9:21       ` Rodolfo Bamberg
2007-05-25  9:35         ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2007-08-29 16:36 Ravid Baruch Naali
2007-08-29 17:04 ` Jan Kiszka

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=4656A8A1.5050202@domain.hid \
    --to=rolfetas@domain.hid \
    --cc=Xenomai-help@domain.hid \
    /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.