[oe-commits] [meta-openembedded] 11/76: protobuf: switch from mips16 to mips32 due to in-line assembler
git at git.openembedded.org
git at git.openembedded.org
Sat Dec 24 08:18:16 UTC 2016
martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.
commit c20e42a004ce766d8d2488f406dc449fd0db0da7
Author: Lukasz Nowak <lnowak at tycoint.com>
AuthorDate: Tue Dec 13 09:39:04 2016 +0000
protobuf: switch from mips16 to mips32 due to in-line assembler
| mipsel-poky-linux-musl-libtool: compile: mipsel-poky-linux-musl-g++ -mel -mabi=32 -msoft-float -march=mips32r2 -mips16 -minterlink-compressed -mtune=24kec -mdsp --sysroot=<sysroot> -DHAVE_CONFIG_H -I. -I../../git/src -I.. -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -pipe -g -feliminate-unused-debug-types -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -fvisibility-inlines-hidden -c ../../git/src/google/protobuf/re [...]
| {standard input}: Assembler messages:
| {standard input}:113: Error: unrecognized opcode `sync'
| {standard input}:140: Error: unrecognized opcode `ll $2,0($16)'
| {standard input}:143: Error: unrecognized opcode `sc $4,0($16)'
| {standard input}:202: Error: unrecognized opcode `sync'
| {standard input}:275: Error: unrecognized opcode `sync'
| Makefile:2064: recipe for target 'google/protobuf/stubs/once.lo' failed
| make[3]: *** [google/protobuf/stubs/once.lo] Error 1
Protobuf implements atomics for mips, using ASM "sync" instruction.
It is not available in mips16e. Switching the library to mips32 is
the easiest solution.
Signed-off-by: Lukasz Nowak <lnowak at tycoint.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/recipes-devtools/protobuf/protobuf_2.6.1.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_2.6.1.bb b/meta-oe/recipes-devtools/protobuf/protobuf_2.6.1.bb
index 2977c59..7b8f629 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf_2.6.1.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf_2.6.1.bb
@@ -28,4 +28,6 @@ S = "${WORKDIR}/git"
FILES_${PN}-compiler = "${bindir} ${libdir}/libprotoc${SOLIBS}"
+MIPS_INSTRUCTION_SET = "mips"
+
BBCLASSEXTEND = "native nativesdk"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list