All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk
@ 2021-08-17  1:36 Sinan Kaya
  2021-08-17  1:36 ` [meta-mingw] [PATCH 2/3] protobuf-c: static link " Sinan Kaya
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sinan Kaya @ 2021-08-17  1:36 UTC (permalink / raw)
  To: yocto; +Cc: jpewhacker, Sinan Kaya

Dynamically linked protoc.exe is failing as follows:

[libprotobuf ERROR google/protobuf/descriptor_database.cc:641]
File already exists in database: google/protobuf/descriptor.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1371] CHECK failed:
GeneratedDatabase()->Add(encoded_file_descriptor, size):

Switch to static linkage per upstream recommendation.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
 recipes-devtools/protobuf/protobuf_%.bbappend | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 recipes-devtools/protobuf/protobuf_%.bbappend

diff --git a/recipes-devtools/protobuf/protobuf_%.bbappend b/recipes-devtools/protobuf/protobuf_%.bbappend
new file mode 100644
index 0000000..7e62ff6
--- /dev/null
+++ b/recipes-devtools/protobuf/protobuf_%.bbappend
@@ -0,0 +1 @@
+EXTRA_OECONF:append:class-nativesdk = " --disable-shared"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-mingw] [PATCH 2/3] protobuf-c: static link when generating sdk
  2021-08-17  1:36 [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk Sinan Kaya
@ 2021-08-17  1:36 ` Sinan Kaya
  2021-08-17  1:36 ` [meta-mingw] [PATCH 3/3] grpc: static link tools when generating SDK Sinan Kaya
  2021-08-17  3:26 ` [yocto] [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk Khem Raj
  2 siblings, 0 replies; 6+ messages in thread
From: Sinan Kaya @ 2021-08-17  1:36 UTC (permalink / raw)
  To: yocto; +Cc: jpewhacker, Sinan Kaya

[libprotobuf ERROR google/protobuf/descriptor_database.cc:641]
File already exists in database: google/protobuf/descriptor.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1371] CHECK failed:
GeneratedDatabase()->Add(encoded_file_descriptor, size):

Switch to static linkage per upstream recommendation.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
 recipes-devtools/protobuf-c/protobuf-c_%.bbappend | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 recipes-devtools/protobuf-c/protobuf-c_%.bbappend

