Closed
Description
Hey,
I'm trying to build lab on my machine by bazel build :deepmind_lab.so --define headless=glx --verbose_failures
but failed so far. I came across these errors so far:
"mount" permission denied
fixed by: addingbuild --spawn_strategy=standalone
to/etc/bazel.bazelrc
python/dmlab_module.c:29:31: fatal error: numpy/arrayobject.h: No such file or directory
fixed by: adding the following tocopt
inBUILD
:"-I/usr/local/lib/python2.7/dist-packages/numpy/core/include",
configure: error: cannot run C compiled programs.
have no clue how to fix... below I paste the complete error message below:
INFO: Found 1 target...
ERROR: /home/zhang/.cache/bazel/_bazel_zhang/2f9f084266361be2ea70187ad5c14f49/external/glib_archive/BUILD:1:1: Executing genrule @glib_archive//:gen_configure failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '12104' is supported by ustar format... yes
checking whether GID '1371' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/zhang/.cache/bazel/_bazel_zhang/2f9f084266361be2ea70187ad5c14f49/execroot/lab':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
Target //:deepmind_lab.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 3.759s, Critical Path: 3.14s
I don't have any experience with bazel so I've got really no clue as how to fix it, any help would be appreciated!
My compiler: gcc (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels