All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heikki Lindholm <holindho@domain.hid>
To: Roderik_Wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: AW: [Xenomai-help] undefinedreference	__xnarch_xchg_called_with_bad_pointer
Date: Tue, 28 Feb 2006 18:27:19 +0200	[thread overview]
Message-ID: <440479E7.7010800@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A1C3DB1@domain.hid>

Uh. I guess the compiler isn't killing the *_bad_pointer function as 
dead code when debug is enabled (although it is dead-code.) As a 
work-around, I think, you could just comment the line, where 
*_bad_pointer is called.

-- Heikki Lindholm

Roderik_Wildenburg@domain.hid kirjoitti:
> You are right, but who is somebody ?  The example definitly does not call any xchg-function directly. The only thing I did, was to activate debugging and recompile all the libraries (make clean; configure --debug-enable;  make ) and soon I get this error message when compiling the demo (I don´t get an error message when debugging is disabled) . Amazingly I don´t get this error message when compiling the native examples (ksrc/skins/native/demos) (debug enabled).
> Any ideas ?
> 
> Roderik
> 
> 
> 
> 
>>-----Ursprüngliche Nachricht-----
>>Von: xenomai-help-bounces@domain.hid 
>>[mailto:xenomai-help-bounces@domain.hid] Im Auftrag von Heikki Lindholm
>>Gesendet: Dienstag, 28. Februar 2006 15:48
>>An: Wildenburg, Roderik RAEK3 MRA
>>Cc: xenomai@xenomai.org
>>Betreff: Re: [Xenomai-help] undefinedreference 
>>__xnarch_xchg_called_with_bad_pointer
>>
>>Roderik_Wildenburg@domain.hid kirjoitti:
>>
>>>Dear Gurus,
>>>
>>>I have compiled ppc(!)-xenomai with debug information 
>>
>>(configure --enable-debug), so far so good (compiling of 
>>xenomai itself and it´s libraries, testsuite etc. was successful).  
>>
>>>Buuuut ..., when compiling the vxWorks-demos 
>>
>>(ksrc/skins/vxworks/demos/*.c), I get an error message about 
>>an undefined refernce __xnarch_xchg_called_with_bad_pointer. 
>>I searched for this mysterious function, but could only find 
>>it in asm-powerpc/atomic.h, where it is declared as external 
>>(extern void __xnarch_xchg_called_with_bad_pointer(void);).
>>
>>>Does anybody know, where I can get the implementation of 
>>
>>this function, or what I have to do else to get rid of the 
>>error message ?
>>
>>You might also want to read the comment near the extern 
>>declaration of the function in atomic.h, where it says that 
>>the function is not even intended to be implemented. The 
>>error means somebody called *atomic_xchg with wrong arguments 
>>(or there's something else wrong like inlines not working).
>>
>>-- Heikki Lindholm
>>
>>_______________________________________________
>>Xenomai-help mailing list
>>Xenomai-help@domain.hid
>>https://mail.gna.org/listinfo/xenomai-help
>>



  reply	other threads:[~2006-02-28 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-28 15:35 AW: [Xenomai-help] undefinedreference __xnarch_xchg_called_with_bad_pointer Roderik_Wildenburg
2006-02-28 16:27 ` Heikki Lindholm [this message]
2006-02-28 18:27   ` Philippe Gerum
2006-02-28 19:06     ` Heikki Lindholm
2006-03-01  8:04       ` 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=440479E7.7010800@domain.hid \
    --to=holindho@domain.hid \
    --cc=Roderik_Wildenburg@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.