Giter Club home page Giter Club logo

Comments (4)

0xdarkfloyd avatar 0xdarkfloyd commented on May 16, 2024

hacker@ubuntu:~/vxsig$ bazel build -c opt //vxsig:vxsig --verbose_failures
INFO: Analyzed target //vxsig:vxsig (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/hacker/.cache/bazel/bazel_hacker/2d6676569272affd55cecfcb749b2caa/external/com_google_binexport/BUILD.bazel:100:11: C++ compilation of rule '@com_google_binexport//:filesystem' failed (Exit 1): gcc failed: error executing command
(cd /home/hacker/.cache/bazel/bazel_hacker/2d6676569272affd55cecfcb749b2caa/sandbox/linux-sandbox/2/execroot/com_google_vxsig &&
exec env -
PATH=/home/hacker/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/proc/self/cwd
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt/bin/external/com_google_binexport/objs/filesystem/filesystem.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_binexport/objs/filesystem/filesystem.o' -D__CLANG_SUPPORT_DYN_ANNOTATION -iquote external/com_google_binexport -iquote bazel-out/k8-opt/bin/external/com_google_binexport -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -iquote external/com_google_protobuf -iquote bazel-out/k8-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/k8-opt/bin/external/zlib -Ibazel-out/k8-opt/bin/external/com_google_binexport/virtual_includes/filesystem -Ibazel-out/k8-opt/bin/external/com_google_binexport/virtual_includes/status -Ibazel-out/k8-opt/bin/external/com_google_binexport/virtual_includes/statusor -Ibazel-out/k8-opt/bin/external/com_google_binexport/virtual_includes/types -isystem external/com_google_binexport/stubs -isystem bazel-out/k8-opt/bin/external/com_google_binexport/stubs -isystem external/com_google_protobuf/src -isystem bazel-out/k8-opt/bin/external/com_google_protobuf/src -isystem external/zlib/zlib/include -isystem bazel-out/k8-opt/bin/external/zlib/zlib/include '-std=c++17' -Wno-narrowing -Wno-sign-compare -fexceptions -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE="redacted"' '-D__TIMESTAMP="redacted"' '-D__TIME
="redacted"' -c external/com_google_binexport/util/filesystem.cc -o bazel-out/k8-opt/bin/external/com_google_binexport/_objs/filesystem/filesystem.o)
Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox gcc failed: error executing command
(cd /home/hacker/.cache/bazel/bazel_hacker/2d6676569272affd55cecfcb749b2caa/sandbox/linux-sandbox/2/execroot/com_google_vxsig &&
exec env -
PATH=/home/hacker/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/proc/self/cwd
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt/bin/external/com_google_binexport/objs/filesystem/filesystem.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_binexport/objs/filesystem/filesystem.o' -D__CLANG_SUPPORT_DYN_ANNOTATION -iquote external/com_google_binexport -iquote bazel-out/k8-opt/bin/external/com_google_binexport -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -iquote external/com_google_protobuf -iquote bazel-out/k8-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/k8-opt/bin/external/zlib -Ibazel-out/k8-opt/bin/external/com_google_binexport/virtual_includes/filesystem -Ibazel-out/k8-opt/bin/external/com_google_binexport/virtual_includes/status -Ibazel-out/k8-opt/bin/external/com_google_binexport/virtual_includes/statusor -Ibazel-out/k8-opt/bin/external/com_google_binexport/virtual_includes/types -isystem external/com_google_binexport/stubs -isystem bazel-out/k8-opt/bin/external/com_google_binexport/stubs -isystem external/com_google_protobuf/src -isystem bazel-out/k8-opt/bin/external/com_google_protobuf/src -isystem external/zlib/zlib/include -isystem bazel-out/k8-opt/bin/external/zlib/zlib/include '-std=c++17' -Wno-narrowing -Wno-sign-compare -fexceptions -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE="redacted"' '-D__TIMESTAMP="redacted"' '-D__TIME
_="redacted"' -c external/com_google_binexport/util/filesystem.cc -o bazel-out/k8-opt/bin/external/com_google_binexport/_objs/filesystem/filesystem.o)
Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox
external/com_google_binexport/util/filesystem.cc:39:10: fatal error: filesystem: No such file or directory
#include
^~~~~~~~~~~~
compilation terminated.
Target //vxsig:vxsig failed to build
INFO: Elapsed time: 0.518s, Critical Path: 0.16s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

from vxsig.

0xdarkfloyd avatar 0xdarkfloyd commented on May 16, 2024

It can't run in Ubuntu 18 but it is good on Debian 10

from vxsig.

0xdarkfloyd avatar 0xdarkfloyd commented on May 16, 2024

When installing bazel, it installs gcc-7, however, the code can be compiled by gcc-8 or gcc-9. Need to install gcc-8 and gcc-9

from vxsig.

cblichmann avatar cblichmann commented on May 16, 2024

We should upgrade to a later snapshot of BinExport that tries to avoid using C++17's filesystem header.

from vxsig.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.