From: Niklaus Giger <niklaus.giger@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Problems linking a custom vxWorks application
Date: Tue, 29 Nov 2005 20:17:03 +0100 [thread overview]
Message-ID: <200511292017.04476.niklaus.giger@domain.hid> (raw)
Hi
I update to the latest xenomai/trunk (revision 207) and compiled and installed
without problems xenomai for my PPC405 board (using busybox).
The kernel starts (using a NFS root) and I can login without major problems.
Tools like xeno-load and xeno-test do not work as there is no /bin/bash
around. I usually work around this problem by calling insmod and alike
manually.
In xeno-load I also remarked that
prefix="/mnt/data.ng/hcu/rootfs/usr/xenomai"
points to the mount point while compiling/installing xenomai, but not to the
mount point after starting the target (where /
equals /mnt/data.ng/hcu/rootfs).
My real problem is that I cannot link my custom UVM application, as I get the
following error. Here are as the complete calls to compile (only the last
file) and link the application:
ccache /home/hcu/tools/powerpc-405-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/powerpc-405-linux-gnu-g++
-c -Wno-deprecated -g -DAB_DSP_5 -DVXWORKS -DBB_VERS -DIMC_VERS -DSYM_VERS
-DCEL_VERS -DRTAI -I. -I/mnt/data.ng/hcu/rootfs/usr/xenomai/include -O2
-D_GNU_SOURCE -D_REENTRANT -D__XENO__ -Wall -pipe -D__XENO_UVM__ -O
-I/home/hcu/project/metaframe/1_3_5_1/BSys/mak/linux
-I/home/hcu/project/metaframe/1_3_5_1/BSys/src
-I/home/hcu/project/metaframe/1_3_5_1 -I/home/hcu/project/vx_skin
-I/mnt/data.ng/hcu/rootfs/usr/xenomai/include/vxworks
-I/mnt/data.ng/hcu/rootfs/usr/xenomai/include
-I/mnt/data.ng/hcu/kernel/build-xeno-hcu3/src/include
-I/mnt/data.ng/hcu/rootfs/usr/xenomai/include/vxworks
-O /home/hcu/project/metaframe/1_3_5_1/BSys/src/BSysTypeInfoVXWorksParser.cpp
-o ../../obj/xeno-ppc405/BSysTypeInfoVXWorksParser.o
ar ru ../../obj/xeno-ppc405/BSys_lib.a \
../../obj/xeno-ppc405/BSysTypeInfoVXWorksParser.o
ranlib ../../obj/xeno-ppc405/BSys_lib.a
/home/hcu/tools/powerpc-405-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/powerpc-405-linux-gnu-g++
-g -o
TSysMain ../../obj/xeno-ppc405/TSysMain.o ../../obj/xeno-ppc405/BSys_test.a ../../obj/xeno-ppc405/BSys_lib.a
-u__xeno_skin_init -L/mnt/data.ng/hcu/rootfs/usr/xenomai/lib -luvm -lnucleus
-lpthread -lvxworks -lvxworks
/mnt/data.ng/hcu/rootfs/usr/xenomai/lib/libnucleus.a(pod.o)(.text+0x674): In
function `xnpod_init':
: undefined reference to `xnarch_atomic_set'
/mnt/data.ng/hcu/rootfs/usr/xenomai/lib/libnucleus.a(pod.o)(.text+0x6b8): In
function `xnpod_init':
: undefined reference to `xnarch_atomic_set'
/mnt/data.ng/hcu/rootfs/usr/xenomai/lib/libnucleus.a(pod.o)(.text+0xfe8): In
function `xnpod_set_thread_mode':
: undefined reference to `xnarch_atomic_set'
/mnt/data.ng/hcu/rootfs/usr/xenomai/lib/libnucleus.a(pod.o)(.text+0x26a8): In
function `xnpod_delete_thread':
: undefined reference to `xnarch_atomic_set'
/mnt/data.ng/hcu/rootfs/usr/xenomai/lib/libnucleus.a(pod.o)(.text+0x29a8): In
function `xnpod_restart_thread':
: undefined reference to `xnarch_atomic_set'
collect2: ld returned 1 exit status
What is wrong with this?
Thanks you in advance for your help.
--
Niklaus Giger
next reply other threads:[~2005-11-29 19:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-29 19:17 Niklaus Giger [this message]
2005-11-29 20:27 ` [Xenomai-help] Problems linking a custom vxWorks application Philippe Gerum
2005-11-29 20:32 ` Philippe Gerum
2005-11-29 21:23 ` Niklaus Giger
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=200511292017.04476.niklaus.giger@domain.hid \
--to=niklaus.giger@domain.hid \
--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.