protobuf: upgrade 3.5.1 -> 3.6.0.1
PATCH 1/1 protobuf: upgrade 3.5.1 -> 3.6.0.1
From: Changqing Li <[email protected]>
License-Update: copyright year updated and clean some useless content
---
.../0001-protobuf-fix-configure-error.patch | 33 ++++++++++++++++++++++
.../{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} | 14 ++++++---
2 files changed, 43 insertions(+), 4 deletions(-)
create mode 100644 meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patch
rename meta-oe/recipes-devtools/protobuf/{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} (86%)meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 52959e8e01e39139d18f752e97283e45b4b7a426 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Wed, 18 Jul 2018 17:52:34 +0800 +Subject: [PATCH] protobuf: fix configure error + +fix below error: +gnu-configize: 'configure.ac' or 'configure.in' is required + +third_party/googletest is git submodule of protobuf. Above error +caused by missing submodule googletest. + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Changqing Li <[email protected]> +--- + configure.ac | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index aec10cf..7fbe57d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -214,7 +214,6 @@ AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) + # too. + export CFLAGS + export CXXFLAGS +-AC_CONFIG_SUBDIRS([third_party/googletest]) + + AC_CONFIG_FILES([Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc]) + AC_OUTPUT +-- +2.7.4 +
meta-oe/recipes-devtools/protobuf/protobuf_3.6.0.1.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb +10 -4
@@ -5,18 +5,19 @@ all of its internal RPC protocols and file formats." HOMEPAGE = "https://github.com/google/protobuf" SECTION = "console/tools" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095" +LIC_FILES_CHKSUM = "file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b" DEPENDS = "zlib" DEPENDS_append_class-target = " protobuf-native" PV .= "+git${SRCPV}" -SRCREV = "106ffc04be1abf3ff3399f54ccf149815b287dd9" -SRC_URI = "git://github.com/google/protobuf.git;branch=3.5.x \ +SRCREV = "ce044817c7ba0aea27c3fd8e496635d94d20a755" + +SRC_URI = "git://github.com/google/protobuf.git;branch=3.6.x \ file://run-ptest \ + file://0001-protobuf-fix-configure-error.patch \ " - S = "${WORKDIR}/git" inherit autotools-brokensep pkgconfig ptest
@@ -82,3 +83,8 @@ RDEPENDS_${PN}-ptest = "bash python-protobuf" MIPS_INSTRUCTION_SET = "mips" BBCLASSEXTEND = "native nativesdk" + +LDFLAGS_append_arm = " -latomic" +LDFLAGS_append_mips = " -latomic" +LDFLAGS_append_powerpc = " -latomic" +LDFLAGS_append_mipsel = " -latomic"
Signature · 1 line
2.7.4
Quoted 9 lines · On Wed, Jul 18, 2018 at 11:13 PM <[email protected]> wrote:
From: Changqing Li <[email protected]>
License-Update: copyright year updated and clean some useless content
Signed-off-by Changqing Li <[email protected]>--- .../0001-protobuf-fix-configure-error.patch | 33 ++++++++++++++++++++++ .../{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} | 14 ++++++---
my host has gcc8 and it failed to build native version
NOTE: Running task 13158 of 33598 (virtual:native:/mnt/a/oe/sources/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.0.bb:do_compile)
| ^ | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:29: error: expected primary-expression before ‘>’ token | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:31: error: expected primary-expression before ‘>’ token | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:33: error: ‘options’ was not declared in this scope | vector<pair<string, string> > options; | ^~~~~~~ | ../git/protoc-c/c_generator.cc:152:5: error: ‘scoped_ptr’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | ../git/protoc-c/c_generator.cc:152:5: note: suggested alternative: ‘sched_param’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | sched_param | ../git/protoc-c/c_generator.cc:152:40: error: expected primary-expression before ‘>’ token | scoped_ptr<io::ZeroCopyOutputStream> output( | ^ | ../git/protoc-c/c_generator.cc:152:42: error: ‘output’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | ../git/protoc-c/c_generator.cc:152:42: note: suggested alternative: ‘getpt’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | getpt | ../git/protoc-c/c_generator.cc:160:5: error: ‘scoped_ptr’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | ../git/protoc-c/c_generator.cc:160:5: note: suggested alternative: ‘sched_param’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | sched_param | ../git/protoc-c/c_generator.cc:160:40: error: expected primary-expression before ‘>’ token | scoped_ptr<io::ZeroCopyOutputStream> output( | ^ | ../git/protoc-c/c_generator.cc:160:42: error: ‘output’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | ../git/protoc-c/c_generator.cc:160:42: note: suggested alternative: ‘getpt’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | getpt | make: *** [Makefile:1497: protoc-c/protoc_gen_c-c_primitive_field.o] Error 1 | make: *** [Makefile:1441: protoc-c/protoc_gen_c-c_generator.o] Error 1 | ERROR: oe_runmake failed
Quoted 91 lines
2 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patch rename meta-oe/recipes-devtools/protobuf/{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} (86%)meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patch new file +33
-0@@ -0,0 +1,33 @@ +From 52959e8e01e39139d18f752e97283e45b4b7a426 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Wed, 18 Jul 2018 17:52:34 +0800 +Subject: [PATCH] protobuf: fix configure error + +fix below error: +gnu-configize: 'configure.ac' or 'configure.in' is required + +third_party/googletest is git submodule of protobuf. Above error +caused by missing submodule googletest. + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Changqing Li <[email protected]> +--- + configure.ac | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index aec10cf..7fbe57d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -214,7 +214,6 @@ AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) + # too. + export CFLAGS + export CXXFLAGS +-AC_CONFIG_SUBDIRS([third_party/googletest]) + + AC_CONFIG_FILES([Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc]) + AC_OUTPUT +-- +2.7.4 +meta-oe/recipes-devtools/protobuf/protobuf_3.6.0.1.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb +10
-5@@ -5,18 +5,19 @@ all of its internal RPC protocols and file formats." HOMEPAGE = "https://github.com/google/protobuf" SECTION = "console/tools" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095" +LIC_FILES_CHKSUM = "file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b" DEPENDS = "zlib" DEPENDS_append_class-target = " protobuf-native" PV .= "+git${SRCPV}" -SRCREV = "106ffc04be1abf3ff3399f54ccf149815b287dd9" -SRC_URI = "git://github.com/google/protobuf.git;branch=3.5.x \ +SRCREV = "ce044817c7ba0aea27c3fd8e496635d94d20a755" + +SRC_URI = "git://github.com/google/protobuf.git;branch=3.6.x \ file://run-ptest \ + file://0001-protobuf-fix-configure-error.patch \ " - S = "${WORKDIR}/git" inherit autotools-brokensep pkgconfig ptest@@ -82,3 +83,8 @@ RDEPENDS_${PN}-ptest = "bash python-protobuf" MIPS_INSTRUCTION_SET = "mips" BBCLASSEXTEND = "native nativesdk" + +LDFLAGS_append_arm = " -latomic" +LDFLAGS_append_mips = " -latomic" +LDFLAGS_append_powerpc = " -latomic" +LDFLAGS_append_mipsel = " -latomic" --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 65 lines · Khem Raj
Quoted 8 lines · On Wed, Jul 18, 2018 at 11:13 PM <[email protected]> wrote:
From: Changqing Li <[email protected]>
License-Update: copyright year updated and clean some useless content
Signed-off-by Changqing Li <[email protected]>--- .../0001-protobuf-fix-configure-error.patch | 33 ++++++++++++++++++++++ .../{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} | 14 ++++++---my host has gcc8 and it failed to build native version
NOTE: Running task 13158 of 33598 (virtual:native:/mnt/a/oe/sources/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.0.bb:do_compile)| ^ | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:29: error: expected primary-expression before ‘>’ token | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:31: error: expected primary-expression before ‘>’ token | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:33: error: ‘options’ was not declared in this scope | vector<pair<string, string> > options; | ^~~~~~~ | ../git/protoc-c/c_generator.cc:152:5: error: ‘scoped_ptr’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | ../git/protoc-c/c_generator.cc:152:5: note: suggested alternative: ‘sched_param’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | sched_param | ../git/protoc-c/c_generator.cc:152:40: error: expected primary-expression before ‘>’ token | scoped_ptr<io::ZeroCopyOutputStream> output( | ^ | ../git/protoc-c/c_generator.cc:152:42: error: ‘output’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | ../git/protoc-c/c_generator.cc:152:42: note: suggested alternative: ‘getpt’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | getpt | ../git/protoc-c/c_generator.cc:160:5: error: ‘scoped_ptr’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | ../git/protoc-c/c_generator.cc:160:5: note: suggested alternative: ‘sched_param’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | sched_param | ../git/protoc-c/c_generator.cc:160:40: error: expected primary-expression before ‘>’ token | scoped_ptr<io::ZeroCopyOutputStream> output( | ^ | ../git/protoc-c/c_generator.cc:160:42: error: ‘output’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output(
Quoted 8 lines
| ^~~~~~ | ../git/protoc-c/c_generator.cc:160:42: note: suggested alternative: ‘getpt’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | getpt | make: *** [Makefile:1497: protoc-c/protoc_gen_c-c_primitive_field.o] Error 1 | make: *** [Makefile:1441: protoc-c/protoc_gen_c-c_generator.o] Error 1 | ERROR: oe_runmake failed
I have send a patch for protobuf-c to fix this problem and have cc to you. Thanks.
//sandy
Quoted 92 lines
Quoted 92 lines
2 files changed, 43 insertions(+), 4 deletions(-)create mode 100644
meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patchrename meta-oe/recipes-devtools/protobuf/{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} (86%)meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patch new file +33
-0@@ -0,0 +1,33 @@ +From 52959e8e01e39139d18f752e97283e45b4b7a426 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Wed, 18 Jul 2018 17:52:34 +0800 +Subject: [PATCH] protobuf: fix configure error + +fix below error: +gnu-configize: 'configure.ac' or 'configure.in' is required + +third_party/googletest is git submodule of protobuf. Above error +caused by missing submodule googletest. + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Changqing Li <[email protected]> +--- + configure.ac | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index aec10cf..7fbe57d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -214,7 +214,6 @@ AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) + # too. + export CFLAGS + export CXXFLAGS +-AC_CONFIG_SUBDIRS([third_party/googletest]) + + AC_CONFIG_FILES([Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc]) + AC_OUTPUT +-- +2.7.4 +meta-oe/recipes-devtools/protobuf/protobuf_3.6.0.1.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb +10
-5@@ -5,18 +5,19 @@ all of its internal RPC protocols and file formats." HOMEPAGE = "https://github.com/google/protobuf" SECTION = "console/tools" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095" +LIC_FILES_CHKSUM = "file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b" DEPENDS = "zlib" DEPENDS_append_class-target = " protobuf-native" PV .= "+git${SRCPV}" -SRCREV = "106ffc04be1abf3ff3399f54ccf149815b287dd9" -SRC_URI = "git://github.com/google/protobuf.git;branch=3.5.x \ +SRCREV = "ce044817c7ba0aea27c3fd8e496635d94d20a755" + +SRC_URI = "git://github.com/google/protobuf.git;branch=3.6.x \ file://run-ptest \ + file://0001-protobuf-fix-configure-error.patch \ " - S = "${WORKDIR}/git" inherit autotools-brokensep pkgconfig ptest@@ -82,3 +83,8 @@ RDEPENDS_${PN}-ptest = "bash python-protobuf" MIPS_INSTRUCTION_SET = "mips" BBCLASSEXTEND = "native nativesdk" + +LDFLAGS_append_arm = " -latomic" +LDFLAGS_append_mips = " -latomic" +LDFLAGS_append_powerpc = " -latomic" +LDFLAGS_append_mipsel = " -latomic" --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 4 lines
BRs Sandy(Li Changqing) +861084778653
After all patches, this still fails to build native version of protobuf-c_1.3.0.bb,
Quoted 181 lines · Changqing Li
Quoted 65 lines · Khem Raj
Quoted 8 lines · On Wed, Jul 18, 2018 at 11:13 PM <[email protected]> wrote:
From: Changqing Li <[email protected]>
License-Update: copyright year updated and clean some useless content
Signed-off-by Changqing Li <[email protected]>--- .../0001-protobuf-fix-configure-error.patch | 33 ++++++++++++++++++++++ .../{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} | 14 ++++++---my host has gcc8 and it failed to build native version
NOTE: Running task 13158 of 33598 (virtual:native:/mnt/a/oe/sources/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.0.bb:do_compile)| ^ | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:29: error: expected primary-expression before ‘>’ token | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:31: error: expected primary-expression before ‘>’ token | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:33: error: ‘options’ was not declared in this scope | vector<pair<string, string> > options; | ^~~~~~~ | ../git/protoc-c/c_generator.cc:152:5: error: ‘scoped_ptr’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | ../git/protoc-c/c_generator.cc:152:5: note: suggested alternative: ‘sched_param’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | sched_param | ../git/protoc-c/c_generator.cc:152:40: error: expected primary-expression before ‘>’ token | scoped_ptr<io::ZeroCopyOutputStream> output( | ^ | ../git/protoc-c/c_generator.cc:152:42: error: ‘output’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | ../git/protoc-c/c_generator.cc:152:42: note: suggested alternative: ‘getpt’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | getpt | ../git/protoc-c/c_generator.cc:160:5: error: ‘scoped_ptr’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | ../git/protoc-c/c_generator.cc:160:5: note: suggested alternative: ‘sched_param’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | sched_param | ../git/protoc-c/c_generator.cc:160:40: error: expected primary-expression before ‘>’ token | scoped_ptr<io::ZeroCopyOutputStream> output( | ^ | ../git/protoc-c/c_generator.cc:160:42: error: ‘output’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output(Quoted 8 lines
| ^~~~~~ | ../git/protoc-c/c_generator.cc:160:42: note: suggested alternative: ‘getpt’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | getpt | make: *** [Makefile:1497: protoc-c/protoc_gen_c-c_primitive_field.o] Error 1 | make: *** [Makefile:1441: protoc-c/protoc_gen_c-c_generator.o] Error 1 | ERROR: oe_runmake failedI have send a patch for protobuf-c to fix this problem and have cc to you. Thanks.
//sandy
Quoted 87 lines
Quoted 87 lines
2 files changed, 43 insertions(+), 4 deletions(-)create mode 100644
meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patchrename meta-oe/recipes-devtools/protobuf/{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} (86%)meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patch new file +33
-0@@ -0,0 +1,33 @@ +From 52959e8e01e39139d18f752e97283e45b4b7a426 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Wed, 18 Jul 2018 17:52:34 +0800 +Subject: [PATCH] protobuf: fix configure error + +fix below error: +gnu-configize: 'configure.ac' or 'configure.in' is required + +third_party/googletest is git submodule of protobuf. Above error +caused by missing submodule googletest. + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Changqing Li <[email protected]> +--- + configure.ac | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index aec10cf..7fbe57d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -214,7 +214,6 @@ AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) + # too. + export CFLAGS + export CXXFLAGS +-AC_CONFIG_SUBDIRS([third_party/googletest]) + + AC_CONFIG_FILES([Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc]) + AC_OUTPUT +-- +2.7.4 +meta-oe/recipes-devtools/protobuf/protobuf_3.6.0.1.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb +10
-5@@ -5,18 +5,19 @@ all of its internal RPC protocols and file formats." HOMEPAGE = "https://github.com/google/protobuf" SECTION = "console/tools" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095" +LIC_FILES_CHKSUM = "file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b" DEPENDS = "zlib" DEPENDS_append_class-target = " protobuf-native" PV .= "+git${SRCPV}" -SRCREV = "106ffc04be1abf3ff3399f54ccf149815b287dd9" -SRC_URI = "git://github.com/google/protobuf.git;branch=3.5.x \ +SRCREV = "ce044817c7ba0aea27c3fd8e496635d94d20a755" + +SRC_URI = "git://github.com/google/protobuf.git;branch=3.6.x \ file://run-ptest \ + file://0001-protobuf-fix-configure-error.patch \ " - S = "${WORKDIR}/git" inherit autotools-brokensep pkgconfig ptest@@ -82,3 +83,8 @@ RDEPENDS_${PN}-ptest = "bash python-protobuf" MIPS_INSTRUCTION_SET = "mips" BBCLASSEXTEND = "native nativesdk" + +LDFLAGS_append_arm = " -latomic" +LDFLAGS_append_mips = " -latomic" +LDFLAGS_append_powerpc = " -latomic" +LDFLAGS_append_mipsel = " -latomic" --2.7.4
Quoted 5 lines
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
BRsSandy(Li Changqing)
+861084778653
Quoted 2 lines · Khem Raj
After all patches, this still fails to build native version of protobuf-c_1.3.0.bb,
Hi, I send a V2 protobuf-c patch, please try with the V2 protobuf-c patch and this patch, thanks. I can build success on my host.
//sandy
Quoted 178 lines · Changqing Li
Quoted 176 lines · Khem Raj
Quoted 64 lines · On Wed, Jul 18, 2018 at 11:13 PM <[email protected]> wrote:
Quoted 8 lines
From: Changqing Li <[email protected]>
License-Update: copyright year updated and clean some useless content
Signed-off-by Changqing Li <[email protected]>--- .../0001-protobuf-fix-configure-error.patch | 33 ++++++++++++++++++++++ .../{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} | 14 ++++++---my host has gcc8 and it failed to build native version
NOTE: Running task 13158 of 33598 (virtual:native:/mnt/a/oe/sources/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.0.bb:do_compile)| ^ | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:29: error: expected primary-expression before ‘>’ token | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:31: error: expected primary-expression before ‘>’ token | vector<pair<string, string> > options; | ^ | ../git/protoc-c/c_generator.cc:108:33: error: ‘options’ was not declared in this scope | vector<pair<string, string> > options; | ^~~~~~~ | ../git/protoc-c/c_generator.cc:152:5: error: ‘scoped_ptr’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | ../git/protoc-c/c_generator.cc:152:5: note: suggested alternative: ‘sched_param’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | sched_param | ../git/protoc-c/c_generator.cc:152:40: error: expected primary-expression before ‘>’ token | scoped_ptr<io::ZeroCopyOutputStream> output( | ^ | ../git/protoc-c/c_generator.cc:152:42: error: ‘output’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | ../git/protoc-c/c_generator.cc:152:42: note: suggested alternative: ‘getpt’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | getpt | ../git/protoc-c/c_generator.cc:160:5: error: ‘scoped_ptr’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | ../git/protoc-c/c_generator.cc:160:5: note: suggested alternative: ‘sched_param’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~~~~~ | sched_param | ../git/protoc-c/c_generator.cc:160:40: error: expected primary-expression before ‘>’ token | scoped_ptr<io::ZeroCopyOutputStream> output( | ^ | ../git/protoc-c/c_generator.cc:160:42: error: ‘output’ was not declared in this scope | scoped_ptr<io::ZeroCopyOutputStream> output(Quoted 8 lines
| ^~~~~~ | ../git/protoc-c/c_generator.cc:160:42: note: suggested alternative: ‘getpt’ | scoped_ptr<io::ZeroCopyOutputStream> output( | ^~~~~~ | getpt | make: *** [Makefile:1497: protoc-c/protoc_gen_c-c_primitive_field.o] Error 1 | make: *** [Makefile:1441: protoc-c/protoc_gen_c-c_generator.o] Error 1 | ERROR: oe_runmake failedI have send a patch for protobuf-c to fix this problem and have cc to you. Thanks.
//sandy
Quoted 86 lines
Quoted 86 lines
2 files changed, 43 insertions(+), 4 deletions(-)create mode 100644
meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patchrename meta-oe/recipes-devtools/protobuf/{protobuf_3.5.1.bb => protobuf_3.6.0.1.bb} (86%)meta-oe/recipes-devtools/protobuf/protobuf/0001-protobuf-fix-configure-error.patch new file +33
-0@@ -0,0 +1,33 @@ +From 52959e8e01e39139d18f752e97283e45b4b7a426 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Wed, 18 Jul 2018 17:52:34 +0800 +Subject: [PATCH] protobuf: fix configure error + +fix below error: +gnu-configize: 'configure.ac' or 'configure.in' is required + +third_party/googletest is git submodule of protobuf. Above error +caused by missing submodule googletest. + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Changqing Li <[email protected]> +--- + configure.ac | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index aec10cf..7fbe57d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -214,7 +214,6 @@ AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) + # too. + export CFLAGS + export CXXFLAGS +-AC_CONFIG_SUBDIRS([third_party/googletest]) + + AC_CONFIG_FILES([Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc]) + AC_OUTPUT +-- +2.7.4 +meta-oe/recipes-devtools/protobuf/protobuf_3.6.0.1.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_3.5.1.bb +10
-5@@ -5,18 +5,19 @@ all of its internal RPC protocols and file formats." HOMEPAGE = "https://github.com/google/protobuf" SECTION = "console/tools" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=35953c752efc9299b184f91bef540095" +LIC_FILES_CHKSUM = "file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b" DEPENDS = "zlib" DEPENDS_append_class-target = " protobuf-native" PV .= "+git${SRCPV}" -SRCREV = "106ffc04be1abf3ff3399f54ccf149815b287dd9" -SRC_URI = "git://github.com/google/protobuf.git;branch=3.5.x \ +SRCREV = "ce044817c7ba0aea27c3fd8e496635d94d20a755" + +SRC_URI = "git://github.com/google/protobuf.git;branch=3.6.x \ file://run-ptest \ + file://0001-protobuf-fix-configure-error.patch \ " - S = "${WORKDIR}/git" inherit autotools-brokensep pkgconfig ptest@@ -82,3 +83,8 @@ RDEPENDS_${PN}-ptest = "bash python-protobuf" MIPS_INSTRUCTION_SET = "mips" BBCLASSEXTEND = "native nativesdk" + +LDFLAGS_append_arm = " -latomic" +LDFLAGS_append_mips = " -latomic" +LDFLAGS_append_powerpc = " -latomic" +LDFLAGS_append_mipsel = " -latomic" --2.7.4
Quoted 5 lines
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
BRsSandy(Li Changqing)
+861084778653
Signature · 4 lines
BRs Sandy(Li Changqing) +861084778653