I have tried to install sandboxed-api on Fedora 29 but facing some issues during the step:
Linux localhost.localdomain 4.20.16-200.fc29.x86_64 #1 SMP Thu Mar 14 15:10:22 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[bsdboy@localhost sandboxed-api]$ bazel build ...
DEBUG: Rule 'com_google_absl' modified arguments {"sha256": "a983d9ceedd5eb349a300934e36195f2f7195ce04fc604c96e7e8b0e7d7197b9"}
DEBUG: Rule 'com_google_absl_py' modified arguments {"sha256": "64646b57f3e61e939cfdbe61155b97f21d42c1944ed5f271da4a93b174028c5c"}
DEBUG: Rule 'com_google_benchmark' modified arguments {"sha256": "a61d5ef87ed4ff3cd7a3c2168f17d0ce9a48a56ce95e0f620dbe1fef94a6f048"}
INFO: Analysed 172 targets (0 packages loaded, 0 targets configured).
INFO: Found 172 targets...
INFO: From Compiling sandboxed_api/var_abstract.cc:
sandboxed_api/var_abstract.cc: In member function 'virtual sapi::Status sapi::v::Var::TransferToSandboxee(sapi::RPCChannel*, pid_t)':
sandboxed_api/var_abstract.cc:88:11: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
if (ret != GetSize()) {
~~~~^~~~~~~~~~~~
sandboxed_api/var_abstract.cc: In member function 'virtual sapi::Status sapi::v::Var::TransferFromSandboxee(sapi::RPCChannel*, pid_t)':
sandboxed_api/var_abstract.cc:123:11: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
if (ret != GetSize()) {
~~~~^~~~~~~~~~~~
INFO: From Compiling sandboxed_api/sandbox2/mounts.cc:
sandboxed_api/sandbox2/mounts.cc: In member function 'sapi::Status sandbox2::Mounts::AddMappingsForBinary(const string&, absl::string_view)':
sandboxed_api/sandbox2/mounts.cc:303:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
for (int hw_cap = 0; hw_cap < hw_cap_paths.size(); ++hw_cap) {
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
ERROR: /home/bsdboy/sandox/sandboxed-api/sandboxed_api/sandbox2/testcases/BUILD.bazel:124:1: Linking of rule '//sandboxed_api/sandbox2/testcases:personality' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -o bazel-out/k8-fastbuild/bin/sandboxed_api/sandbox2/testcases/personality -Wl,--whole-archive -Wl,-lpthread -Wl,--no-whole-archive -Wl,-S '-fuse-ld=gold' -Wl,-no-as-needed ... (remaining 5 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
/usr/bin/ld.gold: error: cannot find -lc
/usr/bin/ld.gold: error: cannot find -lpthread
/usr/bin/ld.gold: error: cannot find -lstdc++
/usr/bin/ld.gold: error: cannot find -lm
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crt1.o:function _start: error: undefined reference to '__libc_csu_fini'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crt1.o:function _start: error: undefined reference to '__libc_csu_init'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crt1.o:function _start: error: undefined reference to '__libc_start_main'
bazel-out/k8-fastbuild/bin/sandboxed_api/sandbox2/testcases/_objs/personality/personality.pic.o:personality.cc:function main: error: undefined reference to 'syscall'
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 11.190s, Critical Path: 4.83s
INFO: 55 processes: 55 linux-sandbox.
FAILED: Build did NOT complete successfully
[bsdboy@localhost sandboxed-api]$ bazel build ...
DEBUG: Rule 'com_google_absl' modified arguments {"sha256": "a983d9ceedd5eb349a300934e36195f2f7195ce04fc604c96e7e8b0e7d7197b9"}
DEBUG: Rule 'com_google_absl_py' modified arguments {"sha256": "64646b57f3e61e939cfdbe61155b97f21d42c1944ed5f271da4a93b174028c5c"}
DEBUG: Rule 'com_google_benchmark' modified arguments {"sha256": "a61d5ef87ed4ff3cd7a3c2168f17d0ce9a48a56ce95e0f620dbe1fef94a6f048"}
INFO: Analysed 172 targets (0 packages loaded, 0 targets configured).
INFO: Found 172 targets...
ERROR: /home/bsdboy/sandox/sandboxed-api/sandboxed_api/sandbox2/testcases/BUILD.bazel:124:1: Linking of rule '//sandboxed_api/sandbox2/testcases:personality' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -o bazel-out/k8-fastbuild/bin/sandboxed_api/sandbox2/testcases/personality -Wl,--whole-archive -Wl,-lpthread -Wl,--no-whole-archive -Wl,-S '-fuse-ld=gold' -Wl,-no-as-needed ... (remaining 5 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
/usr/bin/ld.gold: error: cannot find -lc
/usr/bin/ld.gold: error: cannot find -lpthread
/usr/bin/ld.gold: error: cannot find -lstdc++
/usr/bin/ld.gold: error: cannot find -lm
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crt1.o:function _start: error: undefined reference to '__libc_csu_fini'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crt1.o:function _start: error: undefined reference to '__libc_csu_init'
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crt1.o:function _start: error: undefined reference to '__libc_start_main'
bazel-out/k8-fastbuild/bin/sandboxed_api/sandbox2/testcases/_objs/personality/personality.pic.o:personality.cc:function main: error: undefined reference to 'syscall'
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 0.467s, Critical Path: 0.12s
INFO: 3 processes: 3 linux-sandbox.
FAILED: Build did NOT complete successfully
[bsdboy@localhost sandboxed-api]$ bazel build ...
DEBUG: Rule 'com_google_absl' modified arguments {"sha256": "a983d9ceedd5eb349a300934e36195f2f7195ce04fc604c96e7e8b0e7d7197b9"}
DEBUG: Rule 'com_google_absl_py' modified arguments {"sha256": "64646b57f3e61e939cfdbe61155b97f21d42c1944ed5f271da4a93b174028c5c"}
DEBUG: Rule 'com_google_benchmark' modified arguments {"sha256": "a61d5ef87ed4ff3cd7a3c2168f17d0ce9a48a56ce95e0f620dbe1fef94a6f048"}
INFO: Analysed 172 targets (0 packages loaded, 0 targets configured).
INFO: Found 172 targets...
ERROR: /home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/BUILD:59:1: Generating sandboxed_api/tools/generator2/tests_sapi_generator.sapi.h from 2 header files. failed (Exit 1) sapi_generator failed: error executing command bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator --sapi_name Tests --sapi_out bazel-out/k8-fastbuild/genfiles/sandboxed_api/tools/generator2/tests_sapi_generator.sapi.h --sapi_embed_dir ... (remaining 16 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
Traceback (most recent call last):
File "/home/bsdboy/.cache/bazel/_bazel_bsdboy/2e0b7339f8ac66f0337dc1c48c5b1bc3/sandbox/linux-sandbox/2/execroot/com_google_sandboxed_api/bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator.runfiles/com_google_sandboxed_api/sandboxed_api/tools/generator2/sapi_generator.py", line 72, in <module>
app.run(main)
File "/home/bsdboy/.cache/bazel/_bazel_bsdboy/2e0b7339f8ac66f0337dc1c48c5b1bc3/sandbox/linux-sandbox/2/execroot/com_google_sandboxed_api/bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator.runfiles/com_google_absl_py/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/bsdboy/.cache/bazel/_bazel_bsdboy/2e0b7339f8ac66f0337dc1c48c5b1bc3/sandbox/linux-sandbox/2/execroot/com_google_sandboxed_api/bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator.runfiles/com_google_absl_py/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "/home/bsdboy/.cache/bazel/_bazel_bsdboy/2e0b7339f8ac66f0337dc1c48c5b1bc3/sandbox/linux-sandbox/2/execroot/com_google_sandboxed_api/bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator.runfiles/com_google_sandboxed_api/sandboxed_api/tools/generator2/sapi_generator.py", line 62, in main
FLAGS.sapi_embed_name)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 688, in generate
related_types = self._get_related_types(function_names)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 746, in _get_related_types
fn_related_types = f.get_related_types()
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 525, in get_related_types
result.update(a.get_related_types(processed))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 234, in get_related_types
return self._get_related_types_of_typedef(result)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 273, in _get_related_types_of_typedef
result.update(t.get_related_types(result, skip_child))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 243, in get_related_types
return self._get_related_types_of_elaborated(result, skip_self)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 287, in _get_related_types_of_elaborated
result.update(Type(self._tu, f.type).get_related_types(result))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 234, in get_related_types
return self._get_related_types_of_typedef(result)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 273, in _get_related_types_of_typedef
result.update(t.get_related_types(result, skip_child))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 243, in get_related_types
return self._get_related_types_of_elaborated(result, skip_self)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 287, in _get_related_types_of_elaborated
result.update(Type(self._tu, f.type).get_related_types(result))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 240, in get_related_types
return self.get_pointee().get_related_types(result, skip_self)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 255, in get_related_types
raise ValueError('Unkhandled kind: {}'.format(self._clang_type.kind))
ValueError: Unkhandled kind: TypeKind.UNEXPOSED
INFO: Elapsed time: 0.689s, Critical Path: 0.33s
INFO: 4 processes: 4 linux-sandbox.
FAILED: Build did NOT complete successfully
[bsdboy@localhost sandboxed-api]$ bazel build ...
DEBUG: Rule 'com_google_absl' modified arguments {"sha256": "a983d9ceedd5eb349a300934e36195f2f7195ce04fc604c96e7e8b0e7d7197b9"}
DEBUG: Rule 'com_google_absl_py' modified arguments {"sha256": "64646b57f3e61e939cfdbe61155b97f21d42c1944ed5f271da4a93b174028c5c"}
DEBUG: Rule 'com_google_benchmark' modified arguments {"sha256": "a61d5ef87ed4ff3cd7a3c2168f17d0ce9a48a56ce95e0f620dbe1fef94a6f048"}
INFO: Analysed 172 targets (0 packages loaded, 0 targets configured).
INFO: Found 172 targets...
ERROR: /home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/BUILD:59:1: Generating sandboxed_api/tools/generator2/tests_sapi_generator.sapi.h from 2 header files. failed (Exit 1) sapi_generator failed: error executing command bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator --sapi_name Tests --sapi_out bazel-out/k8-fastbuild/genfiles/sandboxed_api/tools/generator2/tests_sapi_generator.sapi.h --sapi_embed_dir ... (remaining 16 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
Traceback (most recent call last):
File "/home/bsdboy/.cache/bazel/_bazel_bsdboy/2e0b7339f8ac66f0337dc1c48c5b1bc3/sandbox/linux-sandbox/1/execroot/com_google_sandboxed_api/bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator.runfiles/com_google_sandboxed_api/sandboxed_api/tools/generator2/sapi_generator.py", line 72, in <module>
app.run(main)
File "/home/bsdboy/.cache/bazel/_bazel_bsdboy/2e0b7339f8ac66f0337dc1c48c5b1bc3/sandbox/linux-sandbox/1/execroot/com_google_sandboxed_api/bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator.runfiles/com_google_absl_py/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/bsdboy/.cache/bazel/_bazel_bsdboy/2e0b7339f8ac66f0337dc1c48c5b1bc3/sandbox/linux-sandbox/1/execroot/com_google_sandboxed_api/bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator.runfiles/com_google_absl_py/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "/home/bsdboy/.cache/bazel/_bazel_bsdboy/2e0b7339f8ac66f0337dc1c48c5b1bc3/sandbox/linux-sandbox/1/execroot/com_google_sandboxed_api/bazel-out/host/bin/sandboxed_api/tools/generator2/sapi_generator.runfiles/com_google_sandboxed_api/sandboxed_api/tools/generator2/sapi_generator.py", line 62, in main
FLAGS.sapi_embed_name)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 688, in generate
related_types = self._get_related_types(function_names)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 746, in _get_related_types
fn_related_types = f.get_related_types()
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 525, in get_related_types
result.update(a.get_related_types(processed))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 234, in get_related_types
return self._get_related_types_of_typedef(result)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 273, in _get_related_types_of_typedef
result.update(t.get_related_types(result, skip_child))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 243, in get_related_types
return self._get_related_types_of_elaborated(result, skip_self)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 287, in _get_related_types_of_elaborated
result.update(Type(self._tu, f.type).get_related_types(result))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 234, in get_related_types
return self._get_related_types_of_typedef(result)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 273, in _get_related_types_of_typedef
result.update(t.get_related_types(result, skip_child))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 243, in get_related_types
return self._get_related_types_of_elaborated(result, skip_self)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 287, in _get_related_types_of_elaborated
result.update(Type(self._tu, f.type).get_related_types(result))
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 240, in get_related_types
return self.get_pointee().get_related_types(result, skip_self)
File "/home/bsdboy/sandox/sandboxed-api/sandboxed_api/tools/generator2/code.py", line 255, in get_related_types
raise ValueError('Unkhandled kind: {}'.format(self._clang_type.kind))
ValueError: Unkhandled kind: TypeKind.UNEXPOSED
INFO: Elapsed time: 0.716s, Critical Path: 0.36s
INFO: 8 processes: 8 linux-sandbox.
FAILED: Build did NOT complete successfully
Please let me know if I forgot to do anything.