From owner-freebsd-hackers@FreeBSD.ORG Thu May 2 17:57:31 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D01C4C20 for ; Thu, 2 May 2013 17:57:31 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) by mx1.freebsd.org (Postfix) with ESMTP id BD4C61D41 for ; Thu, 2 May 2013 17:57:31 +0000 (UTC) Received: from zeta.ixsystems.com (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 3197911499; Thu, 2 May 2013 10:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1367517445; bh=bfzsAtD8AyD6udQaKdX7Wo9B7+AKr+ZgaNwLE5QkvXQ=; h=Date:From:Reply-To:To:Subject:References:In-Reply-To; b=nj8UgfFWc9PDvr5YojM8Ctp73Awzmyj7heHa6LRkyF6A2AE2qVxb2Dnitl55L6TJj i1RNnzJAqhrM2gwFYEfINuJeEayhsk+mTuQsPGWZXyp/ZOBtk3pVSaaGxNmTL2OdZP kgFGoo0vHKjre+ZsixQHaJgDNH1U1GuoLLkfSMDM= Message-ID: <5182A903.6010604@delphij.net> Date: Thu, 02 May 2013 10:57:23 -0700 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: potential future proofing fix for aicasm build. References: <51814686.2060805@ixsystems.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 May 2013 17:57:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 05/02/13 00:19, Dimitry Andric wrote: > On May 1, 2013, at 18:44, Alfred Perlstein > 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. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJRgqkDAAoJEG80Jeu8UPuzwvUH/2M+HDzKA9neXXYb6SKzrNX2 DVqw66ygatDj6QqwmMvZvU4+kGLNR6KEOQGNF4f0mMJmfg+GLzDFE5s769J/Be+1 4WMr1luWwgwrYlYhMrA8/CXYUWI2O9mhNfhLQHD8z3lJ6yxJgPy3h9J3jwzmU/W8 p58Dp8raABgKcK9DKE47QSXiiEXHuJUdSJXBPCoEFg09s+PnhrduQ1Vd9vfK9As0 G1HUmn+S/LWxRCB2wzZAC3FjZQHblXEvmfZzxCqUZr5AP3jtlHTHDUtJTCxxclgg sGLmdvqnn6/3BBXIhcxXVka3CKzbuCyIeGCBhTsSbLnuKB+FXbid9ibSrIlFA2s= =vdoK -----END PGP SIGNATURE-----