Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf-c: add ld flag #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

esuarezsantana
Copy link

This is a workaround as shown in the link to the error below.

protocolbuffers/protobuf#4958 (comment)

Error message:

...
/usr/x86_64-pc-linux-gnu/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I. --c_out=. ./t/test.proto
/usr/x86_64-pc-linux-gnu/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I. --c_out=. ./t/test.proto
/usr/x86_64-pc-linux-gnu/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I. --c_out=. ./t/test-full.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/test.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/test.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
[libprotobuf WARNING google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/test-full.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
--c_out: protoc-gen-c: Plugin killed by signal 6.
make: *** [Makefile:2395: t/test.pb-c.c] Error 1
make: *** Waiting for unfinished jobs....
--c_out: protoc-gen-c: Plugin killed by signal 6.
make: *** [Makefile:2395: t/test.pb-c.h] Error 1
--c_out: protoc-gen-c: Plugin killed by signal 6.
make: *** [Makefile:2401: t/test-full.pb-c.c] Error 1

Error:
  * In program cave --colour yes perform install --hooks --managed-output --output-exclusivity with-others =dev-libs/protobuf-c-1.3.2-r1:0::worr --destination installed --replacing =dev-libs/protobuf-c-1.3.2:0::installed --x-of-y 1 of 1:
  * When installing 'dev-libs/protobuf-c-1.3.2-r1:0::worr' replacing { 'dev-libs/protobuf-c-1.3.2:0::installed' }:
  * When running an ebuild command on 'dev-libs/protobuf-c-1.3.2-r1:0::worr':
  * Install failed for 'dev-libs/protobuf-c-1.3.2-r1:0::worr' (paludis::ActionFailedError)


!!! ERROR in dev-libs/protobuf-c-1.3.2-r1::worr:
!!! In /usr/x86_64-pc-linux-gnu/libexec/paludis/utils/exheres-0/emake at line 30
!!! emake returned error 2

!!! Call stack:
!!!    * paludis_die_or_error_func (/usr/x86_64-pc-linux-gnu/libexec/paludis/die_functions.bash:82)
!!!    * main (/usr/x86_64-pc-linux-gnu/libexec/paludis/utils/exheres-0/emake:30)

diefunc: making ebuild PID 381047 exit with error
die trap: exiting with error.

Failed install to / for dev-libs/protobuf-c-1.3.2-r1:0::worr replacing 1.3.2:0::installed

This is a workaround as shown in the link to the error below.

protocolbuffers/protobuf#4958 (comment)

Error message:
```
...
/usr/x86_64-pc-linux-gnu/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I. --c_out=. ./t/test.proto
/usr/x86_64-pc-linux-gnu/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I. --c_out=. ./t/test.proto
/usr/x86_64-pc-linux-gnu/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I. --c_out=. ./t/test-full.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/test.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/test.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
[libprotobuf WARNING google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/test-full.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
terminate called after throwing an instance of 'std::system_error'
  what():  Unknown error -1
--c_out: protoc-gen-c: Plugin killed by signal 6.
make: *** [Makefile:2395: t/test.pb-c.c] Error 1
make: *** Waiting for unfinished jobs....
--c_out: protoc-gen-c: Plugin killed by signal 6.
make: *** [Makefile:2395: t/test.pb-c.h] Error 1
--c_out: protoc-gen-c: Plugin killed by signal 6.
make: *** [Makefile:2401: t/test-full.pb-c.c] Error 1

Error:
  * In program cave --colour yes perform install --hooks --managed-output --output-exclusivity with-others =dev-libs/protobuf-c-1.3.2-r1:0::worr --destination installed --replacing =dev-libs/protobuf-c-1.3.2:0::installed --x-of-y 1 of 1:
  * When installing 'dev-libs/protobuf-c-1.3.2-r1:0::worr' replacing { 'dev-libs/protobuf-c-1.3.2:0::installed' }:
  * When running an ebuild command on 'dev-libs/protobuf-c-1.3.2-r1:0::worr':
  * Install failed for 'dev-libs/protobuf-c-1.3.2-r1:0::worr' (paludis::ActionFailedError)


!!! ERROR in dev-libs/protobuf-c-1.3.2-r1::worr:
!!! In /usr/x86_64-pc-linux-gnu/libexec/paludis/utils/exheres-0/emake at line 30
!!! emake returned error 2

!!! Call stack:
!!!    * paludis_die_or_error_func (/usr/x86_64-pc-linux-gnu/libexec/paludis/die_functions.bash:82)
!!!    * main (/usr/x86_64-pc-linux-gnu/libexec/paludis/utils/exheres-0/emake:30)

diefunc: making ebuild PID 381047 exit with error
die trap: exiting with error.

Failed install to / for dev-libs/protobuf-c-1.3.2-r1:0::worr replacing 1.3.2:0::installed
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant