potential future proofing fix for aicasm build.
Konstantin Belousov
kostikbel at gmail.com
Thu May 2 18:11:59 UTC 2013
On Thu, May 02, 2013 at 10:57:23AM -0700, Xin Li wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 05/02/13 00:19, Dimitry Andric wrote:
> > On May 1, 2013, at 18:44, Alfred Perlstein <alfred at ixsystems.com>
> > wrote:
> >> I took a shot at fixing this issue with building aicasm as part
> >> of "buildkernel" of an older 9.0 src on a machine running HEAD.
> >>
> >> aicasm.o: In function `__getCurrentRuneLocale': >
> >> /usr/include/runetype.h:96: undefined reference to
> >> `_ThreadRuneLocale'
> >
> > I don't understand this error message... It seems like a linker
> > error, but it also seems to refer to an incorrect include file? Is
> > this during linking or compiling?
>
> This is because the locale code being a macro:
>
> #if defined(__NO_TLS) || defined(__RUNETYPE_INTERNAL)
> extern const _RuneLocale *__getCurrentRuneLocale(void);
> #else
> extern _Thread_local const _RuneLocale *_ThreadRuneLocale;
> static __inline const _RuneLocale *__getCurrentRuneLocale(void)
> {
>
> if (_ThreadRuneLocale)
> return _ThreadRuneLocale;
> if (_CurrentRuneLocale)
> return _CurrentRuneLocale;
> return &_DefaultRuneLocale;
> }
> #endif /* __NO_TLS || __RUNETYPE_INTERNAL */
>
> What really puzzles me is that why the build picks up headers from the
> running system.
Because the utitily being build is intended to be run on the running system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20130502/9ab8ec0a/attachment.sig>
More information about the freebsd-hackers
mailing list