diff options
author | Mingli Yu <Mingli.Yu@windriver.com> | 2019-06-19 22:50:11 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-06-21 06:22:19 -0700 |
commit | b3ae42d56e9a10b0866dfdc21a2aa6be8db8bf05 (patch) | |
tree | 7bd03fc5bd16254233f2e934847f801b6766cd3d /meta-python/recipes-devtools/python/python-lxml.inc | |
parent | 5afd7db778d0c1b04871fc1a00e0372bca9efd76 (diff) | |
download | meta-openembedded-b3ae42d56e9a10b0866dfdc21a2aa6be8db8bf05.tar.gz |
python-lxml: replace -Og with -O for mips64-32
With below logic in local.conf:
MACHINE ??= "qemumips64"
MULTILIB_GLOBAL_VARIANTS_append = " libn32"
MULTILIBS ?= "multilib:lib32 multilib:libn32"
DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
require conf/multilib.conf
DEBUG_BUILD = "1"
$ bitbake lib32-python-lxml
[snip]
| {standard input}: Assembler messages:
| {standard input}:1488805: Error: branch out of range
| Compile failed: command 'mips-pokymllib32-linux-gcc' failed with exit status 1
| creating tmp
| cc -I/yocto/builds//tmp/work/mips-pokymllib32-linux/lib32-python-lxml/4.3.4-r0/lib32-recipe-sysroot/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitPZiWuM.c -o tmp/xmlXPathInitPZiWuM.o
| unable to execute 'cc': No such file or directory
[snip]
When DEBUG_BUILD enabled, -Og pass to compiler,
replace -Og with -O to fix the above compile error.
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-lxml.inc')
-rw-r--r-- | meta-python/recipes-devtools/python/python-lxml.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-lxml.inc b/meta-python/recipes-devtools/python/python-lxml.inc index d67c178834..dd73a412b6 100644 --- a/meta-python/recipes-devtools/python/python-lxml.inc +++ b/meta-python/recipes-devtools/python/python-lxml.inc | |||
@@ -33,6 +33,18 @@ DISTUTILS_INSTALL_ARGS += " \ | |||
33 | 33 | ||
34 | inherit pypi | 34 | inherit pypi |
35 | 35 | ||
36 | # {standard input}: Assembler messages: | ||
37 | # {standard input}:1488805: Error: branch out of range | ||
38 | DEBUG_OPTIMIZATION_remove_mips = " -Og" | ||
39 | DEBUG_OPTIMIZATION_append_mips = " -O" | ||
40 | BUILD_OPTIMIZATION_remove_mips = " -Og" | ||
41 | BUILD_OPTIMIZATION_append_mips = " -O" | ||
42 | |||
43 | DEBUG_OPTIMIZATION_remove_mipsel = " -Og" | ||
44 | DEBUG_OPTIMIZATION_append_mipsel = " -O" | ||
45 | BUILD_OPTIMIZATION_remove_mipsel = " -Og" | ||
46 | BUILD_OPTIMIZATION_append_mipsel = " -O" | ||
47 | |||
36 | do_configure_prepend() { | 48 | do_configure_prepend() { |
37 | sed -i -e 's/--version/--modversion/' ${B}/setupinfo.py | 49 | sed -i -e 's/--version/--modversion/' ${B}/setupinfo.py |
38 | } | 50 | } |