I ran into another build issue installing TextWorld 1.10 (the version pushed to PyPI earlier today).
To replicate in a clean Conda environment on macOS:
brew install libffi curl git
conda create --name textworld python=3.7
conda activate textworld
pip install textworld
This fails with the following error:
$ pip install textworld
Collecting textworld
Using cached https://files.pythonhosted.org/packages/57/db/d819321f11211f3ecdfd618031260e0d5bc474eb0d4c49127f042dfad0c2/textworld-1.1.0.tar.gz
Collecting numpy>=1.13.1 (from textworld)
Using cached https://files.pythonhosted.org/packages/46/e4/4a0cc770e4bfb34b4e10843805fef67b9a94027e59162a586c776f35c5bb/numpy-1.16.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting tqdm>=4.17.1 (from textworld)
Using cached https://files.pythonhosted.org/packages/76/4c/103a4d3415dafc1ddfe6a6624333971756e2d3dd8c6dc0f520152855f040/tqdm-4.30.0-py2.py3-none-any.whl
Collecting cffi>=1.0.0 (from textworld)
Using cached https://files.pythonhosted.org/packages/0b/ba/32835c9965d8a0090723e1d0b47373365525c4bd08c807b5efdc9fecbc99/cffi-1.11.5-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting networkx>=2 (from textworld)
Collecting pyyaml>=3.12 (from textworld)
Collecting urwid>=2.0.1 (from textworld)
Collecting more_itertools (from textworld)
Using cached https://files.pythonhosted.org/packages/a4/a6/42f17d065bda1fac255db13afc94c93dbfb64393eae37c749b4cb0752fc7/more_itertools-5.0.0-py3-none-any.whl
Collecting tatsu>=4.3.0 (from textworld)
Using cached https://files.pythonhosted.org/packages/4a/2a/73ab41b283bdad217bbcd58751662d7edcb650c3dc810c8caa58f2fdcf49/TatSu-4.3.0-py2.py3-none-any.whl
Collecting hashids>=1.2.0 (from textworld)
Collecting jericho>=1.1.5 (from textworld)
Collecting pybars3>=0.9.3 (from textworld)
Collecting flask>=1.0.2 (from textworld)
Using cached https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl
Collecting selenium>=3.12.0 (from textworld)
Using cached https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl
Collecting greenlet==0.4.13 (from textworld)
Collecting gevent==1.3.5 (from textworld)
Collecting pillow>=5.1.0 (from textworld)
Using cached https://files.pythonhosted.org/packages/c9/ed/27cc92e99b9ccaa0985a66133baeea7e8a3371d3c04cfa353aaa3b81aac1/Pillow-5.4.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting pydot>=1.2.4 (from textworld)
Using cached https://files.pythonhosted.org/packages/33/d1/b1479a770f66d962f545c2101630ce1d5592d90cb4f083d38862e93d16d2/pydot-1.4.1-py2.py3-none-any.whl
Collecting prompt_toolkit<2.1.0,>=2.0.0 (from textworld)
Using cached https://files.pythonhosted.org/packages/65/c2/e676da701cda11b32ff42eceb44aa7d8934b597d604bb5e94c0283def064/prompt_toolkit-2.0.8-py3-none-any.whl
Collecting gym==0.10.4 (from textworld)
Collecting pycparser (from cffi>=1.0.0->textworld)
Collecting decorator>=4.3.0 (from networkx>=2->textworld)
Using cached https://files.pythonhosted.org/packages/f1/cd/7c8240007e9716b14679bc217a1baefa4432aa30394f7e2ec40a52b1a708/decorator-4.3.2-py2.py3-none-any.whl
Collecting six<2.0.0,>=1.0.0 (from more_itertools->textworld)
Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting PyMeta3>=0.5.1 (from pybars3>=0.9.3->textworld)
Collecting Werkzeug>=0.14 (from flask>=1.0.2->textworld)
Using cached https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl
Collecting itsdangerous>=0.24 (from flask>=1.0.2->textworld)
Using cached https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting Jinja2>=2.10 (from flask>=1.0.2->textworld)
Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
Collecting click>=5.1 (from flask>=1.0.2->textworld)
Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting urllib3 (from selenium>=3.12.0->textworld)
Using cached https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl
Collecting pyparsing>=2.1.4 (from pydot>=1.2.4->textworld)
Using cached https://files.pythonhosted.org/packages/de/0a/001be530836743d8be6c2d85069f46fecf84ac6c18c7f5fb8125ee11d854/pyparsing-2.3.1-py2.py3-none-any.whl
Collecting wcwidth (from prompt_toolkit<2.1.0,>=2.0.0->textworld)
Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting requests>=2.0 (from gym==0.10.4->textworld)
Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl
Collecting pyglet>=1.2.0 (from gym==0.10.4->textworld)
Using cached https://files.pythonhosted.org/packages/1c/fc/dad5eaaab68f0c21e2f906a94ddb98175662cc5a654eee404d59554ce0fa/pyglet-1.3.2-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from Jinja2>=2.10->flask>=1.0.2->textworld)
Using cached https://files.pythonhosted.org/packages/96/52/eef455862764cb6d6c136aa52c7f9fc4e7c1c644790a7107b1244a2b8a53/MarkupSafe-1.1.0-cp37-cp37m-macosx_10_6_intel.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.0->gym==0.10.4->textworld)
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.9,>=2.5 (from requests>=2.0->gym==0.10.4->textworld)
Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
Requirement already satisfied: certifi>=2017.4.17 in /Users/leon/miniconda3/envs/textworld/lib/python3.7/site-packages (from requests>=2.0->gym==0.10.4->textworld) (2018.11.29)
Collecting future (from pyglet>=1.2.0->gym==0.10.4->textworld)
Building wheels for collected packages: textworld
Building wheel for textworld (setup.py) ... error
Complete output from command /Users/leon/miniconda3/envs/textworld/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-wheel-c2qxr8sz --python-tag cp37:
running bdist_wheel
running build
running build_py
+ echo 'Running setup.sh...'
Running setup.sh...
++ uname -s
+ unameOut=Darwin
+ case "${unameOut}" in
+ machine=Mac
+ cd textworld/thirdparty/
+ '[' '!' -e I7_6M62_Linux_all.tar.gz ']'
+ echo 'Downloading Inform7 CLI'
Downloading Inform7 CLI
+ curl -LO http://inform7.com/download/content/6M62/I7_6M62_Linux_all.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22.1M 100 22.1M 0 0 8956k 0 0:00:02 0:00:02 --:--:-- 8956k
+ '[' Mac == Mac ']'
+ '[' '!' -e I7-6M62-OSX.dmg ']'
+ echo 'Downloading Inform7 for Mac'
Downloading Inform7 for Mac
+ curl -LO http://inform7.com/download/content/6M62/I7-6M62-OSX.dmg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 27.4M 100 27.4M 0 0 8716k 0 0:00:03 0:00:03 --:--:-- 8718k
+ '[' '!' -d inform7-6M62 ']'
+ echo 'Installing Inform7 CLI'
Installing Inform7 CLI
+ cd inform7-6M62/
+ ./install-inform7.sh --prefix /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty/inform7-6M62
+ cd ..
+ rm -f inform7-6M62/share/inform7/Internal/I6T/Actions.i6t
+ cp inform7/share/inform7/Internal/I6T/Actions.i6t inform7-6M62/share/inform7/Internal/I6T/Actions.i6t
+ '[' Mac == Mac ']'
+ '[' -e inform7-6M62 ']'
+ echo 'Mounting Inform for Mac'
Mounting Inform for Mac
+ hdiutil attach ./I7-6M62-OSX.dmg
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $252B40D3
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $677934B8
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $116B510C
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
disk image (Apple_HFS : 4): verified CRC32 $057BB535
Checksumming (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $116B510C
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $676DD2DA
verified CRC32 $6521C609
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 Apple_HFS /Volumes/Inform
+ echo 'Copying Mac compiled inform files'
Copying Mac compiled inform files
++ pwd
+ current_dir=/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty
+ cd /Volumes/Inform/Inform.app/Contents/MacOS
+ cp cBlorb inform6 Inform intest ni /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty/inform7-6M62/share/inform7/Compilers/
+ cp ./git /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty/inform7-6M62/share/inform7/Interpreters/dumb-git
+ cp ./glulxe /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty/inform7-6M62/share/inform7/Interpreters/dumb-glulxe
+ cd /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty
+ echo 'Unmounting Inform for Mac'
Unmounting Inform for Mac
+ hdiutil detach /Volumes/Inform/
"disk2" ejected.
+ '[' '!' -d frotz ']'
+ cd frotz/
+ make -B dumb
gcc -O2 -o src/common/buffer.o -c src/common/buffer.c
gcc -O2 -o src/common/err.o -c src/common/err.c
gcc -O2 -o src/common/fastmem.o -c src/common/fastmem.c
gcc -O2 -o src/common/files.o -c src/common/files.c
gcc -O2 -o src/common/hotkey.o -c src/common/hotkey.c
gcc -O2 -o src/common/input.o -c src/common/input.c
gcc -O2 -o src/common/main.o -c src/common/main.c
gcc -O2 -o src/common/math.o -c src/common/math.c
gcc -O2 -o src/common/object.o -c src/common/object.c
gcc -O2 -o src/common/process.o -c src/common/process.c
gcc -O2 -o src/common/quetzal.o -c src/common/quetzal.c
gcc -O2 -o src/common/random.o -c src/common/random.c
gcc -O2 -o src/common/redirect.o -c src/common/redirect.c
gcc -O2 -o src/common/screen.o -c src/common/screen.c
gcc -O2 -o src/common/sound.o -c src/common/sound.c
gcc -O2 -o src/common/stream.o -c src/common/stream.c
gcc -O2 -o src/common/table.o -c src/common/table.c
gcc -O2 -o src/common/text.o -c src/common/text.c
gcc -O2 -o src/common/variable.o -c src/common/variable.c
Archiving common code...
/usr/bin/ar rc src/frotz_common.a src/common/buffer.o src/common/err.o src/common/fastmem.o src/common/files.o src/common/hotkey.o src/common/input.o src/common/main.o src/common/math.o src/common/object.o src/common/process.o src/common/quetzal.o src/common/random.o src/common/redirect.o src/common/screen.o src/common/sound.o src/common/stream.o src/common/table.o src/common/text.o src/common/variable.o
/usr/bin/ranlib src/frotz_common.a
gcc -O2 -o src/dumb/dumb_init.o -c src/dumb/dumb_init.c
gcc -O2 -o src/dumb/dumb_input.o -c src/dumb/dumb_input.c
src/dumb/dumb_input.c:129:39: warning: implicit conversion from 'int' to 'char' changes value from 142 to -114 [-Wconstant-conversion]
case '0': *dest++ = ZC_FKEY_MIN + 9; break;
~ ~~~~~~~~~~~~^~~
src/dumb/dumb_input.c:252:32: warning: passing 'zchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
dumb_discard_old_input(strlen(continued_line_chars));
^~~~~~~~~~~~~~~~~~~~
/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t strlen(const char *__s);
^
src/dumb/dumb_input.c:267:14: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
printf("%.*s", next_page - current_page, current_page);
~~^~ ~~~~~~~~~~~~~~~~~~~~~~~~
src/dumb/dumb_input.c:375:10: warning: passing 'zchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strcat(buf, read_line_buffer);
^~~
/usr/include/secure/_string.h:131:27: note: expanded from macro 'strcat'
__builtin___strcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^~~~
4 warnings generated.
gcc -O2 -o src/dumb/dumb_output.o -c src/dumb/dumb_output.c
gcc -O2 -o src/dumb/dumb_pic.o -c src/dumb/dumb_pic.c
Archiving dumb interface code...
/usr/bin/ar rc src/frotz_dumb.a src/dumb/dumb_init.o src/dumb/dumb_input.o src/dumb/dumb_output.o src/dumb/dumb_pic.o
/usr/bin/ranlib src/frotz_dumb.a
gcc -o dfrotz src/frotz_common.a src/frotz_dumb.a
ld: warning: ignoring file src/frotz_dumb.a, file was built for archive which is not the architecture being linked (x86_64): src/frotz_dumb.a
ld: warning: ignoring file src/frotz_common.a, file was built for archive which is not the architecture being linked (x86_64): src/frotz_common.a
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [frotz-dumb] Error 1
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py", line 67, in <module>
'nose==1.3.7',
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 188, in run
self.run_command('build')
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py", line 37, in run
_pre_install(None)
File "/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py", line 18, in _pre_install
check_call(['./setup.sh'], shell=True, cwd=os.getcwd())
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./setup.sh']' returned non-zero exit status 2.
----------------------------------------
Failed building wheel for textworld
Running setup.py clean for textworld
Failed to build textworld
Installing collected packages: numpy, tqdm, pycparser, cffi, decorator, networkx, pyyaml, urwid, six, more-itertools, tatsu, hashids, jericho, PyMeta3, pybars3, Werkzeug, itsdangerous, MarkupSafe,Jinja2, click, flask, urllib3, selenium, greenlet, gevent, pillow, pyparsing, pydot, wcwidth, prompt-toolkit, chardet, idna, requests, future, pyglet, gym, textworld
Running setup.py install for textworld ... error
Complete output from command /Users/leon/miniconda3/envs/textworld/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-record-5kd705kj/install-record.txt --single-version-externally-managed --compile:
running install
Running post install task
+ echo 'Running setup.sh...'
Running setup.sh...
++ uname -s
+ unameOut=Darwin
+ case "${unameOut}" in
+ machine=Mac
+ cd textworld/thirdparty/
+ '[' '!' -e I7_6M62_Linux_all.tar.gz ']'
+ '[' '!' -d inform7-6M62 ']'
+ echo 'Installing Inform7 CLI'
Installing Inform7 CLI
+ cd inform7-6M62/
+ ./install-inform7.sh --prefix /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty/inform7-6M62
+ cd ..
+ rm -f inform7-6M62/share/inform7/Internal/I6T/Actions.i6t
+ cp inform7/share/inform7/Internal/I6T/Actions.i6t inform7-6M62/share/inform7/Internal/I6T/Actions.i6t
+ '[' Mac == Mac ']'
+ '[' -e inform7-6M62 ']'
+ echo 'Mounting Inform for Mac'
Mounting Inform for Mac
+ hdiutil attach ./I7-6M62-OSX.dmg
expected CRC32 $6521C609
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 Apple_HFS /Volumes/Inform
+ echo 'Copying Mac compiled inform files'
Copying Mac compiled inform files
++ pwd
+ current_dir=/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty
+ cd /Volumes/Inform/Inform.app/Contents/MacOS
+ cp cBlorb inform6 Inform intest ni /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty/inform7-6M62/share/inform7/Compilers/
+ cp ./git /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty/inform7-6M62/share/inform7/Interpreters/dumb-git
+ cp ./glulxe /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty/inform7-6M62/share/inform7/Interpreters/dumb-glulxe
+ cd /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/textworld/thirdparty
+ echo 'Unmounting Inform for Mac'
Unmounting Inform for Mac
+ hdiutil detach /Volumes/Inform/
"disk2" ejected.
+ '[' '!' -d frotz ']'
+ cd frotz/
+ make -B dumb
gcc -O2 -o src/common/buffer.o -c src/common/buffer.c
gcc -O2 -o src/common/err.o -c src/common/err.c
gcc -O2 -o src/common/fastmem.o -c src/common/fastmem.c
gcc -O2 -o src/common/files.o -c src/common/files.c
gcc -O2 -o src/common/hotkey.o -c src/common/hotkey.c
gcc -O2 -o src/common/input.o -c src/common/input.c
gcc -O2 -o src/common/main.o -c src/common/main.c
gcc -O2 -o src/common/math.o -c src/common/math.c
gcc -O2 -o src/common/object.o -c src/common/object.c
gcc -O2 -o src/common/process.o -c src/common/process.c
gcc -O2 -o src/common/quetzal.o -c src/common/quetzal.c
gcc -O2 -o src/common/random.o -c src/common/random.c
gcc -O2 -o src/common/redirect.o -c src/common/redirect.c
gcc -O2 -o src/common/screen.o -c src/common/screen.c
gcc -O2 -o src/common/sound.o -c src/common/sound.c
gcc -O2 -o src/common/stream.o -c src/common/stream.c
gcc -O2 -o src/common/table.o -c src/common/table.c
gcc -O2 -o src/common/text.o -c src/common/text.c
gcc -O2 -o src/common/variable.o -c src/common/variable.c
Archiving common code...
/usr/bin/ar rc src/frotz_common.a src/common/buffer.o src/common/err.o src/common/fastmem.o src/common/files.o src/common/hotkey.o src/common/input.o src/common/main.o src/common/math.o src/common/object.o src/common/process.o src/common/quetzal.o src/common/random.o src/common/redirect.o src/common/screen.o src/common/sound.o src/common/stream.o src/common/table.o src/common/text.o src/common/variable.o
/usr/bin/ranlib src/frotz_common.a
gcc -O2 -o src/dumb/dumb_init.o -c src/dumb/dumb_init.c
gcc -O2 -o src/dumb/dumb_input.o -c src/dumb/dumb_input.c
src/dumb/dumb_input.c:129:39: warning: implicit conversion from 'int' to 'char' changes value from 142 to -114 [-Wconstant-conversion]
case '0': *dest++ = ZC_FKEY_MIN + 9; break;
~ ~~~~~~~~~~~~^~~
src/dumb/dumb_input.c:252:32: warning: passing 'zchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
dumb_discard_old_input(strlen(continued_line_chars));
^~~~~~~~~~~~~~~~~~~~
/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t strlen(const char *__s);
^
src/dumb/dumb_input.c:267:14: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
printf("%.*s", next_page - current_page, current_page);
~~^~ ~~~~~~~~~~~~~~~~~~~~~~~~
src/dumb/dumb_input.c:375:10: warning: passing 'zchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strcat(buf, read_line_buffer);
^~~
/usr/include/secure/_string.h:131:27: note: expanded from macro 'strcat'
__builtin___strcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^~~~
4 warnings generated.
gcc -O2 -o src/dumb/dumb_output.o -c src/dumb/dumb_output.c
gcc -O2 -o src/dumb/dumb_pic.o -c src/dumb/dumb_pic.c
Archiving dumb interface code...
/usr/bin/ar rc src/frotz_dumb.a src/dumb/dumb_init.o src/dumb/dumb_input.o src/dumb/dumb_output.o src/dumb/dumb_pic.o
/usr/bin/ranlib src/frotz_dumb.a
gcc -o dfrotz src/frotz_common.a src/frotz_dumb.a
ld: warning: ld: warning: ignoring file src/frotz_common.a, file was built for archive which is not the architecture being linked (x86_64): src/frotz_common.a
ignoring file src/frotz_dumb.a, file was built for archive which is not the architecture being linked (x86_64): src/frotz_dumb.a
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [frotz-dumb] Error 1
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py", line 67, in <module>
'nose==1.3.7',
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py", line 24, in run
msg="Running post install task")
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/cmd.py", line 335, in execute
util.execute(func, args, msg, dry_run=self.dry_run)
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/distutils/util.py", line 286, in execute
func(*args)
File "/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py", line 18, in _pre_install
check_call(['./setup.sh'], shell=True, cwd=os.getcwd())
File "/Users/leon/miniconda3/envs/textworld/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./setup.sh']' returned non-zero exit status 2.
----------------------------------------
Command "/Users/leon/miniconda3/envs/textworld/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-record-5kd705kj/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/8r/mj5p4vvj4wj1dbl7bz7gj1hc0000gn/T/pip-install-yfs_da44/textworld/
Looks like this is a different error from #121.
bug