facebookresearch / nle

The NetHack Learning Environment
Other
940 stars 114 forks source link

Failed to build nle (0.8.1 or source) on linux #314

Closed YunqiuXu closed 2 years ago

YunqiuXu commented 2 years ago

πŸ› Bug: failed to build nle on linux

I encountered some errors during building nle from pypi or source. I'm looking forward to your help!

My environment

OS: Red Hat Enterprise Linux Workstation release 7.9 (Maipo)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
CMake version: version 3.23.0-rc2
Python version: 3.8.12

When I tried to install the version 0.8.1 from pypi, I got the following error:

$ pip install nle
Collecting nle
  Downloading nle-0.8.1.tar.gz (6.9 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 6.9 MB 2.9 MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... done
Collecting pybind11>=2.2
  Using cached pybind11-2.9.1-py2.py3-none-any.whl (211 kB)
Requirement already satisfied: numpy>=1.16 in ./anaconda3/lib/python3.8/site-packages (from nle) (1.20.1)
Collecting gym>=0.15
  Downloading gym-0.22.0.tar.gz (631 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 631 kB 32.3 MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: cloudpickle>=1.2.0 in ./anaconda3/lib/python3.8/site-packages (from gym>=0.15->nle) (1.6.0)
Collecting importlib-metadata>=4.10.0
  Downloading importlib_metadata-4.11.2-py3-none-any.whl (17 kB)
Collecting gym-notices>=0.0.4
  Downloading gym_notices-0.0.4-py3-none-any.whl (2.7 kB)
Requirement already satisfied: zipp>=0.5 in ./anaconda3/lib/python3.8/site-packages (from importlib-metadata>=4.10.0->gym>=0.15->nle) (3.4.1)
Building wheels for collected packages: nle, gym
  Building wheel for nle (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/yunqxu/anaconda3/bin/python /home/yunqxu/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpsf6wah29
       cwd: /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382
  Complete output (270 lines):
  fatal: Not a git repository (or any parent up to mount point /tmp)
  Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  Building wheel nle-0.8.1
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/nle
  copying nle/__init__.py -> build/lib.linux-x86_64-3.8/nle
  copying nle/version.py -> build/lib.linux-x86_64-3.8/nle
  creating build/lib.linux-x86_64-3.8/nle/env
  copying nle/env/__init__.py -> build/lib.linux-x86_64-3.8/nle/env
  copying nle/env/base.py -> build/lib.linux-x86_64-3.8/nle/env
  copying nle/env/tasks.py -> build/lib.linux-x86_64-3.8/nle/env
  creating build/lib.linux-x86_64-3.8/nle/nethack
  copying nle/nethack/__init__.py -> build/lib.linux-x86_64-3.8/nle/nethack
  copying nle/nethack/actions.py -> build/lib.linux-x86_64-3.8/nle/nethack
  copying nle/nethack/nethack.py -> build/lib.linux-x86_64-3.8/nle/nethack
  creating build/lib.linux-x86_64-3.8/nle/agent
  copying nle/agent/__init__.py -> build/lib.linux-x86_64-3.8/nle/agent
  copying nle/agent/agent.py -> build/lib.linux-x86_64-3.8/nle/agent
  copying nle/agent/vtrace.py -> build/lib.linux-x86_64-3.8/nle/agent
  creating build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/__init__.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/check_nethack_speed.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/collect_env.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/play.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/plot.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/read_heaplog.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/read_tty.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/test_raw_nethack.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/ttyplay.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/ttyplay2.py -> build/lib.linux-x86_64-3.8/nle/scripts
  copying nle/scripts/ttyrec.py -> build/lib.linux-x86_64-3.8/nle/scripts
  package init file 'nle/tests/__init__.py' not found (or not a regular file)
  creating build/lib.linux-x86_64-3.8/nle/tests
  copying nle/tests/test_envs.py -> build/lib.linux-x86_64-3.8/nle/tests
  copying nle/tests/test_nethack.py -> build/lib.linux-x86_64-3.8/nle/tests
  copying nle/tests/test_profile.py -> build/lib.linux-x86_64-3.8/nle/tests
  copying nle/tests/test_system.py -> build/lib.linux-x86_64-3.8/nle/tests
  running build_ext
  -- The C compiler identification is GNU 4.8.5
  -- The CXX compiler identification is GNU 4.8.5
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  Release build.
  -- Building nle backend version: 0.8.1
  -- HACKDIR set to: /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/build/lib.linux-x86_64-3.8/nle/nethackdir
  Seeding enabled.
  -- The ASM compiler identification is GNU
  -- Found assembler: /usr/bin/cc
  -- pybind11 v2.6.2
  CMake Warning (dev) at /home/yunqxu/my_cmake/share/cmake-3.23/Modules/CMakeDependentOption.cmake:84 (message):
    Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
    Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
    cmake_policy command to set the policy and suppress this warning.
  Call Stack (most recent call first):
    third_party/pybind11/CMakeLists.txt:98 (cmake_dependent_option)
  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- Found PythonInterp: /home/yunqxu/anaconda3/bin/python (found version "3.8.8")
  -- Found PythonLibs: /home/yunqxu/anaconda3/lib
  -- Performing Test HAS_FLTO
  -- Performing Test HAS_FLTO - Success
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/build/temp.linux-x86_64-3.8
  [1/184] Building ASM object third_party/deboost.context/CMakeFiles/fcontext.dir/asm/make_x86_64_sysv_elf_gas.S.o
  [2/184] Building ASM object third_party/deboost.context/CMakeFiles/fcontext.dir/asm/ontop_x86_64_sysv_elf_gas.S.o
  [3/184] Building ASM object third_party/deboost.context/CMakeFiles/fcontext.dir/asm/jump_x86_64_sysv_elf_gas.S.o
  [4/184] Building C object util/CMakeFiles/dlb.dir/panic.c.o
  [5/184] Building C object util/CMakeFiles/dlb.dir/__/src/alloc.c.o
  [6/184] Building C object third_party/deboost.context/CMakeFiles/fcontext.dir/source/stack.c.o
  [7/184] Building C object CMakeFiles/nethackdl.dir/sys/unix/nledl.c.o
  [8/184] Linking C static library third_party/deboost.context/libfcontext.a
  [9/184] Linking C static library libnethackdl.a
  [10/184] Building C object util/CMakeFiles/makedefs.dir/__/src/objects.c.o
  [11/184] Building C object util/CMakeFiles/makedefs.dir/__/src/monst.c.o
  [12/184] Building C object util/CMakeFiles/recover.dir/recover.c.o
  [13/184] Linking C executable util/recover
  [14/184] Building C object util/CMakeFiles/dlb.dir/dlb_main.c.o
  [15/184] Building C object util/CMakeFiles/dlb.dir/__/src/dlb.c.o
  [16/184] Linking C executable util/dlb
  [17/184] Building C object util/CMakeFiles/makedefs.dir/makedefs.c.o
  [18/184] Linking C executable util/makedefs
  [19/184] Generating ../include/date.h
  [20/184] Generating ../include/pm.h
  [21/184] Generating ../include/onames.h
  [22/184] Generating dgn_scanner.c
  [23/184] Generating lev_scanner.c
  [24/184] Generating dgn_parser.c, dgn_comp.h
  [25/184] Building C object util/CMakeFiles/dgn_comp.dir/panic.c.o
  [26/184] Building C object util/CMakeFiles/dgn_comp.dir/__/src/alloc.c.o
  [27/184] Building C object util/CMakeFiles/dgn_comp.dir/dgn_main.c.o
  [28/184] Building C object util/CMakeFiles/tilemap.dir/__/win/share/tilemap.c.o
  [29/184] Linking C executable util/tilemap
  [30/184] Generating ../src/tile.c
  [31/184] Building CXX object CMakeFiles/rlmain.dir/sys/unix/rlmain.cc.o
  [32/184] Building C object util/CMakeFiles/tile.dir/__/src/tile.c.o
  [33/184] Building C object CMakeFiles/_pynethack.dir/src/decl.c.o
  [34/184] Building C object CMakeFiles/_pynethack.dir/src/objects.c.o
  [35/184] Building C object CMakeFiles/_pynethack.dir/src/monst.c.o
  [36/184] Linking CXX executable rlmain
  [37/184] Building C object util/CMakeFiles/dgn_comp.dir/dgn_parser.c.o
  [38/184] Building C object CMakeFiles/_pynethack.dir/src/drawing.c.o
  [39/184] Building C object util/CMakeFiles/dgn_comp.dir/dgn_scanner.c.o
  [40/184] Generating lev_parser.c, lev_comp.h
  [41/184] Linking C executable util/dgn_comp
  [42/184] Building C object util/CMakeFiles/lev_comp.dir/panic.c.o
  [43/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/alloc.c.o
  [44/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/decl.c.o
  [45/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/objects.c.o
  [46/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/monst.c.o
  [47/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/drawing.c.o
  [48/184] Building C object util/CMakeFiles/lev_comp.dir/lev_main.c.o
  [49/184] Building C object util/CMakeFiles/lev_comp.dir/lev_parser.c.o
  [50/184] Building C object util/CMakeFiles/lev_comp.dir/lev_scanner.c.o
  [51/184] Linking C executable util/lev_comp
  [52/184] Generating options
  [53/184] Generating rumors
  [54/184] Generating quest.dat
  [55/184] Generating oracles
  [56/184] Generating bogusmon, epitaph, engrave
  [57/184] Generating data
  [58/184] Generating perm, record, logfile, xlogfile
  [59/184] Generating dungeon, dungeon.pdf
  [60/184] Generating Arc-fila.lev, Arc-filb.lev, Arc-goal.lev, Arc-loca.lev, Arc-strt.lev, Bar-fila.lev, Bar-filb.lev, Bar-goal.lev, Bar-loca.lev, Bar-strt.lev, Cav-fila.lev, Cav-filb.lev, Cav-goal.lev, Cav-loca.lev, Cav-strt.lev, Hea-fila.lev, Hea-filb.lev, Hea-goal.lev, Hea-loca.lev, Hea-strt.lev, Kni-fila.lev, Kni-filb.lev, Kni-goal.lev, Kni-loca.lev, Kni-strt.lev, Mon-fila.lev, Mon-filb.lev, Mon-goal.lev, Mon-loca.lev, Mon-strt.lev, Pri-fila.lev, Pri-filb.lev, Pri-goal.lev, Pri-loca.lev, Pri-strt.lev, Ran-fila.lev, Ran-filb.lev, Ran-goal.lev, Ran-loca.lev, Ran-strt.lev, Rog-fila.lev, Rog-filb.lev, Rog-goal.lev, Rog-loca.lev, Rog-strt.lev, Sam-fila.lev, Sam-filb.lev, Sam-goal.lev, Sam-loca.lev, Sam-strt.lev, Tou-fila.lev, Tou-filb.lev, Tou-goal.lev, Tou-loca.lev, Tou-strt.lev, Val-fila.lev, Val-filb.lev, Val-goal.lev, Val-loca.lev, Val-strt.lev, Wiz-fila.lev, Wiz-filb.lev, Wiz-goal.lev, Wiz-loca.lev, Wiz-strt.lev, air.lev, asmodeus.lev, astral.lev, baalz.lev, bigrm-1.lev, bigrm-10.lev, bigrm-2.lev, bigrm-3.lev, bigrm-4.lev, bigrm-5.lev, bigrm-6.lev, bigrm-7.lev, bigrm-8.lev, bigrm-9.lev, castle.lev, earth.lev, fakewiz1.lev, fakewiz2.lev, fire.lev, juiblex.lev, knox.lev, medusa-1.lev, medusa-2.lev, medusa-3.lev, medusa-4.lev, minefill.lev, minend-1.lev, minend-2.lev, minend-3.lev, minetn-1.lev, minetn-2.lev, minetn-3.lev, minetn-4.lev, minetn-5.lev, minetn-6.lev, minetn-7.lev, oracle.lev, orcus.lev, sanctum.lev, soko1-1.lev, soko1-2.lev, soko2-1.lev, soko2-2.lev, soko3-1.lev, soko3-2.lev, soko4-1.lev, soko4-2.lev, tower1.lev, tower2.lev, tower3.lev, valley.lev, water.lev, wizard1.lev, wizard2.lev, wizard3.lev
  [61/184] Generating nhdat
  [62/184] Building C object CMakeFiles/nethack.dir/src/alloc.c.o
  [63/184] Building C object CMakeFiles/nethack.dir/sys/share/ioctl.c.o
  [64/184] Building C object CMakeFiles/nethack.dir/src/decl.c.o
  [65/184] Building C object CMakeFiles/nethack.dir/src/dlb.c.o
  [66/184] Building C object CMakeFiles/nethack.dir/src/bones.c.o
  [67/184] Building C object CMakeFiles/nethack.dir/src/drawing.c.o
  [68/184] Building C object CMakeFiles/nethack.dir/src/allmain.c.o
  [69/184] Building C object CMakeFiles/nethack.dir/src/exper.c.o
  [70/184] Building C object CMakeFiles/nethack.dir/src/attrib.c.o
  [71/184] Building C object CMakeFiles/nethack.dir/src/ball.c.o
  [72/184] Building C object CMakeFiles/nethack.dir/src/dog.c.o
  [73/184] Building C object CMakeFiles/nethack.dir/src/dbridge.c.o
  [74/184] Building C object CMakeFiles/nethack.dir/src/extralev.c.o
  [75/184] Building C object CMakeFiles/nethack.dir/src/dogmove.c.o
  [76/184] Building C object CMakeFiles/nethack.dir/src/fountain.c.o
  [77/184] Building C object CMakeFiles/nethack.dir/src/engrave.c.o
  [78/184] Building C object CMakeFiles/nethack.dir/src/do.c.o
  [79/184] Building C object CMakeFiles/nethack.dir/src/dig.c.o
  [80/184] Building C object CMakeFiles/nethack.dir/src/mail.c.o
  [81/184] Building C object CMakeFiles/nethack.dir/src/artifact.c.o
  [82/184] Building C object CMakeFiles/nethack.dir/src/isaac64.c.o
  [83/184] Building C object CMakeFiles/nethack.dir/src/end.c.o
  [84/184] Building C object CMakeFiles/nethack.dir/src/display.c.o
  [85/184] Building C object CMakeFiles/nethack.dir/src/do_name.c.o
  [86/184] Building C object CMakeFiles/nethack.dir/src/dokick.c.o
  [87/184] Building C object CMakeFiles/nethack.dir/src/dothrow.c.o
  [88/184] Building C object CMakeFiles/nethack.dir/src/explode.c.o
  [89/184] Building C object CMakeFiles/nethack.dir/src/files.c.o
  [90/184] Building C object CMakeFiles/nethack.dir/src/detect.c.o
  [91/184] Building C object CMakeFiles/nethack.dir/src/do_wear.c.o
  [92/184] Building C object CMakeFiles/nethack.dir/src/light.c.o
  [93/184] Building C object CMakeFiles/nethack.dir/src/dungeon.c.o
  [94/184] Building C object CMakeFiles/nethack.dir/src/hacklib.c.o
  [95/184] Building C object CMakeFiles/nethack.dir/src/mapglyph.c.o
  [96/184] Building C object CMakeFiles/nethack.dir/src/monst.c.o
  [97/184] Building C object CMakeFiles/nethack.dir/src/botl.c.o
  [98/184] Building C object CMakeFiles/nethack.dir/src/minion.c.o
  [99/184] Building C object CMakeFiles/nethack.dir/src/mplayer.c.o
  [100/184] Building C object CMakeFiles/nethack.dir/src/lock.c.o
  [101/184] Building C object CMakeFiles/nethack.dir/src/mkmap.c.o
  [102/184] Building C object CMakeFiles/nethack.dir/src/mcastu.c.o
  [103/184] Building C object CMakeFiles/nethack.dir/src/nle.c.o
  FAILED: CMakeFiles/nethack.dir/src/nle.c.o
  /usr/bin/cc -DDEFAULT_WINDOW_SYS=\"rl\" -DDLB -DGCC_WARN -DHACKDIR=\"/tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/build/lib.linux-x86_64-3.8/nle/nethackdir\" -DNLE_ALLOW_SEEDING -DNLE_USE_TILES -DNOCLIPPING -DNOCWD_ASSUMPTIONS -DNOMAIL -DNOTPARMDECL -Dnethack_EXPORTS -I/tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/include -I/tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/build/temp.linux-x86_64-3.8/include -I/tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/libtmt -I/tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/deboost.context/include -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/nethack.dir/src/nle.c.o -MF CMakeFiles/nethack.dir/src/nle.c.o.d -o CMakeFiles/nethack.dir/src/nle.c.o -c /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/src/nle.c
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/src/nle.c: In function β€˜nle_vt_callback’:
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/src/nle.c:84:9: error: β€˜for’ loop initial declarations are only allowed in C99 mode
           for (size_t r = 0; r < s->nline; r++) {
           ^
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/src/nle.c:84:9: note: use option -std=c99 or -std=gnu99 to compile your code
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/src/nle.c:86:17: error: β€˜for’ loop initial declarations are only allowed in C99 mode
                   for (size_t c = 0; c < s->ncol; c++) {
                   ^
  [104/184] Building C object CMakeFiles/nethack.dir/src/objects.c.o
  [105/184] Building C object CMakeFiles/nethack.dir/src/eat.c.o
  [106/184] Building C object CMakeFiles/nethack.dir/src/mondata.c.o
  [107/184] Building C object CMakeFiles/nethack.dir/src/mkroom.c.o
  [108/184] Building C object CMakeFiles/nethack.dir/src/apply.c.o
  [109/184] Building C object CMakeFiles/nethack.dir/src/pickup.c.o
  [110/184] Building C object CMakeFiles/nethack.dir/src/music.c.o
  [111/184] Building C object CMakeFiles/nethack.dir/src/o_init.c.o
  [112/184] Building C object CMakeFiles/nethack.dir/src/makemon.c.o
  [113/184] Building C object CMakeFiles/nethack.dir/src/mthrowu.c.o
  [114/184] Building C object CMakeFiles/nethack.dir/src/mkmaze.c.o
  [115/184] Building C object CMakeFiles/nethack.dir/src/mkobj.c.o
  [116/184] Building C object CMakeFiles/nethack.dir/src/hack.c.o
  [117/184] Building C object CMakeFiles/nethack.dir/src/monmove.c.o
  [118/184] Building C object CMakeFiles/nethack.dir/src/cmd.c.o
  [119/184] Building C object CMakeFiles/nethack.dir/src/mhitu.c.o
  [120/184] Building C object CMakeFiles/nethack.dir/src/invent.c.o
  [121/184] Building C object CMakeFiles/nethack.dir/src/mklev.c.o
  [122/184] Building C object CMakeFiles/nethack.dir/src/pager.c.o
  [123/184] Building C object CMakeFiles/nethack.dir/src/muse.c.o
  [124/184] Building CXX object CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o
  FAILED: CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o
  /usr/bin/c++ -DDEFAULT_WINDOW_SYS=\"rl\" -DDLB -DGCC_WARN -DHACKDIR=\"/tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/build/lib.linux-x86_64-3.8/nle/nethackdir\" -DNLE_ALLOW_SEEDING -DNLE_USE_TILES -DNOCLIPPING -DNOCWD_ASSUMPTIONS -DNOMAIL -DNOTPARMDECL -D_pynethack_EXPORTS -I/tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/build/temp.linux-x86_64-3.8/include -I/tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/include -isystem /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include -isystem /home/yunqxu/anaconda3/include/python3.8 -O3 -DNDEBUG -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -std=gnu++1y -MD -MT CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o -MF CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o.d -o CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o -c /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc
  In file included from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/pytypes.h:12:0,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/cast.h:13,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/attr.h:13,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/pybind11.h:45,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/numpy.h:12,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:6:
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h: In instantiation of β€˜struct pybind11::overload_cast<>’:
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:346:58:   required from here
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:813:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
       static_assert(detail::deferred_t<std::false_type, Args...>::value,
       ^
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc: In function β€˜void pybind11_init__pynethack(pybind11::module_&)’:
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:346:58: error: no matching function for call to β€˜pybind11::overload_cast<>::overload_cast(<unresolved overloaded function type>)’
           .def("reset", py::overload_cast<>(&Nethack::reset))
                                                            ^
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:346:58: note: candidates are:
  In file included from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/pytypes.h:12:0,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/cast.h:13,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/attr.h:13,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/pybind11.h:45,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/numpy.h:12,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:6:
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<>::overload_cast()
   template <typename... Args> struct overload_cast {
                                      ^
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   candidate expects 0 arguments, 1 provided
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<>::overload_cast(const pybind11::overload_cast<>&)
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   no known conversion for argument 1 from β€˜<unresolved overloaded function type>’ to β€˜const pybind11::overload_cast<>&’
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<>::overload_cast(pybind11::overload_cast<>&&)
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   no known conversion for argument 1 from β€˜<unresolved overloaded function type>’ to β€˜pybind11::overload_cast<>&&’
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h: In instantiation of β€˜struct pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’:
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:347:69:   required from here
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:813:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
       static_assert(detail::deferred_t<std::false_type, Args...>::value,
       ^
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:347:69: error: no matching function for call to β€˜pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::overload_cast(<unresolved overloaded function type>)’
           .def("reset", py::overload_cast<std::string>(&Nethack::reset))
                                                                       ^
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:347:69: note: candidates are:
  In file included from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/pytypes.h:12:0,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/cast.h:13,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/attr.h:13,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/pybind11.h:45,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/numpy.h:12,
                   from /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/win/rl/pynethack.cc:6:
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::overload_cast()
   template <typename... Args> struct overload_cast {
                                      ^
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   candidate expects 0 arguments, 1 provided
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::overload_cast(const pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   no known conversion for argument 1 from β€˜<unresolved overloaded function type>’ to β€˜const pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&’
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::overload_cast(pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)
  /tmp/pip-install-hmbufbc0/nle_f5e1a3aebb5e4c27a57c3b1e260a6382/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   no known conversion for argument 1 from β€˜<unresolved overloaded function type>’ to β€˜pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&’
  [125/184] Building C object CMakeFiles/nethack.dir/src/mon.c.o
  [126/184] Building C object CMakeFiles/nethack.dir/src/objnam.c.o
  [127/184] Building C object CMakeFiles/nethack.dir/src/mhitm.c.o
  [128/184] Building C object CMakeFiles/nethack.dir/src/options.c.o
  ninja: build stopped: subcommand failed.
  ----------------------------------------
  ERROR: Failed building wheel for nle
  Building wheel for gym (PEP 517) ... done
  Created wheel for gym: filename=gym-0.22.0-py3-none-any.whl size=708398 sha256=d2949e0793a65df5125b537d32ec9037832cef4791573ad323f0f5a5061ce8e3
  Stored in directory: /home/yunqxu/.cache/pip/wheels/4d/6e/7d/0e050cb65b427dd0db5c5ab2c9a1f1ffa3d58db2f4db516268
Successfully built gym
Failed to build nle
ERROR: Could not build wheels for nle which use PEP 517 and cannot be installed directly
(minihack) 

When I tried to build from source, I got the following error:

$ pip install -e ".[dev]"
Obtaining file:///home/yunqxu/Downloads/nle
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... done
Requirement already satisfied: gym>=0.15 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (0.22.0)
Requirement already satisfied: pybind11>=2.2 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (2.9.1)
Requirement already satisfied: numpy>=1.16 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (1.20.1)
Requirement already satisfied: sphinx>=2.4.4 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (4.0.1)
Requirement already satisfied: black>=19.10b0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (19.10b0)
Requirement already satisfied: pre-commit>=2.0.1 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (2.17.0)
Collecting cmake-format>=0.6.10
  Using cached cmake_format-0.6.13-py3-none-any.whl (19 kB)
Requirement already satisfied: pytest>=5.3 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (6.2.3)
Collecting flake8-bugbear>=20.1
  Using cached flake8_bugbear-22.1.11-py3-none-any.whl (18 kB)
Requirement already satisfied: flake8>=3.7 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (3.9.0)
Requirement already satisfied: sphinx-rtd-theme==0.4.3 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (0.4.3)
Requirement already satisfied: pytest-benchmark>=3.1.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from nle==0.8.1+d75684b) (3.4.1)
Requirement already satisfied: attrs>=18.1.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from black>=19.10b0->nle==0.8.1+d75684b) (20.3.0)
Requirement already satisfied: regex in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from black>=19.10b0->nle==0.8.1+d75684b) (2021.4.4)
Requirement already satisfied: toml>=0.9.4 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from black>=19.10b0->nle==0.8.1+d75684b) (0.10.2)
Requirement already satisfied: pathspec<1,>=0.6 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from black>=19.10b0->nle==0.8.1+d75684b) (0.7.0)
Requirement already satisfied: typed-ast>=1.4.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from black>=19.10b0->nle==0.8.1+d75684b) (1.4.2)
Requirement already satisfied: appdirs in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from black>=19.10b0->nle==0.8.1+d75684b) (1.4.4)
Requirement already satisfied: click>=6.5 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from black>=19.10b0->nle==0.8.1+d75684b) (7.1.2)
Requirement already satisfied: cmakelang>=0.6.13 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from cmake-format>=0.6.10->nle==0.8.1+d75684b) (0.6.13)
Requirement already satisfied: six>=1.13.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from cmakelang>=0.6.13->cmake-format>=0.6.10->nle==0.8.1+d75684b) (1.15.0)
Requirement already satisfied: pyflakes<2.4.0,>=2.3.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from flake8>=3.7->nle==0.8.1+d75684b) (2.3.1)
Requirement already satisfied: mccabe<0.7.0,>=0.6.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from flake8>=3.7->nle==0.8.1+d75684b) (0.6.1)
Requirement already satisfied: pycodestyle<2.8.0,>=2.7.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from flake8>=3.7->nle==0.8.1+d75684b) (2.7.0)
Requirement already satisfied: importlib-metadata>=4.10.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from gym>=0.15->nle==0.8.1+d75684b) (4.11.2)
Requirement already satisfied: gym-notices>=0.0.4 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from gym>=0.15->nle==0.8.1+d75684b) (0.0.4)
Requirement already satisfied: cloudpickle>=1.2.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from gym>=0.15->nle==0.8.1+d75684b) (1.6.0)
Requirement already satisfied: zipp>=0.5 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from importlib-metadata>=4.10.0->gym>=0.15->nle==0.8.1+d75684b) (3.4.1)
Requirement already satisfied: pyyaml>=5.1 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pre-commit>=2.0.1->nle==0.8.1+d75684b) (5.4.1)
Requirement already satisfied: virtualenv>=20.0.8 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pre-commit>=2.0.1->nle==0.8.1+d75684b) (20.13.2)
Requirement already satisfied: nodeenv>=0.11.1 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pre-commit>=2.0.1->nle==0.8.1+d75684b) (1.6.0)
Requirement already satisfied: identify>=1.0.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pre-commit>=2.0.1->nle==0.8.1+d75684b) (2.4.11)
Requirement already satisfied: cfgv>=2.0.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pre-commit>=2.0.1->nle==0.8.1+d75684b) (3.3.1)
Requirement already satisfied: iniconfig in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pytest>=5.3->nle==0.8.1+d75684b) (1.1.1)
Requirement already satisfied: packaging in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pytest>=5.3->nle==0.8.1+d75684b) (20.9)
Requirement already satisfied: pluggy<1.0.0a1,>=0.12 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pytest>=5.3->nle==0.8.1+d75684b) (0.13.1)
Requirement already satisfied: py>=1.8.2 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pytest>=5.3->nle==0.8.1+d75684b) (1.10.0)
Requirement already satisfied: py-cpuinfo in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from pytest-benchmark>=3.1.0->nle==0.8.1+d75684b) (8.0.0)
Requirement already satisfied: docutils<0.18,>=0.14 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (0.17.1)
Requirement already satisfied: sphinxcontrib-devhelp in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (1.0.2)
Requirement already satisfied: snowballstemmer>=1.1 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (2.1.0)
Requirement already satisfied: sphinxcontrib-applehelp in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (1.0.2)
Requirement already satisfied: setuptools in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (52.0.0.post20210125)
Requirement already satisfied: Pygments>=2.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (2.8.1)
Requirement already satisfied: babel>=1.3 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (2.9.0)
Requirement already satisfied: alabaster<0.8,>=0.7 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (0.7.12)
Requirement already satisfied: Jinja2<3.0,>=2.3 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (2.11.3)
Requirement already satisfied: imagesize in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (1.2.0)
Requirement already satisfied: sphinxcontrib-serializinghtml in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (1.1.4)
Requirement already satisfied: sphinxcontrib-qthelp in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (1.0.3)
Requirement already satisfied: MarkupSafe<2.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (1.1.1)
Requirement already satisfied: sphinxcontrib-jsmath in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (1.0.1)
Requirement already satisfied: requests>=2.5.0 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (2.25.1)
Requirement already satisfied: sphinxcontrib-htmlhelp in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from sphinx>=2.4.4->nle==0.8.1+d75684b) (1.0.3)
Requirement already satisfied: pytz>=2015.7 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from babel>=1.3->sphinx>=2.4.4->nle==0.8.1+d75684b) (2021.1)
Requirement already satisfied: chardet<5,>=3.0.2 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from requests>=2.5.0->sphinx>=2.4.4->nle==0.8.1+d75684b) (4.0.0)
Requirement already satisfied: certifi>=2017.4.17 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from requests>=2.5.0->sphinx>=2.4.4->nle==0.8.1+d75684b) (2020.12.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from requests>=2.5.0->sphinx>=2.4.4->nle==0.8.1+d75684b) (1.26.4)
Requirement already satisfied: idna<3,>=2.5 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from requests>=2.5.0->sphinx>=2.4.4->nle==0.8.1+d75684b) (2.10)
Requirement already satisfied: platformdirs<3,>=2 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from virtualenv>=20.0.8->pre-commit>=2.0.1->nle==0.8.1+d75684b) (2.5.1)
Requirement already satisfied: distlib<1,>=0.3.1 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from virtualenv>=20.0.8->pre-commit>=2.0.1->nle==0.8.1+d75684b) (0.3.4)
Requirement already satisfied: filelock<4,>=3.2 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from virtualenv>=20.0.8->pre-commit>=2.0.1->nle==0.8.1+d75684b) (3.6.0)
Requirement already satisfied: pyparsing>=2.0.2 in /home/yunqxu/anaconda3/lib/python3.8/site-packages (from packaging->pytest>=5.3->nle==0.8.1+d75684b) (2.4.7)
Installing collected packages: nle, flake8-bugbear, cmake-format
  Running setup.py develop for nle
    ERROR: Command errored out with exit status 1:
     command: /home/yunqxu/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/yunqxu/Downloads/nle/setup.py'"'"'; __file__='"'"'/home/yunqxu/Downloads/nle/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: /home/yunqxu/Downloads/nle/
    Complete output (254 lines):
    Building wheel nle-0.8.1+d75684b
    running develop
    running egg_info
    creating nle.egg-info
    writing nle.egg-info/PKG-INFO
    writing dependency_links to nle.egg-info/dependency_links.txt
    writing entry points to nle.egg-info/entry_points.txt
    writing requirements to nle.egg-info/requires.txt
    writing top-level names to nle.egg-info/top_level.txt
    writing manifest file 'nle.egg-info/SOURCES.txt'
    /tmp/pip-build-env-4rbuh_y0/overlay/lib/python3.8/site-packages/setuptools/command/easy_install.py:160: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /tmp/pip-build-env-4rbuh_y0/overlay/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /tmp/pip-build-env-4rbuh_y0/overlay/lib/python3.8/site-packages/pkg_resources/__init__.py:122: PkgResourcesDeprecationWarning: 4.0.0-unsupported is an invalid version and will not be supported in a future release
      warnings.warn(
    package init file 'nle/tests/__init__.py' not found (or not a regular file)
    reading manifest file 'nle.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*' found under directory 'build'
    warning: no previously-included files found matching 'nle/dashboard'
    warning: no previously-included files found matching 'nle/scripts/nh-clean-install.sh'
    warning: no previously-included files found matching 'nle/scripts/line-changed.sh'
    adding license file 'LICENSE'
    writing manifest file 'nle.egg-info/SOURCES.txt'
    running build_ext
    -- The C compiler identification is GNU 4.8.5
    -- The CXX compiler identification is GNU 4.8.5
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    Release build.
    -- Building nle backend version: 0.8.1
    -- HACKDIR set to: /home/yunqxu/Downloads/nle/nle/nethackdir
    Seeding enabled.
    -- The ASM compiler identification is GNU
    -- Found assembler: /usr/bin/cc
    -- pybind11 v2.6.2
    CMake Warning (dev) at /home/yunqxu/my_cmake/share/cmake-3.23/Modules/CMakeDependentOption.cmake:84 (message):
      Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
      Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
      cmake_policy command to set the policy and suppress this warning.
    Call Stack (most recent call first):
      third_party/pybind11/CMakeLists.txt:98 (cmake_dependent_option)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    -- Found PythonInterp: /home/yunqxu/anaconda3/bin/python (found version "3.8.8")
    -- Found PythonLibs: /home/yunqxu/anaconda3/lib
    -- Performing Test HAS_FLTO
    -- Performing Test HAS_FLTO - Success
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/yunqxu/Downloads/nle/build/temp.linux-x86_64-3.8
    [1/184] Building ASM object third_party/deboost.context/CMakeFiles/fcontext.dir/asm/ontop_x86_64_sysv_elf_gas.S.o
    [2/184] Building ASM object third_party/deboost.context/CMakeFiles/fcontext.dir/asm/make_x86_64_sysv_elf_gas.S.o
    [3/184] Building ASM object third_party/deboost.context/CMakeFiles/fcontext.dir/asm/jump_x86_64_sysv_elf_gas.S.o
    [4/184] Building C object third_party/deboost.context/CMakeFiles/fcontext.dir/source/stack.c.o
    [5/184] Building C object CMakeFiles/nethackdl.dir/sys/unix/nledl.c.o
    [6/184] Building C object util/CMakeFiles/dlb.dir/__/src/alloc.c.o
    [7/184] Building C object util/CMakeFiles/dlb.dir/panic.c.o
    [8/184] Building C object util/CMakeFiles/makedefs.dir/__/src/objects.c.o
    [9/184] Building C object util/CMakeFiles/recover.dir/recover.c.o
    [10/184] Building C object util/CMakeFiles/makedefs.dir/__/src/monst.c.o
    [11/184] Linking C static library libnethackdl.a
    [12/184] Linking C static library third_party/deboost.context/libfcontext.a
    [13/184] Building C object util/CMakeFiles/dlb.dir/dlb_main.c.o
    [14/184] Building C object util/CMakeFiles/dlb.dir/__/src/dlb.c.o
    [15/184] Linking C executable util/recover
    [16/184] Linking C executable util/dlb
    [17/184] Building C object util/CMakeFiles/makedefs.dir/makedefs.c.o
    [18/184] Linking C executable util/makedefs
    [19/184] Generating ../include/pm.h
    [20/184] Generating ../include/onames.h
    [21/184] Generating ../include/date.h
    [22/184] Generating dgn_scanner.c
    [23/184] Generating lev_scanner.c
    [24/184] Generating dgn_parser.c, dgn_comp.h
    [25/184] Building C object util/CMakeFiles/dgn_comp.dir/panic.c.o
    [26/184] Building C object util/CMakeFiles/dgn_comp.dir/__/src/alloc.c.o
    [27/184] Building C object util/CMakeFiles/dgn_comp.dir/dgn_main.c.o
    [28/184] Building C object util/CMakeFiles/tilemap.dir/__/win/share/tilemap.c.o
    [29/184] Linking C executable util/tilemap
    [30/184] Generating ../src/tile.c
    [31/184] Generating lev_parser.c, lev_comp.h
    [32/184] Building CXX object CMakeFiles/rlmain.dir/sys/unix/rlmain.cc.o
    [33/184] Building C object util/CMakeFiles/dgn_comp.dir/dgn_parser.c.o
    [34/184] Building C object util/CMakeFiles/tile.dir/__/src/tile.c.o
    [35/184] Building C object util/CMakeFiles/dgn_comp.dir/dgn_scanner.c.o
    [36/184] Building C object CMakeFiles/_pynethack.dir/src/objects.c.o
    [37/184] Building C object CMakeFiles/_pynethack.dir/src/decl.c.o
    [38/184] Building C object CMakeFiles/_pynethack.dir/src/monst.c.o
    [39/184] Building C object util/CMakeFiles/lev_comp.dir/panic.c.o
    [40/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/alloc.c.o
    [41/184] Linking CXX executable rlmain
    [42/184] Linking C executable util/dgn_comp
    [43/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/objects.c.o
    [44/184] Building C object CMakeFiles/_pynethack.dir/src/drawing.c.o
    [45/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/monst.c.o
    [46/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/decl.c.o
    [47/184] Building C object util/CMakeFiles/lev_comp.dir/__/src/drawing.c.o
    [48/184] Building C object util/CMakeFiles/lev_comp.dir/lev_main.c.o
    [49/184] Building C object util/CMakeFiles/lev_comp.dir/lev_parser.c.o
    [50/184] Building C object util/CMakeFiles/lev_comp.dir/lev_scanner.c.o
    [51/184] Linking C executable util/lev_comp
    [52/184] Generating quest.dat
    [53/184] Generating options
    [54/184] Generating rumors
    [55/184] Generating data
    [56/184] Generating oracles
    [57/184] Generating perm, record, logfile, xlogfile
    [58/184] Generating bogusmon, epitaph, engrave
    [59/184] Generating dungeon, dungeon.pdf
    [60/184] Generating Arc-fila.lev, Arc-filb.lev, Arc-goal.lev, Arc-loca.lev, Arc-strt.lev, Bar-fila.lev, Bar-filb.lev, Bar-goal.lev, Bar-loca.lev, Bar-strt.lev, Cav-fila.lev, Cav-filb.lev, Cav-goal.lev, Cav-loca.lev, Cav-strt.lev, Hea-fila.lev, Hea-filb.lev, Hea-goal.lev, Hea-loca.lev, Hea-strt.lev, Kni-fila.lev, Kni-filb.lev, Kni-goal.lev, Kni-loca.lev, Kni-strt.lev, Mon-fila.lev, Mon-filb.lev, Mon-goal.lev, Mon-loca.lev, Mon-strt.lev, Pri-fila.lev, Pri-filb.lev, Pri-goal.lev, Pri-loca.lev, Pri-strt.lev, Ran-fila.lev, Ran-filb.lev, Ran-goal.lev, Ran-loca.lev, Ran-strt.lev, Rog-fila.lev, Rog-filb.lev, Rog-goal.lev, Rog-loca.lev, Rog-strt.lev, Sam-fila.lev, Sam-filb.lev, Sam-goal.lev, Sam-loca.lev, Sam-strt.lev, Tou-fila.lev, Tou-filb.lev, Tou-goal.lev, Tou-loca.lev, Tou-strt.lev, Val-fila.lev, Val-filb.lev, Val-goal.lev, Val-loca.lev, Val-strt.lev, Wiz-fila.lev, Wiz-filb.lev, Wiz-goal.lev, Wiz-loca.lev, Wiz-strt.lev, air.lev, asmodeus.lev, astral.lev, baalz.lev, bigrm-1.lev, bigrm-10.lev, bigrm-2.lev, bigrm-3.lev, bigrm-4.lev, bigrm-5.lev, bigrm-6.lev, bigrm-7.lev, bigrm-8.lev, bigrm-9.lev, castle.lev, earth.lev, fakewiz1.lev, fakewiz2.lev, fire.lev, juiblex.lev, knox.lev, medusa-1.lev, medusa-2.lev, medusa-3.lev, medusa-4.lev, minefill.lev, minend-1.lev, minend-2.lev, minend-3.lev, minetn-1.lev, minetn-2.lev, minetn-3.lev, minetn-4.lev, minetn-5.lev, minetn-6.lev, minetn-7.lev, oracle.lev, orcus.lev, sanctum.lev, soko1-1.lev, soko1-2.lev, soko2-1.lev, soko2-2.lev, soko3-1.lev, soko3-2.lev, soko4-1.lev, soko4-2.lev, tower1.lev, tower2.lev, tower3.lev, valley.lev, water.lev, wizard1.lev, wizard2.lev, wizard3.lev
    [61/184] Generating nhdat
    [62/184] Building C object CMakeFiles/nethack.dir/src/alloc.c.o
    [63/184] Building C object CMakeFiles/nethack.dir/src/dlb.c.o
    [64/184] Building C object CMakeFiles/nethack.dir/src/decl.c.o
    [65/184] Building C object CMakeFiles/nethack.dir/src/drawing.c.o
    [66/184] Building C object CMakeFiles/nethack.dir/src/bones.c.o
    [67/184] Building C object CMakeFiles/nethack.dir/src/allmain.c.o
    [68/184] Building C object CMakeFiles/nethack.dir/src/attrib.c.o
    [69/184] Building C object CMakeFiles/nethack.dir/src/ball.c.o
    [70/184] Building C object CMakeFiles/nethack.dir/src/dog.c.o
    [71/184] Building C object CMakeFiles/nethack.dir/src/exper.c.o
    [72/184] Building C object CMakeFiles/nethack.dir/src/dbridge.c.o
    [73/184] Building C object CMakeFiles/nethack.dir/src/extralev.c.o
    [74/184] Building C object CMakeFiles/nethack.dir/src/dogmove.c.o
    [75/184] Building C object CMakeFiles/nethack.dir/src/dig.c.o
    [76/184] Building C object CMakeFiles/nethack.dir/src/do.c.o
    [77/184] Building C object CMakeFiles/nethack.dir/src/do_name.c.o
    [78/184] Building C object CMakeFiles/nethack.dir/src/artifact.c.o
    [79/184] Building C object CMakeFiles/nethack.dir/src/end.c.o
    [80/184] Building C object CMakeFiles/nethack.dir/src/isaac64.c.o
    [81/184] Building C object CMakeFiles/nethack.dir/src/display.c.o
    [82/184] Building C object CMakeFiles/nethack.dir/src/explode.c.o
    [83/184] Building C object CMakeFiles/nethack.dir/src/fountain.c.o
    [84/184] Building C object CMakeFiles/nethack.dir/src/dothrow.c.o
    [85/184] Building C object CMakeFiles/nethack.dir/src/engrave.c.o
    [86/184] Building C object CMakeFiles/nethack.dir/src/dokick.c.o
    [87/184] Building C object CMakeFiles/nethack.dir/src/mail.c.o
    [88/184] Building C object CMakeFiles/nethack.dir/src/do_wear.c.o
    [89/184] Building C object CMakeFiles/nethack.dir/src/detect.c.o
    [90/184] Building C object CMakeFiles/nethack.dir/src/hacklib.c.o
    [91/184] Building C object CMakeFiles/nethack.dir/src/dungeon.c.o
    [92/184] Building C object CMakeFiles/nethack.dir/src/light.c.o
    [93/184] Building C object CMakeFiles/nethack.dir/src/files.c.o
    [94/184] Building C object CMakeFiles/nethack.dir/src/mapglyph.c.o
    [95/184] Building C object CMakeFiles/nethack.dir/src/monst.c.o
    [96/184] Building C object CMakeFiles/nethack.dir/src/eat.c.o
    [97/184] Building C object CMakeFiles/nethack.dir/src/botl.c.o
    [98/184] Building C object CMakeFiles/nethack.dir/src/mplayer.c.o
    [99/184] Building C object CMakeFiles/nethack.dir/src/minion.c.o
    [100/184] Building C object CMakeFiles/nethack.dir/src/mkmap.c.o
    [101/184] Building C object CMakeFiles/nethack.dir/src/lock.c.o
    [102/184] Building C object CMakeFiles/nethack.dir/src/mcastu.c.o
    [103/184] Building C object CMakeFiles/nethack.dir/src/nle.c.o
    FAILED: CMakeFiles/nethack.dir/src/nle.c.o
    /usr/bin/cc -DDEFAULT_WINDOW_SYS=\"rl\" -DDLB -DGCC_WARN -DHACKDIR=\"/home/yunqxu/Downloads/nle/nle/nethackdir\" -DNLE_ALLOW_SEEDING -DNLE_USE_TILES -DNOCLIPPING -DNOCWD_ASSUMPTIONS -DNOMAIL -DNOTPARMDECL -Dnethack_EXPORTS -I/home/yunqxu/Downloads/nle/include -I/home/yunqxu/Downloads/nle/build/temp.linux-x86_64-3.8/include -I/home/yunqxu/Downloads/nle/third_party/libtmt -I/home/yunqxu/Downloads/nle/third_party/deboost.context/include -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/nethack.dir/src/nle.c.o -MF CMakeFiles/nethack.dir/src/nle.c.o.d -o CMakeFiles/nethack.dir/src/nle.c.o -c /home/yunqxu/Downloads/nle/src/nle.c
    /home/yunqxu/Downloads/nle/src/nle.c: In function β€˜nle_vt_callback’:
    /home/yunqxu/Downloads/nle/src/nle.c:84:9: error: β€˜for’ loop initial declarations are only allowed in C99 mode
             for (size_t r = 0; r < s->nline; r++) {
             ^
    /home/yunqxu/Downloads/nle/src/nle.c:84:9: note: use option -std=c99 or -std=gnu99 to compile your code
    /home/yunqxu/Downloads/nle/src/nle.c:86:17: error: β€˜for’ loop initial declarations are only allowed in C99 mode
                     for (size_t c = 0; c < s->ncol; c++) {
                     ^
    [104/184] Building C object CMakeFiles/nethack.dir/src/objects.c.o
    [105/184] Building C object CMakeFiles/nethack.dir/src/mkroom.c.o
    [106/184] Building C object CMakeFiles/nethack.dir/src/mondata.c.o
    [107/184] Building C object CMakeFiles/nethack.dir/src/apply.c.o
    [108/184] Building C object CMakeFiles/nethack.dir/src/music.c.o
    [109/184] Building C object CMakeFiles/nethack.dir/src/pline.c.o
    [110/184] Building C object CMakeFiles/nethack.dir/src/o_init.c.o
    [111/184] Building C object CMakeFiles/nethack.dir/src/mkmaze.c.o
    [112/184] Building C object CMakeFiles/nethack.dir/src/makemon.c.o
    [113/184] Building C object CMakeFiles/nethack.dir/src/mthrowu.c.o
    [114/184] Building CXX object CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o
    FAILED: CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o
    /usr/bin/c++ -DDEFAULT_WINDOW_SYS=\"rl\" -DDLB -DGCC_WARN -DHACKDIR=\"/home/yunqxu/Downloads/nle/nle/nethackdir\" -DNLE_ALLOW_SEEDING -DNLE_USE_TILES -DNOCLIPPING -DNOCWD_ASSUMPTIONS -DNOMAIL -DNOTPARMDECL -D_pynethack_EXPORTS -I/home/yunqxu/Downloads/nle/build/temp.linux-x86_64-3.8/include -I/home/yunqxu/Downloads/nle/include -isystem /home/yunqxu/Downloads/nle/third_party/pybind11/include -isystem /home/yunqxu/anaconda3/include/python3.8 -O3 -DNDEBUG -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -std=gnu++1y -MD -MT CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o -MF CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o.d -o CMakeFiles/_pynethack.dir/win/rl/pynethack.cc.o -c /home/yunqxu/Downloads/nle/win/rl/pynethack.cc
    In file included from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/pytypes.h:12:0,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/cast.h:13,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/attr.h:13,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/pybind11.h:45,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/numpy.h:12,
                     from /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:6:
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h: In instantiation of β€˜struct pybind11::overload_cast<>’:
    /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:349:58:   required from here
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:813:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
         static_assert(detail::deferred_t<std::false_type, Args...>::value,
         ^
    /home/yunqxu/Downloads/nle/win/rl/pynethack.cc: In function β€˜void pybind11_init__pynethack(pybind11::module_&)’:
    /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:349:58: error: no matching function for call to β€˜pybind11::overload_cast<>::overload_cast(<unresolved overloaded function type>)’
             .def("reset", py::overload_cast<>(&Nethack::reset))
                                                              ^
    /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:349:58: note: candidates are:
    In file included from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/pytypes.h:12:0,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/cast.h:13,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/attr.h:13,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/pybind11.h:45,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/numpy.h:12,
                     from /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:6:
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<>::overload_cast()
     template <typename... Args> struct overload_cast {
                                        ^
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   candidate expects 0 arguments, 1 provided
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<>::overload_cast(const pybind11::overload_cast<>&)
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   no known conversion for argument 1 from β€˜<unresolved overloaded function type>’ to β€˜const pybind11::overload_cast<>&’
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<>::overload_cast(pybind11::overload_cast<>&&)
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   no known conversion for argument 1 from β€˜<unresolved overloaded function type>’ to β€˜pybind11::overload_cast<>&&’
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h: In instantiation of β€˜struct pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’:
    /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:350:69:   required from here
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:813:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
         static_assert(detail::deferred_t<std::false_type, Args...>::value,
         ^
    /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:350:69: error: no matching function for call to β€˜pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::overload_cast(<unresolved overloaded function type>)’
             .def("reset", py::overload_cast<std::string>(&Nethack::reset))
                                                                         ^
    /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:350:69: note: candidates are:
    In file included from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/pytypes.h:12:0,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/cast.h:13,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/attr.h:13,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/pybind11.h:45,
                     from /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/numpy.h:12,
                     from /home/yunqxu/Downloads/nle/win/rl/pynethack.cc:6:
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::overload_cast()
     template <typename... Args> struct overload_cast {
                                        ^
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   candidate expects 0 arguments, 1 provided
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::overload_cast(const pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   no known conversion for argument 1 from β€˜<unresolved overloaded function type>’ to β€˜const pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&’
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note: constexpr pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::overload_cast(pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)
    /home/yunqxu/Downloads/nle/third_party/pybind11/include/pybind11/detail/common.h:812:36: note:   no known conversion for argument 1 from β€˜<unresolved overloaded function type>’ to β€˜pybind11::overload_cast<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&’
    [115/184] Building C object CMakeFiles/nethack.dir/src/mkobj.c.o
    [116/184] Building C object CMakeFiles/nethack.dir/src/hack.c.o
    [117/184] Building C object CMakeFiles/nethack.dir/src/monmove.c.o
    [118/184] Building C object CMakeFiles/nethack.dir/src/mklev.c.o
    [119/184] Building C object CMakeFiles/nethack.dir/src/cmd.c.o
    [120/184] Building C object CMakeFiles/nethack.dir/src/mhitu.c.o
    [121/184] Building C object CMakeFiles/nethack.dir/src/invent.c.o
    [122/184] Building C object CMakeFiles/nethack.dir/src/pager.c.o
    [123/184] Building C object CMakeFiles/nethack.dir/src/muse.c.o
    [124/184] Building C object CMakeFiles/nethack.dir/src/pickup.c.o
    [125/184] Building C object CMakeFiles/nethack.dir/src/mhitm.c.o
    [126/184] Building C object CMakeFiles/nethack.dir/src/mon.c.o
    [127/184] Building C object CMakeFiles/nethack.dir/src/objnam.c.o
    [128/184] Building C object CMakeFiles/nethack.dir/src/options.c.o
    ninja: build stopped: subcommand failed.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/yunqxu/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/yunqxu/Downloads/nle/setup.py'"'"'; __file__='"'"'/home/yunqxu/Downloads/nle/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
tscmoo commented 2 years ago

Hello, thanks for your interest in NLE.

Unfortunately, gcc 4.8 is very old and I am not surprised compilation fails. I'd recommend upgrading to a newer gcc (preferably 9 or newer).

YunqiuXu commented 2 years ago

Hi,

After upgrading gcc to 9.1.0 I succeed to install and run nle. Thanks for your help!