Date: Thu, 2 May 2013 21:11:49 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: d@delphij.net Cc: freebsd-hackers@freebsd.org Subject: Re: potential future proofing fix for aicasm build. Message-ID: <20130502181149.GM3047@kib.kiev.ua> In-Reply-To: <5182A903.6010604@delphij.net> References: <51814686.2060805@ixsystems.com> <E2096D39-2037-4741-8F5B-9887220D7ACA@andric.com> <5182A903.6010604@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--bnUi9GzdSM4S/DMA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 02, 2013 at 10:57:23AM -0700, Xin Li wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > On 05/02/13 00:19, Dimitry Andric wrote: > > On May 1, 2013, at 18:44, Alfred Perlstein <alfred@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. > >>=20 > >> aicasm.o: In function `__getCurrentRuneLocale': > > >> /usr/include/runetype.h:96: undefined reference to > >> `_ThreadRuneLocale' > >=20 > > 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? >=20 > This is because the locale code being a macro: >=20 > #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) > { >=20 > if (_ThreadRuneLocale) > return _ThreadRuneLocale; > if (_CurrentRuneLocale) > return _CurrentRuneLocale; > return &_DefaultRuneLocale; > } > #endif /* __NO_TLS || __RUNETYPE_INTERNAL */ >=20 > 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. --bnUi9GzdSM4S/DMA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRgqxkAAoJEJDCuSvBvK1BhYsP/A65hzS5x88Pvo0UjCGCV85x g4dF/cQFL0nJvLSQxPfNJhj7etGWZgTaZgBAKoHY/1ejpvw1GQzYKPtYCef2E6V0 ygnM/QTOjUro2HpDLgkasBEwOUe2LS61nnWER0nmjUAc9wIU4O+nEyJ9bNnw2sZg Og2nqkF9+hG5HWSMyXl2jrXw0ojYlLLozFxJlBy9p3dAkAjFtHy79xZopRBlGCjl IFalsOgqMO1EK3D6Z956/XQiTWRdLU7rLB2Ru84Rthwpj2+EygqoY3Kf0VigZ0Tt LLu41EJFyyu6iyRjM3hmx1jozQCjaO+8Kjp9hpLRaelqRuvZQIAcMuvNmGdxx7L3 qUisZ+Uwy9m/1uN4Jm7uv+4qUWOU0fJQUkpWc3YGCgvhT62XuE+1Esh4LKkW5BDb O6n38sSVWom9NZXmVkAa/neIFjLSL1YZeAR7IMAQQ/uJ9849SuZaytYqyCaf2/Xe cDow4sx75crJEhpB3nibywliGbY1i5RzkZum0aNzLE9lj/GaKIInIq06o6iY9WbB B7uUgPpLDfMVXClHs4G6UdBUPVlvGpU9heYoo8V/bMyU0Tcw98UyGqH1aG86ZJja LocjSTcZcFDwxi0tcDnJhXhgp9GQKqTGhiiwsbe8ymfonxgo/dnTd1RduF/x5+Or Jo8MhCW9Wp1VNtWUk43l =E5Y2 -----END PGP SIGNATURE----- --bnUi9GzdSM4S/DMA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130502181149.GM3047>