From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lo.gmane.org ([80.91.229.12]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1OFuOi-0001Le-C1 for openembedded-devel@lists.openembedded.org; Sat, 22 May 2010 21:30:14 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OFuKk-0007dM-Gh for openembedded-devel@lists.openembedded.org; Sat, 22 May 2010 21:26:06 +0200 Received: from s55917625.adsl.wanadoo.nl ([85.145.118.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 May 2010 21:26:06 +0200 Received: from k.kooi by s55917625.adsl.wanadoo.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 May 2010 21:26:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: openembedded-devel@lists.openembedded.org connect(): No such file or directory From: Koen Kooi Date: Sat, 22 May 2010 21:25:55 +0200 Message-ID: References: <4BF69D04.5060506@mlbassoc.com> <4BF70683.3090704@mlbassoc.com> <4BF7C553.2090901@mlbassoc.com> Mime-Version: 1.0 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: s55917625.adsl.wanadoo.nl User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100512 Shredder/3.0.6pre In-Reply-To: <4BF7C553.2090901@mlbassoc.com> X-Enigmail-Version: 1.0.1 X-SA-Exim-Connect-IP: 80.91.229.12 X-SA-Exim-Mail-From: gcho-openembedded-devel@m.gmane.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on discovery X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: Re: staging problem 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: Sat, 22 May 2010 19:30:14 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 22-05-10 13:51, Gary Thomas wrote: > On 05/21/2010 04:17 PM, Gary Thomas wrote: >> On 05/21/2010 02:27 PM, Khem Raj wrote: >>> On Fri, May 21, 2010 at 7:47 AM, Gary Thomas wrote: >>>> Trying a clean build >>>> MACHINE="beagleboard" >>>> DISTRO="angstrom-2008.1" >>>> org.openembedded.dev 2c153f33b8ebb807a622ad9ae92ed5341a356740 >>>> >>>> I get failures like this (in many packages): >>>> /local/Angstrom_BeagleBoard/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/regex.h:138: >>>> >>>> >>>> error: expected '=', ',', ';', 'asm' or '__attribute__' before >>>> 're_void' >>>> /local/Angstrom_BeagleBoard/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/regex.h:298: >>>> >>>> >>>> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' >>>> /local/Angstrom_BeagleBoard/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/regex.h:307: >>>> >>>> >>>> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' >>>> /local/Angstrom_BeagleBoard/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/regex.h:309: >>>> >>>> >>>> error: expected '=', ',', ';', 'asm' or '__attribute__' before >>>> 're_void' >>>> /local/Angstrom_BeagleBoard/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/regex.h:310: >>>> >>>> >>>> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'size_t' >>>> >>>> The problem is that the compiler include file is >>>> not the standard/default one, rather the file from tcl! >>>> I replaced the bogus regex.h file with the correct one and >>>> my build completes& runs. >>> >>> its tcl dev package bug it should have installed its version into >>> /usr/include/tcl instead of overwriting the existing version in >>> sysroot. >>> >>> I can see the problem in the recipes if you are using 8.5.8 then >>> try this untested patch and let me know if it helps >>> >>> diff --git a/recipes/tcltk/tcl_8.5.8.bb b/recipes/tcltk/tcl_8.5.8.bb >>> index 220e858..dd5c810 100644 >>> --- a/recipes/tcltk/tcl_8.5.8.bb >>> +++ b/recipes/tcltk/tcl_8.5.8.bb >>> @@ -33,7 +33,8 @@ BINCONFIG_GLOB = "*Config.sh" >>> do_install() { >>> autotools_do_install >>> # Stage a few extra headers to make tk happy >>> - install -m 0644 ../generic/*.h ${D}${includedir} >>> + install -d ${D}${includedir}/tcl8.5/generic/ >>> + install -m 0644 ../generic/*.h ${D}${includedir}/tcl8.5/generic/ >>> install -m 0644 *.h ${D}${includedir} >>> ln -sf tclsh8.5 ${D}${bindir}/tclsh >>> } >>> >> >> Sorry, that patch/file does not line up at all with what's in >> my tree. Is it valid for org.openembedded.dev commit >> 0609b025f410ed09400404ab6af8775c78685b17? >> > > I applied the patch manually and while it does fix the /usr/include > pollution, it breaks building of 'tk'. You'll probably need a > completely fresh build to see the problem. Could you please try the following on top on the patch: - --- a/recipes/tcltk/tcl_8.5.8.bb +++ b/recipes/tcltk/tcl_8.5.8.bb tcl_sysroot() { - - sed -i 's:/usr/include/tcl-private:${STAGING_INCDIR}:' tclConfig.sh + sed -i 's:/usr/include/tcl-private:${STAGING_INCDIR}/tcl-${PV}:' tclConfig.sh } regards, Koen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFL+C/DMkyGM64RGpERAvhLAJwKFZS4eRwZD9uwr/VTdo0Vu6toBwCcDygX DtAsEcQ7HXBl4iiIjYmBAgk= =70EL -----END PGP SIGNATURE-----