* Re: Error compiling Boost with Python support on 64-bit host for 32-bit target.
2012-04-24 21:02 ` Error compiling Boost with Python support on 64-bit host for 32-bit target Tasslehoff Kjappfot
@ 2012-04-24 9:44 ` Richard Purdie
2012-04-24 21:46 ` Tasslehoff Kjappfot
2012-04-24 21:04 ` Tasslehoff Kjappfot
` (2 subsequent siblings)
3 siblings, 1 reply; 15+ messages in thread
From: Richard Purdie @ 2012-04-24 9:44 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Error compiling Boost with Python support on 64-bit host for 32-bit target.
2012-04-24 9:44 ` Richard Purdie
@ 2012-04-24 21:46 ` Tasslehoff Kjappfot
0 siblings, 0 replies; 15+ messages in thread
From: Tasslehoff Kjappfot @ 2012-04-24 21:46 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
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 :)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Error compiling Boost with Python support on 64-bit host for 32-bit target.
2012-04-24 21:02 ` Error compiling Boost with Python support on 64-bit host for 32-bit target Tasslehoff Kjappfot
2012-04-24 9:44 ` Richard Purdie
@ 2012-04-24 21:04 ` Tasslehoff Kjappfot
2012-04-24 23:14 ` [PATCH] boost: set python-root correctly Tasslehoff Kjappfot
2012-04-25 0:12 ` Tasslehoff Kjappfot
3 siblings, 0 replies; 15+ messages in thread
From: Tasslehoff Kjappfot @ 2012-04-24 21:04 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Ouch. Didn't mean to make this a part of another thread. Sorry about that.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH] boost: set python-root correctly
2012-04-24 21:02 ` Error compiling Boost with Python support on 64-bit host for 32-bit target Tasslehoff Kjappfot
2012-04-24 9:44 ` Richard Purdie
2012-04-24 21:04 ` Tasslehoff Kjappfot
@ 2012-04-24 23:14 ` Tasslehoff Kjappfot
2012-04-24 11:52 ` Koen Kooi
2012-04-25 0:12 ` Tasslehoff Kjappfot
3 siblings, 1 reply; 15+ messages in thread
From: Tasslehoff Kjappfot @ 2012-04-24 23:14 UTC (permalink / raw)
To: openembedded-core
---
meta/recipes-support/boost/boost.inc | 8 +++++++-
meta/recipes-support/boost/boost_1.49.0.bb | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index c9306df..fbdf292 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -42,7 +42,7 @@ BOOST_LIBS = "\
#BOOST_LIBS += "python"
#DEPENDS += "python"
#PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}"
-#PYTHON_VERSION = "2.5"
+#PYTHON_VERSION = "2.7"
# Make a package for each library, plus -dev
PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
@@ -123,6 +123,7 @@ BJAM_TOOLS = "-sTOOLS=gcc \
'-sNO_ZLIB=1' \
'-sBUILD=release <optimization>space <threading>multi <inlining>on <debug-symbols>off' \
'-sPYTHON_VERSION=${PYTHON_VERSION}' \
+ '-sPYTHON_ROOT=${PYTHON_ROOT}' \
'--layout=system' \
"
@@ -140,6 +141,11 @@ do_boostconfig() {
then
echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam
fi
+
+ echo "using python : ${PYTHON_VERSION} : : ${STAGING_INCDIR}/python${PYTHON_VERSION} ;" >> ${S}/tools/build/v2/user-config.jam
+
+ CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-toolset=gcc --with-python-root=${PYTHON_ROOT}
+ sed -i '/^using python/d' project-config.jam
}
addtask do_boostconfig after do_patch before do_configure
diff --git a/meta/recipes-support/boost/boost_1.49.0.bb b/meta/recipes-support/boost/boost_1.49.0.bb
index 71fdc48..533cd10 100644
--- a/meta/recipes-support/boost/boost_1.49.0.bb
+++ b/meta/recipes-support/boost/boost_1.49.0.bb
@@ -2,7 +2,7 @@ include boost.inc
LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
SRC_URI += "file://arm-intrinsics.patch"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH] boost: set python-root correctly
2012-04-24 23:14 ` [PATCH] boost: set python-root correctly Tasslehoff Kjappfot
@ 2012-04-24 11:52 ` Koen Kooi
0 siblings, 0 replies; 15+ messages in thread
From: Koen Kooi @ 2012-04-24 11:52 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Op 25 apr. 2012, om 01:14 heeft Tasslehoff Kjappfot het volgende geschreven:
> ---
> meta/recipes-support/boost/boost.inc | 8 +++++++-
> meta/recipes-support/boost/boost_1.49.0.bb | 2 +-
> 2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
> index c9306df..fbdf292 100644
> --- a/meta/recipes-support/boost/boost.inc
> +++ b/meta/recipes-support/boost/boost.inc
> @@ -42,7 +42,7 @@ BOOST_LIBS = "\
> #BOOST_LIBS += "python"
> #DEPENDS += "python"
> #PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}"
> -#PYTHON_VERSION = "2.5"
> +#PYTHON_VERSION = "2.7"
>
> # Make a package for each library, plus -dev
> PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
> @@ -123,6 +123,7 @@ BJAM_TOOLS = "-sTOOLS=gcc \
> '-sNO_ZLIB=1' \
> '-sBUILD=release <optimization>space <threading>multi <inlining>on <debug-symbols>off' \
> '-sPYTHON_VERSION=${PYTHON_VERSION}' \
> + '-sPYTHON_ROOT=${PYTHON_ROOT}' \
> '--layout=system' \
> "
>
> @@ -140,6 +141,11 @@ do_boostconfig() {
> then
> echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam
> fi
> +
> + echo "using python : ${PYTHON_VERSION} : : ${STAGING_INCDIR}/python${PYTHON_VERSION} ;" >> ${S}/tools/build/v2/user-config.jam
> +
> + CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-toolset=gcc --with-python-root=${PYTHON_ROOT}
> + sed -i '/^using python/d' project-config.jam
> }
>
> addtask do_boostconfig after do_patch before do_configure
> diff --git a/meta/recipes-support/boost/boost_1.49.0.bb b/meta/recipes-support/boost/boost_1.49.0.bb
> index 71fdc48..533cd10 100644
> --- a/meta/recipes-support/boost/boost_1.49.0.bb
> +++ b/meta/recipes-support/boost/boost_1.49.0.bb
> @@ -2,7 +2,7 @@ include boost.inc
>
> LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
>
> -PR = "${INC_PR}.0"
> +PR = "${INC_PR}.1"
Shouldn't the INC_PR in boost.inc be increased instead?
regards,
Koen
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH] boost: set python-root correctly
2012-04-24 21:02 ` Error compiling Boost with Python support on 64-bit host for 32-bit target Tasslehoff Kjappfot
` (2 preceding siblings ...)
2012-04-24 23:14 ` [PATCH] boost: set python-root correctly Tasslehoff Kjappfot
@ 2012-04-25 0:12 ` Tasslehoff Kjappfot
2012-04-27 21:05 ` Saul Wold
3 siblings, 1 reply; 15+ messages in thread
From: Tasslehoff Kjappfot @ 2012-04-25 0:12 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Tasslehoff Kjappfot <tasskjapp@gmail.com>
---
meta/recipes-support/boost/boost.inc | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index c9306df..5341a8c 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -16,7 +16,7 @@ BOOST_VER = "${@"_".join(d.getVar("PV",1).split("."))}"
BOOST_MAJ = "${@"_".join(d.getVar("PV",1).split(".")[0:2])}"
BOOST_P = "boost_${BOOST_VER}"
-INC_PR = "r2"
+INC_PR = "r3"
SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BOOST_P}.tar.bz2"
@@ -42,7 +42,7 @@ BOOST_LIBS = "\
#BOOST_LIBS += "python"
#DEPENDS += "python"
#PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}"
-#PYTHON_VERSION = "2.5"
+#PYTHON_VERSION = "2.7"
# Make a package for each library, plus -dev
PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
@@ -123,6 +123,7 @@ BJAM_TOOLS = "-sTOOLS=gcc \
'-sNO_ZLIB=1' \
'-sBUILD=release <optimization>space <threading>multi <inlining>on <debug-symbols>off' \
'-sPYTHON_VERSION=${PYTHON_VERSION}' \
+ '-sPYTHON_ROOT=${PYTHON_ROOT}' \
'--layout=system' \
"
@@ -140,6 +141,11 @@ do_boostconfig() {
then
echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam
fi
+
+ echo "using python : ${PYTHON_VERSION} : : ${STAGING_INCDIR}/python${PYTHON_VERSION} ;" >> ${S}/tools/build/v2/user-config.jam
+
+ CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-toolset=gcc --with-python-root=${PYTHON_ROOT}
+ sed -i '/^using python/d' project-config.jam
}
addtask do_boostconfig after do_patch before do_configure
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH] boost: set python-root correctly
2012-04-25 0:12 ` Tasslehoff Kjappfot
@ 2012-04-27 21:05 ` Saul Wold
0 siblings, 0 replies; 15+ messages in thread
From: Saul Wold @ 2012-04-27 21:05 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 04/24/2012 05:12 PM, Tasslehoff Kjappfot wrote:
>
> Signed-off-by: Tasslehoff Kjappfot<tasskjapp@gmail.com>
> ---
> meta/recipes-support/boost/boost.inc | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
> index c9306df..5341a8c 100644
> --- a/meta/recipes-support/boost/boost.inc
> +++ b/meta/recipes-support/boost/boost.inc
> @@ -16,7 +16,7 @@ BOOST_VER = "${@"_".join(d.getVar("PV",1).split("."))}"
> BOOST_MAJ = "${@"_".join(d.getVar("PV",1).split(".")[0:2])}"
> BOOST_P = "boost_${BOOST_VER}"
>
> -INC_PR = "r2"
> +INC_PR = "r3"
>
> SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BOOST_P}.tar.bz2"
>
> @@ -42,7 +42,7 @@ BOOST_LIBS = "\
> #BOOST_LIBS += "python"
> #DEPENDS += "python"
> #PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}"
> -#PYTHON_VERSION = "2.5"
> +#PYTHON_VERSION = "2.7"
>
> # Make a package for each library, plus -dev
> PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
> @@ -123,6 +123,7 @@ BJAM_TOOLS = "-sTOOLS=gcc \
> '-sNO_ZLIB=1' \
> '-sBUILD=release<optimization>space<threading>multi<inlining>on<debug-symbols>off' \
> '-sPYTHON_VERSION=${PYTHON_VERSION}' \
> + '-sPYTHON_ROOT=${PYTHON_ROOT}' \
> '--layout=system' \
> "
>
> @@ -140,6 +141,11 @@ do_boostconfig() {
> then
> echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;'>> ${S}/tools/build/v2/user-config.jam
> fi
> +
> + echo "using python : ${PYTHON_VERSION} : : ${STAGING_INCDIR}/python${PYTHON_VERSION} ;">> ${S}/tools/build/v2/user-config.jam
> +
> + CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-toolset=gcc --with-python-root=${PYTHON_ROOT}
> + sed -i '/^using python/d' project-config.jam
> }
>
> addtask do_boostconfig after do_patch before do_configure
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 15+ messages in thread