Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gc.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-345866-70137/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/gc-8.0.4-7.0.2.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gc.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-345866-70137/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EXIeop + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gc-8.0.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/gc-8.0.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gc-8.0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/gc-7.6.4-dont_disable_exceptions.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-arch-support-loongarch64.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/gc-8.0.4-sw.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7hoTcR + umask 022 + cd /builddir/build/BUILD + cd gc-8.0.4 + rm -f libtool libtool.m4 + autoreconf -i -f libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:32: installing './compile' configure.ac:25: installing './missing' Makefile.am: installing './depcomp' + CPPFLAGS=-DUSE_GET_STACKBASE_FOR_MAIN + export CPPFLAGS + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static --disable-docs --enable-cplusplus --enable-large-config --enable-threads=posix checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking target system type... x86_64-Anolis-linux-gnu checking GC version numbers... major=8 minor=0 micro=4 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports the include directive... yes (GNU style) checking for x86_64-Anolis-linux-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for x86_64-Anolis-linux-g++... no checking for x86_64-Anolis-linux-c++... no checking for x86_64-Anolis-linux-gpp... no checking for x86_64-Anolis-linux-aCC... no checking for x86_64-Anolis-linux-CC... no checking for x86_64-Anolis-linux-cxx... no checking for x86_64-Anolis-linux-cc++... no checking for x86_64-Anolis-linux-cl.exe... no checking for x86_64-Anolis-linux-FCC... no checking for x86_64-Anolis-linux-KCC... no checking for x86_64-Anolis-linux-RCC... no checking for x86_64-Anolis-linux-xlC_r... no checking for x86_64-Anolis-linux-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking dependency style of gcc... none checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-Anolis-linux-gnu file names to x86_64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert x86_64-Anolis-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-Anolis-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-Anolis-linux-strip... no checking for strip... strip checking for x86_64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for inline... inline configure: WARNING: "Explicit GC_INIT() calls may be required." checking for pthread_self in -lpthread... yes checking whether compiler supports -Wextra... yes checking whether compiler supports -Wpedantic... yes checking for xlc... no checking whether compiler supports -fno-strict-aliasing... yes checking for getcontext... yes checking for dl_iterate_phdr... yes checking for dlopen in -ldl... yes checking execinfo.h usability... yes checking execinfo.h presence... yes checking for execinfo.h... yes checking whether to build shared libraries... yes checking whether compiler supports -fvisibility... yes checking which machine-dependent code should be used... checking whether Solaris gcc optimization fix is necessary... no checking for dladdr... yes checking for sigsetjmp... yes checking sys/dg_sys_info.h usability... no checking sys/dg_sys_info.h presence... no checking for sys/dg_sys_info.h... no checking for compiler intrinsics support... yes checking which libatomic_ops to use... none checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating bdw-gc.pc config.status: creating include/config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default commands + /usr/bin/make -O -j80 make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c -o pthread_start.lo pthread_start.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c pthread_start.c -fPIC -DPIC -o .libs/pthread_start.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' In file included from ./include/private/gc_priv.h:123, from ./include/private/pthread_support.h:21, from pthread_start.c:37: ./include/private/gcconfig.h:25: error: unterminated #ifndef #ifndef GCCONFIG_H In file included from ./include/private/gc_priv.h:170, from ./include/private/pthread_support.h:21, from pthread_start.c:37: ./include/private/gc_hdrs.h:19:3: error: #error Get a real machine # error Get a real machine ^~~~~ In file included from ./include/private/pthread_support.h:21, from pthread_start.c:37: ./include/private/gc_priv.h:960:35: error: 'LOGWL' undeclared here (not in a function) # define PHT_SIZE (PHT_ENTRIES >> LOGWL) ^~~~~ ./include/private/gc_priv.h:961:30: note: in expansion of macro 'PHT_SIZE' typedef word page_hash_table[PHT_SIZE]; ^~~~~~~~ ./include/private/gc_priv.h:1008:14: error: unknown type name 'AO_t' volatile AO_t ao; ^~~~ ./include/private/gc_priv.h:1074:16: error: unknown type name 'AO_t' volatile AO_t hb_n_marks; /* Number of set mark bits, excluding */ ^~~~ ./include/private/gc_priv.h:1115:47: error: 'CPP_WORDSZ' undeclared here (not in a function); did you mean 'CPU_OR_S'? # define MARK_BITS_SZ (MARK_BITS_PER_HBLK/CPP_WORDSZ + 1) ^~~~~~~~~~ ./include/private/gc_priv.h:1116:21: note: in expansion of macro 'MARK_BITS_SZ' word hb_marks[MARK_BITS_SZ]; ^~~~~~~~~~~~ ./include/private/gc_priv.h:1372:21: warning: type defaults to 'int' in declaration of '_grungy_pages' [-Wimplicit-int] page_hash_table _grungy_pages; /* Pages that were dirty at last */ ^~~~~~~~~~~~~ ./include/private/gc_priv.h:1375:30: warning: type defaults to 'int' in declaration of '_dirty_pages' [-Wimplicit-int] volatile page_hash_table _dirty_pages; ^~~~~~~~~~~~ In file included from ./include/private/pthread_support.h:28, from pthread_start.c:37: ./include/private/pthread_stop_world.h:26:16: error: unknown type name 'AO_t' volatile AO_t last_stop_count; ^~~~ In file included from pthread_start.c:37: ./include/private/pthread_support.h:71:16: error: unknown type name 'AO_t' volatile AO_t suspended_ext; /* Thread was suspended externally. */ ^~~~ make[1]: *** [Makefile:1652: pthread_start.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gc_cpp.lo gc_cpp.cc libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c gc_cpp.cc -fPIC -DPIC -o .libs/gc_cpp.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c -o cord/libcord_la-cordprnt.lo `test -f 'cord/cordprnt.c' || echo './'`cord/cordprnt.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c cord/cordprnt.c -fPIC -DPIC -o cord/.libs/libcord_la-cordprnt.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c -o cord/libcord_la-cordxtra.lo `test -f 'cord/cordxtra.c' || echo './'`cord/cordxtra.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c cord/cordxtra.c -fPIC -DPIC -o cord/.libs/libcord_la-cordxtra.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c -o cord/libcord_la-cordbscs.lo `test -f 'cord/cordbscs.c' || echo './'`cord/cordbscs.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c cord/cordbscs.c -fPIC -DPIC -o cord/.libs/libcord_la-cordbscs.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c -o extra/gc.lo extra/gc.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -c extra/gc.c -fPIC -DPIC -o extra/.libs/gc.o In file included from ./include/private/gc_priv.h:123, from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gcconfig.h:25: error: unterminated #ifndef #ifndef GCCONFIG_H In file included from ./include/private/gc_priv.h:170, from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_hdrs.h:19:3: error: #error Get a real machine # error Get a real machine ^~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_hdrs.h:99:3: note: in expansion of macro 'GC_INNER' GC_INNER hdr * GC_header_cache_miss(ptr_t p, hdr_cache_entry *hce); ^~~~~~~~ In file included from ./include/private/gc_priv.h:170, from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_hdrs.h:99:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER hdr * GC_header_cache_miss(ptr_t p, hdr_cache_entry *hce); ^ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:331:12: error: expected ';' before 'void' GC_INNER void GC_notify_or_invoke_finalizers(void); ^~~~ ./include/private/gc_priv.h:338:12: error: expected ';' before 'void' GC_INNER void GC_finalize(void); ^~~~ ./include/private/gc_priv.h:346:14: error: expected ';' before 'void' GC_INNER void GC_process_togglerefs(void); ^~~~ ./include/private/gc_priv.h:350:14: error: expected ';' before 'void' GC_INNER void GC_print_finalization_stats(void); ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:542:16: error: expected ';' before 'void' GC_INNER void GC_stop_world(void); ^~~~ ./include/private/gc_priv.h:543:16: error: expected ';' before 'void' GC_INNER void GC_start_world(void); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:638:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_warn_proc GC_current_warn_proc; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:638:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_current_warn_proc' GC_EXTERN GC_warn_proc GC_current_warn_proc; ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:960:35: error: 'LOGWL' undeclared here (not in a function) # define PHT_SIZE (PHT_ENTRIES >> LOGWL) ^~~~~ ./include/private/gc_priv.h:961:30: note: in expansion of macro 'PHT_SIZE' typedef word page_hash_table[PHT_SIZE]; ^~~~~~~~ ./include/private/gc_priv.h:1008:14: error: unknown type name 'AO_t' volatile AO_t ao; ^~~~ ./include/private/gc_priv.h:1074:16: error: unknown type name 'AO_t' volatile AO_t hb_n_marks; /* Number of set mark bits, excluding */ ^~~~ ./include/private/gc_priv.h:1115:47: error: 'CPP_WORDSZ' undeclared here (not in a function); did you mean 'CPU_OR_S'? # define MARK_BITS_SZ (MARK_BITS_PER_HBLK/CPP_WORDSZ + 1) ^~~~~~~~~~ ./include/private/gc_priv.h:1116:21: note: in expansion of macro 'MARK_BITS_SZ' word hb_marks[MARK_BITS_SZ]; ^~~~~~~~~~~~ ./include/private/gc_priv.h:1372:21: warning: type defaults to 'int' in declaration of '_grungy_pages' [-Wimplicit-int] page_hash_table _grungy_pages; /* Pages that were dirty at last */ ^~~~~~~~~~~~~ ./include/private/gc_priv.h:1375:30: warning: type defaults to 'int' in declaration of '_dirty_pages' [-Wimplicit-int] volatile page_hash_table _dirty_pages; ^~~~~~~~~~~~ ./include/private/gc_priv.h:1450:11: error: expected ';' before 'struct' GC_EXTERN struct obj_kind { ^~~~~~ ./include/private/gc_priv.h:1516:11: error: expected ';' before 'unsigned' GC_EXTERN unsigned GC_n_kinds; ^~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:1518:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN word GC_n_heap_sects; /* Number of separately added heap */ ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1518:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_n_heap_sects' GC_EXTERN word GC_n_heap_sects; /* Number of separately added heap */ ^~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:1526:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN size_t GC_page_size; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1526:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_page_size' GC_EXTERN size_t GC_page_size; ^~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:1546:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN word GC_black_list_spacing; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1546:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_black_list_spacing' GC_EXTERN word GC_black_list_spacing; ^~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:1558:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN word GC_root_size; /* Total size of registered root sections. */ ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1558:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_root_size' GC_EXTERN word GC_root_size; /* Total size of registered root sections. */ ^~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:1560:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_debugging_started; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1560:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_debugging_started' GC_EXTERN GC_bool GC_debugging_started; ^~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:1586:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN ptr_t GC_blocked_sp; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1586:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_blocked_sp' GC_EXTERN ptr_t GC_blocked_sp; ^~~~~~~~~~~~~ ./include/private/gc_priv.h:1587:13: error: expected ';' before 'struct' GC_EXTERN struct GC_traced_stack_sect_s *GC_traced_stack_sect; ^~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1657:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_approx_sp(void); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1657:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_approx_sp' GC_INNER ptr_t GC_approx_sp(void); ^~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1659:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_should_collect(void); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1659:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_should_collect' GC_INNER GC_bool GC_should_collect(void); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1665:10: error: expected ';' before 'struct' GC_INNER struct hblk * GC_next_used_block(struct hblk * h); ^~~~~~ ./include/private/gc_priv.h:1667:10: error: expected ';' before 'struct' GC_INNER struct hblk * GC_prev_block(struct hblk * h); ^~~~~~ ./include/private/gc_priv.h:1671:10: error: expected ';' before 'void' GC_INNER void GC_mark_init(void); ^~~~ ./include/private/gc_priv.h:1672:10: error: expected ';' before 'void' GC_INNER void GC_clear_marks(void); ^~~~ ./include/private/gc_priv.h:1674:10: error: expected ';' before 'void' GC_INNER void GC_invalidate_mark_state(void); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1679:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_mark_some(ptr_t cold_gc_frame); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1679:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_some' GC_INNER GC_bool GC_mark_some(ptr_t cold_gc_frame); ^~~~~~~~~~~~ ./include/private/gc_priv.h:1684:10: error: expected ';' before 'void' GC_INNER void GC_initiate_gc(void); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1690:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_collection_in_progress(void); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1690:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_collection_in_progress' GC_INNER GC_bool GC_collection_in_progress(void); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1697:10: error: expected ';' before 'void' GC_INNER void GC_push_all_stack(ptr_t b, ptr_t t); ^~~~ ./include/private/gc_priv.h:1714:10: error: expected ';' before 'void' GC_INNER void GC_push_roots(GC_bool all, ptr_t cold_gc_frame); ^~~~ ./include/private/gc_priv.h:1730:11: error: expected ';' before 'void' GC_EXTERN void (*GC_push_typed_structures)(void); ^~~~ ./include/private/gc_priv.h:1734:10: error: expected ';' before 'void' GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *), ^~~~ ./include/private/gc_priv.h:1760:12: error: expected ';' before 'void' GC_INNER void GC_mark_and_push_stack(ptr_t p); ^~~~ ./include/private/gc_priv.h:1763:10: error: expected ';' before 'void' GC_INNER void GC_clear_hdr_marks(hdr * hhdr); ^~~~ ./include/private/gc_priv.h:1765:10: error: expected ';' before 'void' GC_INNER void GC_set_hdr_marks(hdr * hhdr); ^~~~ ./include/private/gc_priv.h:1767:10: error: expected ';' before 'void' GC_INNER void GC_set_fl_marks(ptr_t p); ^~~~ ./include/private/gc_priv.h:1780:10: error: expected ';' before 'void' GC_INNER void GC_exclude_static_roots_inner(void *start, void *finish); ^~~~ ./include/private/gc_priv.h:1786:10: error: expected ';' before 'void' GC_INNER void GC_cond_register_dynamic_libraries(void); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1802:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_is_static_root(void *p); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1802:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_is_static_root' GC_INNER GC_bool GC_is_static_root(void *p); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1824:12: error: expected ';' before 'void' GC_INNER void GC_add_to_black_list_normal(word p); ^~~~ ./include/private/gc_priv.h:1830:12: error: expected ';' before 'void' GC_INNER void GC_add_to_black_list_stack(word p); ^~~~ ./include/private/gc_priv.h:1843:10: error: expected ';' before 'void' GC_INNER void GC_promote_black_lists(void); ^~~~ ./include/private/gc_priv.h:1845:10: error: expected ';' before 'void' GC_INNER void GC_unpromote_black_lists(void); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1850:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_scratch_alloc(size_t bytes); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1850:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_scratch_alloc' GC_INNER ptr_t GC_scratch_alloc(size_t bytes); ^~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1860:10: error: expected ';' before 'void' GC_INNER void GC_scratch_recycle_inner(void *ptr, size_t bytes); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1864:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_add_map_entry(size_t sz); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1864:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_add_map_entry' GC_INNER GC_bool GC_add_map_entry(size_t sz); ^~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1868:10: error: expected ';' before 'void' GC_INNER void GC_register_displacement_inner(size_t offset); ^~~~ ./include/private/gc_priv.h:1873:10: error: expected ';' before 'void' GC_INNER void GC_new_hblk(size_t size_in_granules, int kind); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1877:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_build_fl(struct hblk *h, size_t words, GC_bool clear, ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1877:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_build_fl' GC_INNER ptr_t GC_build_fl(struct hblk *h, size_t words, GC_bool clear, ^~~~~~~~~~~ ./include/private/gc_priv.h:1886:10: error: expected ';' before 'struct' GC_INNER struct hblk * GC_allochblk(size_t size_in_bytes, int kind, ^~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1892:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1892:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_alloc_large' GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags); ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:1902:10: error: expected ';' before 'void' GC_INNER void GC_freehblk(struct hblk * p); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1907:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_expand_hp_inner(word n); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1907:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_expand_hp_inner' GC_INNER GC_bool GC_expand_hp_inner(word n); ^~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1908:10: error: expected ';' before 'void' GC_INNER void GC_start_reclaim(GC_bool abort_if_found); ^~~~ ./include/private/gc_priv.h:1914:10: error: expected ';' before 'void' GC_INNER void GC_continue_reclaim(word sz, int kind); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1920:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_reclaim_all(GC_stop_func stop_func, GC_bool ignore_old); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1920:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_reclaim_all' GC_INNER GC_bool GC_reclaim_all(GC_stop_func stop_func, GC_bool ignore_old); ^~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1923:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_reclaim_generic(struct hblk * hbp, hdr *hhdr, size_t sz, ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1923:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_reclaim_generic' GC_INNER ptr_t GC_reclaim_generic(struct hblk * hbp, hdr *hhdr, size_t sz, ^~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1931:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_block_empty(hdr * hhdr); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1931:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_block_empty' GC_INNER GC_bool GC_block_empty(hdr * hhdr); ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:1933:10: error: expected ';' before 'int' GC_INNER int GC_CALLBACK GC_never_stop_func(void); ^~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1935:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_try_to_collect_inner(GC_stop_func f); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1935:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_try_to_collect_inner' GC_INNER GC_bool GC_try_to_collect_inner(GC_stop_func f); ^~~~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:1951:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_is_initialized; /* GC_init() has been run. */ ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1951:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_is_initialized' GC_EXTERN GC_bool GC_is_initialized; /* GC_init() has been run. */ ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1953:10: error: expected ';' before 'void' GC_INNER void GC_collect_a_little_inner(int n); ^~~~ ./include/private/gc_priv.h:1959:10: error: expected ';' before 'void' GC_INNER void * GC_generic_malloc_inner(size_t lb, int k); ^~~~ ./include/private/gc_priv.h:1964:12: error: expected ';' before 'void' GC_INNER void * GC_generic_malloc_inner_ignore_off_page(size_t lb, int k); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1972:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_collect_or_expand(word needed_blocks, ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1972:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_collect_or_expand' GC_INNER GC_bool GC_collect_or_expand(word needed_blocks, ^~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:1975:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_allocobj(size_t sz, int kind); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:1975:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_allocobj' GC_INNER ptr_t GC_allocobj(size_t sz, int kind); ^~~~~~~~~~~ ./include/private/gc_priv.h:2005:14: error: expected ';' before 'void' GC_INNER void * GC_core_gcj_malloc(size_t, void *); ^~~~ ./include/private/gc_priv.h:2008:10: error: expected ';' before 'void' GC_INNER void GC_init_headers(void); ^~~~ ./include/private/gc_priv.h:2009:10: error: expected ';' before 'struct' GC_INNER struct hblkhdr * GC_install_header(struct hblk *h); ^~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:2013:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_install_counts(struct hblk * h, size_t sz); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2013:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_install_counts' GC_INNER GC_bool GC_install_counts(struct hblk * h, size_t sz); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:2017:10: error: expected ';' before 'void' GC_INNER void GC_remove_header(struct hblk * h); ^~~~ ./include/private/gc_priv.h:2019:10: error: expected ';' before 'void' GC_INNER void GC_remove_counts(struct hblk * h, size_t sz); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:2021:1: note: in expansion of macro 'GC_INNER' GC_INNER hdr * GC_find_header(ptr_t h); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2021:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER hdr * GC_find_header(ptr_t h); ^ ./include/private/gc_priv.h:2023:10: error: expected ';' before 'void' GC_INNER void GC_add_to_heap(struct hblk *p, size_t bytes); ^~~~ ./include/private/gc_priv.h:2034:10: error: expected ';' before 'void' GC_INNER void GC_print_all_errors(void); ^~~~ ./include/private/gc_priv.h:2038:11: error: expected ';' before 'void' GC_EXTERN void (*GC_check_heap)(void); ^~~~ ./include/private/gc_priv.h:2042:11: error: expected ';' before 'void' GC_EXTERN void (*GC_print_all_smashed)(void); ^~~~ ./include/private/gc_priv.h:2045:11: error: expected ';' before 'void' GC_EXTERN void (*GC_print_heap_obj)(ptr_t p); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2056:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_findleak_delay_free; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2056:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_findleak_delay_free' GC_EXTERN GC_bool GC_findleak_delay_free; ^~~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:2060:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_check_leaked(ptr_t base); /* from dbg_mlc.c */ ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2060:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_check_leaked' GC_INNER GC_bool GC_check_leaked(ptr_t base); /* from dbg_mlc.c */ ^~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2063:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_have_errors; /* We saw a smashed or leaked object. */ ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2063:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_have_errors' GC_EXTERN GC_bool GC_have_errors; /* We saw a smashed or leaked object. */ ^~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2089:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_print_back_height; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2089:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_print_back_height' GC_EXTERN GC_bool GC_print_back_height; ^~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:2127:12: error: expected ';' before 'void' GC_INNER void GC_unmap_old(void); ^~~~ ./include/private/gc_priv.h:2128:12: error: expected ';' before 'void' GC_INNER void GC_merge_unmapped(void); ^~~~ ./include/private/gc_priv.h:2129:12: error: expected ';' before 'void' GC_INNER void GC_unmap(ptr_t start, size_t bytes); ^~~~ ./include/private/gc_priv.h:2130:12: error: expected ';' before 'void' GC_INNER void GC_remap(ptr_t start, size_t bytes); ^~~~ ./include/private/gc_priv.h:2131:12: error: expected ';' before 'void' GC_INNER void GC_unmap_gap(ptr_t start1, size_t bytes1, ptr_t start2, ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2160:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_incremental; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2160:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_incremental' GC_EXTERN GC_bool GC_incremental; ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:2166:12: error: expected ';' before 'void' GC_INNER void GC_read_dirty(GC_bool output_unneeded); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:2170:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_page_was_dirty(struct hblk *h); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2170:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_page_was_dirty' GC_INNER GC_bool GC_page_was_dirty(struct hblk *h); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:2173:12: error: expected ';' before 'void' GC_INNER void GC_remove_protection(struct hblk *h, word nblocks, ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_priv.h:2185:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_dirty_init(void); ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2185:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_dirty_init' GC_INNER GC_bool GC_dirty_init(void); ^~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2190:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_manual_vdb; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2190:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_manual_vdb' GC_EXTERN GC_bool GC_manual_vdb; ^~~~~~~~~~~~~ ./include/private/gc_priv.h:2197:12: error: expected ';' before 'void' GC_INNER void GC_dirty_inner(const void *p); /* does not require locking */ ^~~~ ./include/private/gc_priv.h:2290:11: error: expected ';' before 'unsigned' GC_EXTERN unsigned GC_fail_count; ^~~~~~~~ ./include/private/gc_priv.h:2294:11: error: expected ';' before 'long' GC_EXTERN long GC_large_alloc_warn_interval; /* defined in misc.c */ ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2296:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN signed_word GC_bytes_found; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2296:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_bytes_found' GC_EXTERN signed_word GC_bytes_found; ^~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2301:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN word GC_reclaimed_bytes_before_gc; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2301:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_reclaimed_bytes_before_gc' GC_EXTERN word GC_reclaimed_bytes_before_gc; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:2307:13: error: expected ';' before 'int' GC_EXTERN int GC_unmap_threshold; /* defined in allchblk.c */ ^~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2308:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_force_unmap_on_gcollect; /* defined in misc.c */ ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2308:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_force_unmap_on_gcollect' GC_EXTERN GC_bool GC_force_unmap_on_gcollect; /* defined in misc.c */ ^~~~~~~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2351:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_world_stopped; /* defined in alloc.c */ ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2351:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_world_stopped' GC_EXTERN GC_bool GC_world_stopped; /* defined in alloc.c */ ^~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:2352:12: error: expected ';' before 'void' GC_INNER void GC_mark_thread_local_free_lists(void); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2359:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN ptr_t * GC_gcjobjfreelist; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2359:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_EXTERN ptr_t * GC_gcjobjfreelist; ^ ./include/private/gc_priv.h:2386:10: error: expected ';' before 'void' GC_INNER void GC_default_print_heap_obj_proc(ptr_t p); ^~~~ ./include/private/gc_priv.h:2388:10: error: expected ';' before 'void' GC_INNER void GC_setpagesize(void); ^~~~ ./include/private/gc_priv.h:2390:10: error: expected ';' before 'void' GC_INNER void GC_initialize_offsets(void); /* defined in obj_map.c */ ^~~~ ./include/private/gc_priv.h:2392:10: error: expected ';' before 'void' GC_INNER void GC_bl_init(void); ^~~~ ./include/private/gc_priv.h:2393:10: error: expected ';' before 'void' GC_INNER void GC_bl_init_no_interiors(void); /* defined in blacklst.c */ ^~~~ ./include/private/gc_priv.h:2395:10: error: expected ';' before 'void' GC_INNER void GC_start_debugging_inner(void); /* defined in dbg_mlc.c. */ ^~~~ ./include/private/gc_priv.h:2400:10: error: expected ';' before 'void' GC_INNER void *GC_store_debug_info_inner(void *p, word sz, const char *str, ^~~~ ./include/private/gc_priv.h:2422:12: error: expected ';' before 'void' GC_INNER void * GC_roots_present(ptr_t); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2532:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_dump_regularly; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2532:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_dump_regularly' GC_EXTERN GC_bool GC_dump_regularly; ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:2562:12: error: expected ';' before 'void' GC_INNER void GC_wait_for_markers_init(void); ^~~~ ./include/private/gc_priv.h:2563:12: error: expected ';' before 'void' GC_INNER void GC_acquire_mark_lock(void); ^~~~ ./include/private/gc_priv.h:2564:12: error: expected ';' before 'void' GC_INNER void GC_release_mark_lock(void); ^~~~ ./include/private/gc_priv.h:2565:12: error: expected ';' before 'void' GC_INNER void GC_notify_all_builder(void); ^~~~ ./include/private/gc_priv.h:2566:12: error: expected ';' before 'void' GC_INNER void GC_wait_for_reclaim(void); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2568:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN signed_word GC_fl_builder_count; /* Protected by mark lock. */ ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2568:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_fl_builder_count' GC_EXTERN signed_word GC_fl_builder_count; /* Protected by mark lock. */ ^~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:2570:12: error: expected ';' before 'void' GC_INNER void GC_notify_all_marker(void); ^~~~ ./include/private/gc_priv.h:2571:12: error: expected ';' before 'void' GC_INNER void GC_wait_marker(void); ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_priv.h:2572:3: note: in expansion of macro 'GC_EXTERN' GC_EXTERN word GC_mark_no; /* Protected by mark lock. */ ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2572:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_no' GC_EXTERN word GC_mark_no; /* Protected by mark lock. */ ^~~~~~~~~~ ./include/private/gc_priv.h:2574:12: error: expected ';' before 'void' GC_INNER void GC_help_marker(word my_mark_no); ^~~~ ./include/private/gc_priv.h:2580:12: error: expected ';' before 'void' GC_INNER void GC_start_mark_threads_inner(void); ^~~~ In file included from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/dbg_mlc.h:157:12: error: expected ';' before 'int' GC_INNER int GC_has_other_debug_info(ptr_t p); ^~~ In file included from extra/gc.c:41: extra/../blacklst.c:40:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word * GC_old_normal_bl = NULL; ^~~~~~ STA_INS extra/../blacklst.c:40:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC word * GC_old_normal_bl = NULL; ^ extra/../blacklst.c:43:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word * GC_incomplete_normal_bl = NULL; ^~~~~~ STA_INS extra/../blacklst.c:43:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC word * GC_incomplete_normal_bl = NULL; ^ extra/../blacklst.c:46:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word * GC_old_stack_bl = NULL; ^~~~~~ STA_INS extra/../blacklst.c:46:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC word * GC_old_stack_bl = NULL; ^ extra/../blacklst.c:47:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word * GC_incomplete_stack_bl = NULL; ^~~~~~ STA_INS extra/../blacklst.c:47:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC word * GC_incomplete_stack_bl = NULL; ^ extra/../blacklst.c:49:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_total_stack_black_listed = 0; ^~~~~~ STA_INS extra/../blacklst.c:49:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_total_stack_black_listed' STATIC word GC_total_stack_black_listed = 0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../blacklst.c:52:1: note: in expansion of macro 'GC_INNER' GC_INNER word GC_black_list_spacing = MINHINCR * HBLKSIZE; ^~~~~~~~ In file included from extra/gc.c:41: extra/../blacklst.c:52:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_black_list_spacing' GC_INNER word GC_black_list_spacing = MINHINCR * HBLKSIZE; ^~~~~~~~~~~~~~~~~~~~~ extra/../blacklst.c:55:7: error: expected ';' before 'void' STATIC void GC_clear_bl(word *); ^~~~~ ; extra/../blacklst.c:57:10: error: expected ';' before 'void' GC_INNER void GC_default_print_heap_obj_proc(ptr_t p) ^~~~ extra/../blacklst.c:68:10: error: expected ';' before 'void' GC_INNER void (*GC_print_heap_obj)(ptr_t p) = GC_default_print_heap_obj_proc; ^~~~ extra/../blacklst.c:92:10: error: expected ';' before 'void' GC_INNER void GC_bl_init_no_interiors(void) ^~~~ extra/../blacklst.c: In function 'GC_bl_init_no_interiors': extra/../blacklst.c:94:7: error: 'GC_incomplete_normal_bl' undeclared (first use in this function) if (GC_incomplete_normal_bl == 0) { ^~~~~~~~~~~~~~~~~~~~~~~ extra/../blacklst.c:94:7: note: each undeclared identifier is reported only once for each function it appears in extra/../blacklst.c:95:5: error: 'GC_old_normal_bl' undeclared (first use in this function); did you mean 'GC_clear_bl'? GC_old_normal_bl = (word *)GC_scratch_alloc(sizeof(page_hash_table)); ^~~~~~~~~~~~~~~~ GC_clear_bl extra/../blacklst.c:95:32: warning: implicit declaration of function 'GC_scratch_alloc'; did you mean 'GC_core_gcj_malloc'? [-Wimplicit-function-declaration] GC_old_normal_bl = (word *)GC_scratch_alloc(sizeof(page_hash_table)); ^~~~~~~~~~~~~~~~ GC_core_gcj_malloc extra/../blacklst.c:95:5: warning: type defaults to 'int' in type name [-Wimplicit-int] GC_old_normal_bl = (word *)GC_scratch_alloc(sizeof(page_hash_table)); ^~~~~~~~~~~~~~~~ extra/../blacklst.c:95:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] GC_old_normal_bl = (word *)GC_scratch_alloc(sizeof(page_hash_table)); ^ extra/../blacklst.c:97:51: warning: type defaults to 'int' in type name [-Wimplicit-int] sizeof(page_hash_table)); ^~~~~~ extra/../blacklst.c:96:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] GC_incomplete_normal_bl = (word *)GC_scratch_alloc( ^ extra/../blacklst.c: At top level: extra/../blacklst.c:107:10: error: expected ';' before 'void' GC_INNER void GC_bl_init(void) ^~~~ extra/../blacklst.c: In function 'GC_bl_init': extra/../blacklst.c:113:5: error: 'GC_old_stack_bl' undeclared (first use in this function); did you mean 'GC_get_stack_base'? GC_old_stack_bl = (word *)GC_scratch_alloc(sizeof(page_hash_table)); ^~~~~~~~~~~~~~~ GC_get_stack_base extra/../blacklst.c:113:5: warning: type defaults to 'int' in type name [-Wimplicit-int] extra/../blacklst.c:113:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] GC_old_stack_bl = (word *)GC_scratch_alloc(sizeof(page_hash_table)); ^ extra/../blacklst.c:114:5: error: 'GC_incomplete_stack_bl' undeclared (first use in this function); did you mean 'GC_clear_stack'? GC_incomplete_stack_bl = (word *)GC_scratch_alloc(sizeof(page_hash_table)); ^~~~~~~~~~~~~~~~~~~~~~ GC_clear_stack extra/../blacklst.c:114:5: warning: type defaults to 'int' in type name [-Wimplicit-int] extra/../blacklst.c:114:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] GC_incomplete_stack_bl = (word *)GC_scratch_alloc(sizeof(page_hash_table)); ^ extra/../blacklst.c: At top level: extra/../blacklst.c:123:7: error: expected ';' before 'void' STATIC void GC_clear_bl(word *doomed) ^~~~~ ; extra/../blacklst.c: In function 'GC_clear_bl': extra/../blacklst.c:125:5: warning: type defaults to 'int' in type name [-Wimplicit-int] BZERO(doomed, sizeof(page_hash_table)); ^~~~~ extra/../blacklst.c: At top level: extra/../blacklst.c:128:7: error: expected ';' before 'void' STATIC void GC_copy_bl(word *old, word *dest) ^~~~~ ; extra/../blacklst.c: In function 'GC_copy_bl': extra/../blacklst.c:130:5: warning: type defaults to 'int' in type name [-Wimplicit-int] BCOPY(old, dest, sizeof(page_hash_table)); ^~~~~ extra/../blacklst.c: At top level: extra/../blacklst.c:137:10: error: expected ';' before 'void' GC_INNER void GC_promote_black_lists(void) ^~~~ extra/../blacklst.c: In function 'GC_promote_black_lists': extra/../blacklst.c:139:33: error: 'GC_old_normal_bl' undeclared (first use in this function); did you mean 'very_old_normal_bl'? word * very_old_normal_bl = GC_old_normal_bl; ^~~~~~~~~~~~~~~~ very_old_normal_bl extra/../blacklst.c:140:32: error: 'GC_old_stack_bl' undeclared (first use in this function); did you mean 'very_old_stack_bl'? word * very_old_stack_bl = GC_old_stack_bl; ^~~~~~~~~~~~~~~ very_old_stack_bl extra/../blacklst.c:142:24: error: 'GC_incomplete_normal_bl' undeclared (first use in this function); did you mean 'very_old_normal_bl'? GC_old_normal_bl = GC_incomplete_normal_bl; ^~~~~~~~~~~~~~~~~~~~~~~ very_old_normal_bl extra/../blacklst.c:143:23: error: 'GC_incomplete_stack_bl' undeclared (first use in this function); did you mean 'GC_clear_stack'? GC_old_stack_bl = GC_incomplete_stack_bl; ^~~~~~~~~~~~~~~~~~~~~~ GC_clear_stack extra/../blacklst.c:150:5: error: 'GC_total_stack_black_listed' undeclared (first use in this function); did you mean 'total_stack_black_listed'? GC_total_stack_black_listed = total_stack_black_listed(); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ total_stack_black_listed extra/../blacklst.c:155:9: error: 'GC_black_list_spacing' undeclared (first use in this function) GC_black_list_spacing = ^~~~~~~~~~~~~~~~~~~~~ extra/../blacklst.c: At top level: extra/../blacklst.c:170:10: error: expected ';' before 'void' GC_INNER void GC_unpromote_black_lists(void) ^~~~ extra/../blacklst.c: In function 'GC_unpromote_black_lists': extra/../blacklst.c:173:18: error: 'GC_old_normal_bl' undeclared (first use in this function); did you mean 'GC_clear_bl'? GC_copy_bl(GC_old_normal_bl, GC_incomplete_normal_bl); ^~~~~~~~~~~~~~~~ GC_clear_bl extra/../blacklst.c:173:36: error: 'GC_incomplete_normal_bl' undeclared (first use in this function) GC_copy_bl(GC_old_normal_bl, GC_incomplete_normal_bl); ^~~~~~~~~~~~~~~~~~~~~~~ extra/../blacklst.c:175:16: error: 'GC_old_stack_bl' undeclared (first use in this function); did you mean 'GC_get_stack_base'? GC_copy_bl(GC_old_stack_bl, GC_incomplete_stack_bl); ^~~~~~~~~~~~~~~ GC_get_stack_base extra/../blacklst.c:175:33: error: 'GC_incomplete_stack_bl' undeclared (first use in this function); did you mean 'GC_clear_stack'? GC_copy_bl(GC_old_stack_bl, GC_incomplete_stack_bl); ^~~~~~~~~~~~~~~~~~~~~~ GC_clear_stack extra/../blacklst.c: At top level: extra/../blacklst.c:195:12: error: expected ';' before 'void' GC_INNER void GC_add_to_black_list_normal(word p) ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../blacklst.c: In function 'GC_add_to_black_list_normal': extra/../blacklst.c:201:49: error: 'GC_old_normal_bl' undeclared (first use in this function); did you mean 'GC_clear_bl'? if (HDR(p) == 0 || get_pht_entry_from_index(GC_old_normal_bl, index)) { ^~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:966:20: note: in definition of macro 'get_pht_entry_from_index' (((bl)[divWORDSZ(index)] >> modWORDSZ(index)) & 1) ^~ ./include/private/gc_priv.h:966:45: warning: implicit declaration of function 'modWORDSZ'; did you mean 'divWORDSZ'? [-Wimplicit-function-declaration] (((bl)[divWORDSZ(index)] >> modWORDSZ(index)) & 1) ^~~~~~~~~ extra/../blacklst.c:201:24: note: in expansion of macro 'get_pht_entry_from_index' if (HDR(p) == 0 || get_pht_entry_from_index(GC_old_normal_bl, index)) { ^~~~~~~~~~~~~~~~~~~~~~~~ extra/../blacklst.c:207:41: error: 'GC_incomplete_normal_bl' undeclared (first use in this function) backlist_set_pht_entry_from_index(GC_incomplete_normal_bl, index); ^~~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:968:25: note: in definition of macro 'set_pht_entry_from_index' (void)((bl)[divWORDSZ(index)] |= (word)1 << modWORDSZ(index)) ^~ extra/../blacklst.c:207:7: note: in expansion of macro 'backlist_set_pht_entry_from_index' backlist_set_pht_entry_from_index(GC_incomplete_normal_bl, index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:41: extra/../blacklst.c: At top level: extra/../blacklst.c:217:12: error: expected ';' before 'void' GC_INNER void GC_add_to_black_list_stack(word p) ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../blacklst.c: In function 'GC_add_to_black_list_stack': extra/../blacklst.c:222:47: error: 'GC_old_stack_bl' undeclared (first use in this function); did you mean 'GC_get_stack_base'? if (HDR(p) == 0 || get_pht_entry_from_index(GC_old_stack_bl, index)) { ^~~~~~~~~~~~~~~ ./include/private/gc_priv.h:966:20: note: in definition of macro 'get_pht_entry_from_index' (((bl)[divWORDSZ(index)] >> modWORDSZ(index)) & 1) ^~ extra/../blacklst.c:228:39: error: 'GC_incomplete_stack_bl' undeclared (first use in this function); did you mean 'GC_clear_stack'? backlist_set_pht_entry_from_index(GC_incomplete_stack_bl, index); ^~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:968:25: note: in definition of macro 'set_pht_entry_from_index' (void)((bl)[divWORDSZ(index)] |= (word)1 << modWORDSZ(index)) ^~ extra/../blacklst.c:228:5: note: in expansion of macro 'backlist_set_pht_entry_from_index' backlist_set_pht_entry_from_index(GC_incomplete_stack_bl, index); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../blacklst.c: In function 'GC_is_black_listed': extra/../blacklst.c:247:38: error: 'GC_old_normal_bl' undeclared (first use in this function); did you mean 'GC_clear_bl'? && (get_pht_entry_from_index(GC_old_normal_bl, index) ^~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:966:20: note: in definition of macro 'get_pht_entry_from_index' (((bl)[divWORDSZ(index)] >> modWORDSZ(index)) & 1) ^~ extra/../blacklst.c:248:41: error: 'GC_incomplete_normal_bl' undeclared (first use in this function) || get_pht_entry_from_index(GC_incomplete_normal_bl, index))) { ^~~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:966:20: note: in definition of macro 'get_pht_entry_from_index' (((bl)[divWORDSZ(index)] >> modWORDSZ(index)) & 1) ^~ In file included from extra/gc.c:41: extra/../blacklst.c:254:13: error: 'GC_old_stack_bl' undeclared (first use in this function); did you mean 'GC_get_stack_base'? if (GC_old_stack_bl[divWORDSZ(index)] == 0 ^~~~~~~~~~~~~~~ GC_get_stack_base extra/../blacklst.c:255:16: error: 'GC_incomplete_stack_bl' undeclared (first use in this function); did you mean 'GC_clear_stack'? && GC_incomplete_stack_bl[divWORDSZ(index)] == 0) { ^~~~~~~~~~~~~~~~~~~~~~ GC_clear_stack extra/../blacklst.c: At top level: extra/../blacklst.c:274:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_number_stack_black_listed(struct hblk *start, ^~~~~~ STA_INS extra/../blacklst.c:274:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_number_stack_black_listed' STATIC word GC_number_stack_black_listed(struct hblk *start, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../blacklst.c: In function 'total_stack_black_listed': extra/../blacklst.c:294:21: error: 'GC_n_heap_sects' undeclared (first use in this function); did you mean 'GC_heap_sects'? for (i = 0; i < GC_n_heap_sects; i++) { ^~~~~~~~~~~~~~~ GC_heap_sects extra/../blacklst.c:298:18: warning: implicit declaration of function 'GC_number_stack_black_listed'; did you mean 'total_stack_black_listed'? [-Wimplicit-function-declaration] total += GC_number_stack_black_listed(start, endp1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ total_stack_black_listed In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h: At top level: ./include/private/gc_pmark.h:72:11: error: expected ';' before 'unsigned' GC_EXTERN unsigned GC_n_mark_procs; ^~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_pmark.h:77:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN size_t GC_mark_stack_size; ^~~~~~~~~ In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h:77:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_stack_size' GC_EXTERN size_t GC_mark_stack_size; ^~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_pmark.h:118:1: note: in expansion of macro 'GC_INNER' GC_INNER mse * GC_signal_mark_stack_overflow(mse *msp); ^~~~~~~~ In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h:118:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER mse * GC_signal_mark_stack_overflow(mse *msp); ^ ./include/private/gc_pmark.h: In function 'GC_push_obj': ./include/private/gc_pmark.h:131:24: warning: implicit declaration of function 'GC_signal_mark_stack_overflow'; did you mean 'GC_mark_stack_top'? [-Wimplicit-function-declaration] mark_stack_top = GC_signal_mark_stack_overflow(mark_stack_top); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GC_mark_stack_top ./include/private/gc_pmark.h:131:22: warning: assignment to 'mse *' {aka 'struct GC_ms_entry *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] mark_stack_top = GC_signal_mark_stack_overflow(mark_stack_top); ^ ./include/private/gc_pmark.h: In function 'GC_push_contents_hdr': ./include/private/gc_pmark.h:283:35: error: 'hdr' {aka 'struct hblkhdr'} has no member named 'hb_inv_sz'; did you mean 'hb_sz'? unsigned32 inv_sz = hhdr -> hb_inv_sz; ^~~~~~~~~ hb_sz In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_pmark.h:290:30: error: 'LARGE_INV_SZ' undeclared (first use in this function); did you mean 'LARGE_CONFIG'? if (EXPECT(inv_sz == LARGE_INV_SZ, FALSE)) ^~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h:328:52: error: 'obj_displ' undeclared (first use in this function); did you mean 'gran_displ'? if (do_offset_check && !GC_valid_offsets[obj_displ]) { ^~~~~~~~~ gran_displ ./include/private/gc_pmark.h:193:13: warning: implicit declaration of function 'AO_or' [-Wimplicit-function-declaration] AO_or((volatile AO_t *)(addr), (AO_t)(bits)); \ ^~~~~ ./include/private/gc_pmark.h:212:9: note: in expansion of macro 'OR_WORD_EXIT_IF_SET' OR_WORD_EXIT_IF_SET(mark_word_addr, \ ^~~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:349:5: note: in expansion of macro 'SET_MARK_BIT_EXIT_IF_SET' SET_MARK_BIT_EXIT_IF_SET(hhdr, gran_displ); /* contains "break" */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:193:29: error: unknown type name 'AO_t' AO_or((volatile AO_t *)(addr), (AO_t)(bits)); \ ^~~~ ./include/private/gc_pmark.h:212:9: note: in expansion of macro 'OR_WORD_EXIT_IF_SET' OR_WORD_EXIT_IF_SET(mark_word_addr, \ ^~~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:349:5: note: in expansion of macro 'SET_MARK_BIT_EXIT_IF_SET' SET_MARK_BIT_EXIT_IF_SET(hhdr, gran_displ); /* contains "break" */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:193:45: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? AO_or((volatile AO_t *)(addr), (AO_t)(bits)); \ ^~~~ ./include/private/gc_pmark.h:212:9: note: in expansion of macro 'OR_WORD_EXIT_IF_SET' OR_WORD_EXIT_IF_SET(mark_word_addr, \ ^~~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:349:5: note: in expansion of macro 'SET_MARK_BIT_EXIT_IF_SET' SET_MARK_BIT_EXIT_IF_SET(hhdr, gran_displ); /* contains "break" */ ^~~~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:219:17: warning: implicit declaration of function 'AO_store'; did you mean 'si_stime'? [-Wimplicit-function-declaration] AO_store(&hhdr->hb_n_marks, AO_load(&hhdr->hb_n_marks) + 1) ^~~~~~~~ ./include/private/gc_pmark.h:355:5: note: in expansion of macro 'INCR_MARKS' INCR_MARKS(hhdr); ^~~~~~~~~~ ./include/private/gc_pmark.h:219:45: warning: implicit declaration of function 'AO_load' [-Wimplicit-function-declaration] AO_store(&hhdr->hb_n_marks, AO_load(&hhdr->hb_n_marks) + 1) ^~~~~~~ ./include/private/gc_pmark.h:355:5: note: in expansion of macro 'INCR_MARKS' INCR_MARKS(hhdr); ^~~~~~~~~~ ./include/private/gc_pmark.h: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/gc_pmark.h:417:1: note: in expansion of macro 'GC_INNER' GC_INNER mse * GC_mark_from(mse * top, mse * bottom, mse *limit); ^~~~~~~~ In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h:417:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER mse * GC_mark_from(mse * top, mse * bottom, mse *limit); ^ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_pmark.h:445:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_mark_stack_too_small; ^~~~~~~~~ In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h:445:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_stack_too_small' GC_EXTERN GC_bool GC_mark_stack_too_small; ^~~~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/gc_pmark.h:488:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN mark_state_t GC_mark_state; ^~~~~~~~~ In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h:488:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_state' GC_EXTERN mark_state_t GC_mark_state; ^~~~~~~~~~~~~ In file included from extra/gc.c:43: extra/../gcj_mlc.c:45:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ^~~~~~ STA_INS extra/../gcj_mlc.c:47:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_gcj_malloc_initialized' GC_bool GC_gcj_malloc_initialized = FALSE; ^~~~~~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../gcj_mlc.c:55:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t * GC_gcjobjfreelist = NULL; ^~~~~~~~ In file included from extra/gc.c:43: extra/../gcj_mlc.c:55:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER ptr_t * GC_gcjobjfreelist = NULL; ^ extra/../gcj_mlc.c:57:7: error: expected ';' before 'struct' STATIC struct GC_ms_entry * GC_gcj_fake_mark_proc(word * addr GC_ATTR_UNUSED, ^~~~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../gcj_mlc.c: In function 'GC_gcj_fake_mark_proc': ./include/private/gc_priv.h:623:32: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? if ((signed_word)GC_current_warn_proc == -1) {} else ABORT(msg) ^~~~~~~~~~~~~~~~~~~~ extra/../gcj_mlc.c:62:5: note: in expansion of macro 'ABORT_RET' ABORT_RET("No client gcj mark proc is specified"); ^~~~~~~~~ In file included from extra/gc.c:43: extra/../gcj_mlc.c: In function 'GC_init_gcj_malloc': extra/../gcj_mlc.c:80:9: error: 'GC_gcj_malloc_initialized' undeclared (first use in this function); did you mean 'GC_gcj_malloc'? if (GC_gcj_malloc_initialized) { ^~~~~~~~~~~~~~~~~~~~~~~~~ GC_gcj_malloc extra/../gcj_mlc.c:99:7: error: 'GC_gcjobjfreelist' undeclared (first use in this function); did you mean 'GC_uobjfreelist'? GC_gcjobjfreelist = (ptr_t *)GC_new_free_list_inner(); ^~~~~~~~~~~~~~~~~ GC_uobjfreelist In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../gcj_mlc.c: In function 'maybe_finalize': extra/../gcj_mlc.c:146:16: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? !EXPECT(GC_is_initialized, TRUE)) return; ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:43: extra/../gcj_mlc.c: At top level: extra/../gcj_mlc.c:157:12: error: expected ';' before 'void' GC_INNER void * GC_core_gcj_malloc(size_t lb, ^~~~ extra/../gcj_mlc.c: In function 'GC_core_gcj_malloc': extra/../gcj_mlc.c:173:14: error: 'GC_gcjobjfreelist' undeclared (first use in this function); did you mean 'GC_uobjfreelist'? op = GC_gcjobjfreelist[lg]; ^~~~~~~~~~~~~~~~~ GC_uobjfreelist In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../gcj_mlc.c:199:5: note: in expansion of macro 'GC_dirty' GC_dirty(op); ^~~~~~~~ In file included from extra/gc.c:43: extra/../gcj_mlc.c: In function 'GC_debug_gcj_malloc': extra/../gcj_mlc.c:226:10: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? if (!GC_debugging_started) { ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../gcj_mlc.c:232:5: note: in expansion of macro 'GC_dirty' GC_dirty(result); ^~~~~~~~ In file included from extra/gc.c:43: extra/../gcj_mlc.c: In function 'GC_gcj_malloc_ignore_off_page': extra/../gcj_mlc.c:250:14: error: 'GC_gcjobjfreelist' undeclared (first use in this function); did you mean 'GC_uobjfreelist'? op = GC_gcjobjfreelist[lg]; ^~~~~~~~~~~~~~~~~ GC_uobjfreelist In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../gcj_mlc.c:275:5: note: in expansion of macro 'GC_dirty' GC_dirty(op); ^~~~~~~~ In file included from extra/gc.c:44: extra/../headers.c: At top level: extra/../headers.c:27:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC bottom_index * GC_all_bottom_indices = 0; ^~~~~~ STA_INS extra/../headers.c:27:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC bottom_index * GC_all_bottom_indices = 0; ^ extra/../headers.c:31:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC bottom_index * GC_all_bottom_indices_end = 0; ^~~~~~ STA_INS extra/../headers.c:31:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC bottom_index * GC_all_bottom_indices_end = 0; ^ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../headers.c:36:1: note: in expansion of macro 'GC_INNER' GC_INNER hdr * GC_find_header(ptr_t h) ^~~~~~~~ In file included from extra/gc.c:44: extra/../headers.c:36:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER hdr * GC_find_header(ptr_t h) ^ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../headers.c:54:1: note: in expansion of macro 'GC_INNER' GC_INNER hdr * ^~~~~~~~ In file included from extra/gc.c:44: extra/../headers.c:54:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER hdr * ^ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../headers.c:118:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_scratch_alloc(size_t bytes) ^~~~~~~~ In file included from extra/gc.c:44: extra/../headers.c:118:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_scratch_alloc' GC_INNER ptr_t GC_scratch_alloc(size_t bytes) ^~~~~~~~~~~~~~~~ extra/../headers.c: In function 'alloc_hdr': extra/../headers.c:173:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] result = (hdr *)GC_scratch_alloc(sizeof(hdr)); ^ extra/../headers.c: At top level: extra/../headers.c:193:10: error: expected ';' before 'void' GC_INNER void GC_init_headers(void) ^~~~ extra/../headers.c: In function 'GC_init_headers': extra/../headers.c:197:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] GC_all_nils = (bottom_index *)GC_scratch_alloc(sizeof(bottom_index)); ^ extra/../headers.c: In function 'get_index': extra/../headers.c:233:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] r = (bottom_index *)GC_scratch_alloc(sizeof(bottom_index)); ^ extra/../headers.c:243:15: error: 'GC_all_bottom_indices' undeclared (first use in this function); did you mean 'GC_add_roots_inner'? prev = &GC_all_bottom_indices; /* pointer to p */ ^~~~~~~~~~~~~~~~~~~~~ GC_add_roots_inner extra/../headers.c:251:9: error: 'GC_all_bottom_indices_end' undeclared (first use in this function) GC_all_bottom_indices_end = r; ^~~~~~~~~~~~~~~~~~~~~~~~~ extra/../headers.c:217:10: warning: variable 'i' set but not used [-Wunused-but-set-variable] word i; ^ extra/../headers.c: At top level: extra/../headers.c:265:10: error: expected ';' before 'struct' GC_INNER struct hblkhdr * GC_install_header(struct hblk *h) ^~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../headers.c:281:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_install_counts(struct hblk *h, size_t sz/* bytes */) ^~~~~~~~ In file included from extra/gc.c:44: extra/../headers.c:281:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_install_counts' GC_INNER GC_bool GC_install_counts(struct hblk *h, size_t sz/* bytes */) ^~~~~~~~~~~~~~~~~ extra/../headers.c:302:10: error: expected ';' before 'void' GC_INNER void GC_remove_header(struct hblk *h) ^~~~ extra/../headers.c:311:10: error: expected ';' before 'void' GC_INNER void GC_remove_counts(struct hblk *h, size_t sz/* bytes */) ^~~~ extra/../headers.c: In function 'GC_apply_to_all_blocks': extra/../headers.c:329:20: error: 'GC_all_bottom_indices' undeclared (first use in this function); did you mean 'GC_add_roots_inner'? for (index_p = GC_all_bottom_indices; index_p != 0; ^~~~~~~~~~~~~~~~~~~~~ GC_add_roots_inner extra/../headers.c: At top level: extra/../headers.c:351:10: error: expected ';' before 'struct' GC_INNER struct hblk * GC_next_used_block(struct hblk *h) ^~~~~~ extra/../headers.c: In function 'GC_next_used_block': extra/../headers.c:361:14: error: 'GC_all_bottom_indices' undeclared (first use in this function); did you mean 'GC_add_roots_inner'? bi = GC_all_bottom_indices; ^~~~~~~~~~~~~~~~~~~~~ GC_add_roots_inner extra/../headers.c: At top level: extra/../headers.c:389:10: error: expected ';' before 'struct' GC_INNER struct hblk * GC_prev_block(struct hblk *h) ^~~~~~ extra/../headers.c: In function 'GC_prev_block': extra/../headers.c:398:14: error: 'GC_all_bottom_indices_end' undeclared (first use in this function) bi = GC_all_bottom_indices_end; ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:45: extra/../new_hblk.c: At top level: extra/../new_hblk.c:30:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_build_fl_clear2(struct hblk *h, ptr_t ofl) ^~~~~~ STA_INS extra/../new_hblk.c:30:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_build_fl_clear2' STATIC ptr_t GC_build_fl_clear2(struct hblk *h, ptr_t ofl) ^~~~~~~~~~~~~~~~~~ extra/../new_hblk.c:50:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_build_fl_clear4(struct hblk *h, ptr_t ofl) ^~~~~~ STA_INS extra/../new_hblk.c:50:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_build_fl_clear4' STATIC ptr_t GC_build_fl_clear4(struct hblk *h, ptr_t ofl) ^~~~~~~~~~~~~~~~~~ extra/../new_hblk.c:70:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_build_fl2(struct hblk *h, ptr_t ofl) ^~~~~~ STA_INS extra/../new_hblk.c:70:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_build_fl2' STATIC ptr_t GC_build_fl2(struct hblk *h, ptr_t ofl) ^~~~~~~~~~~~ extra/../new_hblk.c:86:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_build_fl4(struct hblk *h, ptr_t ofl) ^~~~~~ STA_INS extra/../new_hblk.c:86:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_build_fl4' STATIC ptr_t GC_build_fl4(struct hblk *h, ptr_t ofl) ^~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../new_hblk.c:109:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_build_fl(struct hblk *h, size_t sz, GC_bool clear, ^~~~~~~~ In file included from extra/gc.c:45: extra/../new_hblk.c:109:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_build_fl' GC_INNER ptr_t GC_build_fl(struct hblk *h, size_t sz, GC_bool clear, ^~~~~~~~~~~ extra/../new_hblk.c:171:10: error: expected ';' before 'void' GC_INNER void GC_new_hblk(size_t gran, int kind) ^~~~ extra/../new_hblk.c: In function 'GC_new_hblk': extra/../new_hblk.c:178:7: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? if (GC_debugging_started) clear = TRUE; ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup extra/../new_hblk.c:189:9: warning: implicit declaration of function 'GC_build_fl' [-Wimplicit-function-declaration] GC_build_fl(h, GRANULES_TO_WORDS(gran), clear, ^~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:824:33: warning: implicit declaration of function 'BYTES_TO_WORDS'; did you mean 'BYTES_PER_WORD'? [-Wimplicit-function-declaration] # define GRANULES_TO_WORDS(n) BYTES_TO_WORDS(GRANULES_TO_BYTES(n)) ^~~~~~~~~~~~~~ extra/../new_hblk.c:189:24: note: in expansion of macro 'GRANULES_TO_WORDS' GC_build_fl(h, GRANULES_TO_WORDS(gran), clear, ^~~~~~~~~~~~~~~~~ In file included from extra/gc.c:45: extra/../new_hblk.c:188:44: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] GC_obj_kinds[kind].ok_freelist[gran] = ^ In file included from extra/gc.c:46: extra/../obj_map.c: At top level: extra/../obj_map.c:36:10: error: expected ';' before 'void' GC_INNER void GC_register_displacement_inner(size_t offset) ^~~~ extra/../obj_map.c:79:10: error: expected ';' before 'void' GC_INNER void GC_initialize_offsets(void) ^~~~ In file included from extra/gc.c:47: extra/../ptr_chck.c:21:7: error: expected ';' before 'void' STATIC void GC_CALLBACK GC_default_same_obj_print_proc(void * p, void * q) ^~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../ptr_chck.c: In function 'GC_same_obj': extra/../ptr_chck.c:46:17: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) GC_init(); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:47: extra/../ptr_chck.c: At top level: extra/../ptr_chck.c:103:7: error: expected ';' before 'void' STATIC void GC_CALLBACK GC_default_is_valid_displacement_print_proc (void *p) ^~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../ptr_chck.c: In function 'GC_is_valid_displacement': extra/../ptr_chck.c:125:17: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) GC_init(); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:47: extra/../ptr_chck.c: At top level: extra/../ptr_chck.c:152:7: error: expected ';' before 'void' STATIC void GC_CALLBACK GC_default_is_visible_print_proc(void * p) ^~~~~ ; extra/../ptr_chck.c:162:4: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_on_stack(void *p) ^~~~~~ STA_INS extra/../ptr_chck.c:162:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_on_stack' STATIC GC_bool GC_on_stack(void *p) ^~~~~~~~~~~ extra/../ptr_chck.c: In function 'GC_is_visible': extra/../ptr_chck.c:191:20: error: 'ALIGNMENT' undeclared (first use in this function) if ((word)p & (ALIGNMENT - 1)) goto fail; ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../ptr_chck.c:192:17: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) GC_init(); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:47: extra/../ptr_chck.c:203:15: warning: implicit declaration of function 'GC_on_stack'; did you mean 'GC_mark_stack'? [-Wimplicit-function-declaration] if (GC_on_stack(p)) return(p); ^~~~~~~~~~~ GC_mark_stack extra/../ptr_chck.c:206:17: warning: implicit declaration of function 'GC_is_static_root'; did you mean 'GC_static_roots'? [-Wimplicit-function-declaration] if (GC_is_static_root(p)) return(p); ^~~~~~~~~~~~~~~~~ GC_static_roots extra/../ptr_chck.c:231:49: warning: implicit declaration of function 'WORDS_TO_BYTES'; did you mean 'GRANULE_BYTES'? [-Wimplicit-function-declaration] if ((word)p - (word)base >= WORDS_TO_BYTES(BITMAP_BITS) ^~~~~~~~~~~~~~ GRANULE_BYTES In file included from extra/gc.c:50: extra/../allchblk.c: At top level: extra/../allchblk.c:84:7: error: expected ';' before 'int' STATIC int GC_hblk_fl_from_blocks(word blocks_needed) ^~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../allchblk.c:104:3: note: in expansion of macro 'GC_INNER' GC_INNER word GC_compute_large_free_bytes(void) ^~~~~~~~ In file included from extra/gc.c:50: extra/../allchblk.c:104:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_compute_large_free_bytes' GC_INNER word GC_compute_large_free_bytes(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../allchblk.c: In function 'GC_print_hblkfreelist': extra/../allchblk.c:147:18: warning: implicit declaration of function 'GC_compute_large_free_bytes'; did you mean 'GC_large_free_bytes'? [-Wimplicit-function-declaration] if ((total = GC_compute_large_free_bytes()) != GC_large_free_bytes) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ GC_large_free_bytes extra/../allchblk.c: In function 'GC_dump_regions': extra/../allchblk.c:174:21: error: 'GC_n_heap_sects' undeclared (first use in this function); did you mean 'GC_heap_sects'? for (i = 0; i < GC_n_heap_sects; ++i) { ^~~~~~~~~~~~~~~ GC_heap_sects extra/../allchblk.c: At top level: extra/../allchblk.c:300:7: error: expected ';' before 'void' STATIC void GC_remove_from_fl_at(hdr *hhdr, int index) ^~~~~ ; extra/../allchblk.c:330:7: error: expected ';' before 'struct' STATIC struct hblk * GC_free_block_ending_at(struct hblk *h) ^~~~~~~ ; extra/../allchblk.c:359:7: error: expected ';' before 'void' STATIC void GC_add_to_fl(struct hblk *h, hdr *hhdr) ^~~~~ ; extra/../allchblk.c:396:10: error: expected ';' before 'int' GC_INNER int GC_unmap_threshold = MUNMAP_THRESHOLD; ^~~ extra/../allchblk.c:400:10: error: expected ';' before 'void' GC_INNER void GC_unmap_old(void) ^~~~ extra/../allchblk.c:447:10: error: expected ';' before 'void' GC_INNER void GC_merge_unmapped(void) ^~~~ extra/../allchblk.c:520:7: error: expected ';' before 'struct' STATIC struct hblk * GC_get_first_part(struct hblk *h, hdr *hhdr, ^~~~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../allchblk.c: In function 'GC_get_first_part': ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../allchblk.c:534:9: note: in expansion of macro 'WARN' WARN("Header allocation failed: dropping block\n", 0); ^~~~ In file included from extra/gc.c:50: extra/../allchblk.c: At top level: extra/../allchblk.c:561:7: error: expected ';' before 'void' STATIC void GC_split_block(struct hblk *h, hdr *hhdr, struct hblk *n, ^~~~~ ; extra/../allchblk.c:592:7: error: expected ';' before 'struct' STATIC struct hblk * ^~~~~~~ ; extra/../allchblk.c:606:10: error: expected ';' before 'struct' GC_INNER struct hblk * ^~~~~~ extra/../allchblk.c: In function 'GC_allochblk': extra/../allchblk.c:629:12: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? || GC_incremental || !GC_should_collect()) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../allchblk.c:629:31: warning: implicit declaration of function 'GC_should_collect'; did you mean 'GC_try_to_collect'? [-Wimplicit-function-declaration] || GC_incremental || !GC_should_collect()) { ^~~~~~~~~~~~~~~~~ GC_try_to_collect extra/../allchblk.c: At top level: extra/../allchblk.c:662:7: error: expected ';' before 'long' STATIC long GC_large_alloc_warn_suppressed = 0; ^~~~~ ; extra/../allchblk.c:670:7: error: expected ';' before 'struct' STATIC struct hblk * ^~~~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../allchblk.c: In function 'GC_allochblk_nth': ./include/private/gc_priv.h:380:19: error: 'GC_black_list_spacing' undeclared (first use in this function) # define BL_LIMIT GC_black_list_spacing ^~~~~~~~~~~~~~~~~~~~~ extra/../allchblk.c:747:53: note: in expansion of macro 'BL_LIMIT' } else if (size_needed > (signed_word)BL_LIMIT ^~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../allchblk.c:753:19: note: in expansion of macro 'WARN' WARN("Repeated allocation of very large block " ^~~~ In file included from extra/gc.c:50: extra/../allchblk.c:790:31: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? if (GC_debugging_started) { ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup extra/../allchblk.c:823:14: warning: implicit declaration of function 'GC_install_counts'; did you mean 'GC_install_header'? [-Wimplicit-function-declaration] if (!GC_install_counts(hbp, (word)size_needed)) return(0); ^~~~~~~~~~~~~~~~~ GC_install_header extra/../allchblk.c: At top level: extra/../allchblk.c:857:10: error: expected ';' before 'void' GC_INNER void GC_freehblk(struct hblk *hbp) ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../alloc.c:89:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_incremental = FALSE; /* By default, stop the world. */ ^~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:89:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_incremental' GC_INNER GC_bool GC_incremental = FALSE; /* By default, stop the world. */ ^~~~~~~~~~~~~~ extra/../alloc.c: In function 'GC_is_incremental_mode': extra/../alloc.c:94:15: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? return (int)GC_incremental; ^~~~~~~~~~~~~~ GC_auto_incremental extra/../alloc.c: At top level: extra/../alloc.c:109:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_need_full_gc = FALSE; ^~~~~~ STA_INS extra/../alloc.c:109:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_need_full_gc' STATIC GC_bool GC_need_full_gc = FALSE; ^~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../alloc.c:113:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_world_stopped = FALSE; ^~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:113:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_world_stopped' GC_INNER GC_bool GC_world_stopped = FALSE; ^~~~~~~~~~~~~~~~ extra/../alloc.c:116:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_used_heap_size_after_full = 0; ^~~~~~ STA_INS extra/../alloc.c:116:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_used_heap_size_after_full' STATIC word GC_used_heap_size_after_full = 0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../alloc.c:162:10: error: expected ';' before 'int' GC_INNER int GC_CALLBACK GC_never_stop_func(void) ^~~ extra/../alloc.c:176:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC CLOCK_TYPE GC_start_time = CLOCK_TYPE_INITIALIZER; ^~~~~~ STA_INS extra/../alloc.c:176:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_start_time' STATIC CLOCK_TYPE GC_start_time = CLOCK_TYPE_INITIALIZER; ^~~~~~~~~~~~~ extra/../alloc.c:181:7: error: expected ';' before 'int' STATIC int GC_n_attempts = 0; /* Number of attempts at finishing */ ^~~~ ; extra/../alloc.c:184:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_stop_func GC_default_stop_func = GC_never_stop_func; ^~~~~~ STA_INS extra/../alloc.c:184:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_default_stop_func' STATIC GC_stop_func GC_default_stop_func = GC_never_stop_func; ^~~~~~~~~~~~~~~~~~~~ extra/../alloc.c: In function 'GC_set_stop_func': extra/../alloc.c:192:3: error: 'GC_default_stop_func' undeclared (first use in this function); did you mean 'GC_get_stop_func'? GC_default_stop_func = stop_func; ^~~~~~~~~~~~~~~~~~~~ GC_get_stop_func extra/../alloc.c: In function 'GC_get_stop_func': extra/../alloc.c:201:15: error: 'GC_default_stop_func' undeclared (first use in this function); did you mean 'GC_get_stop_func'? stop_func = GC_default_stop_func; ^~~~~~~~~~~~~~~~~~~~ GC_get_stop_func extra/../alloc.c: At top level: extra/../alloc.c:209:9: error: expected ';' before 'int' STATIC int GC_CALLBACK GC_timeout_stop_func (void) ^~~~ ; extra/../alloc.c: In function 'GC_timeout_stop_func': extra/../alloc.c:215:11: error: 'GC_default_stop_func' undeclared (first use in this function); did you mean 'GC_get_stop_func'? if ((*GC_default_stop_func)()) ^~~~~~~~~~~~~~~~~~~~ GC_get_stop_func In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../alloc.c:220:43: error: 'GC_start_time' undeclared (first use in this function); did you mean 'GC_start_world'? time_diff = MS_TIME_DIFF(current_time,GC_start_time); ^~~~~~~~~~~~~ ./include/private/gc_priv.h:486:32: note: in definition of macro 'MS_TIME_DIFF' (unsigned long)((a) - (b)) / (unsigned long)(CLOCKS_PER_SEC / 1000) \ ^ In file included from extra/gc.c:51: extra/../alloc.c: In function 'min_bytes_allocd': extra/../alloc.c:278:39: warning: implicit declaration of function 'GC_approx_sp'; did you mean 'GC_add_roots'? [-Wimplicit-function-declaration] stack_size = GC_stackbottom - GC_approx_sp(); ^~~~~~~~~~~~ GC_add_roots extra/../alloc.c:278:20: warning: assignment to 'word' {aka 'long unsigned int'} from 'char *' makes integer from pointer without a cast [-Wint-conversion] stack_size = GC_stackbottom - GC_approx_sp(); ^ extra/../alloc.c:282:40: error: 'GC_root_size' undeclared (first use in this function); did you mean 'GC_root_index'? total_root_size = 2 * stack_size + GC_root_size; ^~~~~~~~~~~~ GC_root_index extra/../alloc.c:286:9: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (GC_incremental) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../alloc.c: At top level: extra/../alloc.c:293:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_non_gc_bytes_at_gc = 0; ^~~~~~ STA_INS extra/../alloc.c:293:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_non_gc_bytes_at_gc' STATIC word GC_non_gc_bytes_at_gc = 0; ^~~~~~~~~~~~~~~~~~~~~ extra/../alloc.c:300:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_adj_bytes_allocd(void) ^~~~~~ STA_INS extra/../alloc.c:300:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_adj_bytes_allocd' STATIC word GC_adj_bytes_allocd(void) ^~~~~~~~~~~~~~~~~~~ extra/../alloc.c:341:7: error: expected ';' before 'void' STATIC void GC_clear_a_few_frames(void) ^~~~~ ; extra/../alloc.c:352:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_collect_at_heapsize = GC_WORD_MAX; ^~~~~~ STA_INS extra/../alloc.c:352:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_collect_at_heapsize' STATIC word GC_collect_at_heapsize = GC_WORD_MAX; ^~~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../alloc.c:355:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_should_collect(void) ^~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:355:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_should_collect' GC_INNER GC_bool GC_should_collect(void) ^~~~~~~~~~~~~~~~~ extra/../alloc.c:397:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_is_full_gc = FALSE; ^~~~~~ STA_INS extra/../alloc.c:397:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_is_full_gc' STATIC GC_bool GC_is_full_gc = FALSE; ^~~~~~~~~~~~~ extra/../alloc.c:399:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_stopped_mark(GC_stop_func stop_func); ^~~~~~ STA_INS extra/../alloc.c:399:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_stopped_mark' STATIC GC_bool GC_stopped_mark(GC_stop_func stop_func); ^~~~~~~~~~~~~~~ extra/../alloc.c:400:7: error: expected ';' before 'void' STATIC void GC_finish_collection(void); ^~~~~ ; extra/../alloc.c:407:7: error: expected ';' before 'void' STATIC void GC_maybe_gc(void) ^~~~~ ; extra/../alloc.c: In function 'GC_maybe_gc': extra/../alloc.c:414:14: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (!GC_incremental) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../alloc.c:416:13: warning: implicit declaration of function 'GC_try_to_collect_inner'; did you mean 'GC_try_to_collect'? [-Wimplicit-function-declaration] GC_try_to_collect_inner(GC_never_stop_func); ^~~~~~~~~~~~~~~~~~~~~~~ GC_try_to_collect extra/../alloc.c:424:15: error: 'GC_need_full_gc' undeclared (first use in this function); did you mean 'GC_notify_full_gc'? if (GC_need_full_gc || n_partial_gcs >= GC_full_freq) { ^~~~~~~~~~~~~~~ GC_notify_full_gc extra/../alloc.c:429:19: warning: implicit declaration of function 'GC_reclaim_all'; did you mean 'GC_clear_bl'? [-Wimplicit-function-declaration] (void)GC_reclaim_all((GC_stop_func)0, TRUE); ^~~~~~~~~~~~~~ GC_clear_bl extra/../alloc.c:433:13: error: 'GC_is_full_gc' undeclared (first use in this function); did you mean 'GC_notify_full_gc'? GC_is_full_gc = TRUE; ^~~~~~~~~~~~~ GC_notify_full_gc In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../alloc.c:442:62: error: 'GC_start_time' undeclared (first use in this function); did you mean 'GC_start_world'? if (GC_time_limit != GC_TIME_UNLIMITED) { GET_TIME(GC_start_time); } ^~~~~~~~~~~~~ ./include/private/gc_priv.h:484:29: note: in definition of macro 'GET_TIME' # define GET_TIME(x) (void)(x = clock()) ^ In file included from extra/gc.c:51: extra/../alloc.c:446:13: warning: implicit declaration of function 'GC_stopped_mark'; did you mean 'GC_set_fl_marks'? [-Wimplicit-function-declaration] if (GC_stopped_mark(GC_time_limit == GC_TIME_UNLIMITED? ^~~~~~~~~~~~~~~ GC_set_fl_marks extra/../alloc.c: At top level: extra/../alloc.c:461:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_on_collection_event_proc GC_on_collection_event = 0; ^~~~~~ STA_INS extra/../alloc.c:461:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_on_collection_event' STATIC GC_on_collection_event_proc GC_on_collection_event = 0; ^~~~~~~~~~~~~~~~~~~~~~ extra/../alloc.c: In function 'GC_set_on_collection_event': extra/../alloc.c:468:5: error: 'GC_on_collection_event' undeclared (first use in this function); did you mean 'GC_get_on_collection_event'? GC_on_collection_event = fn; ^~~~~~~~~~~~~~~~~~~~~~ GC_get_on_collection_event extra/../alloc.c: In function 'GC_get_on_collection_event': extra/../alloc.c:477:10: error: 'GC_on_collection_event' undeclared (first use in this function); did you mean 'GC_get_on_collection_event'? fn = GC_on_collection_event; ^~~~~~~~~~~~~~~~~~~~~~ GC_get_on_collection_event extra/../alloc.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../alloc.c:485:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_try_to_collect_inner(GC_stop_func stop_func) ^~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:485:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_try_to_collect_inner' GC_INNER GC_bool GC_try_to_collect_inner(GC_stop_func stop_func) ^~~~~~~~~~~~~~~~~~~~~~~ extra/../alloc.c:591:7: error: expected ';' before 'int' STATIC int GC_deficit = 0;/* The number of extra calls to GC_mark_some */ ^~~~ ; extra/../alloc.c:594:7: error: expected ';' before 'int' STATIC int GC_rate = GC_RATE; ^~~~ ; extra/../alloc.c:620:10: error: expected ';' before 'void' GC_INNER void GC_collect_a_little_inner(int n) ^~~~ extra/../alloc.c: In function 'GC_collect_a_little_inner': extra/../alloc.c:622:5: warning: implicit declaration of function 'IF_CANCEL' [-Wimplicit-function-declaration] IF_CANCEL(int cancel_state;) ^~~~~~~~~ extra/../alloc.c:622:15: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ extra/../alloc.c:628:9: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (GC_incremental && GC_collection_in_progress()) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../alloc.c:628:27: warning: implicit declaration of function 'GC_collection_in_progress'; did you mean 'GC_collect_a_little'? [-Wimplicit-function-declaration] if (GC_incremental && GC_collection_in_progress()) { ^~~~~~~~~~~~~~~~~~~~~~~~~ GC_collect_a_little extra/../alloc.c:633:17: warning: implicit declaration of function 'GC_mark_some'; did you mean 'GC_mark_init'? [-Wimplicit-function-declaration] if (GC_mark_some((ptr_t)0)) { ^~~~~~~~~~~~ GC_mark_init In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../alloc.c:645:30: error: 'GC_start_time' undeclared (first use in this function); did you mean 'GC_start_world'? GET_TIME(GC_start_time); ^~~~~~~~~~~~~ ./include/private/gc_priv.h:484:29: note: in definition of macro 'GET_TIME' # define GET_TIME(x) (void)(x = clock()) ^ In file included from extra/gc.c:51: extra/../alloc.c: At top level: extra/../alloc.c:671:10: error: expected ';' before 'void' GC_INNER void (*GC_check_heap)(void) = 0; ^~~~ extra/../alloc.c:672:10: error: expected ';' before 'void' GC_INNER void (*GC_print_all_smashed)(void) = 0; ^~~~ extra/../alloc.c: In function 'GC_collect_a_little': extra/../alloc.c:683:20: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? if (!result && GC_debugging_started) GC_print_all_smashed(); ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup extra/../alloc.c: At top level: extra/../alloc.c:714:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_stopped_mark(GC_stop_func stop_func) ^~~~~~ STA_INS extra/../alloc.c:714:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_stopped_mark' STATIC GC_bool GC_stopped_mark(GC_stop_func stop_func) ^~~~~~~~~~~~~~~ extra/../alloc.c:859:10: error: expected ';' before 'void' GC_INNER void GC_set_fl_marks(ptr_t q) ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../alloc.c: In function 'GC_set_fl_marks': ./include/private/gc_priv.h:1625:48: error: unknown type name 'AO_t' # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../alloc.c:871:11: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, bit_no); ^~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1625:64: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../alloc.c:871:11: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, bit_no); ^~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c: At top level: extra/../alloc.c:936:7: error: expected ';' before 'void' STATIC void GC_clear_fl_marks(ptr_t q) ^~~~~ ; extra/../alloc.c: In function 'GC_clear_fl_marks': extra/../alloc.c:961:9: error: 'GC_bytes_found' undeclared (first use in this function); did you mean 'GC_bytes_freed'? GC_bytes_found -= sz; ^~~~~~~~~~~~~~ GC_bytes_freed extra/../alloc.c: At top level: extra/../alloc.c:993:7: error: expected ';' before 'void' STATIC void GC_finish_collection(void) ^~~~~ ; extra/../alloc.c: In function 'GC_finish_collection': extra/../alloc.c:1012:9: error: 'GC_on_collection_event' undeclared (first use in this function); did you mean 'GC_get_on_collection_event'? if (GC_on_collection_event) ^~~~~~~~~~~~~~~~~~~~~~ GC_get_on_collection_event extra/../alloc.c:1013:7: warning: implicit declaration of function 'GC_on_collection_event'; did you mean 'GC_get_on_collection_event'? [-Wimplicit-function-declaration] GC_on_collection_event(GC_EVENT_RECLAIM_START); ^~~~~~~~~~~~~~~~~~~~~~ GC_get_on_collection_event extra/../alloc.c:1016:11: error: 'GC_bytes_found' undeclared (first use in this function); did you mean 'GC_bytes_freed'? if (GC_bytes_found > 0) ^~~~~~~~~~~~~~ GC_bytes_freed extra/../alloc.c:1017:9: error: 'GC_reclaimed_bytes_before_gc' undeclared (first use in this function); did you mean 'GC_get_bytes_since_gc'? GC_reclaimed_bytes_before_gc += (word)GC_bytes_found; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ GC_get_bytes_since_gc In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2534:31: error: 'GC_dump_regularly' undeclared (first use in this function); did you mean 'GC_dump_regions'? # define COND_DUMP if (EXPECT(GC_dump_regularly, FALSE)) { \ ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ extra/../alloc.c:1025:5: note: in expansion of macro 'COND_DUMP' COND_DUMP; ^~~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:1052:9: error: 'GC_print_back_height' undeclared (first use in this function); did you mean 'GC_print_block_list'? if (GC_print_back_height) { ^~~~~~~~~~~~~~~~~~~~ GC_print_block_list extra/../alloc.c:1090:9: error: 'GC_is_full_gc' undeclared (first use in this function); did you mean 'GC_notify_full_gc'? if (GC_is_full_gc) { ^~~~~~~~~~~~~ GC_notify_full_gc extra/../alloc.c:1091:9: error: 'GC_used_heap_size_after_full' undeclared (first use in this function); did you mean 'GC_get_heap_usage_safe'? GC_used_heap_size_after_full = USED_HEAP_SIZE; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ GC_get_heap_usage_safe extra/../alloc.c:1092:9: error: 'GC_need_full_gc' undeclared (first use in this function); did you mean 'GC_notify_full_gc'? GC_need_full_gc = FALSE; ^~~~~~~~~~~~~~~ GC_notify_full_gc extra/../alloc.c:1109:5: error: 'GC_non_gc_bytes_at_gc' undeclared (first use in this function); did you mean 'GC_non_gc_bytes'? GC_non_gc_bytes_at_gc = GC_non_gc_bytes; ^~~~~~~~~~~~~~~~~~~~~ GC_non_gc_bytes extra/../alloc.c: At top level: extra/../alloc.c:1139:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_try_to_collect_general(GC_stop_func stop_func, ^~~~~~ STA_INS extra/../alloc.c:1139:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_try_to_collect_general' STATIC GC_bool GC_try_to_collect_general(GC_stop_func stop_func, ^~~~~~~~~~~~~~~~~~~~~~~~~ extra/../alloc.c: In function 'GC_try_to_collect': extra/../alloc.c:1178:17: warning: implicit declaration of function 'GC_try_to_collect_general'; did you mean 'GC_try_to_collect'? [-Wimplicit-function-declaration] return (int)GC_try_to_collect_general(stop_func, FALSE); ^~~~~~~~~~~~~~~~~~~~~~~~~ GC_try_to_collect extra/../alloc.c: In function 'GC_gcollect': extra/../alloc.c:1186:9: error: 'GC_have_errors' undeclared (first use in this function); did you mean 'GC_add_roots'? if (GC_have_errors) GC_print_all_errors(); ^~~~~~~~~~~~~~ GC_add_roots extra/../alloc.c: At top level: extra/../alloc.c:1189:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_heapsize_at_forced_unmap = 0; ^~~~~~ STA_INS extra/../alloc.c:1189:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_heapsize_at_forced_unmap' STATIC word GC_heapsize_at_forced_unmap = 0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../alloc.c: In function 'GC_gcollect_and_unmap': extra/../alloc.c:1195:5: error: 'GC_heapsize_at_forced_unmap' undeclared (first use in this function) GC_heapsize_at_forced_unmap = GC_heapsize; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../alloc.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../alloc.c:1200:1: note: in expansion of macro 'GC_INNER' GC_INNER word GC_n_heap_sects = 0; ^~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:1200:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_n_heap_sects' GC_INNER word GC_n_heap_sects = 0; ^~~~~~~~~~~~~~~ extra/../alloc.c:1226:10: error: expected ';' before 'void' GC_INNER void GC_add_to_heap(struct hblk *p, size_t bytes) ^~~~ extra/../alloc.c: In function 'GC_add_to_heap': extra/../alloc.c:1231:9: error: 'GC_n_heap_sects' undeclared (first use in this function); did you mean 'GC_heap_sects'? if (GC_n_heap_sects >= MAX_HEAP_SECTS) { ^~~~~~~~~~~~~~~ GC_heap_sects extra/../alloc.c:1268:5: error: 'GC_collect_at_heapsize' undeclared (first use in this function); did you mean 'GC_collect_a_little'? GC_collect_at_heapsize += bytes; ^~~~~~~~~~~~~~~~~~~~~~ GC_collect_a_little extra/../alloc.c: In function 'GC_print_heap_sects': extra/../alloc.c:1294:21: error: 'GC_n_heap_sects' undeclared (first use in this function); did you mean 'GC_heap_sects'? for (i = 0; i < GC_n_heap_sects; i++) { ^~~~~~~~~~~~~~~ GC_heap_sects extra/../alloc.c: At top level: extra/../alloc.c:1323:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_max_heapsize = 0; ^~~~~~ STA_INS extra/../alloc.c:1323:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_max_heapsize' STATIC word GC_max_heapsize = 0; ^~~~~~~~~~~~~~~ extra/../alloc.c: In function 'GC_set_max_heap_size': extra/../alloc.c:1327:5: error: 'GC_max_heapsize' undeclared (first use in this function); did you mean 'GC_get_heap_size'? GC_max_heapsize = n; ^~~~~~~~~~~~~~~ GC_get_heap_size extra/../alloc.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../alloc.c:1336:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_expand_hp_inner(word n) ^~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:1336:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_expand_hp_inner' GC_INNER GC_bool GC_expand_hp_inner(word n) ^~~~~~~~~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../alloc.c: In function 'GC_expand_hp': extra/../alloc.c:1405:17: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) GC_init(); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:51: extra/../alloc.c:1407:19: warning: implicit declaration of function 'GC_expand_hp_inner'; did you mean 'GC_expand_hp'? [-Wimplicit-function-declaration] result = (int)GC_expand_hp_inner(divHBLKSZ((word)bytes)); ^~~~~~~~~~~~~~~~~~ GC_expand_hp extra/../alloc.c: At top level: extra/../alloc.c:1415:10: error: expected ';' before 'unsigned' GC_INNER unsigned GC_fail_count = 0; ^~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../alloc.c:1426:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_collect_or_expand(word needed_blocks, ^~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:1426:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_collect_or_expand' GC_INNER GC_bool GC_collect_or_expand(word needed_blocks, ^~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../alloc.c:1510:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_allocobj(size_t gran, int kind) ^~~~~~~~ In file included from extra/gc.c:51: extra/../alloc.c:1510:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_allocobj' GC_INNER ptr_t GC_allocobj(size_t gran, int kind) ^~~~~~~~~~~ In file included from extra/gc.c:52: extra/../dbg_mlc.c:36:12: error: expected ';' before 'int' GC_INNER int GC_has_other_debug_info(ptr_t p) ^~~ In file included from extra/../backgraph.c:15, from extra/gc.c:40: extra/../dbg_mlc.c: In function 'GC_has_other_debug_info': ./include/private/dbg_mlc.h:39:21: warning: implicit declaration of function 'GC_WORD_C'; did you mean 'GC_WORD_MAX'? [-Wimplicit-function-declaration] # define START_FLAG GC_WORD_C(0xFEDCEDCBfedcedcb) ^~~~~~~~~ extra/../dbg_mlc.c:45:32: note: in expansion of macro 'START_FLAG' if (((oh *)p) -> oh_sf != (START_FLAG ^ (word)body) ^~~~~~~~~~ In file included from extra/gc.c:52: extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:275:10: error: expected ';' before 'void' GC_INNER void *GC_store_debug_info_inner(void *p, word sz GC_ATTR_UNUSED, ^~~~ extra/../dbg_mlc.c: In function 'store_debug_info': extra/../dbg_mlc.c:314:10: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? if (!GC_debugging_started) ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:326:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_check_annotated_obj(oh *ohdr) ^~~~~~ STA_INS extra/../dbg_mlc.c:326:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_check_annotated_obj' STATIC ptr_t GC_check_annotated_obj(oh *ohdr) ^~~~~~~~~~~~~~~~~~~~~~ extra/../dbg_mlc.c:347:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_describe_type_fn GC_describe_type_fns[MAXOBJKINDS] = {0}; ^~~~~~ STA_INS extra/../dbg_mlc.c:347:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_describe_type_fns' STATIC GC_describe_type_fn GC_describe_type_fns[MAXOBJKINDS] = {0}; ^~~~~~~~~~~~~~~~~~~~ extra/../dbg_mlc.c:347:67: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] STATIC GC_describe_type_fn GC_describe_type_fns[MAXOBJKINDS] = {0}; ^ extra/../dbg_mlc.c: In function 'GC_register_describe_type_fn': extra/../dbg_mlc.c:352:3: error: 'GC_describe_type_fns' undeclared (first use in this function); did you mean 'GC_describe_type_fn'? GC_describe_type_fns[kind] = fn; ^~~~~~~~~~~~~~~~~~~~ GC_describe_type_fn extra/../dbg_mlc.c:349:54: warning: parameter 'kind' set but not used [-Wunused-but-set-parameter] GC_API void GC_CALL GC_register_describe_type_fn(int kind, ~~~~^~~~ extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:367:7: error: expected ';' before 'void' STATIC void GC_print_obj(ptr_t p) ^~~~~ ; extra/../dbg_mlc.c: In function 'GC_print_obj': extra/../dbg_mlc.c:384:12: warning: implicit declaration of function 'GC_find_header'; did you mean 'GC_init_headers'? [-Wimplicit-function-declaration] hhdr = GC_find_header(q); ^~~~~~~~~~~~~~ GC_init_headers extra/../dbg_mlc.c:384:10: warning: assignment to 'hdr *' {aka 'struct hblkhdr *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] hhdr = GC_find_header(q); ^ extra/../dbg_mlc.c:386:14: error: 'GC_describe_type_fns' undeclared (first use in this function); did you mean 'GC_describe_type_fn'? if (0 != GC_describe_type_fns[kind] && GC_is_marked(ohdr)) { ^~~~~~~~~~~~~~~~~~~~ GC_describe_type_fn extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:433:7: error: expected ';' before 'void' STATIC void GC_debug_print_heap_obj_proc(ptr_t p) ^~~~~ ; extra/../dbg_mlc.c:447:9: error: expected ';' before 'void' STATIC void GC_print_smashed_obj(const char *msg, void *p, ^~~~~ ; extra/../dbg_mlc.c:473:9: error: expected ';' before 'void' STATIC void GC_check_heap_proc (void); ^~~~~ ; extra/../dbg_mlc.c:474:9: error: expected ';' before 'void' STATIC void GC_print_all_smashed_proc (void); ^~~~~ ; extra/../dbg_mlc.c:479:10: error: expected ';' before 'void' GC_INNER void GC_start_debugging_inner(void) ^~~~ extra/../dbg_mlc.c: In function 'GC_start_debugging_inner': extra/../dbg_mlc.c:490:3: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? GC_debugging_started = TRUE; ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:564:7: error: expected ';' before 'void' STATIC void * GC_debug_generic_malloc(size_t lb, int knd, GC_EXTRA_PARAMS) ^~~~~ ; extra/../dbg_mlc.c: In function 'GC_debug_free': extra/../dbg_mlc.c:768:27: warning: implicit declaration of function 'GC_check_annotated_obj'; did you mean 'GC_check_heap_proc'? [-Wimplicit-function-declaration] ptr_t clobbered = GC_check_annotated_obj((oh *)base); ^~~~~~~~~~~~~~~~~~~~~~ GC_check_heap_proc extra/../dbg_mlc.c:768:27: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] extra/../dbg_mlc.c:771:11: error: 'GC_have_errors' undeclared (first use in this function); did you mean 'GC_add_roots'? GC_have_errors = TRUE; ^~~~~~~~~~~~~~ GC_add_roots extra/../dbg_mlc.c:788:56: error: 'GC_findleak_delay_free' undeclared (first use in this function); did you mean 'GC_finalizer_bytes_freed'? && ((ptr_t)p - (ptr_t)base != sizeof(oh) || !GC_findleak_delay_free) ^~~~~~~~~~~~~~~~~~~~~~ GC_finalizer_bytes_freed In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../dbg_mlc.c: In function 'GC_debug_realloc': ./include/private/gc_priv.h:623:32: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? if ((signed_word)GC_current_warn_proc == -1) {} else ABORT(msg) ^~~~~~~~~~~~~~~~~~~~ extra/../dbg_mlc.c:880:9: note: in expansion of macro 'ABORT_RET' ABORT_RET("GC_debug_realloc: encountered bad kind"); ^~~~~~~~~ In file included from extra/gc.c:52: extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:925:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_smashed[MAX_SMASHED] = {0}; ^~~~~~ STA_INS extra/../dbg_mlc.c:925:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_smashed' STATIC ptr_t GC_smashed[MAX_SMASHED] = {0}; ^~~~~~~~~~ extra/../dbg_mlc.c:925:43: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] STATIC ptr_t GC_smashed[MAX_SMASHED] = {0}; ^ extra/../dbg_mlc.c:926:7: error: expected ';' before 'unsigned' STATIC unsigned GC_n_smashed = 0; ^~~~~~~~~ ; extra/../dbg_mlc.c:928:7: error: expected ';' before 'void' STATIC void GC_add_smashed(ptr_t smashed) ^~~~~ ; extra/../dbg_mlc.c: In function 'GC_add_smashed': extra/../dbg_mlc.c:932:5: error: 'GC_smashed' undeclared (first use in this function); did you mean 'GC_n_smashed'? GC_smashed[GC_n_smashed] = smashed; ^~~~~~~~~~ GC_n_smashed extra/../dbg_mlc.c:936:5: error: 'GC_have_errors' undeclared (first use in this function); did you mean 'GC_add_roots'? GC_have_errors = TRUE; ^~~~~~~~~~~~~~ GC_add_roots extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:940:7: error: expected ';' before 'void' STATIC void GC_print_all_smashed_proc(void) ^~~~~ ; extra/../dbg_mlc.c: In function 'GC_print_all_smashed_proc': extra/../dbg_mlc.c:949:37: error: 'GC_smashed' undeclared (first use in this function); did you mean 'GC_n_smashed'? ptr_t base = (ptr_t)GC_base(GC_smashed[i]); ^~~~~~~~~~ GC_n_smashed extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:962:7: error: expected ';' before 'void' STATIC void GC_check_heap_block(struct hblk *hbp, word dummy GC_ATTR_UNUSED) ^~~~~ ; extra/../dbg_mlc.c: In function 'GC_check_heap_block': extra/../dbg_mlc.c:979:27: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] ptr_t clobbered = GC_check_annotated_obj((oh *)p); ^~~~~~~~~~~~~~~~~~~~~~ extra/../dbg_mlc.c: At top level: extra/../dbg_mlc.c:988:7: error: expected ';' before 'void' STATIC void GC_check_heap_proc(void) ^~~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../dbg_mlc.c:995:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_check_leaked(ptr_t base) ^~~~~~~~ In file included from extra/gc.c:52: extra/../dbg_mlc.c:995:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_check_leaked' GC_INNER GC_bool GC_check_leaked(ptr_t base) ^~~~~~~~~~~~~~~ extra/../dbg_mlc.c:1030:7: error: expected ';' before 'void' STATIC void * GC_make_closure(GC_finalization_proc fn, void * data) ^~~~~ ; extra/../dbg_mlc.c:1048:7: error: expected ';' before 'void' STATIC void GC_CALLBACK GC_debug_invoke_finalizer(void * obj, void * data) ^~~~~ ; In file included from extra/gc.c:53: extra/../finalize.c:53:7: error: expected ';' before 'struct' STATIC struct dl_hashtbl_s GC_dl_hashtbl = { ^~~~~~~ ; extra/../finalize.c:56:9: error: expected ';' before 'struct' STATIC struct dl_hashtbl_s GC_ll_hashtbl = { NULL, -1, 0 }; ^~~~~~~ ; extra/../finalize.c:75:7: error: expected ';' before 'struct' STATIC struct fnlz_roots_s { ^~~~~~~ ; extra/../finalize.c:112:7: error: expected ';' before 'void' STATIC void GC_grow_table(struct hash_chain_entry ***table, ^~~~~ ; extra/../finalize.c: In function 'GC_grow_table': extra/../finalize.c:129:53: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (log_old_size >= GC_ON_GROW_LOG_SIZE_MIN && !GC_incremental) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../finalize.c:130:17: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2708:33: error: expected expression before 'void' # define DISABLE_CANCEL(state) (void)0 ^~~~ extra/../finalize.c:132:7: note: in expansion of macro 'DISABLE_CANCEL' DISABLE_CANCEL(cancel_state); ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:2708:38: error: expected ';' before numeric constant # define DISABLE_CANCEL(state) (void)0 ^ extra/../finalize.c:132:7: note: in expansion of macro 'DISABLE_CANCEL' DISABLE_CANCEL(cancel_state); ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:159:9: note: in expansion of macro 'GC_dirty' GC_dirty(p); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: At top level: extra/../finalize.c:179:7: error: expected ';' before 'int' STATIC int GC_register_disappearing_link_inner( ^~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../finalize.c: In function 'GC_register_disappearing_link_inner': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:241:5: note: in expansion of macro 'GC_dirty' GC_dirty(new_dl); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: In function 'GC_general_register_disappearing_link': extra/../finalize.c:252:24: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)link & (ALIGNMENT-1)) != 0 || !NONNULL_ARG_NOT_NULL(link)) ^~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../finalize.c: In function 'GC_unregister_disappearing_link_inner': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:283:17: note: in expansion of macro 'GC_dirty' GC_dirty(dl_hashtbl->head + index); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: In function 'GC_unregister_disappearing_link': extra/../finalize.c:301:24: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)link & (ALIGNMENT-1)) != 0) return(0); /* Nothing to do. */ ^~~~~~~~~ extra/../finalize.c: At top level: extra/../finalize.c:319:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_toggleref_func GC_toggleref_callback = 0; ^~~~~~ STA_INS extra/../finalize.c:319:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_toggleref_callback' STATIC GC_toggleref_func GC_toggleref_callback = 0; ^~~~~~~~~~~~~~~~~~~~~ extra/../finalize.c:320:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GCToggleRef *GC_toggleref_arr = NULL; ^~~~~~ STA_INS extra/../finalize.c:320:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC GCToggleRef *GC_toggleref_arr = NULL; ^ extra/../finalize.c:321:9: error: expected ';' before 'int' STATIC int GC_toggleref_array_size = 0; ^~~~ ; extra/../finalize.c:322:9: error: expected ';' before 'int' STATIC int GC_toggleref_array_capacity = 0; ^~~~ ; extra/../finalize.c:324:12: error: expected ';' before 'void' GC_INNER void GC_process_togglerefs(void) ^~~~ extra/../finalize.c: In function 'GC_process_togglerefs': extra/../finalize.c:332:23: error: 'GC_toggleref_arr' undeclared (first use in this function); did you mean 'GC_toggleref_add'? GCToggleRef r = GC_toggleref_arr[i]; ^~~~~~~~~~~~~~~~ GC_toggleref_add extra/../finalize.c:341:15: warning: implicit declaration of function 'GC_toggleref_callback'; did you mean 'GC_toggleref_add'? [-Wimplicit-function-declaration] switch (GC_toggleref_callback(obj)) { ^~~~~~~~~~~~~~~~~~~~~ GC_toggleref_add In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:362:7: note: in expansion of macro 'GC_dirty' GC_dirty(GC_toggleref_arr); /* entire object */ ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: At top level: extra/../finalize.c:365:9: error: expected ';' before 'void' STATIC void GC_normal_finalize_mark_proc(ptr_t); ^~~~~ ; In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: extra/../finalize.c: In function 'push_and_mark_object': ./include/private/gc_pmark.h:420:29: warning: implicit declaration of function 'GC_mark_from'; did you mean 'GC_mark_procs'? [-Wimplicit-function-declaration] GC_mark_stack_top = GC_mark_from(GC_mark_stack_top, \ ^~~~~~~~~~~~ extra/../finalize.c:371:7: note: in expansion of macro 'MARK_FROM_MARK_STACK' MARK_FROM_MARK_STACK(); ^~~~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:422:58: error: 'GC_mark_stack_size' undeclared (first use in this function); did you mean 'GC_mark_stack_limit'? GC_mark_stack + GC_mark_stack_size); ^~~~~~~~~~~~~~~~~~ extra/../finalize.c:371:7: note: in expansion of macro 'MARK_FROM_MARK_STACK' MARK_FROM_MARK_STACK(); ^~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c:374:9: error: 'GC_mark_state' undeclared (first use in this function); did you mean 'GC_mark_stack'? if (GC_mark_state != MS_NONE) { ^~~~~~~~~~~~~ GC_mark_stack extra/../finalize.c: At top level: extra/../finalize.c:381:9: error: expected ';' before 'void' STATIC void GC_mark_togglerefs(void) ^~~~~ ; extra/../finalize.c: In function 'GC_mark_togglerefs': extra/../finalize.c:384:17: error: 'GC_toggleref_arr' undeclared (first use in this function); did you mean 'GC_toggleref_add'? if (NULL == GC_toggleref_arr) ^~~~~~~~~~~~~~~~ GC_toggleref_add extra/../finalize.c: At top level: extra/../finalize.c:397:9: error: expected ';' before 'void' STATIC void GC_clear_togglerefs(void) ^~~~~ ; extra/../finalize.c: In function 'GC_clear_togglerefs': extra/../finalize.c:401:12: error: 'GC_toggleref_arr' undeclared (first use in this function); did you mean 'GC_toggleref_add'? if ((GC_toggleref_arr[i].weak_ref & 1) != 0) { ^~~~~~~~~~~~~~~~ GC_toggleref_add extra/../finalize.c: In function 'GC_set_toggleref_func': extra/../finalize.c:416:5: error: 'GC_toggleref_callback' undeclared (first use in this function); did you mean 'GC_toggleref_add'? GC_toggleref_callback = fn; ^~~~~~~~~~~~~~~~~~~~~ GC_toggleref_add extra/../finalize.c: In function 'GC_get_toggleref_func': extra/../finalize.c:426:10: error: 'GC_toggleref_callback' undeclared (first use in this function); did you mean 'GC_toggleref_add'? fn = GC_toggleref_callback; ^~~~~~~~~~~~~~~~~~~~~ GC_toggleref_add extra/../finalize.c: In function 'ensure_toggleref_capacity': extra/../finalize.c:435:17: error: 'GC_toggleref_arr' undeclared (first use in this function); did you mean 'GC_toggleref_add'? if (NULL == GC_toggleref_arr) { ^~~~~~~~~~~~~~~~ GC_toggleref_add extra/../finalize.c: In function 'GC_toggleref_add': extra/../finalize.c:474:9: error: 'GC_toggleref_callback' undeclared (first use in this function); did you mean 'GC_toggleref_add'? if (GC_toggleref_callback != 0) { ^~~~~~~~~~~~~~~~~~~~~ GC_toggleref_add extra/../finalize.c:478:9: error: 'GC_toggleref_arr' undeclared (first use in this function); did you mean 'GC_toggleref_add'? GC_toggleref_arr[GC_toggleref_array_size].strong_ref = ^~~~~~~~~~~~~~~~ GC_toggleref_add In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:481:11: note: in expansion of macro 'GC_dirty' GC_dirty(GC_toggleref_arr + GC_toggleref_array_size); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: At top level: extra/../finalize.c:491:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_await_finalize_proc GC_object_finalized_proc = 0; ^~~~~~ STA_INS extra/../finalize.c:491:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_object_finalized_proc' STATIC GC_await_finalize_proc GC_object_finalized_proc = 0; ^~~~~~~~~~~~~~~~~~~~~~~~ extra/../finalize.c: In function 'GC_set_await_finalize_proc': extra/../finalize.c:498:3: error: 'GC_object_finalized_proc' undeclared (first use in this function); did you mean 'GC_await_finalize_proc'? GC_object_finalized_proc = fn; ^~~~~~~~~~~~~~~~~~~~~~~~ GC_await_finalize_proc extra/../finalize.c: In function 'GC_get_await_finalize_proc': extra/../finalize.c:508:8: error: 'GC_object_finalized_proc' undeclared (first use in this function); did you mean 'GC_await_finalize_proc'? fn = GC_object_finalized_proc; ^~~~~~~~~~~~~~~~~~~~~~~~ GC_await_finalize_proc extra/../finalize.c: In function 'GC_register_long_link': extra/../finalize.c:516:24: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)link & (ALIGNMENT-1)) != 0 || !NONNULL_ARG_NOT_NULL(link)) ^~~~~~~~~ extra/../finalize.c: In function 'GC_unregister_long_link': extra/../finalize.c:527:24: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)link & (ALIGNMENT-1)) != 0) return(0); /* Nothing to do. */ ^~~~~~~~~ extra/../finalize.c: At top level: extra/../finalize.c:540:9: error: expected ';' before 'int' STATIC int GC_move_disappearing_link_inner( ^~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../finalize.c: In function 'GC_move_disappearing_link_inner': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:588:7: note: in expansion of macro 'GC_dirty' GC_dirty(prev_dl); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: In function 'GC_move_disappearing_link': extra/../finalize.c:603:28: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)new_link & (ALIGNMENT-1)) != 0 ^~~~~~~~~ extra/../finalize.c: In function 'GC_move_long_link': extra/../finalize.c:621:30: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)new_link & (ALIGNMENT-1)) != 0 ^~~~~~~~~ extra/../finalize.c: At top level: extra/../finalize.c:637:7: error: expected ';' before 'void' STATIC void GC_normal_finalize_mark_proc(ptr_t p) ^~~~~ ; extra/../finalize.c: In function 'GC_normal_finalize_mark_proc': extra/../finalize.c:640:53: error: 'GC_mark_stack_size' undeclared (first use in this function); did you mean 'GC_mark_stack_limit'? GC_mark_stack + GC_mark_stack_size); ^~~~~~~~~~~~~~~~~~ GC_mark_stack_limit extra/../finalize.c: At top level: extra/../finalize.c:646:7: error: expected ';' before 'void' STATIC void GC_ignore_self_finalize_mark_proc(ptr_t p) ^~~~~ ; extra/../finalize.c: In function 'GC_ignore_self_finalize_mark_proc': extra/../finalize.c:659:51: error: 'ALIGNMENT' undeclared (first use in this function) for (q = p; (word)q <= (word)scan_limit; q += ALIGNMENT) { ^~~~~~~~~ In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h:406:7: warning: implicit declaration of function 'FIXUP_POINTER'; did you mean 'GC_HIDE_POINTER'? [-Wimplicit-function-declaration] FIXUP_POINTER(p); \ ^~~~~~~~~~~~~ extra/../finalize.c:663:13: note: in expansion of macro 'GC_PUSH_ONE_HEAP' GC_PUSH_ONE_HEAP(r, q, GC_mark_stack_top); ^~~~~~~~~~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: At top level: extra/../finalize.c:668:7: error: expected ';' before 'void' STATIC void GC_null_finalize_mark_proc(ptr_t p GC_ATTR_UNUSED) {} ^~~~~ ; extra/../finalize.c:678:7: error: expected ';' before 'void' STATIC void GC_unreachable_finalize_mark_proc(ptr_t p) ^~~~~ ; extra/../finalize.c:688:7: error: expected ';' before 'void' STATIC void GC_register_finalizer_inner(void * obj, ^~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../finalize.c: In function 'GC_register_finalizer_inner': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:731:13: note: in expansion of macro 'GC_dirty' GC_dirty(prev_fo); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: At top level: extra/../finalize.c:862:9: error: expected ';' before 'void' STATIC void GC_dump_finalization_links( ^~~~~ ; extra/../finalize.c:909:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_old_dl_entries = 0; /* for stats printing */ ^~~~~~ STA_INS extra/../finalize.c:909:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_old_dl_entries' STATIC word GC_old_dl_entries = 0; /* for stats printing */ ^~~~~~~~~~~~~~~~~ extra/../finalize.c:911:5: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_old_ll_entries = 0; ^~~~~~ STA_INS extra/../finalize.c:911:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_old_ll_entries' STATIC word GC_old_ll_entries = 0; ^~~~~~~~~~~~~~~~~ extra/../finalize.c:918:9: error: expected ';' before 'int' STATIC int GC_finalizer_nested = 0; ^~~~ ; extra/../finalize.c:922:9: error: expected ';' before 'unsigned' STATIC unsigned GC_finalizer_skipped = 0; ^~~~~~~~~ ; extra/../finalize.c:928:9: error: expected ';' before 'unsigned' STATIC unsigned char *GC_check_finalizer_nested(void) ^~~~~~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../finalize.c: In function 'GC_make_disappearing_links_disappear': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:982:9: note: in expansion of macro 'GC_dirty' GC_dirty(prev_dl); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: At top level: extra/../finalize.c:995:10: error: expected ';' before 'void' GC_INNER void GC_finalize(void) ^~~~ extra/../finalize.c: In function 'GC_finalize': extra/../finalize.c:1007:7: error: 'GC_old_dl_entries' undeclared (first use in this function); did you mean 'GC_fo_entries'? GC_old_dl_entries = GC_dl_hashtbl.entries; ^~~~~~~~~~~~~~~~~ GC_fo_entries extra/../finalize.c:1009:9: error: 'GC_old_ll_entries' undeclared (first use in this function); did you mean 'GC_fo_entries'? GC_old_ll_entries = GC_ll_hashtbl.entries; ^~~~~~~~~~~~~~~~~ GC_fo_entries In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: ./include/private/gc_pmark.h:422:58: error: 'GC_mark_stack_size' undeclared (first use in this function); did you mean 'GC_mark_stack_limit'? GC_mark_stack + GC_mark_stack_size); ^~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:438:36: note: in expansion of macro 'MARK_FROM_MARK_STACK' while (!GC_mark_stack_empty()) MARK_FROM_MARK_STACK(); \ ^~~~~~~~~~~~~~~~~~~~ extra/../finalize.c:1028:13: note: in expansion of macro 'GC_MARK_FO' GC_MARK_FO(real_ptr, curr_fo -> fo_mark_proc); ^~~~~~~~~~ ./include/private/gc_pmark.h:439:9: error: 'GC_mark_state' undeclared (first use in this function); did you mean 'GC_mark_stack'? if (GC_mark_state != MS_NONE) { \ ^~~~~~~~~~~~~ extra/../finalize.c:1028:13: note: in expansion of macro 'GC_MARK_FO' GC_MARK_FO(real_ptr, curr_fo -> fo_mark_proc); ^~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../finalize.c:1030:17: note: in expansion of macro 'WARN' WARN("Finalization cycle involving %p\n", real_ptr); ^~~~ In file included from extra/gc.c:53: extra/../finalize.c:1051:21: error: 'GC_object_finalized_proc' undeclared (first use in this function); did you mean 'GC_await_finalize_proc'? if (GC_object_finalized_proc) { ^~~~~~~~~~~~~~~~~~~~~~~~ GC_await_finalize_proc In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:1052:19: note: in expansion of macro 'GC_dirty' GC_dirty(GC_fnlz_roots.fo_head + i); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c:1062:17: warning: implicit declaration of function 'GC_object_finalized_proc'; did you mean 'GC_get_await_finalize_proc'? [-Wimplicit-function-declaration] GC_object_finalized_proc(real_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~ GC_get_await_finalize_proc extra/../finalize.c: At top level: extra/../finalize.c:1169:9: error: expected ';' before 'void' STATIC void GC_enqueue_all_finalizers(void) ^~~~~ ; In file included from extra/../gcj_mlc.c:16, from extra/gc.c:43: extra/../finalize.c: In function 'GC_enqueue_all_finalizers': ./include/private/gc_pmark.h:422:58: error: 'GC_mark_stack_size' undeclared (first use in this function); did you mean 'GC_mark_stack_limit'? GC_mark_stack + GC_mark_stack_size); ^~~~~~~~~~~~~~~~~~ ./include/private/gc_pmark.h:438:36: note: in expansion of macro 'MARK_FROM_MARK_STACK' while (!GC_mark_stack_empty()) MARK_FROM_MARK_STACK(); \ ^~~~~~~~~~~~~~~~~~~~ extra/../finalize.c:1185:11: note: in expansion of macro 'GC_MARK_FO' GC_MARK_FO(real_ptr, GC_normal_finalize_mark_proc); ^~~~~~~~~~ ./include/private/gc_pmark.h:439:9: error: 'GC_mark_state' undeclared (first use in this function); did you mean 'GC_mark_stack'? if (GC_mark_state != MS_NONE) { \ ^~~~~~~~~~~~~ extra/../finalize.c:1185:11: note: in expansion of macro 'GC_MARK_FO' GC_MARK_FO(real_ptr, GC_normal_finalize_mark_proc); ^~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../finalize.c:1192:11: note: in expansion of macro 'GC_dirty' GC_dirty(curr_fo); ^~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c: At top level: extra/../finalize.c:1308:10: error: expected ';' before 'void' GC_INNER void GC_notify_or_invoke_finalizers(void) ^~~~ extra/../finalize.c:1386:12: error: expected ';' before 'void' GC_INNER void GC_print_finalization_stats(void) ^~~~ extra/../finalize.c: In function 'GC_print_finalization_stats': extra/../finalize.c:1403:25: error: 'GC_old_dl_entries' undeclared (first use in this function); did you mean 'GC_fo_entries'? (long)GC_old_dl_entries - (long)GC_dl_hashtbl.entries, ^~~~~~~~~~~~~~~~~ GC_fo_entries extra/../finalize.c:1405:31: error: 'GC_old_ll_entries' undeclared (first use in this function); did you mean 'GC_fo_entries'? GC_old_ll_entries - GC_ll_hashtbl.entries, 0)); ^~~~~~~~~~~~~~~~~ extra/../finalize.c:1381:44: note: in definition of macro 'IF_LONG_REFS_PRESENT_ELSE' # define IF_LONG_REFS_PRESENT_ELSE(x,y) (x) ^ In file included from extra/gc.c:54: extra/../fnlz_mlc.c: At top level: extra/../fnlz_mlc.c:23:7: error: expected ';' before 'int' STATIC int GC_finalized_kind = 0; ^~~~ ; extra/../fnlz_mlc.c:32:7: error: expected ';' before 'int' STATIC int GC_CALLBACK GC_finalized_disclaim(void *obj) ^~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../fnlz_mlc.c: In function 'GC_finalized_malloc': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../fnlz_mlc.c:109:5: note: in expansion of macro 'GC_dirty' GC_dirty(op); ^~~~~~~~ In file included from extra/gc.c:55: extra/../malloc.c: At top level: extra/../malloc.c:24:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_alloc_reclaim_list(struct obj_kind *kind) ^~~~~~ STA_INS extra/../malloc.c:24:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_alloc_reclaim_list' STATIC GC_bool GC_alloc_reclaim_list(struct obj_kind *kind) ^~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../malloc.c:38:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags) ^~~~~~~~ In file included from extra/gc.c:55: extra/../malloc.c:38:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_alloc_large' GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags) ^~~~~~~~~~~~~~ extra/../malloc.c:85:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_alloc_large_and_clear(size_t lb, int k, unsigned flags) ^~~~~~ STA_INS extra/../malloc.c:85:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_alloc_large_and_clear' STATIC ptr_t GC_alloc_large_and_clear(size_t lb, int k, unsigned flags) ^~~~~~~~~~~~~~~~~~~~~~~~ extra/../malloc.c:104:7: error: expected ';' before 'void' STATIC void GC_extend_size_map(size_t i) ^~~~~ ; extra/../malloc.c:157:10: error: expected ';' before 'void' GC_INNER void * GC_generic_malloc_inner(size_t lb, int k) ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../malloc.c: In function 'GC_generic_malloc_inner': extra/../malloc.c:171:25: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) { ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:55: extra/../malloc.c:189:18: warning: implicit declaration of function 'GC_alloc_reclaim_list'; did you mean 'GC_start_reclaim'? [-Wimplicit-function-declaration] !GC_alloc_reclaim_list(kind)) ^~~~~~~~~~~~~~~~~~~~~ GC_start_reclaim extra/../malloc.c:191:18: warning: implicit declaration of function 'GC_allocobj'; did you mean 'GC_allochblk'? [-Wimplicit-function-declaration] op = GC_allocobj(lg, k); ^~~~~~~~~~~ GC_allochblk extra/../malloc.c:191:16: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] op = GC_allocobj(lg, k); ^ extra/../malloc.c:200:21: warning: implicit declaration of function 'GC_alloc_large_and_clear'; did you mean 'GC_malloc_kind_global'? [-Wimplicit-function-declaration] op = (ptr_t)GC_alloc_large_and_clear(ADD_SLOP(lb), k, 0); ^~~~~~~~~~~~~~~~~~~~~~~~ GC_malloc_kind_global extra/../malloc.c:200:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] op = (ptr_t)GC_alloc_large_and_clear(ADD_SLOP(lb), k, 0); ^ extra/../malloc.c: At top level: extra/../malloc.c:212:12: error: expected ';' before 'void' GC_INNER void * GC_generic_malloc_inner_ignore_off_page(size_t lb, int k) ^~~~ extra/../malloc.c: In function 'GC_generic_malloc_inner_ignore_off_page': extra/../malloc.c:222:8: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] op = GC_alloc_large_and_clear(lb_adjusted, k, IGNORE_OFF_PAGE); ^ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../malloc.c: In function 'GC_generic_malloc': extra/../malloc.c:245:16: error: 'GC_have_errors' undeclared (first use in this function); did you mean 'GC_add_roots'? if (EXPECT(GC_have_errors, FALSE)) ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:55: extra/../malloc.c:264:25: warning: implicit declaration of function 'GC_alloc_large'; did you mean 'GC_malloc_many'? [-Wimplicit-function-declaration] result = (ptr_t)GC_alloc_large(lb_rounded, k, 0); ^~~~~~~~~~~~~~ GC_malloc_many extra/../malloc.c:264:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] result = (ptr_t)GC_alloc_large(lb_rounded, k, 0); ^ extra/../malloc.c:266:15: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? if (GC_debugging_started) { ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../malloc.c: In function 'GC_generic_malloc_uncollectable': ./include/private/gc_priv.h:1625:48: error: unknown type name 'AO_t' # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../malloc.c:396:9: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, 0); /* Only object. */ ^~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1625:64: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../malloc.c:396:9: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, 0); /* Only object. */ ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../mallocx.c: In function 'GC_generic_malloc_ignore_off_page': extra/../mallocx.c:213:16: error: 'GC_have_errors' undeclared (first use in this function); did you mean 'GC_add_roots'? if (EXPECT(GC_have_errors, FALSE)) ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:56: extra/../mallocx.c:218:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] result = (ptr_t)GC_alloc_large(ADD_SLOP(lb), k, IGNORE_OFF_PAGE); ^ extra/../mallocx.c:225:9: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? if (GC_debugging_started) { ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup extra/../mallocx.c: At top level: extra/../mallocx.c:275:11: error: expected ';' before 'volatile' STATIC volatile AO_t GC_bytes_allocd_tmp = 0; ^~~~~~~~~ ; extra/../mallocx.c:275:21: error: unknown type name 'AO_t' STATIC volatile AO_t GC_bytes_allocd_tmp = 0; ^~~~ extra/../mallocx.c: In function 'GC_generic_malloc_many': extra/../mallocx.c:317:27: error: 'GC_manual_vdb' undeclared (first use in this function) if (!SMALL_OBJ(lb) || GC_manual_vdb) { ^~~~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../mallocx.c:333:16: error: 'GC_have_errors' undeclared (first use in this function); did you mean 'GC_add_roots'? if (EXPECT(GC_have_errors, FALSE)) ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ extra/../mallocx.c:337:17: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) GC_init(); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:56: extra/../mallocx.c:340:11: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (GC_incremental && !GC_dont_gc) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../mallocx.c:368:27: warning: implicit declaration of function 'AO_fetch_and_add' [-Wimplicit-function-declaration] (void)AO_fetch_and_add(&GC_bytes_allocd_tmp, ^~~~~~~~~~~~~~~~ extra/../mallocx.c:369:45: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? (AO_t)(-my_bytes_allocd_tmp)); ^~~~ id_t extra/../mallocx.c:373:22: error: 'GC_fl_builder_count' undeclared (first use in this function); did you mean 'GC_fail_count'? ++ GC_fl_builder_count; ^~~~~~~~~~~~~~~~~~~ GC_fail_count extra/../mallocx.c:378:18: warning: implicit declaration of function 'GC_reclaim_generic' [-Wimplicit-function-declaration] op = GC_reclaim_generic(hbp, hhdr, lb, ^~~~~~~~~~~~~~~~~~ extra/../mallocx.c:378:16: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] op = GC_reclaim_generic(hbp, hhdr, lb, ^ extra/../mallocx.c:385:48: error: expected ')' before 'my_bytes_allocd' (AO_t)my_bytes_allocd); ^~~~~~~~~~~~~~~ ) extra/../mallocx.c:395:21: error: 'GC_bytes_found' undeclared (first use in this function); did you mean 'GC_bytes_freed'? GC_bytes_found += my_bytes_allocd; ^~~~~~~~~~~~~~ GC_bytes_freed extra/../mallocx.c:455:43: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? (ok -> ok_init || GC_debugging_started), 0); ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../mallocx.c: In function 'GC_end_stubborn_change': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../mallocx.c:625:3: note: in expansion of macro 'GC_dirty' GC_dirty(p); /* entire object */ ^~~~~~~~ extra/../mallocx.c: In function 'GC_ptr_store_and_dirty': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../mallocx.c:631:3: note: in expansion of macro 'GC_dirty' GC_dirty(p); ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c: At top level: extra/../mark.c:61:10: error: expected ';' before 'unsigned' GC_INNER unsigned GC_n_mark_procs = GC_RESERVED_MARK_PROCS; ^~~~~~~~ extra/../mark.c:67:10: error: expected ';' before 'struct' GC_INNER struct obj_kind GC_obj_kinds[MAXOBJKINDS] = { ^~~~~~ extra/../mark.c:87:10: error: expected ';' before 'unsigned' GC_INNER unsigned GC_n_kinds = GC_N_KINDS_INITIAL_VALUE; ^~~~~~~~ extra/../mark.c:100:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_n_rescuing_pages = 0; ^~~~~~ STA_INS extra/../mark.c:100:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_n_rescuing_pages' STATIC word GC_n_rescuing_pages = 0; ^~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark.c:106:1: note: in expansion of macro 'GC_INNER' GC_INNER size_t GC_mark_stack_size = 0; ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c:106:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_stack_size' GC_INNER size_t GC_mark_stack_size = 0; ^~~~~~~~~~~~~~~~~~ extra/../mark.c:109:9: error: expected ';' before 'volatile' STATIC volatile AO_t GC_first_nonempty = 0; ^~~~~~~~~ ; extra/../mark.c:109:19: error: unknown type name 'AO_t' STATIC volatile AO_t GC_first_nonempty = 0; ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark.c:116:1: note: in expansion of macro 'GC_INNER' GC_INNER mark_state_t GC_mark_state = MS_NONE; ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c:116:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_state' GC_INNER mark_state_t GC_mark_state = MS_NONE; ^~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark.c:118:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_mark_stack_too_small = FALSE; ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c:118:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_stack_too_small' GC_INNER GC_bool GC_mark_stack_too_small = FALSE; ^~~~~~~~~~~~~~~~~~~~~~~ extra/../mark.c:122:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_objects_are_marked = FALSE; ^~~~~~ STA_INS extra/../mark.c:122:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_objects_are_marked' STATIC GC_bool GC_objects_are_marked = FALSE; ^~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark.c:128:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_collection_in_progress(void) ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c:128:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_collection_in_progress' GC_INNER GC_bool GC_collection_in_progress(void) ^~~~~~~~~~~~~~~~~~~~~~~~~ extra/../mark.c:134:10: error: expected ';' before 'void' GC_INNER void GC_clear_hdr_marks(hdr *hhdr) ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../mark.c: In function 'GC_clear_hdr_marks': ./include/private/gc_priv.h:1625:48: error: unknown type name 'AO_t' # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../mark.c:147:5: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, last_bit); ^~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1625:64: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../mark.c:147:5: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, last_bit); ^~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c: At top level: extra/../mark.c:152:10: error: expected ';' before 'void' GC_INNER void GC_set_hdr_marks(hdr *hhdr) ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../mark.c: In function 'GC_set_mark_bit': ./include/private/gc_priv.h:1625:48: error: unknown type name 'AO_t' # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../mark.c:196:7: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, bit_no); ^~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1625:64: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../mark.c:196:7: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, bit_no); ^~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c: At top level: extra/../mark.c:239:10: error: expected ';' before 'void' GC_INNER void GC_clear_marks(void) ^~~~ extra/../mark.c: In function 'GC_clear_marks': extra/../mark.c:242:5: error: 'GC_objects_are_marked' undeclared (first use in this function); did you mean 'GC_notify_all_marker'? GC_objects_are_marked = FALSE; ^~~~~~~~~~~~~~~~~~~~~ GC_notify_all_marker extra/../mark.c:243:5: error: 'GC_mark_state' undeclared (first use in this function); did you mean 'GC_mark_stack'? GC_mark_state = MS_INVALID; ^~~~~~~~~~~~~ GC_mark_stack extra/../mark.c: At top level: extra/../mark.c:249:10: error: expected ';' before 'void' GC_INNER void GC_initiate_gc(void) ^~~~ extra/../mark.c: In function 'GC_initiate_gc': extra/../mark.c:253:13: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (GC_incremental) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../mark.c:257:27: error: 'GC_mark_state' undeclared (first use in this function); did you mean 'GC_mark_stack'? GC_read_dirty(GC_mark_state == MS_INVALID); ^~~~~~~~~~~~~ GC_mark_stack extra/../mark.c:265:9: error: 'GC_n_rescuing_pages' undeclared (first use in this function); did you mean 'GC_grungy_pages'? GC_n_rescuing_pages = 0; ^~~~~~~~~~~~~~~~~~~ GC_grungy_pages extra/../mark.c: At top level: extra/../mark.c:277:11: error: expected ';' before 'void' STATIC void GC_do_parallel_mark(void); /* initiate parallel marking. */ ^~~~~ ; extra/../mark.c:283:9: error: expected ';' before 'struct' STATIC struct hblk * GC_push_next_marked_dirty(struct hblk *h); ^~~~~~~ ; extra/../mark.c:287:7: error: expected ';' before 'struct' STATIC struct hblk * GC_push_next_marked(struct hblk *h); ^~~~~~~ ; extra/../mark.c:289:7: error: expected ';' before 'struct' STATIC struct hblk * GC_push_next_marked_uncollectable(struct hblk *h); ^~~~~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark.c:310:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_mark_some(ptr_t cold_gc_frame) ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c:310:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_some' GC_INNER GC_bool GC_mark_some(ptr_t cold_gc_frame) ^~~~~~~~~~~~ extra/../mark.c:596:10: error: expected ';' before 'void' GC_INNER void GC_invalidate_mark_state(void) ^~~~ extra/../mark.c: In function 'GC_invalidate_mark_state': extra/../mark.c:598:5: error: 'GC_mark_state' undeclared (first use in this function); did you mean 'GC_mark_stack'? GC_mark_state = MS_INVALID; ^~~~~~~~~~~~~ GC_mark_stack extra/../mark.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark.c:602:1: note: in expansion of macro 'GC_INNER' GC_INNER mse * GC_signal_mark_stack_overflow(mse *msp) ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c:602:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER mse * GC_signal_mark_stack_overflow(mse *msp) ^ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark.c:634:1: note: in expansion of macro 'GC_INNER' GC_INNER mse * GC_mark_from(mse *mark_stack_top, mse *mark_stack, ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c:634:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token GC_INNER mse * GC_mark_from(mse *mark_stack_top, mse *mark_stack, ^ extra/../mark.c:904:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_help_wanted = FALSE; /* Protected by mark lock */ ^~~~~~ STA_INS extra/../mark.c:904:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_help_wanted' STATIC GC_bool GC_help_wanted = FALSE; /* Protected by mark lock */ ^~~~~~~~~~~~~~ extra/../mark.c:905:7: error: expected ';' before 'unsigned' STATIC unsigned GC_helper_count = 0; /* Number of running helpers. */ ^~~~~~~~~ ; extra/../mark.c:907:7: error: expected ';' before 'unsigned' STATIC unsigned GC_active_count = 0; /* Number of active helpers. */ ^~~~~~~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark.c:914:1: note: in expansion of macro 'GC_INNER' GC_INNER word GC_mark_no = 0; ^~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c:914:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_no' GC_INNER word GC_mark_no = 0; ^~~~~~~~~~ extra/../mark.c:929:10: error: expected ';' before 'void' GC_INNER void GC_wait_for_markers_init(void) ^~~~ extra/../mark.c: In function 'GC_wait_for_markers_init': extra/../mark.c:945:36: warning: implicit declaration of function 'GET_MEM'; did you mean 'GET_TIME'? [-Wimplicit-function-declaration] main_local_mark_stack = (mse *)GET_MEM(bytes_to_get); ^~~~~~~ GET_TIME extra/../mark.c:945:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] main_local_mark_stack = (mse *)GET_MEM(bytes_to_get); ^ extra/../mark.c:954:3: error: 'GC_fl_builder_count' undeclared (first use in this function); did you mean 'GC_helper_count'? GC_fl_builder_count += GC_markers_m1; ^~~~~~~~~~~~~~~~~~~ GC_helper_count extra/../mark.c: At top level: extra/../mark.c:968:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC mse * GC_steal_mark_stack(mse * low, mse * high, mse * local, ^~~~~~ STA_INS extra/../mark.c:968:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC mse * GC_steal_mark_stack(mse * low, mse * high, mse * local, ^ extra/../mark.c:1006:7: error: expected ';' before 'void' STATIC void GC_return_mark_stack(mse * low, mse * high) ^~~~~ ; extra/../mark.c: In function 'GC_return_mark_stack': extra/../mark.c:1018:25: error: 'GC_mark_stack_size' undeclared (first use in this function); did you mean 'GC_mark_stack_limit'? > (word)GC_mark_stack_size) { ^~~~~~~~~~~~~~~~~~ GC_mark_stack_limit extra/../mark.c:1020:7: error: 'GC_mark_state' undeclared (first use in this function); did you mean 'GC_mark_stack'? GC_mark_state = MS_INVALID; ^~~~~~~~~~~~~ GC_mark_stack extra/../mark.c:1021:7: error: 'GC_mark_stack_too_small' undeclared (first use in this function); did you mean 'GC_mark_stack_top'? GC_mark_stack_too_small = TRUE; ^~~~~~~~~~~~~~~~~~~~~~~ GC_mark_stack_top extra/../mark.c:1027:7: warning: implicit declaration of function 'AO_store_release_write' [-Wimplicit-function-declaration] AO_store_release_write((volatile AO_t *)(&GC_mark_stack_top), ^~~~~~~~~~~~~~~~~~~~~~ extra/../mark.c:1027:40: error: unknown type name 'AO_t' AO_store_release_write((volatile AO_t *)(&GC_mark_stack_top), ^~~~ extra/../mark.c:1028:31: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? (AO_t)(my_top + stack_size)); ^~~~ id_t extra/../mark.c: At top level: extra/../mark.c:1056:7: error: expected ';' before 'void' STATIC void GC_do_local_mark(mse *local_mark_stack, mse *local_top) ^~~~~ ; extra/../mark.c: In function 'GC_do_local_mark': extra/../mark.c:1062:23: warning: assignment to 'mse *' {aka 'struct GC_ms_entry *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] local_top = GC_mark_from(local_top, local_mark_stack, ^ extra/../mark.c:1071:37: error: unknown type name 'AO_t' if ((word)AO_load((volatile AO_t *)&GC_mark_stack_top) ^~~~ extra/../mark.c: At top level: extra/../mark.c:1101:7: error: expected ';' before 'void' STATIC void GC_mark_local(mse *local_mark_stack, int id) ^~~~~ ; extra/../mark.c: In function 'GC_mark_local': extra/../mark.c:1106:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] my_first_nonempty = (mse *)AO_load(&GC_first_nonempty); ^ extra/../mark.c:1117:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] mse * global_first_nonempty = (mse *)AO_load(&GC_first_nonempty); ^ extra/../mark.c:1127:19: warning: implicit declaration of function 'AO_compare_and_swap' [-Wimplicit-function-declaration] (void)AO_compare_and_swap(&GC_first_nonempty, ^~~~~~~~~~~~~~~~~~~ extra/../mark.c:1128:40: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? (AO_t)global_first_nonempty, ^~~~ id_t extra/../mark.c:1128:45: error: expected ')' before 'global_first_nonempty' (AO_t)global_first_nonempty, ^~~~~~~~~~~~~~~~~~~~~ ) extra/../mark.c:1135:25: warning: implicit declaration of function 'AO_load_acquire' [-Wimplicit-function-declaration] my_top = (mse *)AO_load_acquire((volatile AO_t *)(&GC_mark_stack_top)); ^~~~~~~~~~~~~~~ extra/../mark.c:1135:50: error: expected ')' before 'AO_t' my_top = (mse *)AO_load_acquire((volatile AO_t *)(&GC_mark_stack_top)); ~ ^~~~~ ) extra/../mark.c:1135:9: warning: type defaults to 'int' in type name [-Wimplicit-int] my_top = (mse *)AO_load_acquire((volatile AO_t *)(&GC_mark_stack_top)); ^~~~~~ extra/../mark.c:1135:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] my_top = (mse *)AO_load_acquire((volatile AO_t *)(&GC_mark_stack_top)); ^ extra/../mark.c:1135:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] my_top = (mse *)AO_load_acquire((volatile AO_t *)(&GC_mark_stack_top)); ^ extra/../mark.c:1186:21: warning: implicit declaration of function 'GC_steal_mark_stack'; did you mean 'GC_return_mark_stack'? [-Wimplicit-function-declaration] local_top = GC_steal_mark_stack(my_first_nonempty, my_top, ^~~~~~~~~~~~~~~~~~~ GC_return_mark_stack extra/../mark.c:1186:19: warning: assignment to 'mse *' {aka 'struct GC_ms_entry *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] local_top = GC_steal_mark_stack(my_first_nonempty, my_top, ^ extra/../mark.c: At top level: extra/../mark.c:1201:7: error: expected ';' before 'void' STATIC void GC_do_parallel_mark(void) ^~~~~ ; extra/../mark.c: In function 'GC_do_parallel_mark': extra/../mark.c:1207:9: error: 'GC_help_wanted' undeclared (first use in this function); did you mean 'GC_help_marker'? if (GC_help_wanted || GC_active_count != 0 || GC_helper_count != 0) ^~~~~~~~~~~~~~ GC_help_marker extra/../mark.c:1210:42: error: 'GC_mark_no' undeclared (first use in this function); did you mean 'GC_mark_init'? (unsigned long)GC_mark_no); ^~~~~~~~~~ GC_mark_init extra/../mark.c:1211:26: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? GC_first_nonempty = (AO_t)GC_mark_stack; ^~~~ id_t extra/../mark.c:1211:31: error: expected ';' before 'GC_arrays' GC_first_nonempty = (AO_t)GC_mark_stack; ^ ; extra/../mark.c: At top level: extra/../mark.c:1235:10: error: expected ';' before 'void' GC_INNER void GC_help_marker(word my_mark_no) ^~~~ extra/../mark.c: In function 'GC_help_marker': extra/../mark.c:1243:12: error: 'GC_mark_no' undeclared (first use in this function); did you mean 'my_mark_no'? while (GC_mark_no < my_mark_no ^~~~~~~~~~ my_mark_no extra/../mark.c:1244:17: error: 'GC_help_wanted' undeclared (first use in this function); did you mean 'GC_help_marker'? || (!GC_help_wanted && GC_mark_no == my_mark_no)) { ^~~~~~~~~~~~~~ GC_help_marker extra/../mark.c: At top level: extra/../mark.c:1261:10: error: expected ';' before 'void' GC_INNER void GC_scratch_recycle_inner(void *ptr, size_t bytes) ^~~~ extra/../mark.c: In function 'GC_scratch_recycle_inner': extra/../mark.c:1264:39: error: 'GC_page_size' undeclared (first use in this function); did you mean 'GC_setpagesize'? size_t page_offset = (word)ptr & (GC_page_size - 1); ^~~~~~~~~~~~ GC_setpagesize extra/../mark.c: In function 'alloc_mark_stack': extra/../mark.c:1286:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] mse * new_stack = (mse *)GC_scratch_alloc(n * sizeof(struct GC_ms_entry)); ^ extra/../mark.c:1299:5: error: 'GC_mark_stack_too_small' undeclared (first use in this function); did you mean 'GC_mark_stack_top'? GC_mark_stack_too_small = FALSE; ^~~~~~~~~~~~~~~~~~~~~~~ GC_mark_stack_top extra/../mark.c:1305:25: error: 'GC_mark_stack_size' undeclared (first use in this function); did you mean 'GC_mark_stack_limit'? GC_mark_stack_size * sizeof(struct GC_ms_entry)); ^~~~~~~~~~~~~~~~~~ GC_mark_stack_limit In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../mark.c:1314:11: note: in expansion of macro 'WARN' WARN("Failed to grow mark stack to %" WARN_PRIdPTR " frames\n", n); ^~~~ In file included from extra/gc.c:57: extra/../mark.c: At top level: extra/../mark.c:1327:10: error: expected ';' before 'void' GC_INNER void GC_mark_init(void) ^~~~ extra/../mark.c: In function 'GC_push_all': extra/../mark.c:1343:39: error: 'ALIGNMENT' undeclared (first use in this function) bottom = (void *)(((word)bottom + ALIGNMENT-1) & ~(ALIGNMENT-1)); ^~~~~~~~~ extra/../mark.c: At top level: extra/../mark.c:1370:9: error: expected ';' before 'void' STATIC void GC_push_selected(ptr_t bottom, ptr_t top, ^~~~~ ; extra/../mark.c: In function 'GC_push_selected': extra/../mark.c:1375:39: error: 'ALIGNMENT' undeclared (first use in this function) bottom = (ptr_t)(((word) bottom + ALIGNMENT-1) & ~(ALIGNMENT-1)); ^~~~~~~~~ extra/../mark.c:1388:19: error: 'GC_mark_stack_size' undeclared (first use in this function); did you mean 'GC_mark_stack_limit'? > 3 * GC_mark_stack_size / 4) { ^~~~~~~~~~~~~~~~~~ GC_mark_stack_limit extra/../mark.c: In function 'GC_push_conditional': extra/../mark.c:1417:51: error: 'GC_page_was_dirty' undeclared (first use in this function); did you mean 'GC_read_dirty'? GC_push_selected((ptr_t)bottom, (ptr_t)top, GC_page_was_dirty); ^~~~~~~~~~~~~~~~~ GC_read_dirty extra/../mark.c: In function 'GC_mark_and_push': extra/../mark.c:1454:5: warning: implicit declaration of function 'PREFETCH' [-Wimplicit-function-declaration] PREFETCH(obj); ^~~~~~~~ extra/../mark.c:1458:31: warning: assignment to 'hdr *' {aka 'struct hblkhdr *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] || NULL == (hhdr = GC_find_header((ptr_t)GC_base(obj))))) ^ extra/../mark.c: At top level: extra/../mark.c:1477:14: error: expected ';' before 'void' GC_INNER void GC_mark_and_push_stack(ptr_t p) ^~~~ extra/../mark.c: In function 'GC_push_all_eager': extra/../mark.c:1578:42: error: 'ALIGNMENT' undeclared (first use in this function) word * b = (word *)(((word) bottom + ALIGNMENT-1) & ~(ALIGNMENT-1)); ^~~~~~~~~ extra/../mark.c: At top level: extra/../mark.c:1601:10: error: expected ';' before 'void' GC_INNER void GC_push_all_stack(ptr_t bottom, ptr_t top) ^~~~ extra/../mark.c:1844:7: error: expected ';' before 'void' STATIC void GC_push_marked(struct hblk *h, hdr *hhdr) ^~~~~ ; extra/../mark.c: In function 'GC_push_marked': extra/../mark.c:1856:13: warning: implicit declaration of function 'GC_block_empty'; did you mean 'GC_bl_init'? [-Wimplicit-function-declaration] if (GC_block_empty(hhdr)/* nothing marked */) return; ^~~~~~~~~~~~~~ GC_bl_init extra/../mark.c:1858:7: error: 'GC_n_rescuing_pages' undeclared (first use in this function); did you mean 'GC_grungy_pages'? GC_n_rescuing_pages++; ^~~~~~~~~~~~~~~~~~~ GC_grungy_pages extra/../mark.c:1860:5: error: 'GC_objects_are_marked' undeclared (first use in this function); did you mean 'GC_push_marked'? GC_objects_are_marked = TRUE; ^~~~~~~~~~~~~~~~~~~~~ GC_push_marked extra/../mark.c: At top level: extra/../mark.c:1909:8: error: expected ';' before 'void' STATIC void GC_push_unconditionally(struct hblk *h, hdr *hhdr) ^~~~~ ; extra/../mark.c: In function 'GC_push_unconditionally': extra/../mark.c:1922:7: error: 'GC_n_rescuing_pages' undeclared (first use in this function); did you mean 'GC_grungy_pages'? GC_n_rescuing_pages++; ^~~~~~~~~~~~~~~~~~~ GC_grungy_pages extra/../mark.c:1924:5: error: 'GC_objects_are_marked' undeclared (first use in this function); did you mean 'GC_push_marked'? GC_objects_are_marked = TRUE; ^~~~~~~~~~~~~~~~~~~~~ GC_push_marked extra/../mark.c: At top level: extra/../mark.c:1941:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_block_was_dirty(struct hblk *h, hdr *hhdr) ^~~~~~ STA_INS extra/../mark.c:1941:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_block_was_dirty' STATIC GC_bool GC_block_was_dirty(struct hblk *h, hdr *hhdr) ^~~~~~~~~~~~~~~~~~ extra/../mark.c:1960:7: error: expected ';' before 'struct' STATIC struct hblk * GC_push_next_marked(struct hblk *h) ^~~~~~~ ; extra/../mark.c: In function 'GC_push_next_marked': extra/../mark.c:1967:12: warning: assignment to 'hdr *' {aka 'struct hblkhdr *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] hhdr = GC_find_header((ptr_t)h); ^ extra/../mark.c: At top level: extra/../mark.c:1979:9: error: expected ';' before 'struct' STATIC struct hblk * GC_push_next_marked_dirty(struct hblk *h) ^~~~~~~ ; extra/../mark.c: In function 'GC_push_next_marked_dirty': extra/../mark.c:1983:10: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (!GC_incremental) ABORT("Dirty bits not set up"); ^~~~~~~~~~~~~~ GC_auto_incremental extra/../mark.c:1989:16: warning: assignment to 'hdr *' {aka 'struct hblkhdr *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] hhdr = GC_find_header((ptr_t)h); ^ extra/../mark.c:1995:13: warning: implicit declaration of function 'GC_block_was_dirty'; did you mean 'GC_read_dirty'? [-Wimplicit-function-declaration] if (GC_block_was_dirty(h, hhdr)) ^~~~~~~~~~~~~~~~~~ GC_read_dirty extra/../mark.c: At top level: extra/../mark.c:2021:7: error: expected ';' before 'struct' STATIC struct hblk * GC_push_next_marked_uncollectable(struct hblk *h) ^~~~~~~ ; extra/../mark.c: In function 'GC_push_next_marked_uncollectable': extra/../mark.c:2030:16: warning: assignment to 'hdr *' {aka 'struct hblkhdr *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] hhdr = GC_find_header((ptr_t)h); ^ extra/../mark_rts.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark_rts.c:44:3: note: in expansion of macro 'GC_INNER' GC_INNER word GC_compute_root_size(void) ^~~~~~~~ In file included from extra/gc.c:58: extra/../mark_rts.c:44:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_compute_root_size' GC_INNER word GC_compute_root_size(void) ^~~~~~~~~~~~~~~~~~~~ extra/../mark_rts.c: In function 'GC_print_static_roots': extra/../mark_rts.c:69:53: error: 'GC_root_size' undeclared (first use in this function); did you mean 'GC_noop_sink'? GC_printf("GC_root_size: %lu\n", (unsigned long)GC_root_size); ^~~~~~~~~~~~ GC_noop_sink extra/../mark_rts.c:71:17: warning: implicit declaration of function 'GC_compute_root_size'; did you mean 'GC_push_roots'? [-Wimplicit-function-declaration] if ((size = GC_compute_root_size()) != GC_root_size) ^~~~~~~~~~~~~~~~~~~~ GC_push_roots extra/../mark_rts.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark_rts.c:80:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_is_static_root(void *p) ^~~~~~~~ In file included from extra/gc.c:58: extra/../mark_rts.c:80:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_is_static_root' GC_INNER GC_bool GC_is_static_root(void *p) ^~~~~~~~~~~~~~~~~ extra/../mark_rts.c:128:12: error: expected ';' before 'void' GC_INNER void * GC_roots_present(ptr_t b) ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark_rts.c:150:1: note: in expansion of macro 'GC_INNER' GC_INNER word GC_root_size = 0; ^~~~~~~~ In file included from extra/gc.c:58: extra/../mark_rts.c:150:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_root_size' GC_INNER word GC_root_size = 0; ^~~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../mark_rts.c: In function 'GC_add_roots': extra/../mark_rts.c:156:17: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) GC_init(); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:58: extra/../mark_rts.c: In function 'GC_add_roots_inner': extra/../mark_rts.c:245:13: error: 'GC_root_size' undeclared (first use in this function); did you mean 'GC_noop_sink'? GC_root_size += e - old -> r_end; ^~~~~~~~~~~~ GC_noop_sink In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../mark_rts.c: In function 'GC_clear_roots': extra/../mark_rts.c:280:17: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) GC_init(); ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:58: extra/../mark_rts.c:284:5: error: 'GC_root_size' undeclared (first use in this function); did you mean 'GC_noop_sink'? GC_root_size = 0; ^~~~~~~~~~~~ GC_noop_sink extra/../mark_rts.c: At top level: extra/../mark_rts.c:295:7: error: expected ';' before 'void' STATIC void GC_remove_root_at_pos(int i) ^~~~~ ; extra/../mark_rts.c: In function 'GC_remove_root_at_pos': extra/../mark_rts.c:303:5: error: 'GC_root_size' undeclared (first use in this function); did you mean 'GC_noop_sink'? GC_root_size -= (GC_static_roots[i].r_end - GC_static_roots[i].r_start); ^~~~~~~~~~~~ GC_noop_sink extra/../mark_rts.c: At top level: extra/../mark_rts.c:311:9: error: expected ';' before 'void' STATIC void GC_rebuild_root_index(void) ^~~~~ ; extra/../mark_rts.c:345:9: error: expected ';' before 'void' STATIC void GC_remove_roots_inner(ptr_t b, ptr_t e); ^~~~~ ; extra/../mark_rts.c:362:9: error: expected ';' before 'void' STATIC void GC_remove_roots_inner(ptr_t b, ptr_t e) ^~~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../mark_rts.c:502:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_approx_sp(void) ^~~~~~~~ In file included from extra/gc.c:58: extra/../mark_rts.c:502:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_approx_sp' GC_INNER ptr_t GC_approx_sp(void) ^~~~~~~~~~~~ extra/../mark_rts.c:532:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC size_t GC_excl_table_entries = 0;/* Number of entries in use. */ ^~~~~~ STA_INS extra/../mark_rts.c:532:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_excl_table_entries' STATIC size_t GC_excl_table_entries = 0;/* Number of entries in use. */ ^~~~~~~~~~~~~~~~~~~~~ extra/../mark_rts.c:537:7: error: expected ';' before 'struct' STATIC struct exclusion * GC_next_exclusion(ptr_t start_addr) ^~~~~~~ ; extra/../mark_rts.c: In function 'GC_next_exclusion': extra/../mark_rts.c:540:19: error: 'GC_excl_table_entries' undeclared (first use in this function); did you mean 'GC_excl_table'? size_t high = GC_excl_table_entries - 1; ^~~~~~~~~~~~~~~~~~~~~ GC_excl_table extra/../mark_rts.c: At top level: extra/../mark_rts.c:558:10: error: expected ';' before 'void' GC_INNER void GC_exclude_static_roots_inner(void *start, void *finish) ^~~~ extra/../mark_rts.c: In function 'GC_exclude_static_roots_inner': extra/../mark_rts.c:566:14: error: 'GC_excl_table_entries' undeclared (first use in this function); did you mean 'GC_excl_table'? if (0 == GC_excl_table_entries) { ^~~~~~~~~~~~~~~~~~~~~ GC_excl_table extra/../mark_rts.c: At top level: extra/../mark_rts.c:627:7: error: expected ';' before 'void' STATIC void GC_push_conditional_with_exclusions(ptr_t bottom, ptr_t top, ^~~~~ ; extra/../mark_rts.c:712:7: error: expected ';' before 'void' STATIC void GC_push_all_stack_partially_eager(ptr_t bottom, ptr_t top, ^~~~~ ; extra/../mark_rts.c:744:7: error: expected ';' before 'void' STATIC void GC_push_all_stack_part_eager_sections(ptr_t lo, ptr_t hi, ^~~~~ ; extra/../mark_rts.c:792:7: error: expected ';' before 'void' STATIC void GC_push_current_stack(ptr_t cold_gc_frame, ^~~~~ ; extra/../mark_rts.c: In function 'GC_push_current_stack': extra/../mark_rts.c:805:47: warning: passing argument 1 of 'GC_push_all_stack_part_eager_sections' makes pointer from integer without a cast [-Wint-conversion] GC_push_all_stack_part_eager_sections(GC_approx_sp(), GC_stackbottom, ^~~~~~~~~~~~~~ extra/../mark_rts.c:744:57: note: expected 'ptr_t' {aka 'char *'} but argument is of type 'int' STATIC void GC_push_all_stack_part_eager_sections(ptr_t lo, ptr_t hi, ~~~~~~^~ extra/../mark_rts.c: At top level: extra/../mark_rts.c:839:10: error: expected ';' before 'void' GC_INNER void (*GC_push_typed_structures)(void) = 0; ^~~~ extra/../mark_rts.c:850:7: error: expected ';' before 'void' STATIC void GC_push_gc_structures(void) ^~~~~ ; extra/../mark_rts.c:862:10: error: expected ';' before 'void' GC_INNER void GC_cond_register_dynamic_libraries(void) ^~~~ extra/../mark_rts.c:874:7: error: expected ';' before 'void' STATIC void GC_push_regs_and_stack(ptr_t cold_gc_frame) ^~~~~ ; extra/../mark_rts.c:889:10: error: expected ';' before 'void' GC_INNER void GC_push_roots(GC_bool all, ptr_t cold_gc_frame GC_ATTR_UNUSED) ^~~~ extra/../mark_rts.c: In function 'GC_push_roots': extra/../mark_rts.c:938:14: error: 'GC_world_stopped' undeclared (first use in this function); did you mean 'GC_bytes_dropped'? if (GC_world_stopped) GC_mark_thread_local_free_lists(); ^~~~~~~~~~~~~~~~ GC_bytes_dropped extra/../reclaim.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../reclaim.c:25:1: note: in expansion of macro 'GC_INNER' GC_INNER signed_word GC_bytes_found = 0; ^~~~~~~~ In file included from extra/gc.c:59: extra/../reclaim.c:25:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_bytes_found' GC_INNER signed_word GC_bytes_found = 0; ^~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../reclaim.c:31:3: note: in expansion of macro 'GC_INNER' GC_INNER signed_word GC_fl_builder_count = 0; ^~~~~~~~ In file included from extra/gc.c:59: extra/../reclaim.c:31:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_fl_builder_count' GC_INNER signed_word GC_fl_builder_count = 0; ^~~~~~~~~~~~~~~~~~~ extra/../reclaim.c:44:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_leaked[MAX_LEAKED] = { NULL }; ^~~~~~ STA_INS extra/../reclaim.c:44:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_leaked' STATIC ptr_t GC_leaked[MAX_LEAKED] = { NULL }; ^~~~~~~~~ extra/../reclaim.c:44:46: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] STATIC ptr_t GC_leaked[MAX_LEAKED] = { NULL }; ^ extra/../reclaim.c:45:7: error: expected ';' before 'unsigned' STATIC unsigned GC_n_leaked = 0; ^~~~~~~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../reclaim.c:47:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_have_errors = FALSE; ^~~~~~~~ In file included from extra/gc.c:59: extra/../reclaim.c:47:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_have_errors' GC_INNER GC_bool GC_have_errors = FALSE; ^~~~~~~~~~~~~~ extra/../reclaim.c:50:9: error: expected ';' before 'void' STATIC void GC_reclaim_unconditionally_marked(void); ^~~~~ ; extra/../reclaim.c: In function 'GC_add_leaked': extra/../reclaim.c:56:10: error: 'GC_findleak_delay_free' undeclared (first use in this function); did you mean 'GC_finalizer_bytes_freed'? if (GC_findleak_delay_free && !GC_check_leaked(leaked)) ^~~~~~~~~~~~~~~~~~~~~~ GC_finalizer_bytes_freed extra/../reclaim.c:56:37: warning: implicit declaration of function 'GC_check_leaked'; did you mean 'GC_check_heap'? [-Wimplicit-function-declaration] if (GC_findleak_delay_free && !GC_check_leaked(leaked)) ^~~~~~~~~~~~~~~ GC_check_heap extra/../reclaim.c:60:5: error: 'GC_have_errors' undeclared (first use in this function); did you mean 'GC_add_roots'? GC_have_errors = TRUE; ^~~~~~~~~~~~~~ GC_add_roots extra/../reclaim.c:62:7: error: 'GC_leaked' undeclared (first use in this function); did you mean 'GC_n_leaked'? GC_leaked[GC_n_leaked++] = leaked; ^~~~~~~~~ GC_n_leaked extra/../reclaim.c: At top level: extra/../reclaim.c:70:10: error: expected ';' before 'void' GC_INNER void GC_print_all_errors(void) ^~~~ extra/../reclaim.c: In function 'GC_print_all_errors': extra/../reclaim.c:83:19: error: 'GC_have_errors' undeclared (first use in this function); did you mean 'have_errors'? have_errors = GC_have_errors; ^~~~~~~~~~~~~~ have_errors In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../reclaim.c:88:13: error: 'GC_leaked' undeclared (first use in this function); did you mean 'n_leaked'? BCOPY(GC_leaked, leaked, n_leaked * sizeof(ptr_t)); ^~~~~~~~~ ./include/private/gc_priv.h:514:35: note: in definition of macro 'BCOPY' # define BCOPY(x,y,n) memcpy(y, x, (size_t)(n)) ^ In file included from extra/gc.c:59: extra/../reclaim.c:94:9: error: 'GC_debugging_started' undeclared (first use in this function); did you mean 'GC_debug_strdup'? if (GC_debugging_started) { ^~~~~~~~~~~~~~~~~~~~ GC_debug_strdup extra/../reclaim.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../reclaim.c:133:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_block_empty(hdr *hhdr) ^~~~~~~~ In file included from extra/gc.c:59: extra/../reclaim.c:133:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_block_empty' GC_INNER GC_bool GC_block_empty(hdr *hhdr) ^~~~~~~~~~~~~~ extra/../reclaim.c:138:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_block_nearly_full(hdr *hhdr, word sz) ^~~~~~ STA_INS extra/../reclaim.c:138:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_block_nearly_full' STATIC GC_bool GC_block_nearly_full(hdr *hhdr, word sz) ^~~~~~~~~~~~~~~~~~~~ extra/../reclaim.c:151:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_reclaim_clear(struct hblk *hbp, hdr *hhdr, word sz, ^~~~~~ STA_INS extra/../reclaim.c:151:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_reclaim_clear' STATIC ptr_t GC_reclaim_clear(struct hblk *hbp, hdr *hhdr, word sz, ^~~~~~~~~~~~~~~~ extra/../reclaim.c:202:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_reclaim_uninit(struct hblk *hbp, hdr *hhdr, word sz, ^~~~~~ STA_INS extra/../reclaim.c:202:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_reclaim_uninit' STATIC ptr_t GC_reclaim_uninit(struct hblk *hbp, hdr *hhdr, word sz, ^~~~~~~~~~~~~~~~~ extra/../reclaim.c:233:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_disclaim_and_reclaim(struct hblk *hbp, hdr *hhdr, word sz, ^~~~~~ STA_INS extra/../reclaim.c:233:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_disclaim_and_reclaim' STATIC ptr_t GC_disclaim_and_reclaim(struct hblk *hbp, hdr *hhdr, word sz, ^~~~~~~~~~~~~~~~~~~~~~~ extra/../reclaim.c:288:7: error: expected ';' before 'void' STATIC void GC_reclaim_check(struct hblk *hbp, hdr *hhdr, word sz) ^~~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../reclaim.c:322:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_reclaim_generic(struct hblk * hbp, hdr *hhdr, size_t sz, ^~~~~~~~ In file included from extra/gc.c:59: extra/../reclaim.c:322:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_reclaim_generic' GC_INNER ptr_t GC_reclaim_generic(struct hblk * hbp, hdr *hhdr, size_t sz, ^~~~~~~~~~~~~~~~~~ extra/../reclaim.c:353:7: error: expected ';' before 'void' STATIC void GC_reclaim_small_nonempty_block(struct hblk *hbp, word sz, ^~~~~ ; extra/../reclaim.c: In function 'GC_reclaim_small_nonempty_block': extra/../reclaim.c:366:51: error: 'GC_bytes_found' undeclared (first use in this function); did you mean 'GC_bytes_freed'? (ptr_t)(*flh), &GC_bytes_found); ^~~~~~~~~~~~~~ GC_bytes_freed extra/../reclaim.c: At top level: extra/../reclaim.c:371:9: error: expected ';' before 'void' STATIC void GC_disclaim_and_reclaim_or_free_small_block(struct hblk *hbp) ^~~~~ ; extra/../reclaim.c: In function 'GC_disclaim_and_reclaim_or_free_small_block': extra/../reclaim.c:381:51: error: 'GC_bytes_found' undeclared (first use in this function); did you mean 'GC_bytes_freed'? (ptr_t)(*flh), &GC_bytes_found); ^~~~~~~~~~~~~~ GC_bytes_freed extra/../reclaim.c: At top level: extra/../reclaim.c:399:7: error: expected ';' before 'void' STATIC void GC_reclaim_block(struct hblk *hbp, word report_if_found) ^~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../reclaim.c: In function 'GC_reclaim_block': ./include/private/gc_priv.h:1625:48: error: unknown type name 'AO_t' # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../reclaim.c:423:21: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, 0); ^~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1625:64: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? # define OR_WORD(addr, bits) AO_or((volatile AO_t *)(addr), (AO_t)(bits)) ^~~~ ./include/private/gc_priv.h:1632:15: note: in expansion of macro 'OR_WORD' OR_WORD((hhdr)->hb_marks+divWORDSZ(n), (word)1 << modWORDSZ(n)) ^~~~~~~ extra/../reclaim.c:423:21: note: in expansion of macro 'set_mark_bit_from_hdr' set_mark_bit_from_hdr(hhdr, 0); ^~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:59: extra/../reclaim.c:432:15: error: 'GC_bytes_found' undeclared (first use in this function); did you mean 'GC_bytes_freed'? GC_bytes_found += sz; ^~~~~~~~~~~~~~ GC_bytes_freed extra/../reclaim.c:471:37: warning: implicit declaration of function 'GC_block_nearly_full' [-Wimplicit-function-declaration] } else if (GC_find_leak || !GC_block_nearly_full(hhdr, sz)) { ^~~~~~~~~~~~~~~~~~~~ extra/../reclaim.c: At top level: extra/../reclaim.c:565:7: error: expected ';' before 'void' STATIC void GC_print_block_descr(struct hblk *h, ^~~~~ ; extra/../reclaim.c: In function 'GC_print_block_descr': extra/../reclaim.c:575:28: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] if (hhdr -> hb_n_marks != n_marks) { ^~ extra/../reclaim.c: At top level: extra/../reclaim.c:629:7: error: expected ';' before 'void' STATIC void GC_clear_fl_links(void **flp) ^~~~~ ; extra/../reclaim.c:644:10: error: expected ';' before 'void' GC_INNER void GC_start_reclaim(GC_bool report_if_found) ^~~~ extra/../reclaim.c:705:10: error: expected ';' before 'void' GC_INNER void GC_continue_reclaim(word sz /* granules */, int kind) ^~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../reclaim.c:733:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_reclaim_all(GC_stop_func stop_func, GC_bool ignore_old) ^~~~~~~~ In file included from extra/gc.c:59: extra/../reclaim.c:733:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_reclaim_all' GC_INNER GC_bool GC_reclaim_all(GC_stop_func stop_func, GC_bool ignore_old) ^~~~~~~~~~~~~~ extra/../reclaim.c:788:9: error: expected ';' before 'void' STATIC void GC_reclaim_unconditionally_marked(void) ^~~~~ ; extra/../reclaim.c:822:7: error: expected ';' before 'void' STATIC void GC_do_enumerate_reachable_objects(struct hblk *hbp, word ped) ^~~~~ ; In file included from extra/gc.c:60: extra/../typd_mlc.c:45:7: error: expected ';' before 'int' STATIC int GC_explicit_kind = 0; ^~~~ ; extra/../typd_mlc.c:49:7: error: expected ';' before 'int' STATIC int GC_array_kind = 0; ^~~~ ; extra/../typd_mlc.c:97:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ext_descr * GC_ext_descriptors = NULL; ^~~~~~ STA_INS extra/../typd_mlc.c:97:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC ext_descr * GC_ext_descriptors = NULL; ^ extra/../typd_mlc.c:101:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC size_t GC_ed_size = 0; /* Current size of above arrays. */ ^~~~~~ STA_INS extra/../typd_mlc.c:101:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_ed_size' STATIC size_t GC_ed_size = 0; /* Current size of above arrays. */ ^~~~~~~~~~ extra/../typd_mlc.c:104:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC size_t GC_avail_descr = 0; /* Next available slot. */ ^~~~~~ STA_INS extra/../typd_mlc.c:104:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_avail_descr' STATIC size_t GC_avail_descr = 0; /* Next available slot. */ ^~~~~~~~~~~~~~ extra/../typd_mlc.c:106:7: error: expected ';' before 'int' STATIC int GC_typed_mark_proc_index = 0; /* Indices of my mark */ ^~~~ ; extra/../typd_mlc.c:107:7: error: expected ';' before 'int' STATIC int GC_array_mark_proc_index = 0; /* procedures. */ ^~~~ ; extra/../typd_mlc.c:112:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_explicit_typing_initialized = FALSE; ^~~~~~ STA_INS extra/../typd_mlc.c:112:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_explicit_typing_initialized' STATIC GC_bool GC_explicit_typing_initialized = FALSE; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../typd_mlc.c:115:7: error: expected ';' before 'void' STATIC void GC_push_typed_structures_proc(void) ^~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../typd_mlc.c: In function 'GC_push_typed_structures_proc': extra/../typd_mlc.c:117:19: error: 'GC_ext_descriptors' undeclared (first use in this function); did you mean 'GC_make_descriptor'? GC_PUSH_ALL_SYM(GC_ext_descriptors); ^~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:1694:57: note: in definition of macro 'GC_PUSH_ALL_SYM' GC_push_all((/* no volatile */ void *)&(sym), \ ^~~ In file included from extra/gc.c:60: extra/../typd_mlc.c: At top level: extra/../typd_mlc.c:124:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC signed_word GC_add_ext_descriptor(const word * bm, word nbits) ^~~~~~ STA_INS extra/../typd_mlc.c:124:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_add_ext_descriptor' STATIC signed_word GC_add_ext_descriptor(const word * bm, word nbits) ^~~~~~~~~~~~~~~~~~~~~ extra/../typd_mlc.c:180:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_descr GC_bm_table[WORDSZ/2]; ^~~~~~ STA_INS extra/../typd_mlc.c:180:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_bm_table' STATIC GC_descr GC_bm_table[WORDSZ/2]; ^~~~~~~~~~~ extra/../typd_mlc.c:187:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_descr GC_double_descr(GC_descr descriptor, word nwords) ^~~~~~ STA_INS extra/../typd_mlc.c:187:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_double_descr' STATIC GC_descr GC_double_descr(GC_descr descriptor, word nwords) ^~~~~~~~~~~~~~~ extra/../typd_mlc.c:196:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC complex_descriptor * ^~~~~~ STA_INS extra/../typd_mlc.c:196:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC complex_descriptor * ^ extra/../typd_mlc.c:219:7: error: expected ';' before 'int' STATIC int GC_make_array_descriptor(size_t nelements, size_t size, ^~~~ ; extra/../typd_mlc.c: In function 'GC_make_array_descriptor': extra/../typd_mlc.c:252:36: warning: implicit declaration of function 'GC_double_descr' [-Wimplicit-function-declaration] GC_double_descr(descriptor, ^~~~~~~~~~~~~~~ extra/../typd_mlc.c:278:28: warning: implicit declaration of function 'GC_make_sequence_descriptor'; did you mean 'GC_make_array_descriptor'? [-Wimplicit-function-declaration] *complex_d = GC_make_sequence_descriptor( ^~~~~~~~~~~~~~~~~~~~~~~~~~~ GC_make_array_descriptor extra/../typd_mlc.c:278:26: warning: assignment to 'complex_descriptor *' {aka 'union ComplexDescriptor *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] *complex_d = GC_make_sequence_descriptor( ^ extra/../typd_mlc.c:293:26: warning: assignment to 'complex_descriptor *' {aka 'union ComplexDescriptor *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] *complex_d = GC_make_sequence_descriptor( ^ extra/../typd_mlc.c:299:26: warning: assignment to 'complex_descriptor *' {aka 'union ComplexDescriptor *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] *complex_d = GC_make_sequence_descriptor( ^ extra/../typd_mlc.c: At top level: extra/../typd_mlc.c:314:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC complex_descriptor * ^~~~~~ STA_INS extra/../typd_mlc.c:314:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC complex_descriptor * ^ extra/../typd_mlc.c:335:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t * GC_eobjfreelist = NULL; ^~~~~~ STA_INS extra/../typd_mlc.c:335:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC ptr_t * GC_eobjfreelist = NULL; ^ extra/../typd_mlc.c:337:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC mse * GC_typed_mark_proc(word * addr, mse * mark_stack_ptr, ^~~~~~ STA_INS extra/../typd_mlc.c:337:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC mse * GC_typed_mark_proc(word * addr, mse * mark_stack_ptr, ^ extra/../typd_mlc.c:340:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC mse * GC_array_mark_proc(word * addr, mse * mark_stack_ptr, ^~~~~~ STA_INS extra/../typd_mlc.c:340:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC mse * GC_array_mark_proc(word * addr, mse * mark_stack_ptr, ^ extra/../typd_mlc.c:343:7: error: expected ';' before 'void' STATIC void GC_init_explicit_typing(void) ^~~~~ ; extra/../typd_mlc.c: In function 'GC_init_explicit_typing': extra/../typd_mlc.c:349:7: error: 'GC_eobjfreelist' undeclared (first use in this function); did you mean 'GC_uobjfreelist'? GC_eobjfreelist = (ptr_t *)GC_new_free_list_inner(); ^~~~~~~~~~~~~~~ GC_uobjfreelist extra/../typd_mlc.c:355:52: error: 'GC_typed_mark_proc' undeclared (first use in this function); did you mean 'GC_typed_mark_proc_index'? GC_typed_mark_proc_index = GC_new_proc_inner(GC_typed_mark_proc); ^~~~~~~~~~~~~~~~~~ GC_typed_mark_proc_index extra/../typd_mlc.c:357:52: error: 'GC_array_mark_proc' undeclared (first use in this function); did you mean 'GC_array_mark_proc_index'? GC_array_mark_proc_index = GC_new_proc_inner(GC_array_mark_proc); ^~~~~~~~~~~~~~~~~~ GC_array_mark_proc_index extra/../typd_mlc.c:361:7: error: 'GC_bm_table' undeclared (first use in this function); did you mean 'GC_grow_table'? GC_bm_table[0] = GC_DS_BITMAP; ^~~~~~~~~~~ GC_grow_table extra/../typd_mlc.c: At top level: extra/../typd_mlc.c:367:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC mse * GC_typed_mark_proc(word * addr, mse * mark_stack_ptr, ^~~~~~ STA_INS extra/../typd_mlc.c:367:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC mse * GC_typed_mark_proc(word * addr, mse * mark_stack_ptr, ^ extra/../typd_mlc.c:407:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_descr_obj_size(complex_descriptor *d) ^~~~~~ STA_INS extra/../typd_mlc.c:407:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_descr_obj_size' STATIC word GC_descr_obj_size(complex_descriptor *d) ^~~~~~~~~~~~~~~~~ extra/../typd_mlc.c:426:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC mse * GC_push_complex_descriptor(word *addr, complex_descriptor *d, ^~~~~~ STA_INS extra/../typd_mlc.c:426:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC mse * GC_push_complex_descriptor(word *addr, complex_descriptor *d, ^ extra/../typd_mlc.c:481:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC mse * GC_array_mark_proc(word * addr, mse * mark_stack_ptr, ^~~~~~ STA_INS extra/../typd_mlc.c:481:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token STATIC mse * GC_array_mark_proc(word * addr, mse * mark_stack_ptr, ^ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../typd_mlc.c: In function 'GC_make_descriptor': extra/../typd_mlc.c:546:19: error: 'GC_explicit_typing_initialized' undeclared (first use in this function); did you mean 'GC_explicit_kind'? if (!EXPECT(GC_explicit_typing_initialized, TRUE)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:60: extra/../typd_mlc.c:584:29: warning: implicit declaration of function 'GC_add_ext_descriptor'; did you mean 'GC_make_descriptor'? [-Wimplicit-function-declaration] signed_word index = GC_add_ext_descriptor(bm, (word)last_set_bit + 1); ^~~~~~~~~~~~~~~~~~~~~ GC_make_descriptor In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../typd_mlc.c: In function 'GC_malloc_explicitly_typed': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../typd_mlc.c:608:5: note: in expansion of macro 'GC_dirty' GC_dirty(op + GRANULES_TO_WORDS(lg) - 1); ^~~~~~~~ In file included from extra/gc.c:60: extra/../typd_mlc.c: In function 'GC_malloc_explicitly_typed_ignore_off_page': extra/../typd_mlc.c:631:14: error: 'GC_eobjfreelist' undeclared (first use in this function); did you mean 'GC_uobjfreelist'? op = GC_eobjfreelist[lg]; ^~~~~~~~~~~~~~~ GC_uobjfreelist In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../typd_mlc.c:650:5: note: in expansion of macro 'GC_dirty' GC_dirty(op + GRANULES_TO_WORDS(lg) - 1); ^~~~~~~~ extra/../typd_mlc.c: In function 'GC_calloc_explicitly_typed': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../typd_mlc.c:705:9: note: in expansion of macro 'GC_dirty' GC_dirty(op + lw - 1); ^~~~~~~~ extra/../misc.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:81:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_debugging_started = FALSE; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:81:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_debugging_started' GC_INNER GC_bool GC_debugging_started = FALSE; ^~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:103:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_print_back_height = FALSE; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:103:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_print_back_height' GC_INNER GC_bool GC_print_back_height = FALSE; ^~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:111:5: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_dump_regularly = FALSE; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:111:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_dump_regularly' GC_INNER GC_bool GC_dump_regularly = FALSE; ^~~~~~~~~~~~~~~~~ extra/../misc.c:114:5: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC CLOCK_TYPE GC_init_time; ^~~~~~ STA_INS extra/../misc.c:114:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_init_time' STATIC CLOCK_TYPE GC_init_time; ^~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:134:5: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_findleak_delay_free = FALSE; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:134:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_findleak_delay_free' GC_INNER GC_bool GC_findleak_delay_free = FALSE; ^~~~~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:165:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_force_unmap_on_gcollect = FALSE; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:165:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_force_unmap_on_gcollect' GC_INNER GC_bool GC_force_unmap_on_gcollect = FALSE; ^~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../misc.c:171:10: error: expected ';' before 'long' GC_INNER long GC_large_alloc_warn_interval = GC_LARGE_ALLOC_WARN_INTERVAL; ^~~~ extra/../misc.c:174:7: error: expected ';' before 'void' STATIC void * GC_CALLBACK GC_default_oom_fn( ^~~~~ ; extra/../misc.c:241:7: error: expected ';' before 'void' STATIC void GC_init_size_map(void) ^~~~~ ; extra/../misc.c:285:5: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_stack_last_cleared = 0; /* GC_no when we last did this */ ^~~~~~ STA_INS extra/../misc.c:285:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_stack_last_cleared' STATIC word GC_stack_last_cleared = 0; /* GC_no when we last did this */ ^~~~~~~~~~~~~~~~~~~~~ extra/../misc.c:286:5: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_min_sp = NULL; ^~~~~~ STA_INS extra/../misc.c:286:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_min_sp' STATIC ptr_t GC_min_sp = NULL; ^~~~~~~~~ extra/../misc.c:289:5: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_high_water = NULL; ^~~~~~ STA_INS extra/../misc.c:289:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_high_water' STATIC ptr_t GC_high_water = NULL; ^~~~~~~~~~~~~ extra/../misc.c:292:5: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_bytes_allocd_at_reset = 0; ^~~~~~ STA_INS extra/../misc.c:292:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_bytes_allocd_at_reset' STATIC word GC_bytes_allocd_at_reset = 0; ^~~~~~~~~~~~~~~~~~~~~~~~ extra/../misc.c: In function 'GC_clear_stack': extra/../misc.c:338:16: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] ptr_t sp = GC_approx_sp(); /* Hotter than actual sp */ ^~~~~~~~~~~~ extra/../misc.c:370:22: error: 'GC_stack_last_cleared' undeclared (first use in this function); did you mean 'GC_stack_base_func'? if (GC_gc_no > GC_stack_last_cleared) { ^~~~~~~~~~~~~~~~~~~~~ GC_stack_base_func extra/../misc.c:373:11: error: 'GC_high_water' undeclared (first use in this function); did you mean 'GC_help_marker'? GC_high_water = (ptr_t)GC_stackbottom; ^~~~~~~~~~~~~ GC_help_marker extra/../misc.c:374:9: error: 'GC_min_sp' undeclared (first use in this function); did you mean 'GC_min'? GC_min_sp = GC_high_water; ^~~~~~~~~ GC_min extra/../misc.c:376:9: error: 'GC_bytes_allocd_at_reset' undeclared (first use in this function); did you mean 'GC_bytes_allocd_tmp'? GC_bytes_allocd_at_reset = GC_bytes_allocd; ^~~~~~~~~~~~~~~~~~~~~~~~ GC_bytes_allocd_tmp In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../misc.c: In function 'GC_base': extra/../misc.c:420:17: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!EXPECT(GC_is_initialized, TRUE)) return 0; ^~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ extra/../misc.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:535:3: note: in expansion of macro 'GC_INNER' GC_INNER word GC_reclaimed_bytes_before_gc = 0; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:535:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_reclaimed_bytes_before_gc' GC_INNER word GC_reclaimed_bytes_before_gc = 0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../misc.c: In function 'fill_prof_stats': extra/../misc.c:552:40: error: 'GC_bytes_found' undeclared (first use in this function); did you mean 'GC_bytes_freed'? pstats->bytes_reclaimed_since_gc = GC_bytes_found > 0 ? ^~~~~~~~~~~~~~ GC_bytes_freed extra/../misc.c:554:41: error: 'GC_reclaimed_bytes_before_gc' undeclared (first use in this function); did you mean 'GC_get_bytes_since_gc'? pstats->reclaimed_bytes_before_gc = GC_reclaimed_bytes_before_gc; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ GC_get_bytes_since_gc extra/../misc.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:741:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_is_initialized = FALSE; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:741:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_is_initialized' GC_INNER GC_bool GC_is_initialized = FALSE; ^~~~~~~~~~~~~~~~~ extra/../misc.c: In function 'GC_is_init_called': extra/../misc.c:745:10: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? return GC_is_initialized; ^~~~~~~~~~~~~~~~~ GC_is_init_called extra/../misc.c: At top level: extra/../misc.c:764:9: error: expected ';' before 'void' STATIC void GC_exit_check(void) ^~~~~ ; extra/../misc.c:809:9: error: expected ';' before 'int' STATIC int GC_stdout = GC_DEFAULT_STDOUT_FD; ^~~~ ; extra/../misc.c:810:9: error: expected ';' before 'int' STATIC int GC_stderr = GC_DEFAULT_STDERR_FD; ^~~~ ; extra/../misc.c:811:9: error: expected ';' before 'int' STATIC int GC_log = GC_DEFAULT_STDERR_FD; ^~~~ ; extra/../misc.c:864:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC word GC_parse_mem_size_arg(const char *str) ^~~~~~ STA_INS extra/../misc.c:864:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_parse_mem_size_arg' STATIC word GC_parse_mem_size_arg(const char *str) ^~~~~~~~~~~~~~~~~~~~~ extra/../misc.c: In function 'GC_init': extra/../misc.c:905:15: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ extra/../misc.c:905:33: error: expected ';' before 'if' IF_CANCEL(int cancel_state;) ^ ; extra/../misc.c:910:5: if (EXPECT(GC_is_initialized, TRUE)) return; ~~ extra/../misc.c:1035:9: error: 'GC_dump_regularly' undeclared (first use in this function); did you mean 'GC_dump_regions'? GC_dump_regularly = TRUE; ^~~~~~~~~~~~~~~~~ GC_dump_regions extra/../misc.c:1052:9: error: 'GC_findleak_delay_free' undeclared (first use in this function); did you mean 'GC_finalizer_bytes_freed'? GC_findleak_delay_free = TRUE; ^~~~~~~~~~~~~~~~~~~~~~ GC_finalizer_bytes_freed extra/../misc.c:1062:7: error: 'GC_print_back_height' undeclared (first use in this function); did you mean 'GC_print_block_list'? GC_print_back_height = TRUE; ^~~~~~~~~~~~~~~~~~~~ GC_print_block_list In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../misc.c:1071:11: note: in expansion of macro 'WARN' WARN("Tracing not enabled: Ignoring GC_TRACE value\n", 0); ^~~~ In file included from extra/gc.c:62: extra/../misc.c:1153:13: error: 'GC_force_unmap_on_gcollect' undeclared (first use in this function); did you mean 'GC_get_force_unmap_on_gcollect'? GC_force_unmap_on_gcollect = FALSE; ^~~~~~~~~~~~~~~~~~~~~~~~~~ GC_get_force_unmap_on_gcollect In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../misc.c:1172:16: error: 'GC_init_time' undeclared (first use in this function); did you mean 'GC_fn_type'? GET_TIME(GC_init_time); ^~~~~~~~~~~~ ./include/private/gc_priv.h:484:29: note: in definition of macro 'GET_TIME' # define GET_TIME(x) (void)(x = clock()) ^ In file included from extra/gc.c:62: extra/../misc.c:1234:11: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (GC_incremental || 0 != GETENV("GC_ENABLE_INCREMENTAL")) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../misc.c:1240:15: error: 'GC_manual_vdb' undeclared (first use in this function) GC_manual_vdb = TRUE; ^~~~~~~~~~~~~ extra/../misc.c:1247:28: warning: implicit declaration of function 'GC_dirty_init'; did you mean 'GC_dirty_inner'? [-Wimplicit-function-declaration] GC_incremental = GC_dirty_init(); ^~~~~~~~~~~~~ GC_dirty_inner extra/../misc.c:1262:29: warning: implicit declaration of function 'GC_parse_mem_size_arg' [-Wimplicit-function-declaration] initial_heap_sz = GC_parse_mem_size_arg(sz_str); ^~~~~~~~~~~~~~~~~~~~~ extra/../misc.c:1308:5: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? GC_is_initialized = TRUE; ^~~~~~~~~~~~~~~~~ GC_is_init_called extra/../misc.c:1310:9: warning: implicit declaration of function 'GC_thr_init'; did you mean 'GC_bl_init'? [-Wimplicit-function-declaration] GC_thr_init(); ^~~~~~~~~~~ GC_bl_init extra/../misc.c:1351:9: warning: implicit declaration of function 'GC_init_parallel'; did you mean 'GC_get_parallel'? [-Wimplicit-function-declaration] GC_init_parallel(); ^~~~~~~~~~~~~~~~ GC_get_parallel extra/../misc.c: In function 'GC_enable_incremental': extra/../misc.c:1371:12: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (!GC_incremental) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../misc.c:1375:14: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (!GC_is_initialized) { ^~~~~~~~~~~~~~~~~ GC_is_init_called extra/../misc.c:1384:15: error: 'GC_manual_vdb' undeclared (first use in this function) GC_manual_vdb = TRUE; ^~~~~~~~~~~~~ extra/../misc.c:1394:21: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2708:33: error: expected expression before 'void' # define DISABLE_CANCEL(state) (void)0 ^~~~ extra/../misc.c:1396:11: note: in expansion of macro 'DISABLE_CANCEL' DISABLE_CANCEL(cancel_state); ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:2708:38: error: expected ';' before numeric constant # define DISABLE_CANCEL(state) (void)0 ^ extra/../misc.c:1396:11: note: in expansion of macro 'DISABLE_CANCEL' DISABLE_CANCEL(cancel_state); ^~~~~~~~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c: In function 'GC_deinit': extra/../misc.c:1435:9: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (GC_is_initialized) { ^~~~~~~~~~~~~~~~~ GC_is_init_called In file included from extra/gc.c:62: extra/../misc.c: At top level: extra/../misc.c:1716:9: error: expected ';' before 'int' STATIC int GC_write(int fd, const char *buf, size_t len) ^~~~ ; extra/../misc.c: In function 'GC_write': extra/../misc.c:1729:17: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2708:33: error: expected expression before 'void' # define DISABLE_CANCEL(state) (void)0 ^~~~ extra/../misc.c:1731:7: note: in expansion of macro 'DISABLE_CANCEL' DISABLE_CANCEL(cancel_state); ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:2708:38: error: expected ';' before numeric constant # define DISABLE_CANCEL(state) (void)0 ^ extra/../misc.c:1731:7: note: in expansion of macro 'DISABLE_CANCEL' DISABLE_CANCEL(cancel_state); ^~~~~~~~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c: At top level: extra/../misc.c:1860:7: error: expected ';' before 'void' STATIC void GC_CALLBACK GC_default_warn_proc(char *msg, GC_word arg) ^~~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:1866:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_warn_proc GC_current_warn_proc = GC_default_warn_proc; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:1866:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_current_warn_proc' GC_INNER GC_warn_proc GC_current_warn_proc = GC_default_warn_proc; ^~~~~~~~~~~~~~~~~~~~ extra/../misc.c: In function 'GC_set_warn_proc': extra/../misc.c:1890:5: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? GC_current_warn_proc = p; ^~~~~~~~~~~~~~~~~~~~ GC_get_warn_proc extra/../misc.c: In function 'GC_get_warn_proc': extra/../misc.c:1899:14: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? result = GC_current_warn_proc; ^~~~~~~~~~~~~~~~~~~~ GC_get_warn_proc extra/../misc.c: At top level: extra/../misc.c:1908:9: error: expected ';' before 'void' STATIC void GC_CALLBACK GC_default_on_abort(const char *msg) ^~~~~ ; extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../misc.c:2115:1: note: in expansion of macro 'GC_INNER' GC_INNER ptr_t GC_blocked_sp = NULL; ^~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:2115:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_blocked_sp' GC_INNER ptr_t GC_blocked_sp = NULL; ^~~~~~~~~~~~~ extra/../misc.c:2121:10: error: expected ';' before 'struct' GC_INNER struct GC_traced_stack_sect_s *GC_traced_stack_sect = NULL; ^~~~~~ extra/../misc.c: In function 'GC_call_with_gc_active': extra/../misc.c:2136:9: error: 'GC_blocked_sp' undeclared (first use in this function) if (GC_blocked_sp == NULL) { ^~~~~~~~~~~~~ extra/../misc.c: At top level: extra/../misc.c:2175:7: error: expected ';' before 'void' STATIC void GC_do_blocking_inner(ptr_t data, void * context GC_ATTR_UNUSED) ^~~~~ ; extra/../misc.c: In function 'GC_do_blocking_inner': extra/../misc.c:2183:9: error: 'GC_blocked_sp' undeclared (first use in this function) GC_blocked_sp = (ptr_t) &d; /* save approx. sp */ ^~~~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../misc.c: In function 'GC_dump_named': extra/../misc.c:2247:44: error: 'GC_init_time' undeclared (first use in this function); did you mean 'GC_fn_type'? MS_TIME_DIFF(current_time, GC_init_time)); ^~~~~~~~~~~~ ./include/private/gc_priv.h:486:32: note: in definition of macro 'MS_TIME_DIFF' (unsigned long)((a) - (b)) / (unsigned long)(CLOCKS_PER_SEC / 1000) \ ^ In file included from extra/gc.c:62: extra/../misc.c: In function 'GC_set_all_interior_pointers': extra/../misc.c:2402:9: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'GC_is_init_called'? if (GC_is_initialized) { ^~~~~~~~~~~~~~~~~ GC_is_init_called extra/../misc.c: In function 'GC_set_force_unmap_on_gcollect': extra/../misc.c:2537:5: error: 'GC_force_unmap_on_gcollect' undeclared (first use in this function); did you mean 'GC_get_force_unmap_on_gcollect'? GC_force_unmap_on_gcollect = (GC_bool)value; ^~~~~~~~~~~~~~~~~~~~~~~~~~ GC_get_force_unmap_on_gcollect extra/../misc.c: In function 'GC_get_force_unmap_on_gcollect': extra/../misc.c:2542:17: error: 'GC_force_unmap_on_gcollect' undeclared (first use in this function); did you mean 'GC_get_force_unmap_on_gcollect'? return (int)GC_force_unmap_on_gcollect; ^~~~~~~~~~~~~~~~~~~~~~~~~~ GC_get_force_unmap_on_gcollect In file included from extra/gc.c:63: extra/../os_dep.c: At top level: extra/../os_dep.c:107:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_pages_executable = FALSE; ^~~~~~ STA_INS extra/../os_dep.c:107:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_pages_executable' STATIC GC_bool GC_pages_executable = FALSE; ^~~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../os_dep.c:697:1: note: in expansion of macro 'GC_INNER' GC_INNER size_t GC_page_size = 0; ^~~~~~~~ In file included from extra/gc.c:63: extra/../os_dep.c:697:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_page_size' GC_INNER size_t GC_page_size = 0; ^~~~~~~~~~~~ extra/../os_dep.c:814:12: error: expected ';' before 'void' GC_INNER void GC_setpagesize(void) ^~~~ extra/../os_dep.c: In function 'GC_setpagesize': extra/../os_dep.c:817:7: error: 'GC_page_size' undeclared (first use in this function); did you mean 'getpagesize'? GC_page_size = (size_t)GETPAGESIZE(); ^~~~~~~~~~~~ getpagesize extra/../os_dep.c:817:30: warning: implicit declaration of function 'GETPAGESIZE'; did you mean 'EMSGSIZE'? [-Wimplicit-function-declaration] GC_page_size = (size_t)GETPAGESIZE(); ^~~~~~~~~~~ EMSGSIZE extra/../os_dep.c: In function 'GC_get_main_stack_base': extra/../os_dep.c:1288:9: error: #error None of HEURISTIC* and *STACKBOTTOM defined! # error None of HEURISTIC* and *STACKBOTTOM defined! ^~~~~ extra/../os_dep.c: In function 'GC_register_data_segments': extra/../os_dep.c:2041:19: error: 'DATASTART' undeclared (first use in this function); did you mean 'SA_RESTART'? if ((word)DATASTART - 1U >= (word)DATAEND) { ^~~~~~~~~ SA_RESTART extra/../os_dep.c:2041:43: error: 'DATAEND' undeclared (first use in this function) if ((word)DATASTART - 1U >= (word)DATAEND) { ^~~~~~~ extra/../os_dep.c: In function 'GC_unix_get_mem': extra/../os_dep.c:2203:12: warning: implicit declaration of function 'GC_unix_mmap_get_mem'; did you mean 'GC_unix_get_mem'? [-Wimplicit-function-declaration] return GC_unix_mmap_get_mem(bytes); ^~~~~~~~~~~~~~~~~~~~ GC_unix_get_mem extra/../os_dep.c:2203:12: warning: returning 'int' from a function with return type 'ptr_t' {aka 'char *'} makes pointer from integer without a cast [-Wint-conversion] return GC_unix_mmap_get_mem(bytes); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:63: extra/../os_dep.c: At top level: extra/../os_dep.c:2508:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_unmap_start(ptr_t start, size_t bytes) ^~~~~~ STA_INS extra/../os_dep.c:2508:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_unmap_start' STATIC ptr_t GC_unmap_start(ptr_t start, size_t bytes) ^~~~~~~~~~~~~~ extra/../os_dep.c:2519:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC ptr_t GC_unmap_end(ptr_t start, size_t bytes) ^~~~~~ STA_INS extra/../os_dep.c:2519:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_unmap_end' STATIC ptr_t GC_unmap_end(ptr_t start, size_t bytes) ^~~~~~~~~~~~ extra/../os_dep.c:2535:10: error: expected ';' before 'void' GC_INNER void GC_unmap(ptr_t start, size_t bytes) ^~~~ extra/../os_dep.c: In function 'GC_unmap': extra/../os_dep.c:2537:24: warning: implicit declaration of function 'GC_unmap_start'; did you mean 'GC_unmap_gap'? [-Wimplicit-function-declaration] ptr_t start_addr = GC_unmap_start(start, bytes); ^~~~~~~~~~~~~~ GC_unmap_gap extra/../os_dep.c:2537:24: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] extra/../os_dep.c:2538:22: warning: implicit declaration of function 'GC_unmap_end'; did you mean 'GC_unmap_old'? [-Wimplicit-function-declaration] ptr_t end_addr = GC_unmap_end(start, bytes); ^~~~~~~~~~~~ GC_unmap_old extra/../os_dep.c:2538:22: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] extra/../os_dep.c:2572:58: error: 'OPT_MAP_ANON' undeclared (first use in this function); did you mean 'MAP_ANON'? MAP_PRIVATE | MAP_FIXED | OPT_MAP_ANON, ^~~~~~~~~~~~ MAP_ANON extra/../os_dep.c:2573:32: error: 'zero_fd' undeclared (first use in this function) zero_fd, 0/* offset */); ^~~~~~~ extra/../os_dep.c: At top level: extra/../os_dep.c:2587:10: error: expected ';' before 'void' GC_INNER void GC_remap(ptr_t start, size_t bytes) ^~~~ extra/../os_dep.c: In function 'GC_remap': extra/../os_dep.c:2589:24: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] ptr_t start_addr = GC_unmap_start(start, bytes); ^~~~~~~~~~~~~~ extra/../os_dep.c:2590:22: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] ptr_t end_addr = GC_unmap_end(start, bytes); ^~~~~~~~~~~~ extra/../os_dep.c:2642:32: error: 'GC_pages_executable' undeclared (first use in this function); did you mean 'GC_get_pages_executable'? | (GC_pages_executable ? PROT_EXEC : 0)) != 0) { ^~~~~~~~~~~~~~~~~~~ GC_get_pages_executable extra/../os_dep.c: At top level: extra/../os_dep.c:2658:10: error: expected ';' before 'void' GC_INNER void GC_unmap_gap(ptr_t start1, size_t bytes1, ptr_t start2, ^~~~ extra/../os_dep.c: In function 'GC_unmap_gap': extra/../os_dep.c:2661:25: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] ptr_t start1_addr = GC_unmap_start(start1, bytes1); ^~~~~~~~~~~~~~ extra/../os_dep.c:2662:23: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] ptr_t end1_addr = GC_unmap_end(start1, bytes1); ^~~~~~~~~~~~ extra/../os_dep.c:2663:25: warning: initialization of 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] ptr_t start2_addr = GC_unmap_start(start2, bytes2); ^~~~~~~~~~~~~~ extra/../os_dep.c:2669:38: warning: assignment to 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] if (0 == start1_addr) start_addr = GC_unmap_start(start1, bytes1 + bytes2); ^ extra/../os_dep.c:2670:36: warning: assignment to 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] if (0 == start2_addr) end_addr = GC_unmap_end(start1, bytes1 + bytes2); ^ extra/../os_dep.c:2696:58: error: 'OPT_MAP_ANON' undeclared (first use in this function); did you mean 'MAP_ANON'? MAP_PRIVATE | MAP_FIXED | OPT_MAP_ANON, ^~~~~~~~~~~~ MAP_ANON extra/../os_dep.c:2697:32: error: 'zero_fd' undeclared (first use in this function) zero_fd, 0/* offset */); ^~~~~~~ extra/../os_dep.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../os_dep.c:3670:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_manual_vdb = FALSE; ^~~~~~~~ In file included from extra/gc.c:63: extra/../os_dep.c:3670:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_manual_vdb' GC_INNER GC_bool GC_manual_vdb = FALSE; ^~~~~~~~~~~~~ extra/../os_dep.c:3674:12: error: expected ';' before 'void' GC_INNER void GC_dirty_inner(const void *p) ^~~~ extra/../os_dep.c:3690:12: error: expected ';' before 'void' GC_INNER void GC_read_dirty(GC_bool output_unneeded) ^~~~ extra/../os_dep.c: In function 'GC_read_dirty': extra/../os_dep.c:3692:9: error: 'GC_manual_vdb' undeclared (first use in this function) if (GC_manual_vdb ^~~~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../os_dep.c:3698:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BCOPY((/* no volatile */ void *)GC_dirty_pages, GC_grungy_pages, ^ ./include/private/gc_priv.h:514:35: note: in definition of macro 'BCOPY' # define BCOPY(x,y,n) memcpy(y, x, (size_t)(n)) ^ ./include/private/gc_priv.h:1371:37: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion] # define GC_grungy_pages GC_arrays._grungy_pages ~~~~~~~~~^~~~~~~~~~~~~~ ./include/private/gc_priv.h:514:32: note: in definition of macro 'BCOPY' # define BCOPY(x,y,n) memcpy(y, x, (size_t)(n)) ^ extra/../os_dep.c:3698:57: note: in expansion of macro 'GC_grungy_pages' BCOPY((/* no volatile */ void *)GC_dirty_pages, GC_grungy_pages, ^~~~~~~~~~~~~~~ In file included from /usr/include/features.h:438, from ./include/private/../gc_config_macros.h:299, from ./include/private/../gc.h:47, from ./include/private/gc_priv.h:56, from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: /usr/include/bits/string_fortified.h:31:1: note: expected 'void * restrict' but argument is of type 'int' __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, ^~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../os_dep.c:3700:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BZERO((/* no volatile */ void *)GC_dirty_pages, ^ ./include/private/gc_priv.h:515:31: note: in definition of macro 'BZERO' # define BZERO(x,n) memset(x, 0, (size_t)(n)) ^ extra/../os_dep.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../os_dep.c:3735:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_page_was_dirty(struct hblk *h) ^~~~~~~~ In file included from extra/gc.c:63: extra/../os_dep.c:3735:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_page_was_dirty' GC_INNER GC_bool GC_page_was_dirty(struct hblk *h) ^~~~~~~~~~~~~~~~~ extra/../os_dep.c:3777:12: error: expected ';' before 'void' GC_INNER void GC_remove_protection(struct hblk *h, word nblocks, ^~~~ extra/../os_dep.c: In function 'GC_set_pages_executable': extra/../os_dep.c:4464:3: error: 'GC_pages_executable' undeclared (first use in this function); did you mean 'GC_get_pages_executable'? GC_pages_executable = (GC_bool)(value != 0); ^~~~~~~~~~~~~~~~~~~ GC_get_pages_executable extra/../os_dep.c: In function 'GC_get_pages_executable': extra/../os_dep.c:4475:17: error: 'GC_pages_executable' undeclared (first use in this function); did you mean 'GC_get_pages_executable'? return (int)GC_pages_executable; ^~~~~~~~~~~~~~~~~~~ GC_get_pages_executable In file included from extra/gc.c:63: extra/../os_dep.c: In function 'GC_print_address_map': extra/../os_dep.c:4821:12: warning: implicit declaration of function 'GC_get_maps'; did you mean 'GC_get_rate'? [-Wimplicit-function-declaration] maps = GC_get_maps(); ^~~~~~~~~~~ GC_get_rate extra/../os_dep.c:4821:10: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] maps = GC_get_maps(); ^ In file included from extra/gc.c:64: extra/../thread_local_alloc.c: At top level: extra/../thread_local_alloc.c:19:3: error: #error "invalid config - THREAD_LOCAL_ALLOC requires GC_THREADS" # error "invalid config - THREAD_LOCAL_ALLOC requires GC_THREADS" ^~~~~ In file included from extra/../thread_local_alloc.c:22, from extra/gc.c:64: ./include/private/thread_local_alloc.h:167:10: error: expected ';' before 'void' GC_INNER void GC_init_thread_local(GC_tlfs p); ^~~~ ./include/private/thread_local_alloc.h:171:10: error: expected ';' before 'void' GC_INNER void GC_destroy_thread_local(GC_tlfs p); ^~~~ ./include/private/thread_local_alloc.h:177:10: error: expected ';' before 'void' GC_INNER void GC_mark_thread_local_fls_for(GC_tlfs p); ^~~~ In file included from extra/gc.c:64: extra/../thread_local_alloc.c:94:10: error: expected ';' before 'void' GC_INNER void GC_init_thread_local(GC_tlfs p) ^~~~ extra/../thread_local_alloc.c:128:10: error: expected ';' before 'void' GC_INNER void GC_destroy_thread_local(GC_tlfs p) ^~~~ extra/../thread_local_alloc.c: In function 'GC_destroy_thread_local': extra/../thread_local_alloc.c:140:55: error: 'GC_gcjobjfreelist' undeclared (first use in this function); did you mean 'GC_uobjfreelist'? return_freelists(p -> gcj_freelists, (void **)GC_gcjobjfreelist); ^~~~~~~~~~~~~~~~~ GC_uobjfreelist In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../thread_local_alloc.c: In function 'GC_gcj_malloc': extra/../thread_local_alloc.c:219:14: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (EXPECT(GC_incremental, FALSE)) { ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:49: extra/../thread_local_alloc.c:232:27: warning: implicit declaration of function 'AO_compiler_barrier' [-Wimplicit-function-declaration] {AO_compiler_barrier(); ^~~~~~~~~~~~~~~~~~~ ./include/gc_inline.h:129:17: note: in definition of macro 'GC_FAST_MALLOC_GRANS' init; \ ^~~~ In file included from extra/gc.c:64: extra/../thread_local_alloc.c: At top level: extra/../thread_local_alloc.c:262:10: error: expected ';' before 'void' GC_INNER void GC_mark_thread_local_fls_for(GC_tlfs p) ^~~~ extra/../thread_local_alloc.c: In function 'GC_mark_thread_local_fls_for': extra/../thread_local_alloc.c:271:38: error: unknown type name 'AO_t' q = (ptr_t)AO_load((volatile AO_t *)&p->_freelists[i][j]); ^~~~ extra/../thread_local_alloc.c:277:40: error: unknown type name 'AO_t' q = (ptr_t)AO_load((volatile AO_t *)&p->gcj_freelists[j]); ^~~~ In file included from ./include/private/pthread_support.h:28, from extra/../darwin_stop_world.c:18, from extra/gc.c:67: ./include/private/pthread_stop_world.h: At top level: ./include/private/pthread_stop_world.h:26:16: error: unknown type name 'AO_t' volatile AO_t last_stop_count; ^~~~ ./include/private/pthread_stop_world.h:53:10: error: expected ';' before 'void' GC_INNER void GC_stop_init(void); ^~~~ In file included from extra/../darwin_stop_world.c:18, from extra/gc.c:67: ./include/private/pthread_support.h:71:16: error: unknown type name 'AO_t' volatile AO_t suspended_ext; /* Thread was suspended externally. */ ^~~~ ./include/private/pthread_support.h:155:11: error: expected ';' before 'volatile' GC_EXTERN volatile GC_thread GC_threads[THREAD_TABLE_SZ]; ^~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/gc.c:35:20: note: in expansion of macro 'GC_INNER' # define GC_EXTERN GC_INNER ^~~~~~~~ ./include/private/pthread_support.h:157:1: note: in expansion of macro 'GC_EXTERN' GC_EXTERN GC_bool GC_thr_initialized; ^~~~~~~~~ In file included from extra/../darwin_stop_world.c:18, from extra/gc.c:67: ./include/private/pthread_support.h:157:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_thr_initialized' GC_EXTERN GC_bool GC_thr_initialized; ^~~~~~~~~~~~~~~~~~ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ ./include/private/pthread_support.h:159:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_thread GC_lookup_thread(pthread_t id); ^~~~~~~~ In file included from extra/../darwin_stop_world.c:18, from extra/gc.c:67: ./include/private/pthread_support.h:159:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_lookup_thread' GC_INNER GC_thread GC_lookup_thread(pthread_t id); ^~~~~~~~~~~~~~~~ In file included from extra/gc.c:68: extra/../dyn_load.c:51:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_has_static_roots_func GC_has_static_roots = 0; ^~~~~~ STA_INS extra/../dyn_load.c:51:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_has_static_roots' STATIC GC_has_static_roots_func GC_has_static_roots = 0; ^~~~~~~~~~~~~~~~~~~ extra/../dyn_load.c: In function 'GC_register_has_static_roots_callback': extra/../dyn_load.c:1579:5: error: 'GC_has_static_roots' undeclared (first use in this function); did you mean 'GC_static_roots'? GC_has_static_roots = callback; ^~~~~~~~~~~~~~~~~~~ GC_static_roots In file included from extra/gc.c:69: extra/../gc_dlopen.c: In function 'disable_gc_for_dlopen': extra/../gc_dlopen.c:48:12: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? while (GC_incremental && GC_collection_in_progress()) { ^~~~~~~~~~~~~~ GC_auto_incremental In file included from extra/gc.c:70: extra/../mach_dep.c: At top level: extra/../mach_dep.c:227:10: error: expected ';' before 'void' GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *), ^~~~ In file included from extra/gc.c:71: extra/../pthread_stop_world.c:53:3: error: #error AO_load_acquire and/or AO_store_release are missing; # error AO_load_acquire and/or AO_store_release are missing; ^~~~~ extra/../pthread_stop_world.c:54:3: error: #error please define AO_REQUIRE_CAS manually # error please define AO_REQUIRE_CAS manually ^~~~~ extra/../pthread_stop_world.c:93:7: error: expected ';' before 'void' STATIC void GC_remove_allowed_signals(sigset_t *set) ^~~~~ ; extra/../pthread_stop_world.c:119:7: error: expected ';' before 'volatile' STATIC volatile AO_t GC_stop_count = 0; ^~~~~~~~~ ; extra/../pthread_stop_world.c:119:17: error: unknown type name 'AO_t' STATIC volatile AO_t GC_stop_count = 0; ^~~~ extra/../pthread_stop_world.c:124:7: error: expected ';' before 'volatile' STATIC volatile AO_t GC_world_is_stopped = FALSE; ^~~~~~~~~ ; extra/../pthread_stop_world.c:124:17: error: unknown type name 'AO_t' STATIC volatile AO_t GC_world_is_stopped = FALSE; ^~~~ extra/../pthread_stop_world.c:134:3: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_bool GC_retry_signals = FALSE; ^~~~~~ STA_INS extra/../pthread_stop_world.c:134:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_retry_signals' STATIC GC_bool GC_retry_signals = FALSE; ^~~~~~~~~~~~~~~~ extra/../pthread_stop_world.c:166:7: error: expected ';' before 'int' STATIC int GC_sig_suspend = SIGNAL_UNSET; ^~~~ ; extra/../pthread_stop_world.c:167:7: error: expected ';' before 'int' STATIC int GC_sig_thr_restart = SIGNAL_UNSET; ^~~~ ; extra/../pthread_stop_world.c: In function 'GC_set_suspend_signal': extra/../pthread_stop_world.c:171:7: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'keys_initialized'? if (GC_is_initialized) return; ^~~~~~~~~~~~~~~~~ keys_initialized extra/../pthread_stop_world.c: In function 'GC_set_thr_restart_signal': extra/../pthread_stop_world.c:178:7: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'keys_initialized'? if (GC_is_initialized) return; ^~~~~~~~~~~~~~~~~ keys_initialized extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:198:12: error: expected ';' before 'void' GC_INNER void GC_unblock_gc_signals(void) ^~~~ extra/../pthread_stop_world.c:211:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC sem_t GC_suspend_ack_sem; /* also used to acknowledge restart */ ^~~~~~ STA_INS extra/../pthread_stop_world.c:211:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_suspend_ack_sem' STATIC sem_t GC_suspend_ack_sem; /* also used to acknowledge restart */ ^~~~~~~~~~~~~~~~~~ extra/../pthread_stop_world.c:213:7: error: expected ';' before 'void' STATIC void GC_suspend_handler_inner(ptr_t dummy, void *context); ^~~~~ ; extra/../pthread_stop_world.c:216:9: error: expected ';' before 'void' STATIC void GC_suspend_handler(int sig, siginfo_t * info GC_ATTR_UNUSED, ^~~~~ ; extra/../pthread_stop_world.c: In function 'GC_store_stack_ptr': extra/../pthread_stop_world.c:300:30: error: unknown type name 'AO_t' ao_store_async((volatile AO_t *)&me->stop_info.stack_ptr, ^~~~ extra/../pthread_stop_world.c:260:40: note: in definition of macro 'ao_store_async' # define ao_store_async(p, v) AO_store(p, v) ^ extra/../pthread_stop_world.c:301:21: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? (AO_t)GC_approx_sp()); ^~~~ extra/../pthread_stop_world.c:260:43: note: in definition of macro 'ao_store_async' # define ao_store_async(p, v) AO_store(p, v) ^ extra/../pthread_stop_world.c:301:26: error: expected ')' before 'GC_approx_sp' (AO_t)GC_approx_sp()); ^~~~~~~~~~~~ extra/../pthread_stop_world.c:260:43: note: in definition of macro 'ao_store_async' # define ao_store_async(p, v) AO_store(p, v) ^ extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:305:7: error: expected ';' before 'void' STATIC void GC_suspend_handler_inner(ptr_t dummy GC_ATTR_UNUSED, ^~~~~ ; extra/../pthread_stop_world.c: In function 'GC_suspend_handler_inner': extra/../pthread_stop_world.c:310:13: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ extra/../pthread_stop_world.c:310:31: error: expected ';' before 'AO_t' IF_CANCEL(int cancel_state;) ^ ; AO_t my_stop_count = ao_load_acquire_async(&GC_stop_count); ~~~~ extra/../pthread_stop_world.c:281:33: warning: implicit declaration of function 'GC_lookup_thread'; did you mean 'GC_resume_thread'? [-Wimplicit-function-declaration] # define GC_lookup_thread_async GC_lookup_thread ^~~~~~~~~~~~~~~~ extra/../pthread_stop_world.c:329:8: note: in expansion of macro 'GC_lookup_thread_async' me = GC_lookup_thread_async(self); ^~~~~~~~~~~~~~~~~~~~~~ extra/../pthread_stop_world.c:329:6: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_lookup_thread_async(self); ^ extra/../pthread_stop_world.c:334:17: error: 'GC_suspend_ack_sem' undeclared (first use in this function); did you mean 'GC_suspend_handler'? sem_post(&GC_suspend_ack_sem); ^~~~~~~~~~~~~~~~~~ GC_suspend_handler extra/../pthread_stop_world.c:345:18: error: 'my_stop_count' undeclared (first use in this function); did you mean 'GC_stop_count'? == (word)my_stop_count) { ^~~~~~~~~~~~~ GC_stop_count extra/../pthread_stop_world.c:347:12: error: 'GC_retry_signals' undeclared (first use in this function); did you mean 'GC_version'? if (!GC_retry_signals) { ^~~~~~~~~~~~~~~~ GC_version In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../pthread_stop_world.c:348:11: note: in expansion of macro 'WARN' WARN("Duplicate suspend signal in thread %p\n", self); ^~~~ In file included from extra/gc.c:71: extra/../pthread_stop_world.c:259:39: warning: implicit declaration of function 'AO_store_release'; did you mean 'GC_start_reclaim'? [-Wimplicit-function-declaration] # define ao_store_release_async(p, v) AO_store_release(p, v) ^~~~~~~~~~~~~~~~ extra/../pthread_stop_world.c:373:3: note: in expansion of macro 'ao_store_release_async' ao_store_release_async(&me->stop_info.last_stop_count, my_stop_count); ^~~~~~~~~~~~~~~~~~~~~~ extra/../pthread_stop_world.c:408:31: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? (AO_t)((word)my_stop_count | THREAD_RESTARTED)); ^~~~ extra/../pthread_stop_world.c:259:59: note: in definition of macro 'ao_store_release_async' # define ao_store_release_async(p, v) AO_store_release(p, v) ^ extra/../pthread_stop_world.c: In function 'suspend_restart_barrier': extra/../pthread_stop_world.c:419:29: error: 'GC_suspend_ack_sem' undeclared (first use in this function); did you mean 'GC_suspend_handler'? while (0 != sem_wait(&GC_suspend_ack_sem)) { ^~~~~~~~~~~~~~~~~~ GC_suspend_handler extra/../pthread_stop_world.c: In function 'resend_lost_signals': extra/../pthread_stop_world.c:444:23: error: 'GC_suspend_ack_sem' undeclared (first use in this function); did you mean 'GC_suspend_handler'? sem_getvalue(&GC_suspend_ack_sem, &ack_count); ^~~~~~~~~~~~~~~~~~ GC_suspend_handler In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../pthread_stop_world.c:453:13: note: in expansion of macro 'WARN' WARN("Lost some threads while stopping or starting world?!\n", 0); ^~~~ In file included from extra/gc.c:71: extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:481:7: error: expected ';' before 'void' STATIC void GC_restart_handler(int sig) ^~~~~ ; In file included from extra/gc.c:71: extra/../pthread_stop_world.c:532:11: error: expected ';' before 'void' STATIC void GC_brief_async_signal_safe_sleep(void) ^~~~~ ; extra/../pthread_stop_world.c: In function 'GC_suspend_thread': extra/../pthread_stop_world.c:556:17: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ extra/../pthread_stop_world.c:560:9: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] t = GC_lookup_thread((pthread_t)thread); ^ extra/../pthread_stop_world.c:569:11: warning: implicit declaration of function 'THREAD_EQUAL'; did you mean 'CPU_EQUAL'? [-Wimplicit-function-declaration] if (THREAD_EQUAL((pthread_t)thread, pthread_self())) { ^~~~~~~~~~~~ CPU_EQUAL extra/../pthread_stop_world.c:596:11: error: 'GC_manual_vdb' undeclared (first use in this function) if (GC_manual_vdb) { ^~~~~~~~~~~~~ extra/../pthread_stop_world.c:598:9: warning: implicit declaration of function 'GC_acquire_dirty_lock'; did you mean 'GC_acquire_mark_lock'? [-Wimplicit-function-declaration] GC_acquire_dirty_lock(); ^~~~~~~~~~~~~~~~~~~~~ GC_acquire_mark_lock extra/../pthread_stop_world.c:616:24: error: 'GC_suspend_ack_sem' undeclared (first use in this function); did you mean 'GC_suspend_handler'? while (sem_wait(&GC_suspend_ack_sem) != 0) { ^~~~~~~~~~~~~~~~~~ GC_suspend_handler extra/../pthread_stop_world.c:621:9: warning: implicit declaration of function 'GC_release_dirty_lock'; did you mean 'GC_release_mark_lock'? [-Wimplicit-function-declaration] GC_release_dirty_lock(); ^~~~~~~~~~~~~~~~~~~~~ GC_release_mark_lock extra/../pthread_stop_world.c: In function 'GC_resume_thread': extra/../pthread_stop_world.c:631:9: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] t = GC_lookup_thread((pthread_t)thread); ^ extra/../pthread_stop_world.c: In function 'GC_is_thread_suspended': extra/../pthread_stop_world.c:643:9: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] t = GC_lookup_thread((pthread_t)thread); ^ extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:664:10: error: expected ';' before 'void' GC_INNER void GC_push_all_stacks(void) ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../pthread_stop_world.c: In function 'GC_push_all_stacks': extra/../pthread_stop_world.c:677:17: error: 'GC_thr_initialized' undeclared (first use in this function); did you mean 'keys_initialized'? if (!EXPECT(GC_thr_initialized, TRUE)) ^~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:71: extra/../pthread_stop_world.c:692:20: warning: assignment to 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] lo = GC_approx_sp(); ^ extra/../pthread_stop_world.c:697:43: error: unknown type name 'AO_t' lo = (ptr_t)AO_load((volatile AO_t *)&p->stop_info.stack_ptr); ^~~~ extra/../pthread_stop_world.c:726:9: warning: implicit declaration of function 'GC_push_all_stack_sections'; did you mean 'GC_push_all_stacks'? [-Wimplicit-function-declaration] GC_push_all_stack_sections(lo, hi, traced_stack_sect); ^~~~~~~~~~~~~~~~~~~~~~~~~~ GC_push_all_stacks extra/../pthread_stop_world.c:753:23: error: 'GC_in_thread_creation' undeclared (first use in this function); did you mean 'GC_pthread_create'? if (!found_me && !GC_in_thread_creation) ^~~~~~~~~~~~~~~~~~~~~ GC_pthread_create extra/../pthread_stop_world.c:755:5: error: 'GC_total_stacksize' undeclared (first use in this function); did you mean 'total_size'? GC_total_stacksize = total_size; ^~~~~~~~~~~~~~~~~~ total_size extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:768:7: error: expected ';' before 'int' STATIC int GC_suspend_all(void) ^~~~ ; extra/../pthread_stop_world.c: In function 'GC_suspend_all': extra/../pthread_stop_world.c:824:25: error: 'GC_on_thread_event' undeclared (first use in this function); did you mean 'GC_get_on_thread_event'? if (GC_on_thread_event) ^~~~~~~~~~~~~~~~~~ GC_get_on_thread_event extra/../pthread_stop_world.c:825:23: warning: implicit declaration of function 'GC_on_thread_event'; did you mean 'GC_get_on_thread_event'? [-Wimplicit-function-declaration] GC_on_thread_event(GC_EVENT_THREAD_SUSPENDED, ^~~~~~~~~~~~~~~~~~ GC_get_on_thread_event extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:895:10: error: expected ';' before 'void' GC_INNER void GC_stop_world(void) ^~~~ extra/../pthread_stop_world.c: In function 'GC_stop_world': extra/../pthread_stop_world.c:923:15: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? (AO_t)((word)GC_stop_count + (THREAD_RESTARTED+1))); ^~~~ id_t extra/../pthread_stop_world.c:925:9: error: 'GC_manual_vdb' undeclared (first use in this function) if (GC_manual_vdb) { ^~~~~~~~~~~~~ extra/../pthread_stop_world.c:933:9: error: 'GC_retry_signals' undeclared (first use in this function); did you mean 'GC_version'? if (GC_retry_signals) ^~~~~~~~~~~~~~~~ GC_version extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:1107:9: error: expected ';' before 'int' STATIC int GC_restart_all(void) ^~~~ ; extra/../pthread_stop_world.c: In function 'GC_restart_all': extra/../pthread_stop_world.c:1126:17: error: 'GC_retry_signals' undeclared (first use in this function); did you mean 'GC_restart_all'? if (GC_retry_signals ^~~~~~~~~~~~~~~~ GC_restart_all extra/../pthread_stop_world.c:1128:25: error: 'AO_t' undeclared (first use in this function); did you mean 'id_t'? == (AO_t)((word)GC_stop_count | THREAD_RESTARTED)) ^~~~ id_t extra/../pthread_stop_world.c:1148:19: error: 'GC_on_thread_event' undeclared (first use in this function); did you mean 'GC_get_on_thread_event'? if (GC_on_thread_event) ^~~~~~~~~~~~~~~~~~ GC_get_on_thread_event extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:1166:10: error: expected ';' before 'void' GC_INNER void GC_start_world(void) ^~~~ extra/../pthread_stop_world.c: In function 'GC_start_world': extra/../pthread_stop_world.c:1183:11: error: 'GC_retry_signals' undeclared (first use in this function); did you mean 'GC_restart_all'? if (GC_retry_signals) ^~~~~~~~~~~~~~~~ GC_restart_all extra/../pthread_stop_world.c: At top level: extra/../pthread_stop_world.c:1208:10: error: expected ';' before 'void' GC_INNER void GC_stop_init(void) ^~~~ extra/../pthread_stop_world.c: In function 'GC_stop_init': extra/../pthread_stop_world.c:1221:19: error: 'GC_suspend_ack_sem' undeclared (first use in this function); did you mean 'GC_suspend_all'? if (sem_init(&GC_suspend_ack_sem, GC_SEM_INIT_PSHARED, 0) != 0) ^~~~~~~~~~~~~~~~~~ GC_suspend_all extra/../pthread_stop_world.c:1273:13: error: 'GC_retry_signals' undeclared (first use in this function); did you mean 'GC_restart_all'? GC_retry_signals = FALSE; ^~~~~~~~~~~~~~~~ GC_restart_all extra/../pthread_support.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../pthread_support.c:68:3: note: in expansion of macro 'GC_INNER' GC_INNER pthread_mutex_t GC_allocate_ml = PTHREAD_MUTEX_INITIALIZER; ^~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c:68:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_allocate_ml' GC_INNER pthread_mutex_t GC_allocate_ml = PTHREAD_MUTEX_INITIALIZER; ^~~~~~~~~~~~~~ extra/../pthread_support.c:68:70: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] GC_INNER pthread_mutex_t GC_allocate_ml = PTHREAD_MUTEX_INITIALIZER; ^ extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../pthread_support.c:263:3: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_need_to_lock = FALSE; ^~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c:263:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_need_to_lock' GC_INNER GC_bool GC_need_to_lock = FALSE; ^~~~~~~~~~~~~~~ extra/../pthread_support.c:266:7: error: expected ';' before 'int' STATIC int GC_nprocs = 1; ^~~~ ; extra/../pthread_support.c:276:12: error: expected ';' before 'void' GC_INNER void GC_mark_thread_local_free_lists(void) ^~~~ extra/../pthread_support.c:338:7: error: expected ';' before 'void' STATIC void * GC_mark_thread(void * id) ^~~~~ ; extra/../pthread_support.c: In function 'GC_mark_thread': extra/../pthread_support.c:341:13: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ extra/../pthread_support.c:341:31: error: expected ';' before 'if' IF_CANCEL(int cancel_state;) ^ ; extra/../pthread_support.c:343:3: if ((word)id == GC_WORD_MAX) return 0; /* to prevent a compiler warning */ ~~ extra/../pthread_support.c:347:23: warning: assignment to 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] marker_sp[(word)id] = GC_approx_sp(); ^ extra/../pthread_support.c:357:14: error: 'GC_fl_builder_count' undeclared (first use in this function); did you mean 'GC_helper_count'? if (0 == --GC_fl_builder_count) /* count may have a negative value */ ^~~~~~~~~~~~~~~~~~~ GC_helper_count extra/../pthread_support.c:367:22: error: 'GC_mark_no' undeclared (first use in this function); did you mean 'my_mark_no'? if (my_mark_no < GC_mark_no || my_mark_no > GC_mark_no + 2) { ^~~~~~~~~~ my_mark_no extra/../pthread_support.c: At top level: extra/../pthread_support.c:380:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC pthread_t GC_mark_threads[MAX_MARKERS]; ^~~~~~ STA_INS extra/../pthread_support.c:380:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_mark_threads' STATIC pthread_t GC_mark_threads[MAX_MARKERS]; ^~~~~~~~~~~~~~~ extra/../pthread_support.c:391:10: error: expected ';' before 'void' GC_INNER void GC_start_mark_threads_inner(void) ^~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../pthread_support.c: In function 'GC_start_mark_threads_inner': ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../pthread_support.c:455:9: note: in expansion of macro 'WARN' WARN("pthread_sigmask set failed, no markers started," ^~~~ In file included from extra/gc.c:72: extra/../pthread_support.c:468:42: error: 'GC_mark_threads' undeclared (first use in this function); did you mean 'GC_mark_thread'? if (0 != REAL_FUNC(pthread_create)(GC_mark_threads + i, &attr, ^~~~~~~~~~~~~~~ GC_mark_thread extra/../pthread_support.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../pthread_support.c:493:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_thr_initialized = FALSE; ^~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c:493:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_thr_initialized' GC_INNER GC_bool GC_thr_initialized = FALSE; ^~~~~~~~~~~~~~~~~~ extra/../pthread_support.c:495:10: error: expected ';' before 'volatile' GC_INNER volatile GC_thread GC_threads[THREAD_TABLE_SZ] = {0}; ^~~~~~~~ extra/../pthread_support.c:530:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_thread GC_new_thread(pthread_t id) ^~~~~~ STA_INS extra/../pthread_support.c:530:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_new_thread' STATIC GC_thread GC_new_thread(pthread_t id) ^~~~~~~~~~~~~ extra/../pthread_support.c:576:7: error: expected ';' before 'void' STATIC void GC_delete_thread(pthread_t id) ^~~~~ ; In file included from extra/../darwin_stop_world.c:18, from extra/gc.c:67: extra/../pthread_support.c: In function 'GC_delete_thread': ./include/private/pthread_support.h:150:25: warning: implicit declaration of function 'NUMERIC_THREAD_ID'; did you mean 'SIGEV_THREAD_ID'? [-Wimplicit-function-declaration] (int)(((NUMERIC_THREAD_ID(id) >> 16) \ ^~~~~~~~~~~~~~~~~ extra/../pthread_support.c:578:14: note: in expansion of macro 'THREAD_TABLE_INDEX' int hv = THREAD_TABLE_INDEX(id); ^~~~~~~~~~~~~~~~~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../pthread_support.c:602:9: note: in expansion of macro 'GC_dirty' GC_dirty(prev); ^~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: At top level: extra/../pthread_support.c:616:7: error: expected ';' before 'void' STATIC void GC_delete_gc_thread(GC_thread t) ^~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../pthread_support.c: In function 'GC_delete_gc_thread': ./include/private/gc_priv.h:2198:23: error: 'GC_manual_vdb' undeclared (first use in this function) # define GC_dirty(p) (GC_manual_vdb ? GC_dirty_inner(p) : (void)0) ^~~~~~~~~~~~~ extra/../pthread_support.c:633:9: note: in expansion of macro 'GC_dirty' GC_dirty(prev); ^~~~~~~~ extra/../pthread_support.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../pthread_support.c:652:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_thread GC_lookup_thread(pthread_t id) ^~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c:652:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_lookup_thread' GC_INNER GC_thread GC_lookup_thread(pthread_t id) ^~~~~~~~~~~~~~~~ extra/../pthread_support.c:661:10: error: expected ';' before 'void' GC_INNER void GC_reset_finalizer_nested(void) ^~~~ extra/../pthread_support.c: In function 'GC_reset_finalizer_nested': extra/../pthread_support.c:663:18: warning: initialization of 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] GC_thread me = GC_lookup_thread(pthread_self()); ^~~~~~~~~~~~~~~~ extra/../pthread_support.c: At top level: extra/../pthread_support.c:672:10: error: expected ';' before 'unsigned' GC_INNER unsigned char *GC_check_finalizer_nested(void) ^~~~~~~~ extra/../pthread_support.c:672:25: error: redefinition of 'GC_check_finalizer_nested' GC_INNER unsigned char *GC_check_finalizer_nested(void) ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:53: extra/../finalize.c:928:25: note: previous definition of 'GC_check_finalizer_nested' was here STATIC unsigned char *GC_check_finalizer_nested(void) ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: In function 'GC_check_finalizer_nested': extra/../pthread_support.c:674:18: warning: initialization of 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] GC_thread me = GC_lookup_thread(pthread_self()); ^~~~~~~~~~~~~~~~ extra/../pthread_support.c: In function 'GC_thread_is_registered': extra/../pthread_support.c:709:8: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_lookup_thread(self); ^ extra/../pthread_support.c: In function 'GC_register_altstack': extra/../pthread_support.c:727:6: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_lookup_thread(self); ^ extra/../pthread_support.c: At top level: extra/../pthread_support.c:918:9: error: expected ';' before 'int' STATIC int GC_get_nprocs(void) ^~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../pthread_support.c: In function 'GC_get_nprocs': ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../pthread_support.c:929:7: note: in expansion of macro 'WARN' WARN("Couldn't read /proc/stat\n", 0); ^~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: At top level: extra/../pthread_support.c:1025:7: error: expected ';' before 'void' STATIC void GC_wait_for_gc_completion(GC_bool wait_for_all) ^~~~~ ; extra/../pthread_support.c: In function 'GC_wait_for_gc_completion': extra/../pthread_support.c:1034:9: error: 'GC_incremental' undeclared (first use in this function); did you mean 'GC_auto_incremental'? if (GC_incremental && GC_collection_in_progress()) { ^~~~~~~~~~~~~~ GC_auto_incremental extra/../pthread_support.c:1042:13: error: 'GC_in_thread_creation' undeclared (first use in this function); did you mean 'GC_pthread_create'? GC_in_thread_creation = TRUE; ^~~~~~~~~~~~~~~~~~~~~ GC_pthread_create extra/../pthread_support.c: At top level: extra/../pthread_support.c:1186:10: error: expected ';' before 'void' GC_INNER void GC_thr_init(void) ^~~~ extra/../pthread_support.c:1186:15: warning: conflicting types for 'GC_thr_init' GC_INNER void GC_thr_init(void) ^~~~~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:1310:9: note: previous implicit declaration of 'GC_thr_init' was here GC_thr_init(); ^~~~~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: In function 'GC_thr_init': extra/../pthread_support.c:1189:7: error: 'GC_thr_initialized' undeclared (first use in this function); did you mean 'keys_initialized'? if (GC_thr_initialized) return; ^~~~~~~~~~~~~~~~~~ keys_initialized extra/../pthread_support.c:1227:19: warning: implicit declaration of function 'GC_new_thread'; did you mean 'GC_mark_thread'? [-Wimplicit-function-declaration] GC_thread t = GC_new_thread(self); ^~~~~~~~~~~~~ GC_mark_thread extra/../pthread_support.c:1227:19: warning: initialization of 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] extra/../pthread_support.c:1234:32: warning: assignment to 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] t -> stop_info.stack_ptr = GC_approx_sp(); ^ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:636:7: error: 'GC_current_warn_proc' undeclared (first use in this function); did you mean 'GC_get_warn_proc'? (*GC_current_warn_proc)((/* no const */ char *)("GC Warning: " msg), \ ^~~~~~~~~~~~~~~~~~~~ extra/../pthread_support.c:1265:5: note: in expansion of macro 'WARN' WARN("GC_get_nprocs() returned %" WARN_PRIdPTR "\n", GC_nprocs); ^~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: At top level: extra/../pthread_support.c:1317:10: error: expected ';' before 'void' GC_INNER void GC_init_parallel(void) ^~~~ extra/../pthread_support.c:1317:15: warning: conflicting types for 'GC_init_parallel' GC_INNER void GC_init_parallel(void) ^~~~~~~~~~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:1351:9: note: previous implicit declaration of 'GC_init_parallel' was here GC_init_parallel(); ^~~~~~~~~~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: In function 'GC_init_parallel': extra/../pthread_support.c:1326:10: error: 'GC_is_initialized' undeclared (first use in this function); did you mean 'keys_initialized'? if (!GC_is_initialized) GC_init(); ^~~~~~~~~~~~~~~~~ keys_initialized extra/../pthread_support.c:1330:62: error: invalid type argument of '->' (have 'int') GC_init_thread_local(&(GC_lookup_thread(pthread_self())->tlfs)); ^~ extra/../pthread_support.c: At top level: extra/../pthread_support.c:1358:10: error: expected ';' before 'void' GC_INNER void GC_do_blocking_inner(ptr_t data, void * context GC_ATTR_UNUSED) ^~~~ extra/../pthread_support.c:1358:15: error: redefinition of 'GC_do_blocking_inner' GC_INNER void GC_do_blocking_inner(ptr_t data, void * context GC_ATTR_UNUSED) ^~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:2175:13: note: previous definition of 'GC_do_blocking_inner' was here STATIC void GC_do_blocking_inner(ptr_t data, void * context GC_ATTR_UNUSED) ^~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: In function 'GC_do_blocking_inner': extra/../pthread_support.c:1372:8: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_lookup_thread(self); ^ extra/../pthread_support.c:1377:35: warning: assignment to 'ptr_t' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me -> stop_info.stack_ptr = GC_approx_sp(); ^ extra/../pthread_support.c: At top level: extra/../pthread_support.c:1407:23: error: redefinition of 'GC_call_with_gc_active' GC_API void * GC_CALL GC_call_with_gc_active(GC_fn_type fn, ^~~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:62: extra/../misc.c:2124:23: note: previous definition of 'GC_call_with_gc_active' was here GC_API void * GC_CALL GC_call_with_gc_active(GC_fn_type fn, ^~~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: In function 'GC_call_with_gc_active': extra/../pthread_support.c:1416:8: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_lookup_thread(self); ^ extra/../pthread_support.c: At top level: extra/../pthread_support.c:1470:7: error: expected ';' before 'void' STATIC void GC_unregister_my_thread_inner(GC_thread me) ^~~~~ ; extra/../pthread_support.c: In function 'GC_unregister_my_thread': extra/../pthread_support.c:1504:15: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ extra/../pthread_support.c:1512:8: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_lookup_thread(self); ^ extra/../pthread_support.c: In function 'GC_thread_exit_proc': extra/../pthread_support.c:1532:15: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ extra/../pthread_support.c: In function 'GC_pthread_join': extra/../pthread_support.c:1556:7: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] t = GC_lookup_thread(thread); ^ extra/../pthread_support.c: In function 'GC_pthread_detach': extra/../pthread_support.c:1592:7: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] t = GC_lookup_thread(thread); ^ extra/../pthread_support.c: In function 'GC_pthread_exit': extra/../pthread_support.c:1651:8: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_lookup_thread(self); ^ extra/../pthread_support.c: At top level: extra/gc.c:34:19: error: unknown type name 'STATIC'; did you mean 'STA_INS'? # define GC_INNER STATIC ^~~~~~ extra/../pthread_support.c:1664:1: note: in expansion of macro 'GC_INNER' GC_INNER GC_bool GC_in_thread_creation = FALSE; ^~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c:1664:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_in_thread_creation' GC_INNER GC_bool GC_in_thread_creation = FALSE; ^~~~~~~~~~~~~~~~~~~~~ extra/../pthread_support.c:1681:1: error: unknown type name 'STATIC'; did you mean 'STA_INS'? STATIC GC_thread GC_register_my_thread_inner(const struct GC_stack_base *sb, ^~~~~~ STA_INS extra/../pthread_support.c:1681:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GC_register_my_thread_inner' STATIC GC_thread GC_register_my_thread_inner(const struct GC_stack_base *sb, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../pthread_support.c: In function 'GC_allow_register_threads': extra/../pthread_support.c:1707:5: warning: implicit declaration of function 'set_need_to_lock'; did you mean 'setup_mark_lock'? [-Wimplicit-function-declaration] set_need_to_lock(); ^~~~~~~~~~~~~~~~ setup_mark_lock extra/../pthread_support.c: In function 'GC_register_my_thread': extra/../pthread_support.c:1716:9: error: 'GC_need_to_lock' undeclared (first use in this function); did you mean 'GC_prev_block'? if (GC_need_to_lock == FALSE) ^~~~~~~~~~~~~~~ GC_prev_block extra/../pthread_support.c:1720:8: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_lookup_thread(self); ^ extra/../pthread_support.c:1722:14: warning: implicit declaration of function 'GC_register_my_thread_inner'; did you mean 'GC_unregister_my_thread_inner'? [-Wimplicit-function-declaration] me = GC_register_my_thread_inner(sb, self); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ GC_unregister_my_thread_inner extra/../pthread_support.c:1722:12: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_register_my_thread_inner(sb, self); ^ extra/../pthread_support.c: In function 'GC_start_rtn_prepare_thread': extra/../pthread_support.c:1783:8: warning: assignment to 'GC_thread' {aka 'struct GC_Thread_Rep *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] me = GC_register_my_thread_inner(sb, self); ^ extra/../pthread_support.c: At top level: extra/../pthread_support.c:1800:9: error: expected ';' before 'void' STATIC void * GC_start_routine(void * arg) ^~~~~ ; In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: extra/../pthread_support.c: In function 'GC_pthread_create': extra/../pthread_support.c:1856:17: error: 'GC_thr_initialized' undeclared (first use in this function); did you mean 'keys_initialized'? if (!EXPECT(GC_thr_initialized, TRUE)) ^~~~~~~~~~~~~~~~~~ ./include/private/gc_priv.h:112:49: note: in definition of macro 'EXPECT' # define EXPECT(expr, outcome) __builtin_expect(expr,outcome) ^~~~ In file included from extra/gc.c:72: extra/../pthread_support.c:1908:19: error: expected expression before 'int' IF_CANCEL(int cancel_state;) ^~~ In file included from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gc_priv.h:2708:33: error: expected expression before 'void' # define DISABLE_CANCEL(state) (void)0 ^~~~ extra/../pthread_support.c:1914:9: note: in expansion of macro 'DISABLE_CANCEL' DISABLE_CANCEL(cancel_state); ^~~~~~~~~~~~~~ ./include/private/gc_priv.h:2708:38: error: expected ';' before numeric constant # define DISABLE_CANCEL(state) (void)0 ^ extra/../pthread_support.c:1914:9: note: in expansion of macro 'DISABLE_CANCEL' DISABLE_CANCEL(cancel_state); ^~~~~~~~~~~~~~ In file included from extra/gc.c:72: extra/../pthread_support.c: At top level: extra/../pthread_support.c:1938:7: error: expected ';' before 'void' STATIC void GC_pause(void) ^~~~~ ; extra/../pthread_support.c:1959:10: error: expected ';' before 'volatile' GC_INNER volatile GC_bool GC_collecting = FALSE; ^~~~~~~~ extra/../pthread_support.c:1990:7: error: expected ';' before 'void' STATIC void GC_generic_lock(pthread_mutex_t * lock) ^~~~~ ; extra/../pthread_support.c:2116:10: error: expected ';' before 'void' GC_INNER void GC_lock(void) ^~~~ extra/../pthread_support.c: In function 'GC_lock': extra/../pthread_support.c:2120:29: error: 'GC_allocate_ml' undeclared (first use in this function); did you mean 'fallocate64'? pthread_mutex_lock(&GC_allocate_ml); ^~~~~~~~~~~~~~ fallocate64 extra/../pthread_support.c: At top level: extra/../pthread_support.c:2213:10: error: expected ';' before 'void' GC_INNER void GC_acquire_mark_lock(void) ^~~~ extra/../pthread_support.c:2222:10: error: expected ';' before 'void' GC_INNER void GC_release_mark_lock(void) ^~~~ extra/../pthread_support.c:2235:7: error: expected ';' before 'void' STATIC void GC_wait_builder(void) ^~~~~ ; extra/../pthread_support.c:2246:10: error: expected ';' before 'void' GC_INNER void GC_wait_for_reclaim(void) ^~~~ extra/../pthread_support.c: In function 'GC_wait_for_reclaim': extra/../pthread_support.c:2249:12: error: 'GC_fl_builder_count' undeclared (first use in this function); did you mean 'GC_helper_count'? while (GC_fl_builder_count > 0) { ^~~~~~~~~~~~~~~~~~~ GC_helper_count extra/../pthread_support.c: At top level: extra/../pthread_support.c:2255:10: error: expected ';' before 'void' GC_INNER void GC_notify_all_builder(void) ^~~~ extra/../pthread_support.c:2263:10: error: expected ';' before 'void' GC_INNER void GC_wait_marker(void) ^~~~ extra/../pthread_support.c:2275:10: error: expected ';' before 'void' GC_INNER void GC_notify_all_marker(void) ^~~~ In file included from extra/gc.c:51: extra/../alloc.c: In function 'GC_is_incremental_mode': extra/../alloc.c:95:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from extra/gc.c:57: extra/../mark.c: In function 'GC_is_marked': extra/../mark.c:232:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from extra/gc.c:62: extra/../misc.c: In function 'GC_is_init_called': extra/../misc.c:746:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from extra/gc.c:62: extra/../misc.c: In function 'GC_get_force_unmap_on_gcollect': extra/../misc.c:2543:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from extra/gc.c:63: extra/../os_dep.c: In function 'GC_get_pages_executable': extra/../os_dep.c:4477:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from extra/gc.c:64: extra/../thread_local_alloc.c: In function 'GC_gcj_malloc': extra/../thread_local_alloc.c:254:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from extra/gc.c:51: At top level: extra/../alloc.c:1420:13: warning: 'last_bytes_finalized' defined but not used [-Wunused-variable] static word last_bytes_finalized = 0; ^~~~~~~~~~~~~~~~~~~~ extra/../alloc.c:1419:13: warning: 'last_fo_entries' defined but not used [-Wunused-variable] static word last_fo_entries = 0; ^~~~~~~~~~~~~~~ extra/../alloc.c:692:19: warning: 'world_stopped_total_divisor' defined but not used [-Wunused-variable] static unsigned world_stopped_total_divisor = 0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ extra/../alloc.c:691:19: warning: 'world_stopped_total_time' defined but not used [-Wunused-variable] static unsigned world_stopped_total_time = 0; ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from extra/gc.c:44: extra/../headers.c:113:14: warning: 'scratch_free_ptr' defined but not used [-Wunused-variable] static ptr_t scratch_free_ptr = 0; ^~~~~~~~~~~~~~~~ make[1]: *** [Makefile:1652: extra/gc.lo] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' RPM build errors: make: *** [Makefile:1871: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.7hoTcR (%build) Bad exit status from /var/tmp/rpm-tmp.7hoTcR (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gc.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gc.spec