bug-mit-scheme
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MIT/GNU Scheme 11.1 fails to build on Debian 10 (x86-x64)


From: Chris Hanson
Subject: Re: MIT/GNU Scheme 11.1 fails to build on Debian 10 (x86-x64)
Date: Sat, 10 Jul 2021 14:14:26 -0700

Did you install libncurses?
On Jul 10, 2021, 11:53 AM -0700, joseph turco <italian.pepe.32@gmail.com>, wrote:
Hello,

im trying to build the latest version of MIT/GNU Scheme and i get the following error after invoking 'make':

gcc -DHAVE_CONFIG_H -DMIT_SCHEME -DDEFAULT_LIBRARY_PATH=\"/usr/local/lib/mit-scheme-x86-64-11.1\" -I. -I. -O3  -frounding-math -fno-builtin-floor -Wall -Wclobbered -Wempty-body -Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Woverride-init -Wpointer-arith -Wredundant-decls -Wshift-negative-value -Wtype-limits -Wundef -Wuninitialized -Wwrite-strings -Wno-error=stringop-truncation -Werror -o termcap.o -c termcap.c
termcap.c:147:1: error: return type defaults to ‘int’ [-Werror=implicit-int]
 memory_out ()
 ^~~~~~~~~~
termcap.c: In function ‘convert_ospeed’:
termcap.c:181:24: error: implicit declaration of function ‘OS_baud_index_to_rate’ [-Werror=implicit-function-declaration]
   unsigned int rate = (OS_baud_index_to_rate (os));
                        ^~~~~~~~~~~~~~~~~~~~~
termcap.c:181:24: error: nested extern declaration of ‘OS_baud_index_to_rate’ [-Werror=nested-externs]
termcap.c: At top level:
termcap.c:330:1: error: return type defaults to ‘int’ [-Werror=implicit-int]
 tputs (string, nlines, outfun)
 ^~~~~
termcap.c: In function ‘tputs’:
termcap.c:338:5: error: ‘return’ with no value, in function returning non-void [-Werror]
     return;
     ^~~~~~
termcap.c:330:1: note: declared here
 tputs (string, nlines, outfun)
 ^~~~~
termcap.c: In function ‘tgetent’:
termcap.c:457:49: error: passing argument 2 of ‘find_capability’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
       indirect = tgetst1 (find_capability (tem, "tc"), 0);
                                                 ^~~~
termcap.c:203:36: note: expected ‘char *’ but argument is of type ‘const char *’
 find_capability (char * bp, char * cap)
                             ~~~~~~~^~~
termcap.c:479:9: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
     tem = "/etc/termcap";
         ^
termcap.c:540:45: error: passing argument 2 of ‘find_capability’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
       term = tgetst1 (find_capability (bp2, "tc"), 0);
                                             ^~~~
termcap.c:203:36: note: expected ‘char *’ but argument is of type ‘const char *’
 find_capability (char * bp, char * cap)
                             ~~~~~~~^~~
termcap.c:554:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     return (int) bp;
            ^
termcap.c: In function ‘scan_file’:
termcap.c:570:9: error: unused variable ‘tem’ [-Werror=unused-variable]
   char *tem;
         ^~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:182: termcap.o] Error 1
rm cmpauxmd.s
make[1]: Leaving directory '/home/joseph/Downloads/mit-scheme-11.1/src/microcode'
make: *** [Makefile:796: microcode/scheme] Error 2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]