diff --git a/recipes-devtools/protobuf-c/protobuf-c_%.bbappend b/recipes-devtools/protobuf-c/protobuf-c_%.bbappend
new file mode 100644
index 0000000..7e62ff6
--- /dev/null
+++ b/recipes-devtools/protobuf-c/protobuf-c_%.bbappend
@@ -0,0 +1 @@
+EXTRA_OECONF:append:class-nativesdk = " --disable-shared"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-mingw] [PATCH 3/3] grpc: static link tools when generating SDK
  2021-08-17  1:36 [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk Sinan Kaya
  2021-08-17  1:36 ` [meta-mingw] [PATCH 2/3] protobuf-c: static link " Sinan Kaya
@ 2021-08-17  1:36 ` Sinan Kaya
  2021-08-17  3:26 ` [yocto] [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk Khem Raj
  2 siblings, 0 replies; 6+ messages in thread
From: Sinan Kaya @ 2021-08-17  1:36 UTC (permalink / raw)
  To: yocto; +Cc: jpewhacker, Sinan Kaya

[libprotobuf ERROR google/protobuf/descriptor_database.cc:641]
File already exists in database: google/protobuf/descriptor.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1371] CHECK failed:
GeneratedDatabase()->Add(encoded_file_descriptor, size):

Switch to static linkage per upstream recommendation.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
 recipes-devtools/grpc/grpc_%.bbappend | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 recipes-devtools/grpc/grpc_%.bbappend

diff --git a/recipes-devtools/grpc/grpc_%.bbappend b/recipes-devtools/grpc/grpc_%.bbappend
new file mode 100644
index 0000000..cbccf74
--- /dev/null
+++ b/recipes-devtools/grpc/grpc_%.bbappend
@@ -0,0 +1,2 @@
+EXTRA_OECMAKE:remove:class-nativesdk = "-DBUILD_SHARED_LIBS=ON"
+EXTRA_OECMAKE:append:class-nativesdk = " -DBUILD_SHARED_LIBS=OFF"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [yocto] [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk
  2021-08-17  1:36 [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk Sinan Kaya
  2021-08-17  1:36 ` [meta-mingw] [PATCH 2/3] protobuf-c: static link " Sinan Kaya
  2021-08-17  1:36 ` [meta-mingw] [PATCH 3/3] grpc: static link tools when generating SDK Sinan Kaya
@ 2021-08-17  3:26 ` Khem Raj
  2021-08-17 11:03   ` Sinan Kaya
  2 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2021-08-17  3:26 UTC (permalink / raw)
  To: Sinan Kaya; +Cc: jpewhacker, yocto

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

On Mon, Aug 16, 2021 at 6:36 PM Sinan Kaya <okaya@kernel.org> wrote:

> Dynamically linked protoc.exe is failing as follows:
>
> [libprotobuf ERROR google/protobuf/descriptor_database.cc:641]
> File already exists in database: google/protobuf/descriptor.proto
> [libprotobuf FATAL google/protobuf/descriptor.cc:1371] CHECK failed:
> GeneratedDatabase()->Add(encoded_file_descriptor, size):
>
> Switch to static linkage per upstream recommendation.
>
> Signed-off-by: Sinan Kaya <okaya@kernel.org>
> ---
>  recipes-devtools/protobuf/protobuf_%.bbappend | 1 +
>  1 file changed, 1 insertion(+)
>  create mode 100644 recipes-devtools/protobuf/protobuf_%.bbappend
>
> diff --git a/recipes-devtools/protobuf/protobuf_%.bbappend
> b/recipes-devtools/protobuf/protobuf_%.bbappend
> new file mode 100644
> index 0000000..7e62ff6
> --- /dev/null
> +++ b/recipes-devtools/protobuf/protobuf_%.bbappend
> @@ -0,0 +1 @@
> +EXTRA_OECONF:append:class-nativesdk = " --disable-shared"


This is not an inert change can it use some mingw specific override as well

>
> --
> 2.17.1
>
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 1794 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk
  2021-08-17  3:26 ` [yocto] [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk Khem Raj
@ 2021-08-17 11:03   ` Sinan Kaya
  2021-08-17 13:06     ` Joshua Watt
  0 siblings, 1 reply; 6+ messages in thread
From: Sinan Kaya @ 2021-08-17 11:03 UTC (permalink / raw)
  To: Khem Raj; +Cc: jpewhacker, yocto

On 8/17/2021 6:26 AM, Khem Raj wrote:
>     +EXTRA_OECONF:append:class-nativesdk = " --disable-shared"
> 
> 
> This is not an inert change can it use some mingw specific override as well 

Change is targeting meta-mingw repository. I looked at other files
in the repo to see what the pattern is.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [yocto] [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk
  2021-08-17 11:03   ` Sinan Kaya
@ 2021-08-17 13:06     ` Joshua Watt
  0 siblings, 0 replies; 6+ messages in thread
From: Joshua Watt @ 2021-08-17 13:06 UTC (permalink / raw)
  To: Sinan Kaya, Khem Raj; +Cc: yocto


On 8/17/21 6:03 AM, Sinan Kaya wrote:
> On 8/17/2021 6:26 AM, Khem Raj wrote:
>>      +EXTRA_OECONF:append:class-nativesdk = " --disable-shared"
>>
>>
>> This is not an inert change can it use some mingw specific override as well
> Change is targeting meta-mingw repository. I looked at other files
> in the repo to see what the pattern is.

All of the bbappends in meta-mingw should be using the :mingw32 override 
(or sdkmingw32 if it specific to just the SDK). If you found an example 
in the current code where that is not the case, it needs to be fixed. 
Either way, you need to use that override in your patches.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-17 13:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17  1:36 [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk Sinan Kaya
2021-08-17  1:36 ` [meta-mingw] [PATCH 2/3] protobuf-c: static link " Sinan Kaya
2021-08-17  1:36 ` [meta-mingw] [PATCH 3/3] grpc: static link tools when generating SDK Sinan Kaya
2021-08-17  3:26 ` [yocto] [meta-mingw] [PATCH 1/3] protobuf: static link tools when generating sdk Khem Raj
2021-08-17 11:03   ` Sinan Kaya
2021-08-17 13:06     ` Joshua Watt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.