Skip to content

Building failed on Ubuntu14.04 #35

Closed
@jingweiz

Description

@jingweiz

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:

  1. "mount" permission denied
    fixed by: adding build --spawn_strategy=standalone to /etc/bazel.bazelrc
  2. python/dmlab_module.c:29:31: fatal error: numpy/arrayobject.h: No such file or directory
    fixed by: adding the following to copt in BUILD: "-I/usr/local/lib/python2.7/dist-packages/numpy/core/include",
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions