Skip to content

dev-libs/protobuf-c: doesn't compile with lto - #337

Closed
Szpadel wants to merge 1 commit into
InBetweenNames:masterfrom
Szpadel:patch-1
Closed

dev-libs/protobuf-c: doesn't compile with lto#337
Szpadel wants to merge 1 commit into
InBetweenNames:masterfrom
Szpadel:patch-1

Conversation

@Szpadel

@Szpadel Szpadel commented May 30, 2019

Copy link
Copy Markdown

Build error:
It looks like it isn't passing some runtime checks after build

/usr/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I/var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1 --c_out=. /var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1/t/test-proto3.proto                                                  
/usr/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I/var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1 --c_out=. /var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1/t/issue220/issue220.proto                                            
/usr/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I/var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1 --c_out=. /var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1/t/issue220/issue220.proto                                            
terminate called after throwing an instance of 'std::system_error'                                                                                                                                                                                                               
  what():  Unknown error -1                                                                                                                                                                                                                                                      
/usr/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I/var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1 --c_out=. /var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1/t/issue251/issue251.proto                                            
/usr/bin/protoc --plugin=protoc-gen-c=./protoc-c/protoc-gen-c -I/var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1 --c_out=. /var/tmp/portage/dev-libs/protobuf-c-1.3.1/work/protobuf-c-1.3.1/t/issue251/issue251.proto                                            
[libprotobuf WARNING ../../protobuf-3.7.1/src/google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/issue220/issue220.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)      
[libprotobuf WARNING ../../protobuf-3.7.1/src/google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/issue220/issue220.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)      
[libprotobuf WARNING ../../protobuf-3.7.1/src/google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/issue251/issue251.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                                                                                                                                                                                                                                                      
[libprotobuf WARNING ../../protobuf-3.7.1/src/google/protobuf/compiler/parser.cc:564] No syntax specified for the proto file: t/issue251/issue251.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                                                                                                                                                                                                                                                      
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                                                                                                                                                                                                                                                      
--c_out: protoc-gen-c: Plugin killed by signal 6.                                                                                                                                                                                                                                
make: *** [Makefile:2401: t/issue251/issue251.pb-c.h] Error 1                                                                                                                                                                                                                    
make: *** Waiting for unfinished jobs....                                                                                                                                                                                                                                        
--c_out: protoc-gen-c: Plugin killed by signal 6.                                                                                                                                                                                                                                
make: *** [Makefile:2397: t/test-proto3.pb-c.c] Error 1                                                                                                                                                                                                                          
--c_out: protoc-gen-c: Plugin killed by signal 6.                                                                                                                                                                                                                                
make: *** [Makefile:2397: t/test-proto3.pb-c.h] Error 1                                                                                                                                                                                                                          
--c_out: protoc-gen-c: Plugin killed by signal 6.                                                                                                                                                                                                                                
make: *** [Makefile:2399: t/issue220/issue220.pb-c.c] Error 1
--c_out: protoc-gen-c: Plugin killed by signal 6.
make: *** [Makefile:2401: t/issue251/issue251.pb-c.c] Error 1
--c_out: protoc-gen-c: Plugin killed by signal 6.
make: *** [Makefile:2399: t/issue220/issue220.pb-c.h] Error 1

@InBetweenNames

Copy link
Copy Markdown
Owner

Strange, it seems to be passing on my system. I emerged with USE=test -- is that sufficient to run these tests?

@Szpadel

Szpadel commented Jun 1, 2019

Copy link
Copy Markdown
Author

Strange, I didn't enabled any tests, it looks like those are enabled by default in make. I'll check later what exact use flags I have there

@Szpadel

Szpadel commented Jun 3, 2019

Copy link
Copy Markdown
Author

OK, i don't have any extra flags set for that, and this error occurs in emerge -e so it shouldn't be caused by any dependency.
Tested it on other system with different cpu and experienced the same issue.

@telans telans mentioned this pull request Jul 17, 2020
@InBetweenNames

Copy link
Copy Markdown
Owner

Still can't reproduce -- comment here if this should be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants