Received: from vms173009pub.verizon.net ([206.46.173.9]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Q4yVY-0006ox-6m for openembedded-devel@lists.openembedded.org; Wed, 30 Mar 2011 18:44:36 +0200 Received: from gandalf.denix.org ([unknown] [108.18.140.4]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LIV00FH8QEEFM91@vms173009.mailsrvcs.net> for openembedded-devel@lists.openembedded.org; Wed, 30 Mar 2011 11:42:20 -0500 (CDT) Received: by gandalf.denix.org (Postfix, from userid 1000) id 88A1314AF6C; Wed, 30 Mar 2011 12:42:14 -0400 (EDT) Date: Wed, 30 Mar 2011 12:42:14 -0400 From: Denys Dmytriyenko To: openembedded-devel@lists.openembedded.org Message-id: <20110330164214.GB2348@denix.org> References: <4D931B74.7020009@oktetlabs.ru> MIME-version: 1.0 In-reply-to: <4D931B74.7020009@oktetlabs.ru> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: prebuilt toolchain versus --sysroot X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 16:44:36 -0000 Content-type: text/plain; charset=us-ascii Content-disposition: inline On Wed, Mar 30, 2011 at 04:00:52PM +0400, Elena Vengerova wrote: > Hello, > > I'm trying to use pre-built SDK. PATH, CPPFLAGS and LDFLAGS are correct. > However configure of the first target package fails because compiler cannot > find crt1.o. I've found out that it's due --sysroot that points to > STAGING_DIR_TARGET. > > Should I copy SDK libraries and headers to STAGING_DIR_TARGET or there is > more correct option to resolve this issue? Elena, Pre-built SDKs (e.g. generated by OE from meta-toolchain) are usually meant to be used on their own, outside of the normal bitbake flow of OpenEmbedded. Previously it was possible to still use them externally by setting TARGET_CPPFLAGS and TARGET_LDFLAGS, like you are saying. Unfortunately, with the mandated use of --sysroot in latest OE, all the toolchain components have to be inside our sysroot, which is STAGING_DIR... Please check external-toolchain-csl.bb and external-toolchain-angstrom.bb recipes in recipes/meta/ directory for specific pointers on how to copy/stage the necessary objects, libraries and headers. Plus, installing/staging them properly also solves packaging and allows proper rootfs image generation with deployed libc packages from external toolchain. -- Denys