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
I am trying to build glog on 64 bit Ubuntu 16.04. I am getting this error
ERROR: /home/chetgnegy/.cache/bazel/_bazel_chetgnegy/703b9800778fef35edeb624f262556cf/external/glog/BUILD:6:1: C++ compilation of rule '@glog//:glog' failed: linux-sandbox failed: error executing command /home/chetgnegy/.cache/bazel/_bazel_chetgnegy/703b9800778fef35edeb624f262556cf/execroot/Source/_bin/linux-sandbox ... (remaining 95 argument(s) skipped).
external/glog/src/utilities.cc:247:2: error: #error "Must define __NR_gettid for non-x86 platforms"
#error "Must define __NR_gettid for non-x86 platforms"
^
external/glog/src/utilities.cc: In function 'pid_t google::glog_internal_namespace_::GetTID()':
external/glog/src/utilities.cc:254:25: error: '__NR_gettid' was not declared in this scope
pid_t tid = syscall(__NR_gettid);
^
Target //ThirdParty/Google/GLog:GLog failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.443s, Critical Path: 0.35s
I am attempting to build with bazel using the BUILD file that was posted here: #61
I would expect that this symbol would get defined at some point, I believe it is in unistd.h. Does anyone know what might be wrong?
The text was updated successfully, but these errors were encountered:
I ran into the same problem, and for this particular one, I think it comes from sys/syscall.h. You need to specify "-DHAVE_SYS_SYSCALL_H" in order to let glog include the correct syscall.h in Ubuntu 16.04.
I am trying to build glog on 64 bit Ubuntu 16.04. I am getting this error
I am attempting to build with bazel using the BUILD file that was posted here:
#61
I would expect that this symbol would get defined at some point, I believe it is in unistd.h. Does anyone know what might be wrong?
The text was updated successfully, but these errors were encountered: