Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel build is broken #188

Closed
guoshimin opened this issue May 20, 2016 · 1 comment
Closed

Bazel build is broken #188

guoshimin opened this issue May 20, 2016 · 1 comment

Comments

@guoshimin
Copy link
Contributor

% bazel build cmd:jsonnet
INFO: Found 1 target...
ERROR: /Users/shimin/jsonnet/core/BUILD:32:1: C++ compilation of rule '//core:parser' failed: osx_cc_wrapper.sh failed: error executing command external/bazel_tools/tools/cpp/osx_cc_wrapper.sh '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer '-std=c++0x' -iquote . -iquote ... (remaining 29 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
In file included from core/parser.cpp:29:
In file included from core/desugarer.h:24:
core/vm.h:21:10: fatal error: 'libjsonnet.h' file not found
#include "libjsonnet.h"
         ^
1 error generated.
Target //cmd:jsonnet failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.412s, Critical Path: 1.24s

core/vm.h is in the //core package whereas libjsonnet.h is in the //include package.

@sparkprime
Copy link
Contributor

I get a different problem in fact:

dcunnin@tyrion:~/jsonnet$ bazel build cmd:jsonnet
INFO: Found 1 target...
ERROR: /home/dcunnin/jsonnet/core/BUILD:32:1: C++ compilation of rule '//core:parser' failed: namespace-sandbox failed: error executing command /home/dcunnin/.cache/bazel/_bazel_dcunnin/27e56e06b2deafe67d85288b6bda6714/jsonnet/_bin/namespace-sandbox ... (remaining 44 argument(s) skipped).
In file included from core/desugarer.cpp:20:0:
core/desugarer.h:24:16: fatal error: vm.h: No such file or directory
 #include "vm.h"
                ^
compilation terminated.
Target //cmd:jsonnet failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.746s, Critical Path: 0.64s
$ bazel version
Build label: 0.2.1rc1-jdk7
Build target: bazel-out/local_linux-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Mar 21 20:24:52 2016 (1458591892)
Build timestamp: 1458591892
Build timestamp as int: 1458591892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants