Hi,

The thing I do not understand is that you should not pass any ldflags to
cond-torture-posix, Xenomai build system should have been taken care

I have to admit I haven't watched how cond-torture-posix was built. The one I
used then was built during the build process of blackfin-uclinux-dist. But
since it is the same error that occurs in my shortened example, and xeno-config
emits those flags, I assumed that compile flags were used for
cond-torture-posix similarly.

The short example I refer to is the one described in my posting to the blackfin toolchain-help Forum: Given the example code "a.c"

int main()
{
    return 0;
}

Compile it with:

bfin-linux-uclibc-gcc  -L/opt/uClinux/blackfin-linux-dist/staging/usr/lib 
-lxenomai -lpthread_rt -lpthread a.c

And then load it on a BF537-STAMP via gdbserver. As soon as it is started with
gdb from the development host, the gdbserver/a.out process will terminate with
NULL pointer access exception. Even before main() is reached...  The SEGV 
doesn't
occur if -lpthread is omitted.

More details: http://blackfin.uclinux.org/gf/forummessage/97601

If you think this is really Xenomai-related, I think we should start a separate 
thread for it
here or at least change the subject

Anyway, are you using libpthread as a static library?

No, all shared.

Kolja


_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to