-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
gcc + USE_UNWIND=0 broken (cant run protoc) #7114
Labels
alternative build
build
minor
Priority: minor
st-declined
The feature will not be implemented. Check the comments.
Comments
|
It seems like the reason is pthread is not linked into protoc directly, and That dirty hack fixes the gcc-9 build: diff --git a/cmake/protoc.cmake b/cmake/protoc.cmake
index 5777b16..49aa106 100644
--- a/cmake/protoc.cmake
+++ b/cmake/protoc.cmake
@@ -3,5 +3,5 @@ set(protoc_files
)
add_executable(protoc ${protoc_files})
-target_link_libraries(protoc libprotobuf libprotoc)
+target_link_libraries(protoc libprotobuf libprotoc pthread)
add_executable(protobuf::protoc ALIAS protoc) Most probably related to: |
filimonov
added a commit
to filimonov/protobuf
that referenced
this issue
Nov 20, 2019
to workaround ClickHouse/ClickHouse#7114
filimonov
added a commit
to filimonov/ClickHouse
that referenced
this issue
Nov 20, 2019
vitlibar
pushed a commit
to ClickHouse/protobuf
that referenced
this issue
Sep 23, 2020
vitlibar
pushed a commit
to ClickHouse/protobuf
that referenced
this issue
Nov 12, 2020
qoega
pushed a commit
to ClickHouse/protobuf
that referenced
this issue
Jul 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
alternative build
build
minor
Priority: minor
st-declined
The feature will not be implemented. Check the comments.
Problem:
[2206/3808] Generating orc_proto.pb.h, orc_proto.pb.cc
FAILED: contrib/arrow-cmake/orc_proto.pb.h contrib/arrow-cmake/orc_proto.pb.cc
cd /build/clickhouse-19.16.1/obj-x86_64-linux-gnu/contrib/arrow-cmake && /build/clickhouse-19.16.1/obj-x86_64-linux-gnu/contrib/protobuf/cmake/protoc -I /build/clickhouse-19.16.1/contrib/orc/c++/../proto --cpp_out="/build/clickhouse-19.16.1/obj-x86_64-linux-gnu/contrib/arrow-cmake" /build/clickhouse-19.16.1/contrib/orc/c++/../proto/orc_proto.proto
terminate called after throwing an instance of 'std::system_error'
what(): Unknown error -1
Aborted
Reproduce:
env CMAKE_FLAGS="-DUSE_UNWIND=0" ./release
The text was updated successfully, but these errors were encountered: