You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Steps to reproduce the behavior: ./vcpkg install grpc
Failure logs
The following packages will be built and installed:
grpc[core]:x64-linux
Starting package 1/1: grpc:x64-linux
Building package grpc[core]:x64-linux...
-- Using cached /home/hammer/code/vcpkg/downloads/grpc-grpc-v1.23.1.tar.gz
-- Using source at /home/hammer/code/vcpkg/buildtrees/grpc/src/v1.23.1-e3bc36af44
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
Command failed: /home/hammer/code/vcpkg/downloads/tools/cmake-3.14.0-linux/cmake-3.14.0-Linux-x86_64/bin/cmake --build . --config Debug --target install -- -v
Working Directory: /home/hammer/code/vcpkg/buildtrees/grpc/x64-linux-dbg
See logs for more information:
/home/hammer/code/vcpkg/buildtrees/grpc/install-x64-linux-dbg-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:96 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
ports/grpc/portfile.cmake:76 (vcpkg_install_cmake)
scripts/ports.cmake:94 (include)
Error: Building package grpc:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: grpc:x64-linux
Vcpkg version: 2019.09.12-unknownhash
FAILED: CMakeFiles/gpr.dir/src/core/lib/gpr/log_linux.cc.o
/usr/bin/c++ -DPB_FIELD_32BIT -I/home/hammer/code/vcpkg/buildtrees/grpc/src/v1.23.1-e3bc36af44/include -I/home/hammer/code/vcpkg/buildtrees/grpc/src/v1.23.1-e3bc36af44 -I/home/hammer/code/vcpkg/installed/x64-linux/include -I/home/hammer/code/vcpkg/buildtrees/grpc/src/v1.23.1-e3bc36af44/third_party/address_sorting/include -I/home/hammer/code/vcpkg/buildtrees/grpc/src/v1.23.1-e3bc36af44/third_party/nanopb -fPIC -std=c++11 -g -fPIC -fno-exceptions -fno-rtti -MD -MT CMakeFiles/gpr.dir/src/core/lib/gpr/log_linux.cc.o -MF CMakeFiles/gpr.dir/src/core/lib/gpr/log_linux.cc.o.d -o CMakeFiles/gpr.dir/src/core/lib/gpr/log_linux.cc.o -c /home/hammer/code/vcpkg/buildtrees/grpc/src/v1.23.1-e3bc36af44/src/core/lib/gpr/log_linux.cc
/home/hammer/code/vcpkg/buildtrees/grpc/src/v1.23.1-e3bc36af44/src/core/lib/gpr/log_linux.cc:43:13: error: ambiguating new declaration of ‘long int gettid()’
43 | static long gettid(void) { return syscall(__NR_gettid); }
| ^~~~~~
In file included from /usr/include/unistd.h:1170,
from /home/hammer/code/vcpkg/buildtrees/grpc/src/v1.23.1-e3bc36af44/src/core/lib/gpr/log_linux.cc:41:
/usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note: old declaration ‘__pid_t gettid()’
34 | extern __pid_t gettid (void) __THROW;
| ^~~~~~
Additional context
was able to build other packages like protobuf
The text was updated successfully, but these errors were encountered:
Hi @pathammer, thanks for reporting this issue.
It seems the function gettid dumplicate with system function.
Can you unzip this patch , move it to VCPKG_PATH/ports/grpc/ and add line: fix-duplicate-gettid.patch
to VCPKG_PATH/ports/grpc/portfile.cmake line 27
then try to rebuild grpc?
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install grpc
Failure logs
Additional context
was able to build other packages like protobuf
The text was updated successfully, but these errors were encountered: