microsoft / jericho

A learning environment for man-made Interactive Fiction games.
GNU General Public License v2.0
253 stars 42 forks source link

Install Jericho on MacOS #40

Closed ktr0921 closed 3 years ago

ktr0921 commented 3 years ago

I faced this error while installing Jericho on MacOS. pip install jericho==2.4.0

Collecting jericho==2.4.0
  Using cached jericho-2.4.0.tar.gz (1.1 MB)
    ERROR: Command errored out with exit status 1:
     command: /Users/dryu0002/opt/miniconda3/envs/main/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-install-whrl4li9/jericho_32d99cbf407e4e18912c167420fdfb17/setup.py'"'"'; __file__='"'"'/private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-install-whrl4li9/jericho_32d99cbf407e4e18912c167420fdfb17/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-pip-egg-info-h_q5hocn
         cwd: /private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-install-whrl4li9/jericho_32d99cbf407e4e18912c167420fdfb17/
    Complete output (43 lines):
    rm -f src/*.h src/*.a
    rm -f src/libfrotz.so
    rm -f src/curses/defines.h
    rm -f frotz_python_interface/libfrotz.so
    find . -name *.o -exec rm -f {} \;
    find . -name *.O -exec rm -f {} \;
    #gcc -O3 -fPIC -o src/common/buffer.o -c src/common/buffer.c
    #gcc -O3 -fPIC -o src/common/err.o -c src/common/err.c
    #gcc -O3 -fPIC -o src/common/fastmem.o -c src/common/fastmem.c
    #gcc -O3 -fPIC -o src/common/files.o -c src/common/files.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/buffer.o -c src/common/buffer.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/err.o -c src/common/err.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/files.o -c src/common/files.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/fastmem.o -c src/common/fastmem.c
    src/common/buffer.c:21:20: fatal error: string.h: No such file or directory
     #include <string.h>
                        ^
    compilation terminated.
    src/common/files.c:21:19: fatal error: stdio.h: No such file or directory
     #include <stdio.h>
                       ^
    src/common/fastmem.c:25:19: fatal error: stdio.h: No such file or directory
     #include <stdio.h>
                       ^
    compilation terminated.
    compilation terminated.
    In file included from src/common/err.c:21:0:
    src/common/frotz.h:16:20: fatal error: signal.h: No such file or directory
     #include <signal.h>
                        ^
    compilation terminated.
    make: *** [src/common/fastmem.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [src/common/files.o] Error 1
    make: *** [src/common/buffer.o] Error 1
    make: *** [src/common/err.o] Error 1
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-install-whrl4li9/jericho_32d99cbf407e4e18912c167420fdfb17/setup.py", line 27, in <module>
        subprocess.check_call(['make', 'library', '-j', '4'], cwd=FROTZPATH)
      File "/Users/dryu0002/opt/miniconda3/envs/main/lib/python3.7/subprocess.py", line 363, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['make', 'library', '-j', '4']' returned non-zero exit status 2.
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/89/15/c0c5cb4bd06973af85545333b549458ddb620094b152852310915f892bb6/jericho-2.4.0.tar.gz#sha256=4e551c31f32adbc5606c967bf70aa2aa22e1793208ce75b6c077b013d4a089cf (from https://pypi.org/simple/jericho/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement jericho==2.4.0
ERROR: No matching distribution found for jericho==2.4.0

If I clone the git and use cd jericho; pip3 install ., I face the same problem

My set up is,

Or, is there any installation documents for MacOS?

Thank you in advance

mhauskn commented 3 years ago

It looks like gcc isn't finding standard c++ libraries. This StackOverflow post recommends installing the latest 'Command Line Tools' package by running:

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

ktr0921 commented 3 years ago

@mhauskn Thank you for your reply. I read StackOverflow post, but it does not work. /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg does not exist in my MacOS version (MacOS Big Sur 11.0.1), so I cannot open it. Problem seems to be /usr/include because MacOS removed this for some reasons. StackOverflow post has solution for MacOS Catalina 10.15, but MacOS Big Sur 11.0.1 is different from MacOS Catalina 10.15, and I cannot find much information.

It seems like /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include is what I need (but this is purely my guess), but I do not know how to install this in /usr/include.

This link also talks about it. My setting appears to be the same as what they suggested, but it still does not work.

$ ls -lh /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
total 0
drwxr-xr-x  5 root  wheel   160B 30 Nov 23:27 DriverKit20.2.sdk
drwxr-xr-x  8 root  wheel   256B 23 Mar 14:31 MacOSX.sdk
lrwxr-xr-x  1 root  wheel    10B  8 Mar 14:10 MacOSX11.1.sdk -> MacOSX.sdk

Installed gcc, llvm again, but it gave me the same error.

Further, I tried export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include from this link, then I get different errors.

Collecting jericho==2.4.0
  Using cached jericho-2.4.0.tar.gz (1.1 MB)
    ERROR: Command errored out with exit status 1:
     command: /Users/dryu0002/opt/miniconda3/envs/main/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-install-0j4r5vid/jericho_751bc451093e498983918ae4a14fd95a/setup.py'"'"'; __file__='"'"'/private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-install-0j4r5vid/jericho_751bc451093e498983918ae4a14fd95a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-pip-egg-info-nv9ga0y5
         cwd: /private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-install-0j4r5vid/jericho_751bc451093e498983918ae4a14fd95a/
    Complete output (335 lines):
    rm -f src/*.h src/*.a
    rm -f src/libfrotz.so
    rm -f src/curses/defines.h
    rm -f frotz_python_interface/libfrotz.so
    find . -name *.o -exec rm -f {} \;
    find . -name *.O -exec rm -f {} \;
    #gcc -O3 -fPIC -o src/common/buffer.o -c src/common/buffer.c
    #gcc -O3 -fPIC -o src/common/err.o -c src/common/err.c
    #gcc -O3 -fPIC -o src/common/fastmem.o -c src/common/fastmem.c
    #gcc -O3 -fPIC -o src/common/files.o -c src/common/files.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/buffer.o -c src/common/buffer.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/files.o -c src/common/files.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/err.o -c src/common/err.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/fastmem.o -c src/common/fastmem.c
    #gcc -O3 -fPIC -o src/common/hotkey.o -c src/common/hotkey.c
    #gcc -O3 -fPIC -o src/common/input.o -c src/common/input.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/hotkey.o -c src/common/hotkey.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/input.o -c src/common/input.c
    #gcc -O3 -fPIC -o src/common/main.o -c src/common/main.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/main.o -c src/common/main.c
    #gcc -O3 -fPIC -o src/common/math.o -c src/common/math.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/math.o -c src/common/math.c
    #gcc -O3 -fPIC -o src/common/object.o -c src/common/object.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/object.o -c src/common/object.c
    #gcc -O3 -fPIC -o src/common/process.o -c src/common/process.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/process.o -c src/common/process.c
    #gcc -O3 -fPIC -o src/common/quetzal.o -c src/common/quetzal.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/quetzal.o -c src/common/quetzal.c
    #gcc -O3 -fPIC -o src/common/squetzal.o -c src/common/squetzal.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/squetzal.o -c src/common/squetzal.c
    #gcc -O3 -fPIC -o src/common/random.o -c src/common/random.c
    #gcc -O3 -fPIC -o src/common/redirect.o -c src/common/redirect.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/random.o -c src/common/random.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/redirect.o -c src/common/redirect.c
    #gcc -O3 -fPIC -o src/common/screen.o -c src/common/screen.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/screen.o -c src/common/screen.c
    #gcc -O3 -fPIC -o src/common/sound.o -c src/common/sound.c
    #gcc -O3 -fPIC -o src/common/stream.o -c src/common/stream.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/sound.o -c src/common/sound.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/stream.o -c src/common/stream.c
    #gcc -O3 -fPIC -o src/common/table.o -c src/common/table.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/table.o -c src/common/table.c
    #gcc -O3 -fPIC -o src/common/text.o -c src/common/text.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/text.o -c src/common/text.c
    #gcc -O3 -fPIC -o src/common/variable.o -c src/common/variable.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_init.o -c src/dumb/dumb_init.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/variable.o -c src/common/variable.c
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/limits.h:65:0,
                     from src/dumb/../blorb/blorb.h:21,
                     from src/dumb/dumb_blorb.h:1,
                     from src/dumb/dumb_init.c:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:99:0: warning: "PATH_MAX" redefined [enabled by default]
     #define PATH_MAX                 1024   /* max bytes in pathname */
     ^
    In file included from src/dumb/dumb_frotz.h:12:0,
                     from src/dumb/dumb_init.c:23:
    src/dumb/../common/frotz.h:35:0: note: this is the location of the previous definition
     #      define PATH_MAX    FILENAME_MAX
     ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_input.o -c src/dumb/dumb_input.c
    src/dumb/dumb_input.c: In function ‘dumb_read_line’:
    src/dumb/dumb_input.c:207:43: warning: unused parameter ‘prompt’ [-Wunused-parameter]
     static bool dumb_read_line(char *s, char *prompt, bool show_cursor,
                                               ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_output.o -c src/dumb/dumb_output.c
    src/dumb/dumb_output.c: In function ‘dumb_display_user_input’:
    src/dumb/dumb_output.c:156:36: warning: unused parameter ‘s’ [-Wunused-parameter]
     void dumb_display_user_input(char *s)
                                        ^
    src/dumb/dumb_output.c: In function ‘os_scroll_area’:
    src/dumb/dumb_output.c:223:26: warning: unused parameter ‘top’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                              ^
    src/dumb/dumb_output.c:223:35: warning: unused parameter ‘left’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                                       ^
    src/dumb/dumb_output.c:223:45: warning: unused parameter ‘bottom’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                                                 ^
    src/dumb/dumb_output.c:223:57: warning: unused parameter ‘right’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                                                             ^
    src/dumb/dumb_output.c:223:68: warning: unused parameter ‘units’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                                                                        ^
    src/dumb/dumb_output.c: At top level:
    src/dumb/dumb_output.c:136:13: warning: ‘dumb_copy_cell’ defined but not used [-Wunused-function]
     static void dumb_copy_cell(int dest_row, int dest_col,
                 ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_pic.o -c src/dumb/dumb_pic.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_blorb.o -c src/dumb/dumb_blorb.c
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/limits.h:65:0,
                     from src/dumb/../blorb/blorb.h:21,
                     from src/dumb/dumb_blorb.h:1,
                     from src/dumb/dumb_blorb.c:31:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:99:0: warning: "PATH_MAX" redefined [enabled by default]
     #define PATH_MAX                 1024   /* max bytes in pathname */
     ^
    In file included from src/dumb/dumb_frotz.h:12:0,
                     from src/dumb/dumb_blorb.c:30:
    src/dumb/../common/frotz.h:35:0: note: this is the location of the previous definition
     #      define PATH_MAX    FILENAME_MAX
     ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/blorb/blorblib.o -c src/blorb/blorblib.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/infodump.o -c src/ztools/infodump.c
    In file included from src/ztools/infodump.c:54:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/infodump.c: In function ‘show_map’:
    src/ztools/infodump.c:479:5: warning: implicit declaration of function ‘configure_inform_tables’ [-Wimplicit-function-declaration]
         configure_inform_tables(obj_data_end, &inform_version, &class_numbers_base, &class_numbers_end,
         ^
    src/ztools/infodump.c: At top level:
    src/ztools/infodump.c:209:13: warning: ‘show_help’ defined but not used [-Wunused-function]
     static void show_help (const char *program)
                 ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/showhead.o -c src/ztools/showhead.c
    In file included from src/ztools/showhead.c:7:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/showhead.c: In function ‘show_header’:
    src/ztools/showhead.c:350:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (i = 4; i < sizeof (header.name); i++)
                    ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/showdict.o -c src/ztools/showdict.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/showobj.o -c src/ztools/showobj.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/showverb.o -c src/ztools/showverb.c
    In file included from src/ztools/showdict.c:7:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/showdict.c: In function ‘get_dictionary’:
    src/ztools/showdict.c:68:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (dict_size != word_count) {
                       ^
    src/ztools/showdict.c:85:9: warning: implicit declaration of function ‘decode_text_to_buffer’ [-Wimplicit-function-declaration]
             decode_text_to_buffer(&word_address, &(dict_word->word));
             ^
    src/ztools/showdict.c:33:58: warning: unused variable ‘length’ [-Wunused-variable]
         unsigned int separator_count, word_size, word_count, length;
                                                              ^
    In file included from src/ztools/showobj.c:7:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/showobj.c: In function ‘show_objects’:
    src/ztools/showobj.c:249:6: warning: implicit declaration of function ‘configure_inform_tables’ [-Wimplicit-function-declaration]
          configure_inform_tables(obj_data_end, &inform_version, &class_numbers_base, &class_numbers_end,
          ^
    src/ztools/showobj.c:277:6: warning: implicit declaration of function ‘print_attribute_name’ [-Wimplicit-function-declaration]
          if (print_attribute_name(attr_names_base, (int) ((j * 8) + (7 - k))))
          ^
    src/ztools/showobj.c: In function ‘print_property_list’:
    src/ztools/showobj.c:368:2: warning: implicit declaration of function ‘print_property_name’ [-Wimplicit-function-declaration]
      if (print_property_name(property_names_base, (int) (data & property_mask)))
      ^
    In file included from src/ztools/showverb.c:7:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/showverb.c: In function ‘configure_parse_tables’:
    src/ztools/showverb.c:376:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     for (i = 0; i < entry_count && (*parser_type == inform_gv1); i++) {
                                   ^
    src/ztools/showverb.c: In function ‘show_verbs’:
    src/ztools/showverb.c:539:9: warning: implicit declaration of function ‘configure_object_tables’ [-Wimplicit-function-declaration]
             configure_object_tables (&obj_count, &obj_table_base, &obj_table_end,
             ^
    src/ztools/showverb.c:541:9: warning: implicit declaration of function ‘configure_inform_tables’ [-Wimplicit-function-declaration]
             configure_inform_tables(obj_data_end, &inform_version, &class_numbers_base, &class_numbers_end,
             ^
    In file included from src/ztools/showverb.c:7:0:
    src/ztools/showverb.c: In function ‘show_verb_parse_table’:
    src/ztools/showdict.c:137:24: warning: ‘dictpar1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
               if (dictpar1 & SPECIAL)
                            ^
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:693:59: note: in expansion of macro ‘VERB_NUM’
                 tx_printf ("\n%3d. %d entr%s, verb = ", (int) VERB_NUM(i, parser_type),
                                                               ^
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:695:25: note: in expansion of macro ‘VERB_NUM’
                 show_words (VERB_NUM(i, parser_type), 0L, VERB, parser_type);
                             ^
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:742:49: note: in expansion of macro ‘VERB_NUM’
                     show_verb_grammar (parse_entry, VERB_NUM(i, parser_type), (int) parser_type, 0,
                                                     ^
    src/ztools/showverb.c: In function ‘show_syntax_of_action’:
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:873:53: note: in expansion of macro ‘VERB_NUM’
                         show_verb_grammar (parse_entry, VERB_NUM(i, parser_type), (int) parser_type, 0,
                                                         ^
    src/ztools/showverb.c: In function ‘show_syntax_of_parsing_routine’:
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:1001:49: note: in expansion of macro ‘VERB_NUM’
                     show_verb_grammar (parse_entry, VERB_NUM(i, parser_type), (int) parser_type, (int) prep_type, 0,
                                                     ^
    src/ztools/showverb.c: In function ‘show_action_tables’:
    src/ztools/showverb.c:1095:13: warning: implicit declaration of function ‘print_inform_action_name’ [-Wimplicit-function-declaration]
                 print_inform_action_name(action_names_base, action);
                 ^
    src/ztools/showverb.c: In function ‘show_verb_grammar’:
    src/ztools/showverb.c:1387:21: warning: implicit declaration of function ‘print_attribute_name’ [-Wimplicit-function-declaration]
                         if (!print_attribute_name(attr_names_base, token_data)) {
                         ^
    src/ztools/showdict.c: In function ‘show_dictionary’:
    src/ztools/showdict.c:281:30: warning: ‘dictpar1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                     if (dictpar1 & SPECIAL)
                                  ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/txio.o -c src/ztools/txio.c
    In file included from src/ztools/txio.c:9:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/txio.c: In function ‘configure’:
    src/ztools/txio.c:131:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof (header.serial); i++)
                       ^
    src/ztools/txio.c:159:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof (header.name); i++)
                       ^
    src/ztools/txio.c: In function ‘write_high_zscii’:
    src/ztools/txio.c:994:9: warning: variable ‘length’ set but not used [-Wunused-but-set-variable]
         int length, i;
             ^
    src/ztools/txio.c: In function ‘decode_text_to_buffer’:
    src/ztools/txio.c:863:1: warning: control reaches end of non-void function [-Wreturn-type]
     }/* decode_text_to_buffer */
     ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/infinfo.o -c src/ztools/infinfo.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/symbols.o -c src/ztools/symbols.c
    In file included from src/ztools/infinfo.c:10:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    In file included from src/ztools/symbols.c:1:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/symbols.c: In function ‘init_symbols’:
    src/ztools/symbols.c:115:6: warning: unused variable ‘property’ [-Wunused-variable]
      int property = 0;
          ^
    src/ztools/symbols.c:114:6: warning: unused variable ‘attribute’ [-Wunused-variable]
      int attribute = 0;
          ^
    src/ztools/symbols.c:113:6: warning: unused variable ‘global’ [-Wunused-variable]
      int global = 0;
          ^
    src/ztools/symbols.c: In function ‘print_attribute_name’:
    src/ztools/symbols.c:273:3: warning: implicit declaration of function ‘print_inform_attribute_name’ [-Wimplicit-function-declaration]
       return print_inform_attribute_name(attr_names_base, attr_no);
       ^
    src/ztools/symbols.c: In function ‘print_local_name’:
    src/ztools/symbols.c:310:2: warning: statement with no effect [-Wunused-value]
      start_of_routine;
      ^
    src/ztools/symbols.c:311:2: warning: statement with no effect [-Wunused-value]
      local_no;
      ^
    src/ztools/symbols.c: In function ‘print_global_name’:
    src/ztools/symbols.c:324:2: warning: statement with no effect [-Wunused-value]
      start_of_routine;
      ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/txd.o -c src/ztools/txd.c
    #gcc -O3 -fPIC -o src/interface/frotz_interface.o -c src/interface/frotz_interface.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/interface/frotz_interface.o -c src/interface/frotz_interface.c
    In file included from src/ztools/txd.c:55:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h:136:0,
                     from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:61,
                     from src/interface/frotz_interface.c:19:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h:33:18: error: missing binary operator before token "("
     #if __has_include(<AvailabilityInternalPrivate.h>)
                      ^
    src/ztools/txd.c: In function ‘disassemble’:
    src/ztools/txd.c:290:5: warning: implicit declaration of function ‘configure_object_tables’ [-Wimplicit-function-declaration]
         configure_object_tables (&obj_count, &obj_table_base, &obj_table_end,
         ^
    src/ztools/txd.c:292:9: warning: implicit declaration of function ‘configure_inform_tables’ [-Wimplicit-function-declaration]
             configure_inform_tables(obj_data_end, &inform_version, &class_numbers_base, &class_numbers_end,
             ^
    src/ztools/txd.c:334:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if ((decode.low_address - code_base) >= story_scaler) {
                                              ^
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:61:0,
                     from src/interface/frotz_interface.c:19:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h:462:18: error: missing binary operator before token "("
     #if __has_include(<AvailabilityProhibitedInternal.h>)
                      ^
    src/ztools/txd.c: In function ‘decode_operands’:
    src/ztools/txd.c:980:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (i = 0; i < len; i++)
                           ^
    src/ztools/txd.c: In function ‘decode_parameter’:
    src/ztools/txd.c:1191:9: warning: implicit declaration of function ‘print_property_name’ [-Wimplicit-function-declaration]
             if (!print_property_name(property_names_base, value))
             ^
    src/ztools/txd.c:1197:9: warning: implicit declaration of function ‘print_attribute_name’ [-Wimplicit-function-declaration]
             if (!print_attribute_name(attr_names_base, value))
             ^
    src/ztools/txd.c:1286:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
             if (decode.first_pass == 0)
                ^
    src/ztools/txd.c: In function ‘print_variable’:
    src/ztools/txd.c:2061:5: warning: implicit declaration of function ‘print_local_name’ [-Wimplicit-function-declaration]
         if (option_symbols && print_local_name(start_of_routine, varnum - 1)) /* null */;
         ^
    src/ztools/txd.c:2067:5: warning: implicit declaration of function ‘print_global_name’ [-Wimplicit-function-declaration]
         if (option_symbols && print_global_name(start_of_routine, varnum - 16)) /* null */;
         ^
    make: *** [src/interface/frotz_interface.o] Error 1
    make: *** Waiting for unfinished jobs....
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/p8/554sljys76v20vq9x3lyvj640000gq/T/pip-install-0j4r5vid/jericho_751bc451093e498983918ae4a14fd95a/setup.py", line 27, in <module>
        subprocess.check_call(['make', 'library', '-j', '4'], cwd=FROTZPATH)
      File "/Users/dryu0002/opt/miniconda3/envs/main/lib/python3.7/subprocess.py", line 363, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['make', 'library', '-j', '4']' returned non-zero exit status 2.
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/89/15/c0c5cb4bd06973af85545333b549458ddb620094b152852310915f892bb6/jericho-2.4.0.tar.gz#sha256=4e551c31f32adbc5606c967bf70aa2aa22e1793208ce75b6c077b013d4a089cf (from https://pypi.org/simple/jericho/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement jericho==2.4.0
ERROR: No matching distribution found for jericho==2.4.0

Any suggestion?

mhauskn commented 3 years ago

Looks like progress. The relevant part of the new error message seems to be:

    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h:136:0,
                     from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:61,
                     from src/interface/frotz_interface.c:19:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h:33:18: error: missing binary operator before token "("
     #if __has_include(<AvailabilityInternalPrivate.h>)

It looks like it's unhappy with the #include <stdlib.h> that appears on frotz_interface.c line 19, which make me suspect there's still something broken in your toolchain. See: https://stackoverflow.com/questions/55571199/how-to-solve-error-missing-binary-operator-before-token-on-mac

I wish I had more concrete advice to give, but I don't have access to a Mac (aside from those in Travis - which seem to be okay with building), so it's a bit tricky for me to replicate.

ktr0921 commented 3 years ago

Ok I fixed it. For those people who struggle with the same problem, this is what happened. But this is general problem that can be used if you are using MacOS Big Sur Version 11.1.

  1. The below problem means that some header files are missing.
    src/common/buffer.c:21:20: fatal error: string.h: No such file or directory
     #include <string.h>
                        ^
    compilation terminated.

So, apparently from Mojave 10.14.6, MacOS removed /usr/include, which is where missing headers are located in. Until Catalina 10.15, you were able to get it back by open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg (You need to run xcode-select --install to update Command Line Tools first), but from Big Sur 11.0, they removed it completely. Hence, instead, run export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include from this link. This directory has whatever headers in /usr/include and assigning it to CPATH allows MacOS to search from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include.

  1. Then, you might (or highly likely unless they debug MacOS Big Sur) face another issue like below.
     #if __has_include(<AvailabilityInternalPrivate.h>)
                      ^

This means that the file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h, which is from the directory you added above, has some syntax errors that your MacOS Big Sur cannot recognize (I assume this is some compatibility issues, which they should fix) (This is from this link. What you can do is just comment those lines out like

/*
#if __has_include(<AvailabilityInternalPrivate.h>)
  #include <AvailabilityInternalPrivate.h>
#endif
*/

You coule take #include <AvailabilityInternalPrivate.h> out of the if function, but this will throw you another error saying AvailabilityInternalPrivate.h does not exist (At least I do not have AvailabilityInternalPrivate.h).

  1. This may not solve the problem because I had another error,
    ld: library not found for -lSystem
    collect2: error: ld returned 1 exit status
    make: *** [src/libfrotz.so] Error 1

There are few links that discuss this, https://github.com/ponylang/ponyc/issues/3684, https://developer.apple.com/forums/thread/652779, but this link seems helpful. It says the problem is either of gcc, gfortran, ifort. So, I just reinstalled gcc, gfortran and installed ifort (i did not have ifort before), then now it works.

Sorry, my bad. I fixed this problem by export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib". What you can do is add both CPATH and LIBRARY_PATH in ~/.zshrc. You can read above links, but this came from link.

ps. I am adding the full error message of my last attempt (3rd one) to give full picture of the error message.

Collecting jericho==2.4.0
  Using cached jericho-2.4.0.tar.gz (1.1 MB)
    ERROR: Command errored out with exit status 1:
     command: /Users/dongwonryu/miniconda3/envs/main/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/58/733vf0p96psd5zp932nfrztw0000gn/T/pip-install-swqtx7_f/jericho_1e2452859aa04068a745e4ce9d11dd67/setup.py'"'"'; __file__='"'"'/private/var/folders/58/733vf0p96psd5zp932nfrztw0000gn/T/pip-install-swqtx7_f/jericho_1e2452859aa04068a745e4ce9d11dd67/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/58/733vf0p96psd5zp932nfrztw0000gn/T/pip-pip-egg-info-9_v3ihz8
         cwd: /private/var/folders/58/733vf0p96psd5zp932nfrztw0000gn/T/pip-install-swqtx7_f/jericho_1e2452859aa04068a745e4ce9d11dd67/
    Complete output (598 lines):
    rm -f src/*.h src/*.a
    rm -f src/libfrotz.so
    rm -f src/curses/defines.h
    rm -f frotz_python_interface/libfrotz.so
    find . -name *.o -exec rm -f {} \;
    find . -name *.O -exec rm -f {} \;
    #gcc -O3 -fPIC -o src/common/buffer.o -c src/common/buffer.c
    #gcc -O3 -fPIC -o src/common/err.o -c src/common/err.c
    #gcc -O3 -fPIC -o src/common/fastmem.o -c src/common/fastmem.c
    #gcc -O3 -fPIC -o src/common/files.o -c src/common/files.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/buffer.o -c src/common/buffer.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/files.o -c src/common/files.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/fastmem.o -c src/common/fastmem.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/err.o -c src/common/err.c
    #gcc -O3 -fPIC -o src/common/hotkey.o -c src/common/hotkey.c
    #gcc -O3 -fPIC -o src/common/input.o -c src/common/input.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/input.o -c src/common/input.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/hotkey.o -c src/common/hotkey.c
    #gcc -O3 -fPIC -o src/common/main.o -c src/common/main.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/main.o -c src/common/main.c
    #gcc -O3 -fPIC -o src/common/math.o -c src/common/math.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/math.o -c src/common/math.c
    #gcc -O3 -fPIC -o src/common/object.o -c src/common/object.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/object.o -c src/common/object.c
    #gcc -O3 -fPIC -o src/common/process.o -c src/common/process.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/process.o -c src/common/process.c
    #gcc -O3 -fPIC -o src/common/quetzal.o -c src/common/quetzal.c
    #gcc -O3 -fPIC -o src/common/squetzal.o -c src/common/squetzal.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/squetzal.o -c src/common/squetzal.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/quetzal.o -c src/common/quetzal.c
    #gcc -O3 -fPIC -o src/common/random.o -c src/common/random.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/random.o -c src/common/random.c
    #gcc -O3 -fPIC -o src/common/redirect.o -c src/common/redirect.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/redirect.o -c src/common/redirect.c
    #gcc -O3 -fPIC -o src/common/screen.o -c src/common/screen.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/screen.o -c src/common/screen.c
    #gcc -O3 -fPIC -o src/common/sound.o -c src/common/sound.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/sound.o -c src/common/sound.c
    #gcc -O3 -fPIC -o src/common/stream.o -c src/common/stream.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/stream.o -c src/common/stream.c
    #gcc -O3 -fPIC -o src/common/table.o -c src/common/table.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/table.o -c src/common/table.c
    #gcc -O3 -fPIC -o src/common/text.o -c src/common/text.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/text.o -c src/common/text.c
    #gcc -O3 -fPIC -o src/common/variable.o -c src/common/variable.c
    gcc -O3 -fPIC -I/opt/local/include -o src/common/variable.o -c src/common/variable.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_init.o -c src/dumb/dumb_init.c
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/limits.h:65:0,
                     from src/dumb/../blorb/blorb.h:21,
                     from src/dumb/dumb_blorb.h:1,
                     from src/dumb/dumb_init.c:24:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:99:0: warning: "PATH_MAX" redefined [enabled by default]
     #define PATH_MAX                 1024   /* max bytes in pathname */
     ^
    In file included from src/dumb/dumb_frotz.h:12:0,
                     from src/dumb/dumb_init.c:23:
    src/dumb/../common/frotz.h:35:0: note: this is the location of the previous definition
     #      define PATH_MAX    FILENAME_MAX
     ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_input.o -c src/dumb/dumb_input.c
    src/dumb/dumb_input.c: In function ‘dumb_read_line’:
    src/dumb/dumb_input.c:207:43: warning: unused parameter ‘prompt’ [-Wunused-parameter]
     static bool dumb_read_line(char *s, char *prompt, bool show_cursor,
                                               ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_output.o -c src/dumb/dumb_output.c
    src/dumb/dumb_output.c: In function ‘dumb_display_user_input’:
    src/dumb/dumb_output.c:156:36: warning: unused parameter ‘s’ [-Wunused-parameter]
     void dumb_display_user_input(char *s)
                                        ^
    src/dumb/dumb_output.c: In function ‘os_scroll_area’:
    src/dumb/dumb_output.c:223:26: warning: unused parameter ‘top’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                              ^
    src/dumb/dumb_output.c:223:35: warning: unused parameter ‘left’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                                       ^
    src/dumb/dumb_output.c:223:45: warning: unused parameter ‘bottom’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                                                 ^
    src/dumb/dumb_output.c:223:57: warning: unused parameter ‘right’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                                                             ^
    src/dumb/dumb_output.c:223:68: warning: unused parameter ‘units’ [-Wunused-parameter]
     void os_scroll_area (int top, int left, int bottom, int right, int units)
                                                                        ^
    src/dumb/dumb_output.c: At top level:
    src/dumb/dumb_output.c:136:13: warning: ‘dumb_copy_cell’ defined but not used [-Wunused-function]
     static void dumb_copy_cell(int dest_row, int dest_col,
                 ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_pic.o -c src/dumb/dumb_pic.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/dumb/dumb_blorb.o -c src/dumb/dumb_blorb.c
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/limits.h:65:0,
                     from src/dumb/../blorb/blorb.h:21,
                     from src/dumb/dumb_blorb.h:1,
                     from src/dumb/dumb_blorb.c:31:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:99:0: warning: "PATH_MAX" redefined [enabled by default]
     #define PATH_MAX                 1024   /* max bytes in pathname */
     ^
    In file included from src/dumb/dumb_frotz.h:12:0,
                     from src/dumb/dumb_blorb.c:30:
    src/dumb/../common/frotz.h:35:0: note: this is the location of the previous definition
     #      define PATH_MAX    FILENAME_MAX
     ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/blorb/blorblib.o -c src/blorb/blorblib.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/infodump.o -c src/ztools/infodump.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/showhead.o -c src/ztools/showhead.c
    In file included from src/ztools/infodump.c:54:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/infodump.c: In function ‘show_map’:
    src/ztools/infodump.c:479:5: warning: implicit declaration of function ‘configure_inform_tables’ [-Wimplicit-function-declaration]
         configure_inform_tables(obj_data_end, &inform_version, &class_numbers_base, &class_numbers_end,
         ^
    src/ztools/infodump.c: At top level:
    src/ztools/infodump.c:209:13: warning: ‘show_help’ defined but not used [-Wunused-function]
     static void show_help (const char *program)
                 ^
    In file included from src/ztools/showhead.c:7:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/showhead.c: In function ‘show_header’:
    src/ztools/showhead.c:350:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (i = 4; i < sizeof (header.name); i++)
                    ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/showdict.o -c src/ztools/showdict.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/showobj.o -c src/ztools/showobj.c
    In file included from src/ztools/showdict.c:7:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/showdict.c: In function ‘get_dictionary’:
    src/ztools/showdict.c:68:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (dict_size != word_count) {
                       ^
    src/ztools/showdict.c:85:9: warning: implicit declaration of function ‘decode_text_to_buffer’ [-Wimplicit-function-declaration]
             decode_text_to_buffer(&word_address, &(dict_word->word));
             ^
    src/ztools/showdict.c:33:58: warning: unused variable ‘length’ [-Wunused-variable]
         unsigned int separator_count, word_size, word_count, length;
                                                              ^
    In file included from src/ztools/showobj.c:7:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/showobj.c: In function ‘show_objects’:
    src/ztools/showobj.c:249:6: warning: implicit declaration of function ‘configure_inform_tables’ [-Wimplicit-function-declaration]
          configure_inform_tables(obj_data_end, &inform_version, &class_numbers_base, &class_numbers_end,
          ^
    src/ztools/showobj.c:277:6: warning: implicit declaration of function ‘print_attribute_name’ [-Wimplicit-function-declaration]
          if (print_attribute_name(attr_names_base, (int) ((j * 8) + (7 - k))))
          ^
    src/ztools/showobj.c: In function ‘print_property_list’:
    src/ztools/showobj.c:368:2: warning: implicit declaration of function ‘print_property_name’ [-Wimplicit-function-declaration]
      if (print_property_name(property_names_base, (int) (data & property_mask)))
      ^
    src/ztools/showdict.c:137:24: warning: ‘dictpar1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
               if (dictpar1 & SPECIAL)
                            ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/showverb.o -c src/ztools/showverb.c
    src/ztools/showdict.c: In function ‘show_dictionary’:
    src/ztools/showdict.c:281:30: warning: ‘dictpar1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                     if (dictpar1 & SPECIAL)
                                  ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/txio.o -c src/ztools/txio.c
    In file included from src/ztools/showverb.c:7:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/showverb.c: In function ‘configure_parse_tables’:
    src/ztools/showverb.c:376:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     for (i = 0; i < entry_count && (*parser_type == inform_gv1); i++) {
                                   ^
    src/ztools/showverb.c: In function ‘show_verbs’:
    src/ztools/showverb.c:539:9: warning: implicit declaration of function ‘configure_object_tables’ [-Wimplicit-function-declaration]
             configure_object_tables (&obj_count, &obj_table_base, &obj_table_end,
             ^
    src/ztools/showverb.c:541:9: warning: implicit declaration of function ‘configure_inform_tables’ [-Wimplicit-function-declaration]
             configure_inform_tables(obj_data_end, &inform_version, &class_numbers_base, &class_numbers_end,
             ^
    In file included from src/ztools/showverb.c:7:0:
    src/ztools/showverb.c: In function ‘show_verb_parse_table’:
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:693:59: note: in expansion of macro ‘VERB_NUM’
                 tx_printf ("\n%3d. %d entr%s, verb = ", (int) VERB_NUM(i, parser_type),
                                                               ^
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:695:25: note: in expansion of macro ‘VERB_NUM’
                 show_words (VERB_NUM(i, parser_type), 0L, VERB, parser_type);
                             ^
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:742:49: note: in expansion of macro ‘VERB_NUM’
                     show_verb_grammar (parse_entry, VERB_NUM(i, parser_type), (int) parser_type, 0,
                                                     ^
    src/ztools/showverb.c: In function ‘show_syntax_of_action’:
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:873:53: note: in expansion of macro ‘VERB_NUM’
                         show_verb_grammar (parse_entry, VERB_NUM(i, parser_type), (int) parser_type, 0,
                                                         ^
    src/ztools/showverb.c: In function ‘show_syntax_of_parsing_routine’:
    src/ztools/tx.h:304:77: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     #define VERB_NUM(index, parser_type) (((parser_type) >= inform_gv2a)?(index):((unsigned int)(255-(index))))
                                                                                 ^
    src/ztools/showverb.c:1001:49: note: in expansion of macro ‘VERB_NUM’
                     show_verb_grammar (parse_entry, VERB_NUM(i, parser_type), (int) parser_type, (int) prep_type, 0,
                                                     ^
    src/ztools/showverb.c: In function ‘show_action_tables’:
    src/ztools/showverb.c:1095:13: warning: implicit declaration of function ‘print_inform_action_name’ [-Wimplicit-function-declaration]
                 print_inform_action_name(action_names_base, action);
                 ^
    src/ztools/showverb.c: In function ‘show_verb_grammar’:
    src/ztools/showverb.c:1387:21: warning: implicit declaration of function ‘print_attribute_name’ [-Wimplicit-function-declaration]
                         if (!print_attribute_name(attr_names_base, token_data)) {
                         ^
    In file included from src/ztools/txio.c:9:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/txio.c: In function ‘configure’:
    src/ztools/txio.c:131:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof (header.serial); i++)
                       ^
    src/ztools/txio.c:159:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof (header.name); i++)
                       ^
    src/ztools/txio.c: In function ‘write_high_zscii’:
    src/ztools/txio.c:994:9: warning: variable ‘length’ set but not used [-Wunused-but-set-variable]
         int length, i;
             ^
    src/ztools/txio.c: In function ‘decode_text_to_buffer’:
    src/ztools/txio.c:863:1: warning: control reaches end of non-void function [-Wreturn-type]
     }/* decode_text_to_buffer */
     ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/infinfo.o -c src/ztools/infinfo.c
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/symbols.o -c src/ztools/symbols.c
    In file included from src/ztools/infinfo.c:10:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    In file included from src/ztools/symbols.c:1:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/symbols.c: In function ‘init_symbols’:
    src/ztools/symbols.c:115:6: warning: unused variable ‘property’ [-Wunused-variable]
      int property = 0;
          ^
    src/ztools/symbols.c:114:6: warning: unused variable ‘attribute’ [-Wunused-variable]
      int attribute = 0;
          ^
    src/ztools/symbols.c:113:6: warning: unused variable ‘global’ [-Wunused-variable]
      int global = 0;
          ^
    src/ztools/symbols.c: In function ‘print_attribute_name’:
    src/ztools/symbols.c:273:3: warning: implicit declaration of function ‘print_inform_attribute_name’ [-Wimplicit-function-declaration]
       return print_inform_attribute_name(attr_names_base, attr_no);
       ^
    src/ztools/symbols.c: In function ‘print_local_name’:
    src/ztools/symbols.c:310:2: warning: statement with no effect [-Wunused-value]
      start_of_routine;
      ^
    src/ztools/symbols.c:311:2: warning: statement with no effect [-Wunused-value]
      local_no;
      ^
    src/ztools/symbols.c: In function ‘print_global_name’:
    src/ztools/symbols.c:324:2: warning: statement with no effect [-Wunused-value]
      start_of_routine;
      ^
    gcc -Wall -Wextra -std=gnu99 -fPIC -O3 -fPIC -o src/ztools/txd.o -c src/ztools/txd.c
    #gcc -O3 -fPIC -o src/interface/frotz_interface.o -c src/interface/frotz_interface.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/interface/frotz_interface.o -c src/interface/frotz_interface.c
    In file included from src/ztools/txd.c:55:0:
    src/ztools/tx.h:383:8: warning: type defaults to ‘int’ in declaration of ‘option_inform’ [enabled by default]
     extern option_inform;
            ^
    src/ztools/txd.c: In function ‘disassemble’:
    src/ztools/txd.c:290:5: warning: implicit declaration of function ‘configure_object_tables’ [-Wimplicit-function-declaration]
         configure_object_tables (&obj_count, &obj_table_base, &obj_table_end,
         ^
    src/ztools/txd.c:292:9: warning: implicit declaration of function ‘configure_inform_tables’ [-Wimplicit-function-declaration]
             configure_inform_tables(obj_data_end, &inform_version, &class_numbers_base, &class_numbers_end,
             ^
    src/ztools/txd.c:334:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if ((decode.low_address - code_base) >= story_scaler) {
                                              ^
    src/ztools/txd.c: In function ‘decode_operands’:
    src/ztools/txd.c:980:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (i = 0; i < len; i++)
                           ^
    src/ztools/txd.c: In function ‘decode_parameter’:
    src/ztools/txd.c:1191:9: warning: implicit declaration of function ‘print_property_name’ [-Wimplicit-function-declaration]
             if (!print_property_name(property_names_base, value))
             ^
    src/ztools/txd.c:1197:9: warning: implicit declaration of function ‘print_attribute_name’ [-Wimplicit-function-declaration]
             if (!print_attribute_name(attr_names_base, value))
             ^
    src/ztools/txd.c:1286:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
             if (decode.first_pass == 0)
                ^
    src/ztools/txd.c: In function ‘print_variable’:
    src/ztools/txd.c:2061:5: warning: implicit declaration of function ‘print_local_name’ [-Wimplicit-function-declaration]
         if (option_symbols && print_local_name(start_of_routine, varnum - 1)) /* null */;
         ^
    src/ztools/txd.c:2067:5: warning: implicit declaration of function ‘print_global_name’ [-Wimplicit-function-declaration]
         if (option_symbols && print_global_name(start_of_routine, varnum - 16)) /* null */;
         ^
    #gcc -O3 -fPIC -o src/interface/md5.o -c src/interface/md5.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/interface/md5.o -c src/interface/md5.c
    #gcc -O3 -fPIC -o src/games/default.o -c src/games/default.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/default.o -c src/games/default.c
    #gcc -O3 -fPIC -o src/games/acorncourt.o -c src/games/acorncourt.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/acorncourt.o -c src/games/acorncourt.c
    #gcc -O3 -fPIC -o src/games/adventureland.o -c src/games/adventureland.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/adventureland.o -c src/games/adventureland.c
    #gcc -O3 -fPIC -o src/games/advent.o -c src/games/advent.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/advent.o -c src/games/advent.c
    #gcc -O3 -fPIC -o src/games/afflicted.o -c src/games/afflicted.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/afflicted.o -c src/games/afflicted.c
    src/games/adventureland.c: In function ‘adventureland_clean_world_objs’:
    src/games/adventureland.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 6) & ~(1 << 7);
         ^
    #gcc -O3 -fPIC -o src/games/anchor.o -c src/games/anchor.c
    #gcc -O3 -fPIC -o src/games/awaken.o -c src/games/awaken.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/anchor.o -c src/games/anchor.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/awaken.o -c src/games/awaken.c
    #gcc -O3 -fPIC -o src/games/balances.o -c src/games/balances.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/balances.o -c src/games/balances.c
    src/games/anchor.c: In function ‘anchor_intro_actions’:
    src/games/anchor.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return anchor_intro;
       ^
    src/games/awaken.c: In function ‘awaken_clean_world_objs’:
    src/games/awaken.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    src/games/balances.c: In function ‘balances_clean_world_objs’:
    src/games/balances.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    #gcc -O3 -fPIC -o src/games/ballyhoo.o -c src/games/ballyhoo.c
    #gcc -O3 -fPIC -o src/games/curses.o -c src/games/curses.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/ballyhoo.o -c src/games/ballyhoo.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/curses.o -c src/games/curses.c
    #gcc -O3 -fPIC -o src/games/cutthroat.o -c src/games/cutthroat.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/cutthroat.o -c src/games/cutthroat.c
    #gcc -O3 -fPIC -o src/games/deephome.o -c src/games/deephome.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/deephome.o -c src/games/deephome.c
    src/games/curses.c: In function ‘curses_intro_actions’:
    src/games/curses.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return curses_intro;
       ^
    src/games/curses.c: In function ‘curses_clean_world_objs’:
    src/games/curses.c:98:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    #gcc -O3 -fPIC -o src/games/detective.o -c src/games/detective.c
    #gcc -O3 -fPIC -o src/games/dragon.o -c src/games/dragon.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/detective.o -c src/games/detective.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/dragon.o -c src/games/dragon.c
    #gcc -O3 -fPIC -o src/games/enchanter.o -c src/games/enchanter.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/enchanter.o -c src/games/enchanter.c
    #gcc -O3 -fPIC -o src/games/enter.o -c src/games/enter.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/enter.o -c src/games/enter.c
    src/games/dragon.c: In function ‘dragon_clean_world_objs’:
    src/games/dragon.c:98:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7) & ~(1 << 6);
         ^
    #gcc -O3 -fPIC -o src/games/gold.o -c src/games/gold.c
    #gcc -O3 -fPIC -o src/games/infidel.o -c src/games/infidel.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/gold.o -c src/games/gold.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/infidel.o -c src/games/infidel.c
    #gcc -O3 -fPIC -o src/games/inhumane.o -c src/games/inhumane.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/inhumane.o -c src/games/inhumane.c
    #gcc -O3 -fPIC -o src/games/hhgg.o -c src/games/hhgg.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/hhgg.o -c src/games/hhgg.c
    #gcc -O3 -fPIC -o src/games/hollywood.o -c src/games/hollywood.c
    #gcc -O3 -fPIC -o src/games/huntdark.o -c src/games/huntdark.c
    #gcc -O3 -fPIC -o src/games/jewel.o -c src/games/jewel.c
    #gcc -O3 -fPIC -o src/games/karn.o -c src/games/karn.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/hollywood.o -c src/games/hollywood.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/jewel.o -c src/games/jewel.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/karn.o -c src/games/karn.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/huntdark.o -c src/games/huntdark.c
    src/games/hollywood.c: In function ‘hollywood_intro_actions’:
    src/games/jewel.c: In function ‘jewel_intro_actions’:
    src/games/hollywood.c:33:3: warning: return from incompatible pointer type [enabled by default]
       return hollywood_intro;
       ^
    src/games/jewel.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return jewel_intro;
       ^
    src/games/jewel.c: In function ‘jewel_clean_world_objs’:
    src/games/jewel.c:98:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    src/games/karn.c: In function ‘karn_clean_world_objs’:
    src/games/karn.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    src/games/huntdark.c: In function ‘huntdark_intro_actions’:
    src/games/huntdark.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return huntdark_intro;
       ^
    #gcc -O3 -fPIC -o src/games/lgop.o -c src/games/lgop.c
    #gcc -O3 -fPIC -o src/games/library.o -c src/games/library.c
    #gcc -O3 -fPIC -o src/games/loose.o -c src/games/loose.c
    #gcc -O3 -fPIC -o src/games/lostpig.o -c src/games/lostpig.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/lgop.o -c src/games/lgop.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/loose.o -c src/games/loose.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/lostpig.o -c src/games/lostpig.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/library.o -c src/games/library.c
    src/games/loose.c: In function ‘loose_clean_world_objs’:
    src/games/loose.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7) & ~(1 << 6);
         ^
    src/games/library.c: In function ‘library_intro_actions’:
    src/games/library.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return library_intro;
       ^
    src/games/library.c: In function ‘library_clean_world_objs’:
    src/games/library.c:98:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7) & ~(1 << 6);
         ^
    #gcc -O3 -fPIC -o src/games/ludicorp.o -c src/games/ludicorp.c
    #gcc -O3 -fPIC -o src/games/lurking.o -c src/games/lurking.c
    #gcc -O3 -fPIC -o src/games/moonlit.o -c src/games/moonlit.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/ludicorp.o -c src/games/ludicorp.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/moonlit.o -c src/games/moonlit.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/lurking.o -c src/games/lurking.c
    #gcc -O3 -fPIC -o src/games/murdac.o -c src/games/murdac.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/murdac.o -c src/games/murdac.c
    src/games/ludicorp.c: In function ‘ludicorp_clean_world_objs’:
    src/games/ludicorp.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    src/games/moonlit.c: In function ‘moonlit_clean_world_objs’:
    src/games/moonlit.c:99:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7) & ~1;
         ^
    src/games/lurking.c: In function ‘lurking_intro_actions’:
    src/games/lurking.c:34:3: warning: return from incompatible pointer type [enabled by default]
       return lurking_intro;
       ^
    #gcc -O3 -fPIC -o src/games/night.o -c src/games/night.c
    #gcc -O3 -fPIC -o src/games/nine05.o -c src/games/nine05.c
    #gcc -O3 -fPIC -o src/games/omniquest.o -c src/games/omniquest.c
    #gcc -O3 -fPIC -o src/games/partyfoul.o -c src/games/partyfoul.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/night.o -c src/games/night.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/omniquest.o -c src/games/omniquest.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/partyfoul.o -c src/games/partyfoul.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/nine05.o -c src/games/nine05.c
    src/games/night.c: In function ‘night_clean_world_objs’:
    src/games/night.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    src/games/omniquest.c: In function ‘omniquest_clean_world_objs’:
    src/games/omniquest.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    src/games/partyfoul.c: In function ‘partyfoul_intro_actions’:
    src/games/partyfoul.c:32:3: warning: return from incompatible pointer type [enabled by default]
       return partyfoul_intro;
       ^
    #gcc -O3 -fPIC -o src/games/pentari.o -c src/games/pentari.c
    #gcc -O3 -fPIC -o src/games/planetfall.o -c src/games/planetfall.c
    #gcc -O3 -fPIC -o src/games/plundered.o -c src/games/plundered.c
    #gcc -O3 -fPIC -o src/games/reverb.o -c src/games/reverb.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/planetfall.o -c src/games/planetfall.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/plundered.o -c src/games/plundered.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/reverb.o -c src/games/reverb.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/pentari.o -c src/games/pentari.c
    src/games/pentari.c: In function ‘pentari_clean_world_objs’:
    src/games/pentari.c:98:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    #gcc -O3 -fPIC -o src/games/seastalker.o -c src/games/seastalker.c
    #gcc -O3 -fPIC -o src/games/sherbet.o -c src/games/sherbet.c
    #gcc -O3 -fPIC -o src/games/sherlock.o -c src/games/sherlock.c
    #gcc -O3 -fPIC -o src/games/snacktime.o -c src/games/snacktime.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/seastalker.o -c src/games/seastalker.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/sherlock.o -c src/games/sherlock.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/snacktime.o -c src/games/snacktime.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/sherbet.o -c src/games/sherbet.c
    src/games/seastalker.c: In function ‘seastalker_intro_actions’:
    src/games/sherlock.c: In function ‘sherlock_intro_actions’:
    src/games/sherlock.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return sherlock_intro;
       ^
    src/games/seastalker.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return seastalker_intro;
       ^
    src/games/sherbet.c: In function ‘sherbet_intro_actions’:
    src/games/sherbet.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return sherbet_intro;
       ^
    #gcc -O3 -fPIC -o src/games/sorcerer.o -c src/games/sorcerer.c
    #gcc -O3 -fPIC -o src/games/spellbrkr.o -c src/games/spellbrkr.c
    #gcc -O3 -fPIC -o src/games/spirit.o -c src/games/spirit.c
    #gcc -O3 -fPIC -o src/games/temple.o -c src/games/temple.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/sorcerer.o -c src/games/sorcerer.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/spirit.o -c src/games/spirit.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/temple.o -c src/games/temple.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/spellbrkr.o -c src/games/spellbrkr.c
    src/games/spirit.c: In function ‘spirit_clean_world_objs’:
    src/games/spirit.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    #gcc -O3 -fPIC -o src/games/theatre.o -c src/games/theatre.c
    #gcc -O3 -fPIC -o src/games/trinity.o -c src/games/trinity.c
    #gcc -O3 -fPIC -o src/games/tryst.o -c src/games/tryst.c
    #gcc -O3 -fPIC -o src/games/weapon.o -c src/games/weapon.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/theatre.o -c src/games/theatre.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/tryst.o -c src/games/tryst.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/weapon.o -c src/games/weapon.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/trinity.o -c src/games/trinity.c
    src/games/theatre.c: In function ‘theatre_intro_actions’:
    src/games/theatre.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return theatre_intro;
       ^
    src/games/tryst.c: In function ‘tryst_intro_actions’:
    src/games/tryst.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return tryst_intro;
       ^
    src/games/tryst.c: In function ‘tryst_clean_world_objs’:
    src/games/tryst.c:98:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    src/games/trinity.c: In function ‘trinity_intro_actions’:
    src/games/trinity.c:31:3: warning: return from incompatible pointer type [enabled by default]
       return trinity_intro;
       ^
    #gcc -O3 -fPIC -o src/games/wishbringer.o -c src/games/wishbringer.c
    #gcc -O3 -fPIC -o src/games/yomomma.o -c src/games/yomomma.c
    #gcc -O3 -fPIC -o src/games/zenon.o -c src/games/zenon.c
    #gcc -O3 -fPIC -o src/games/zork1.o -c src/games/zork1.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/wishbringer.o -c src/games/wishbringer.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/zenon.o -c src/games/zenon.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/zork1.o -c src/games/zork1.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/yomomma.o -c src/games/yomomma.c
    src/games/zenon.c: In function ‘zenon_clean_world_objs’:
    src/games/zenon.c:106:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^
    #gcc -O3 -fPIC -o src/games/zork2.o -c src/games/zork2.c
    #gcc -O3 -fPIC -o src/games/zork3.o -c src/games/zork3.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/zork2.o -c src/games/zork2.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/zork3.o -c src/games/zork3.c
    #gcc -O3 -fPIC -o src/games/ztuu.o -c src/games/ztuu.c
    #gcc -O3 -fPIC -o src/games/textworld.o -c src/games/textworld.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/textworld.o -c src/games/textworld.c
    gcc -O3 -fPIC -I/opt/local/include -I./src/common -I./src/games -I./src/ztools -I./src/interface -o src/games/ztuu.o -c src/games/ztuu.c
    src/games/ztuu.c: In function ‘ztuu_clean_world_objs’:
    src/games/ztuu.c:96:5: warning: overflow in implicit constant conversion [-Woverflow]
         mask = ~(1 << 7);
         ^

    Archiving dumb interface code...
    Archiving common 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 src/dumb/dumb_blorb.o
    Archiving Blorb file handling code...
    /usr/bin/ar rc src/blorblib.a src/blorb/blorblib.o
    /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/squetzal.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

    Archiving ztools code...
    /usr/bin/ar rc src/ztools.a src/ztools/infodump.o src/ztools/showhead.o src/ztools/showdict.o src/ztools/showobj.o src/ztools/showverb.o src/ztools/txio.o src/ztools/infinfo.o src/ztools/symbols.o src/ztools/txd.o
    /usr/bin/ranlib src/frotz_dumb.a
    /usr/bin/ranlib src/blorblib.a
    /usr/bin/ranlib src/ztools.a
    /usr/bin/ranlib src/frotz_common.a

    Archiving interface code...
    gcc -shared -o src/libfrotz.so src/interface/frotz_interface.o src/interface/md5.o src/games/default.o src/games/acorncourt.o src/games/adventureland.o src/games/advent.o src/games/afflicted.o src/games/anchor.o src/games/awaken.o src/games/balances.o src/games/ballyhoo.o src/games/curses.o src/games/cutthroat.o src/games/deephome.o src/games/detective.o src/games/dragon.o src/games/enchanter.o src/games/enter.o src/games/gold.o src/games/infidel.o src/games/inhumane.o src/games/hhgg.o src/games/hollywood.o src/games/huntdark.o src/games/jewel.o src/games/karn.o src/games/lgop.o src/games/library.o src/games/loose.o src/games/lostpig.o src/games/ludicorp.o src/games/lurking.o src/games/moonlit.o src/games/murdac.o src/games/night.o src/games/nine05.o src/games/omniquest.o src/games/partyfoul.o src/games/pentari.o src/games/planetfall.o src/games/plundered.o src/games/reverb.o src/games/seastalker.o src/games/sherbet.o src/games/sherlock.o src/games/snacktime.o src/games/sorcerer.o src/games/spellbrkr.o src/games/spirit.o src/games/temple.o src/games/theatre.o src/games/trinity.o src/games/tryst.o src/games/weapon.o src/games/wishbringer.o src/games/yomomma.o src/games/zenon.o src/games/zork1.o src/games/zork2.o src/games/zork3.o src/games/ztuu.o src/games/textworld.o 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/squetzal.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 src/dumb/dumb_init.o src/dumb/dumb_input.o src/dumb/dumb_output.o src/dumb/dumb_pic.o src/dumb/dumb_blorb.o src/blorb/blorblib.o src/ztools/infodump.o src/ztools/showhead.o src/ztools/showdict.o src/ztools/showobj.o src/ztools/showverb.o src/ztools/txio.o src/ztools/infinfo.o src/ztools/symbols.o src/ztools/txd.o

    ld: library not found for -lSystem
    collect2: error: ld returned 1 exit status
    make: *** [src/libfrotz.so] Error 1
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/58/733vf0p96psd5zp932nfrztw0000gn/T/pip-install-swqtx7_f/jericho_1e2452859aa04068a745e4ce9d11dd67/setup.py", line 27, in <module>
        subprocess.check_call(['make', 'library', '-j', '4'], cwd=FROTZPATH)
      File "/Users/dongwonryu/miniconda3/envs/main/lib/python3.7/subprocess.py", line 363, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['make', 'library', '-j', '4']' returned non-zero exit status 2.
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/89/15/c0c5cb4bd06973af85545333b549458ddb620094b152852310915f892bb6/jericho-2.4.0.tar.gz#sha256=4e551c31f32adbc5606c967bf70aa2aa22e1793208ce75b6c077b013d4a089cf (from https://pypi.org/simple/jericho/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement jericho==2.4.0
ERROR: No matching distribution found for jericho==2.4.0
mhauskn commented 3 years ago

Glad you got it working and thanks for the detailed writeup!