google-deepmind / lab

A customisable 3D platform for agent-based AI research
Other
7.11k stars 1.37k forks source link

Failed with running "bazel build :deepmind_lab.so --define headless=glx" #49

Closed lindhw closed 6 years ago

lindhw commented 7 years ago

model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz ubuntu 14.04 gcc 4.8.4

======================================================================== ERROR: /home/cat/lab/BUILD:730:1: C++ compilation of rule '//:game_lib_headless_glx' failed: Process exited with status 1 [sandboxed]. engine/code/qcommon/vm_x86.c: In function 'VM_CallCompiled': engine/code/qcommon/vm_x86.c:1803:2: error: inconsistent operand constraints in an 'asm' asm volatile( ^ Use --strategy=CppCompile=standalone to disable sandboxing for the failing actions. Target //:deepmind_lab.so failed to build Use --verbose_failures to see the command lines of failed build steps.

anshulkatta commented 7 years ago

you need to update your gcc to 5 , 4.8 have some issues..

sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-5 g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
tkoeppe commented 6 years ago

Yes, please try again with a slightly more modern compiler. We aren't testing this for arbitrarily old platforms. (I think GCC 4.9 should be OK.)