Skip to content

Instantly share code, notes, and snippets.

@akors
Created April 20, 2016 08:42
Show Gist options
  • Save akors/16020dac060948e87c1d14a9794f12db to your computer and use it in GitHub Desktop.
Save akors/16020dac060948e87c1d14a9794f12db to your computer and use it in GitHub Desktop.
[alexander@desktop-fedora bazel]$ echo $PATH
/usr/lib/ccache:/usr/lib/ccache:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/alexander/.local/bin:/home/alexander/bin:/home/alexander/.local/bin:/home/alexander/bin
[alexander@desktop-fedora bazel]$ echo $LD_LIBRARY_PATH+
:/usr/local/cuda/lib64:/usr/local/cuda/lib64+
[alexander@desktop-fedora bazel]$ ./compile.sh
INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO: ./compile.sh compile /path/to/bazel
🍃 Building Bazel from scratch......
🍃 Building Bazel with Bazel.
WARNING: /home/alexander/source/bazel/src/main/native/BUILD:46:16: in includes attribute of cc_binary rule //src/main/native:libunix.so: '.' resolves to 'src/main/native' not in 'third_party'. This will be an error in the future.
WARNING: /home/alexander/source/bazel/src/main/protobuf/BUILD:36:1: in includes attribute of cc_library rule //src/main/protobuf:command_server_cc_proto: '.' resolves to 'src/main/protobuf' not in 'third_party'. This will be an error in the future. Since this rule was created by the macro 'cc_grpc_library', the error might have been caused by the macro implementation in /home/alexander/source/bazel/tools/build_rules/genproto.bzl:104:18.
INFO: Found 1 target...
ERROR: /home/alexander/source/bazel/src/main/tools/BUILD:18:1: undeclared inclusion(s) in rule '//src/main/tools:process-wrapper':
this rule is missing dependency declarations for the following files included by 'src/main/tools/process-wrapper.c':
'/usr/include/stdc-predef.h'
'/usr/include/err.h'
'/usr/include/features.h'
'/usr/include/sys/cdefs.h'
'/usr/include/bits/wordsize.h'
'/usr/include/gnu/stubs.h'
'/usr/include/gnu/stubs-64.h'
'/usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdarg.h'
'/usr/include/errno.h'
'/usr/include/bits/errno.h'
'/usr/include/linux/errno.h'
'/usr/include/asm/errno.h'
'/usr/include/asm-generic/errno.h'
'/usr/include/asm-generic/errno-base.h'
'/usr/include/signal.h'
'/usr/include/bits/sigset.h'
'/usr/include/bits/types.h'
'/usr/include/bits/typesizes.h'
'/usr/include/bits/signum.h'
'/usr/include/time.h'
'/usr/include/bits/siginfo.h'
'/usr/include/bits/sigaction.h'
'/usr/include/bits/sigcontext.h'
'/usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stddef.h'
'/usr/include/bits/sigstack.h'
'/usr/include/sys/ucontext.h'
'/usr/include/bits/pthreadtypes.h'
'/usr/include/bits/sigthread.h'
'/usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdbool.h'
'/usr/include/stdio.h'
'/usr/include/libio.h'
'/usr/include/_G_config.h'
'/usr/include/wchar.h'
'/usr/include/bits/stdio_lim.h'
'/usr/include/bits/sys_errlist.h'
'/usr/include/stdlib.h'
'/usr/include/bits/waitflags.h'
'/usr/include/bits/waitstatus.h'
'/usr/include/endian.h'
'/usr/include/bits/endian.h'
'/usr/include/bits/byteswap.h'
'/usr/include/bits/byteswap-16.h'
'/usr/include/xlocale.h'
'/usr/include/sys/types.h'
'/usr/include/sys/select.h'
'/usr/include/bits/select.h'
'/usr/include/bits/time.h'
'/usr/include/sys/sysmacros.h'
'/usr/include/alloca.h'
'/usr/include/bits/stdlib-float.h'
'/usr/include/string.h'
'/usr/include/sys/stat.h'
'/usr/include/bits/stat.h'
'/usr/include/sys/wait.h'
'/usr/include/unistd.h'
'/usr/include/bits/posix_opt.h'
'/usr/include/bits/environments.h'
'/usr/include/bits/confname.h'
'/usr/include/getopt.h'.
In file included from /usr/include/err.h:22:0,
from src/main/tools/process-wrapper.c:27:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
Target //src:bazel failed to build
ERROR: /home/alexander/source/bazel/src/BUILD:125:2 undeclared inclusion(s) in rule '//src/main/tools:process-wrapper':
this rule is missing dependency declarations for the following files included by 'src/main/tools/process-wrapper.c':
'/usr/include/stdc-predef.h'
'/usr/include/err.h'
'/usr/include/features.h'
'/usr/include/sys/cdefs.h'
'/usr/include/bits/wordsize.h'
'/usr/include/gnu/stubs.h'
'/usr/include/gnu/stubs-64.h'
'/usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdarg.h'
'/usr/include/errno.h'
'/usr/include/bits/errno.h'
'/usr/include/linux/errno.h'
'/usr/include/asm/errno.h'
'/usr/include/asm-generic/errno.h'
'/usr/include/asm-generic/errno-base.h'
'/usr/include/signal.h'
'/usr/include/bits/sigset.h'
'/usr/include/bits/types.h'
'/usr/include/bits/typesizes.h'
'/usr/include/bits/signum.h'
'/usr/include/time.h'
'/usr/include/bits/siginfo.h'
'/usr/include/bits/sigaction.h'
'/usr/include/bits/sigcontext.h'
'/usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stddef.h'
'/usr/include/bits/sigstack.h'
'/usr/include/sys/ucontext.h'
'/usr/include/bits/pthreadtypes.h'
'/usr/include/bits/sigthread.h'
'/usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdbool.h'
'/usr/include/stdio.h'
'/usr/include/libio.h'
'/usr/include/_G_config.h'
'/usr/include/wchar.h'
'/usr/include/bits/stdio_lim.h'
'/usr/include/bits/sys_errlist.h'
'/usr/include/stdlib.h'
'/usr/include/bits/waitflags.h'
'/usr/include/bits/waitstatus.h'
'/usr/include/endian.h'
'/usr/include/bits/endian.h'
'/usr/include/bits/byteswap.h'
'/usr/include/bits/byteswap-16.h'
'/usr/include/xlocale.h'
'/usr/include/sys/types.h'
'/usr/include/sys/select.h'
'/usr/include/bits/select.h'
'/usr/include/bits/time.h'
'/usr/include/sys/sysmacros.h'
'/usr/include/alloca.h'
'/usr/include/bits/stdlib-float.h'
'/usr/include/string.h'
'/usr/include/sys/stat.h'
'/usr/include/bits/stat.h'
'/usr/include/sys/wait.h'
'/usr/include/unistd.h'
'/usr/include/bits/posix_opt.h'
'/usr/include/bits/environments.h'
'/usr/include/bits/confname.h'
'/usr/include/getopt.h'.
INFO: Elapsed time: 4,329s, Critical Path: 0,28s
Building output/bazel
[alexander@desktop-fedora bazel]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment