From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lb0-f175.google.com ([209.85.217.175]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SMcUe-0006ht-9k for openembedded-core@lists.openembedded.org; Tue, 24 Apr 2012 11:57:08 +0200 Received: by lbjn8 with SMTP id n8so329813lbj.6 for ; Tue, 24 Apr 2012 02:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=j7Ag9VaGg3yob+VUwHa4olEPLgQVlMGrl0eQf+kzXyM=; b=l8Ns0DRavItf1K0Y2pe0NyxFoE1bWJkCSn1KbIO18iutqS6BrODRNZjLzsu1aIKO6W TKVFohxczY1k2vpszwbNe3mrOcG0hYuChviy0CKkZe5fK54KO5rqa5fygMgqjpiCgXKM JRnwVeVljPoCgT0ePHKXFBROgAn9WKCoUyvC2knSMdZ81tvBtiI5KBtEbRs/5a/BzgO2 +RWf+2oXZ0YkgLWdo1Vofq9IkuWV1tARi29vnYGgqVdgSkm841Ctp1f+rK6XtmqWkh4Q pLJSehmQVToZPRQBBTh6hVAJudEvWHhybzmhbQd/BOaHyHleHZGTxREddfMkbWQ/dnwO kLuw== Received: by 10.152.145.228 with SMTP id sx4mr18351363lab.45.1335260853697; Tue, 24 Apr 2012 02:47:33 -0700 (PDT) Received: from [192.168.0.117] ([84.49.231.147]) by mx.google.com with ESMTPS id ph8sm18514152lab.15.2012.04.24.02.47.32 (version=SSLv3 cipher=OTHER); Tue, 24 Apr 2012 02:47:32 -0700 (PDT) Message-ID: <4F971F1F.5080306@gmail.com> Date: Tue, 24 Apr 2012 23:46:07 +0200 From: Tasslehoff Kjappfot User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: <4F9714DD.6070608@gmail.com> <1335260672.12692.114.camel@ted> In-Reply-To: <1335260672.12692.114.camel@ted> Subject: Re: Error compiling Boost with Python support on 64-bit host for 32-bit target. X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 09:57:08 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/24/2012 11:44 AM, Richard Purdie wrote: > On Tue, 2012-04-24 at 23:02 +0200, Tasslehoff Kjappfot wrote: >> boost.inc: >> >> # To enable python, uncomment the following: >> #BOOST_LIBS += "python" >> #DEPENDS += "python" >> #PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}" >> #PYTHON_VERSION = "2.5" >> >> If this is uncommented, stuff fails with messages like: >> >> | ...failed gcc.compile.c++ >> bin.v2/libs/python/build/69ffc88faf507005827aa061bd65b9bd/wrapper.o... >> | gcc.compile.c++ >> bin.v2/libs/python/build/69ffc88faf507005827aa061bd65b9bd/import.o >> | In file included from >> /src/openembedded/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/include/python2.7/Python.h:58:0, >> | from ./boost/python/detail/wrap_python.hpp:142, >> | from ./boost/python/detail/prefix.hpp:13, >> | from ./boost/python/ssize_t.hpp:9, >> | from ./boost/python/object.hpp:8, >> | from ./boost/python/import.hpp:8, >> | from libs/python/src/import.cpp:6: >> | >> /src/openembedded/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/include/python2.7/pyport.h:849:2: >> error: #error "LONG_BIT definition appears wrong for platform (bad >> gcc/glibc config?)." >> >> I have problems figuring out how to solve this (other than by >> reinstalling Ubuntu 32-bit). > You have to wonder why its looking in the native sysroot and not the > target one. It would probably find better values in the target one... > > Cheers, > > Richard > d-core I thought so too, but I wasn't able to convince it to do so. Will have to try harder :)