ivmai / bdwgc

The Boehm-Demers-Weiser conservative C/C++ Garbage Collector (bdwgc, also known as bdw-gc, boehm-gc, libgc)
https://www.hboehm.info/gc/
Other
2.98k stars 407 forks source link

gc-8.2.2 gctest fail on linux/aarch64 (qemu) #541

Open evrim opened 1 year ago

evrim commented 1 year ago

Hello,

8.2.2 tests fail on aarch64 while I was trying to cross compile over qemu 7.2.0. Not sure if this is related to some other bug, just link if thats the case.

best, evrim.

unpacking sources
unpacking source archive /nix/store/nsn87chkfybpsildscrgd5mla673d11p-gc-8.2.2.tar.gz
source root is gc-8.2.2
setting SOURCE_DATE_EPOCH to timestamp 1661539506 of file gc-8.2.2/test-driver
patching sources
updateAutotoolsGnuConfigScriptsPhase
Updating Autotools / GNU config script to a newer upstream version: ./config.sub
Updating Autotools / GNU config script to a newer upstream version: ./config.guess
configuring
fixing libtool script ./ltmain.sh
./configure
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2 --bindir=/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/bin --sbindir=/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/sbin --includedir=/nix/store/kpl1n7867l10zhqbys43fzlrkrr5x3dl-boehm-gc-8.2.2-dev/include --oldincludedir=/nix/store/kpl1n7867l10zhqbys43fzlrkrr5x3dl-boehm-gc-8.2.2-dev/include --mandir=/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/share/man --infodir=/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/share/info --docdir=/nix/store/k3kjp0ns7g6gh6xrzgs05fp8v271g16p-boehm-gc-8.2.2-doc/share/doc/gc --libdir=/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib --libexecdir=/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/libexec --localedir=/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/share/locale --enable-cplusplus --with-libatomic-ops=none --enable-mmap --enable-large-config
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking target system type... aarch64-unknown-linux-gnu
checking GC version numbers... major=8 minor=2                 micro=2
checking for a BSD-compatible install... /nix/store/m3p9za90q4m78l1y5i1sgg7zlign1dqr-coreutils-9.1/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/m3p9za90q4m78l1y5i1sgg7zlign1dqr-coreutils-9.1/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 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 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... /nix/store/qx45g8112ghmc84zzjplg76d0dpfahlq-gnused-4.9/bin/sed
checking for grep that handles long lines and -e... /nix/store/ckj3dd75h2n72snwb80sxq4fqgcnsc4q-gnugrep-3.7/bin/grep
checking for egrep... /nix/store/ckj3dd75h2n72snwb80sxq4fqgcnsc4q-gnugrep-3.7/bin/grep -E
checking for fgrep... /nix/store/ckj3dd75h2n72snwb80sxq4fqgcnsc4q-gnugrep-3.7/bin/grep -F
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... (cached) pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /nix/store/m3p9za90q4m78l1y5i1sgg7zlign1dqr-coreutils-9.1/bin/dd
checking how to truncate binary pipes... /nix/store/m3p9za90q4m78l1y5i1sgg7zlign1dqr-coreutils-9.1/bin/dd bs=4096 count=1
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 (ld) 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++... ld
checking if the linker (ld) is GNU ld... yes
checking whether the g++ linker (ld) 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 (ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for emscripten... no
checking for thread model used by GCC... posix
checking for inline... inline
configure: WARNING: "Explicit GC_INIT() calls may be required."
checking for pthread_self in -lpthread... yes
checking for clock_gettime without additional libraries... 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 AIX gcc optimization fix is necessary... no
checking whether -Wno-frame-address works... yes
checking for dladdr... yes
checking for sigsetjmp... yes
checking for pthread_setname_np... yes (with tid)
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 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
configurePhase completed in 8 minutes 43 seconds
building
build flags: -j24 SHELL=/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash
make[1]: Entering directory '/build/gc-8.2.2'
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o pthread_start.lo pthread_start.c
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE  -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2  -c -o gc_badalc.lo gc_badalc.cc
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE  -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2  -c -o gc_cpp.lo gc_cpp.cc
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o extra/gc.lo extra/gc.c
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o cord/libcord_la-cordbscs.lo `test -f 'cord/cordbscs.c' || echo './'`cord/cordbscs.c
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o cord/libcord_la-cordprnt.lo `test -f 'cord/cordprnt.c' || echo './'`cord/cordprnt.c
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o cord/libcord_la-cordxtra.lo `test -f 'cord/cordxtra.c' || echo './'`cord/cordxtra.c
libtool: compile:  g++ -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -c gc_cpp.cc  -fPIC -DPIC -o .libs/gc_cpp.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -c pthread_start.c  -fPIC -DPIC -o .libs/pthread_start.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -c gc_badalc.cc  -fPIC -DPIC -o .libs/gc_badalc.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -c cord/cordbscs.c  -fPIC -DPIC -o cord/.libs/libcord_la-cordbscs.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -c extra/gc.c  -fPIC -DPIC -o extra/.libs/gc.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -c cord/cordxtra.c  -fPIC -DPIC -o cord/.libs/libcord_la-cordxtra.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -c cord/cordprnt.c  -fPIC -DPIC -o cord/.libs/libcord_la-cordprnt.o
In file included from extra/gc.c:74:
In function 'GC_suspend_handler_inner',
    inlined from 'GC_suspend_handler' at extra/../pthread_stop_world.c:261:7:
extra/../pthread_stop_world.c:359:19: warning: '__atomic_load_8' writing 8 bytes into a region of size 0 overflows the destination [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-overflow=-Wstringop-overflow=8;;]
  359 |     suspend_cnt = (word)ao_load_async(&(me -> stop_info.ext_suspend_cnt));
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address   -version-info 6:1:5 -no-undefined  -o libgc.la -rpath /nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib extra/gc.lo pthread_start.lo           -lpthread -ldl   
libtool: link: gcc -shared  -fPIC -DPIC  extra/.libs/gc.o .libs/pthread_start.o   -lpthread -ldl  -g -O2   -Wl,-soname -Wl,libgc.so.1 -o .libs/libgc.so.1.5.1
libtool: link: (cd ".libs" && rm -f "libgc.so.1" && ln -s "libgc.so.1.5.1" "libgc.so.1")
libtool: link: (cd ".libs" && rm -f "libgc.so" && ln -s "libgc.so.1.5.1" "libgc.so")
libtool: link: ( cd ".libs" && rm -f "libgc.la" && ln -s "../libgc.la" "libgc.la" )
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CXX   --mode=link g++ -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2  -version-info 6:0:5 -no-undefined  -o libgccpp.la -rpath /nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib gc_badalc.lo gc_cpp.lo libgc.la 
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CXX   --mode=link g++ -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2  -version-info 6:0:5 -no-undefined  -o libgctba.la -rpath /nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib gc_badalc.lo libgc.la 
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -version-info 6:0:5 -no-undefined  -o libcord.la -rpath /nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib cord/libcord_la-cordbscs.lo cord/libcord_la-cordprnt.lo cord/libcord_la-cordxtra.lo libgc.la 
libtool: link: gcc -shared  -fPIC -DPIC  cord/.libs/libcord_la-cordbscs.o cord/.libs/libcord_la-cordprnt.o cord/.libs/libcord_la-cordxtra.o   -Wl,-rpath -Wl,/build/gc-8.2.2/.libs -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib ./.libs/libgc.so -lpthread -ldl  -g -O2   -Wl,-soname -Wl,libcord.so.1 -o .libs/libcord.so.1.5.0
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /nix/store/cpjpkqs9qg93nlphsnaazn15why6n8hq-glibc-2.35-224/lib/crti.o /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0/crtbeginS.o  .libs/gc_badalc.o .libs/gc_cpp.o   -Wl,-rpath -Wl,/build/gc-8.2.2/.libs -Wl,-rpath -Wl,/nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib/../lib64 -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib -Wl,-rpath -Wl,/nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib/../lib64 ./.libs/libgc.so -lpthread -ldl -L/nix/store/cpjpkqs9qg93nlphsnaazn15why6n8hq-glibc-2.35-224/lib -L/nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib -L/nix/store/l7dl288f0hv1ckyyh05x1v3am127pk0g-gcc-wrapper-12.2.0/bin -L/nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0 -L/nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0/../../../../lib64 -L/nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0/../../.. /nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib/../lib64/libstdc++.so -lm -lc -lgcc_s /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0/crtendS.o /nix/store/cpjpkqs9qg93nlphsnaazn15why6n8hq-glibc-2.35-224/lib/crtn.o  -g -O2   -Wl,-soname -Wl,libgccpp.so.1 -o .libs/libgccpp.so.1.5.0
libtool: link: (cd ".libs" && rm -f "libcord.so.1" && ln -s "libcord.so.1.5.0" "libcord.so.1")
libtool: link: (cd ".libs" && rm -f "libcord.so" && ln -s "libcord.so.1.5.0" "libcord.so")
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /nix/store/cpjpkqs9qg93nlphsnaazn15why6n8hq-glibc-2.35-224/lib/crti.o /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0/crtbeginS.o  .libs/gc_badalc.o   -Wl,-rpath -Wl,/build/gc-8.2.2/.libs -Wl,-rpath -Wl,/nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib/../lib64 -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib -Wl,-rpath -Wl,/nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib/../lib64 ./.libs/libgc.so -lpthread -ldl -L/nix/store/cpjpkqs9qg93nlphsnaazn15why6n8hq-glibc-2.35-224/lib -L/nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib -L/nix/store/l7dl288f0hv1ckyyh05x1v3am127pk0g-gcc-wrapper-12.2.0/bin -L/nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0 -L/nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0/../../../../lib64 -L/nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0/../../.. /nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib/../lib64/libstdc++.so -lm -lc -lgcc_s /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/lib/gcc/aarch64-unknown-linux-gnu/12.2.0/crtendS.o /nix/store/cpjpkqs9qg93nlphsnaazn15why6n8hq-glibc-2.35-224/lib/crtn.o  -g -O2   -Wl,-soname -Wl,libgctba.so.1 -o .libs/libgctba.so.1.5.0
libtool: link: ( cd ".libs" && rm -f "libcord.la" && ln -s "../libcord.la" "libcord.la" )
libtool: link: (cd ".libs" && rm -f "libgccpp.so.1" && ln -s "libgccpp.so.1.5.0" "libgccpp.so.1")
libtool: link: (cd ".libs" && rm -f "libgccpp.so" && ln -s "libgccpp.so.1.5.0" "libgccpp.so")
libtool: link: ( cd ".libs" && rm -f "libgccpp.la" && ln -s "../libgccpp.la" "libgccpp.la" )
libtool: link: (cd ".libs" && rm -f "libgctba.so.1" && ln -s "libgctba.so.1.5.0" "libgctba.so.1")
libtool: link: (cd ".libs" && rm -f "libgctba.so" && ln -s "libgctba.so.1.5.0" "libgctba.so")
libtool: link: ( cd ".libs" && rm -f "libgctba.la" && ln -s "../libgctba.la" "libgctba.la" )
make[1]: Leaving directory '/build/gc-8.2.2'
buildPhase completed in 8 minutes 19 seconds
running tests
check flags: -j24 SHELL=/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash VERBOSE=y check
make[1]: Entering directory '/build/gc-8.2.2'
make  cordtest gctest  leaktest middletest smashtest hugetest realloc_test staticrootstest  test_atomic_ops threadleaktest threadkey_test subthreadcreate_test initsecondarythread_test test_cpp disclaim_test disclaim_bench disclaim_weakmap_test libstaticrootslib_test.la libstaticrootslib2_test.la
make[2]: Entering directory '/build/gc-8.2.2'
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o cord/tests/cordtest.o cord/tests/cordtest.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/test.o tests/test.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/leak_test.o tests/leak_test.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/middle.o tests/middle.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/smash_test.o tests/smash_test.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/huge_test.o tests/huge_test.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/realloc_test.o tests/realloc_test.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE  -DSTATICROOTSLIB2 -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/staticrootstest-staticrootstest.o `test -f 'tests/staticrootstest.c' || echo './'`tests/staticrootstest.c
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/staticrootslib.lo tests/staticrootslib.c
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE  -DSTATICROOTSLIB2 -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/libstaticrootslib2_test_la-staticrootslib.lo `test -f 'tests/staticrootslib.c' || echo './'`tests/staticrootslib.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/test_atomic_ops.o tests/test_atomic_ops.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/thread_leak_test.o tests/thread_leak_test.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/threadkey_test.o tests/threadkey_test.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/subthread_create.o tests/subthread_create.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/initsecondarythread.o tests/initsecondarythread.c
g++ -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE  -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2  -c -o tests/test_cpp.o tests/test_cpp.cc
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/disclaim_test.o tests/disclaim_test.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/disclaim_bench.o tests/disclaim_bench.c
gcc -DHAVE_CONFIG_H   -I./include -I./include  -DGC_PTHREAD_START_STANDALONE    -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -c -o tests/disclaim_weakmap_test.o tests/disclaim_weakmap_test.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -c tests/staticrootslib.c  -fPIC -DPIC -o tests/.libs/staticrootslib.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DSTATICROOTSLIB2 -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -c tests/staticrootslib.c  -fPIC -DPIC -o tests/.libs/libstaticrootslib2_test_la-staticrootslib.o
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o middletest tests/middle.o  ./libgc.la  
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o hugetest tests/huge_test.o  ./libgc.la  
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o leaktest tests/leak_test.o  ./libgc.la  
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o initsecondarythread_test tests/initsecondarythread.o  ./libgc.la  -lpthread -ldl 
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o smashtest tests/smash_test.o  ./libgc.la  
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc -DSTATICROOTSLIB2 -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -no-undefined -rpath /nowhere  -o libstaticrootslib2_test.la  tests/libstaticrootslib2_test_la-staticrootslib.lo  ./libgc.la  
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o realloc_test tests/realloc_test.o  ./libgc.la  
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o test_atomic_ops tests/test_atomic_ops.o  ./libgc.la  -lpthread -ldl 
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o threadleaktest tests/thread_leak_test.o  ./libgc.la  -lpthread -ldl 
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o subthreadcreate_test tests/subthread_create.o  ./libgc.la  -lpthread -ldl 
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o threadkey_test tests/threadkey_test.o  ./libgc.la  -lpthread -ldl 
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address  -no-undefined -rpath /nowhere  -o libstaticrootslib_test.la  tests/staticrootslib.lo  ./libgc.la  
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/hugetest tests/huge_test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/middletest tests/middle.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o disclaim_bench tests/disclaim_bench.o  ./libgc.la  
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/leaktest tests/leak_test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/initsecondarythread_test tests/initsecondarythread.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/smashtest tests/smash_test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -shared  -fPIC -DPIC  tests/.libs/libstaticrootslib2_test_la-staticrootslib.o   -Wl,-rpath -Wl,/build/gc-8.2.2/.libs -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib ./.libs/libgc.so -lpthread -ldl  -g -O2   -Wl,-soname -Wl,libstaticrootslib2_test.so.0 -o .libs/libstaticrootslib2_test.so.0.0.0
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/test_atomic_ops tests/test_atomic_ops.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/subthreadcreate_test tests/subthread_create.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/realloc_test tests/realloc_test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/threadkey_test tests/threadkey_test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/threadleaktest tests/thread_leak_test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o disclaim_test tests/disclaim_test.o  ./libgc.la  -lpthread -ldl 
libtool: link: gcc -shared  -fPIC -DPIC  tests/.libs/staticrootslib.o   -Wl,-rpath -Wl,/build/gc-8.2.2/.libs -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib ./.libs/libgc.so -lpthread -ldl  -g -O2   -Wl,-soname -Wl,libstaticrootslib_test.so.0 -o .libs/libstaticrootslib_test.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libstaticrootslib2_test.so.0" && ln -s "libstaticrootslib2_test.so.0.0.0" "libstaticrootslib2_test.so.0")
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/disclaim_bench tests/disclaim_bench.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: (cd ".libs" && rm -f "libstaticrootslib2_test.so" && ln -s "libstaticrootslib2_test.so.0.0.0" "libstaticrootslib2_test.so")
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o cordtest cord/tests/cordtest.o ./libcord.la ./libgc.la 
libtool: link: ( cd ".libs" && rm -f "libstaticrootslib2_test.la" && ln -s "../libstaticrootslib2_test.la" "libstaticrootslib2_test.la" )
make[2]: 'libstaticrootslib2_test.la' is up to date.
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o disclaim_weakmap_test tests/disclaim_weakmap_test.o  ./libgc.la  -lpthread -ldl 
libtool: link: (cd ".libs" && rm -f "libstaticrootslib_test.so.0" && ln -s "libstaticrootslib_test.so.0.0.0" "libstaticrootslib_test.so.0")
libtool: link: (cd ".libs" && rm -f "libstaticrootslib_test.so" && ln -s "libstaticrootslib_test.so.0.0.0" "libstaticrootslib_test.so")
libtool: link: ( cd ".libs" && rm -f "libstaticrootslib_test.la" && ln -s "../libstaticrootslib_test.la" "libstaticrootslib_test.la" )
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/disclaim_test tests/disclaim_test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
make[2]: 'libstaticrootslib_test.la' is up to date.
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc -DSTATICROOTSLIB2 -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o staticrootstest tests/staticrootstest-staticrootstest.o   libstaticrootslib_test.la libstaticrootslib2_test.la ./libgc.la 
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/cordtest cord/tests/cordtest.o  ./.libs/libcord.so /build/gc-8.2.2/.libs/libgc.so ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/disclaim_weakmap_test tests/disclaim_weakmap_test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CXX   --mode=link g++ -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2    -o test_cpp tests/test_cpp.o libgccpp.la    ./libgc.la 
libtool: link: gcc -DSTATICROOTSLIB2 -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/staticrootstest tests/staticrootstest-staticrootstest.o  ./.libs/libstaticrootslib_test.so ./.libs/libstaticrootslib2_test.so /build/gc-8.2.2/.libs/libgc.so ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nowhere -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash ./libtool  --tag=CC   --mode=link gcc   -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address    -o gctest tests/test.o  ./libgc.la  -lpthread -ldl 
libtool: link: g++ -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -o .libs/test_cpp tests/test_cpp.o  ./.libs/libgccpp.so /build/gc-8.2.2/.libs/libgc.so /nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib/../lib64/libstdc++.so -lm ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib -Wl,-rpath -Wl,/nix/store/wksb669zl17dav5390l0z5iam47b99lj-gcc-12.2.0-lib/lib/../lib64
libtool: link: gcc -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -g -O2 -fno-strict-aliasing -Wno-frame-address -o .libs/gctest tests/test.o  ./.libs/libgc.so -lpthread -ldl -Wl,-rpath -Wl,/nix/store/nzm6w26vxwg62nj914zmhi2r2ya94w7b-boehm-gc-8.2.2/lib
make[2]: Leaving directory '/build/gc-8.2.2'
make  check-TESTS
make[2]: Entering directory '/build/gc-8.2.2'
make[3]: Entering directory '/build/gc-8.2.2'
PASS: test_atomic_ops
PASS: cordtest
PASS: leaktest
PASS: hugetest
PASS: initsecondarythread_test
PASS: threadleaktest
PASS: smashtest
PASS: middletest
PASS: subthreadcreate_test
PASS: disclaim_test
./test-driver: line 112: 11462 Aborted                 (core dumped) "$@" >> "$log_file" 2>&1
FAIL: gctest
PASS: threadkey_test
PASS: realloc_test
PASS: staticrootstest
PASS: test_cpp
PASS: disclaim_weakmap_test
PASS: disclaim_bench
================================
   gc 8.2.2: ./test-suite.log
================================

# TOTAL: 17
# PASS:  16
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: gctest
============

Switched to incremental mode
Emulating dirty bits with mprotect/signals
Found nonzero at 0x7fffeec29000 - allocator is broken
Test failed
qemu: uncaught target signal 6 (Aborted) - core dumped
FAIL gctest (exit status: 134)

============================================================================
Testsuite summary for gc 8.2.2
============================================================================
# TOTAL: 17
# PASS:  16
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to https://github.com/ivmai/bdwgc/issues
============================================================================
make[3]: *** [Makefile:2048: test-suite.log] Error 1
make[3]: Leaving directory '/build/gc-8.2.2'
make[2]: *** [Makefile:2156: check-TESTS] Error 2
make[2]: Leaving directory '/build/gc-8.2.2'
make[1]: *** [Makefile:2512: check-am] Error 2
make[1]: Leaving directory '/build/gc-8.2.2'
make: *** [Makefile:1933: check-recursive] Error 1
ivmai commented 1 year ago

Is this always reproducible?

Found nonzero at ... - allocator is broken

I haven't seen such an error yet. Thank you for reporting. Would be nice to investigate the root cause.

ivmai commented 1 year ago

Please also check on master.

ConnorBaker commented 1 year ago

Sorry to bump this -- I'm able to reproduce with 8.2.2, 8.2.4, and master (4306149f0bea951a9fb2c967a7b01c292c8aa78f).

boehm-gc-aarch64-linux> ================================
boehm-gc-aarch64-linux>    gc 8.3.0: ./test-suite.log
boehm-gc-aarch64-linux> ================================
boehm-gc-aarch64-linux> 
boehm-gc-aarch64-linux> # TOTAL: 17
boehm-gc-aarch64-linux> # PASS:  16
boehm-gc-aarch64-linux> # SKIP:  0
boehm-gc-aarch64-linux> # XFAIL: 0
boehm-gc-aarch64-linux> # FAIL:  1
boehm-gc-aarch64-linux> # XPASS: 0
boehm-gc-aarch64-linux> # ERROR: 0
boehm-gc-aarch64-linux> 
boehm-gc-aarch64-linux> .. contents:: :depth: 2
boehm-gc-aarch64-linux> 
boehm-gc-aarch64-linux> FAIL: gctest
boehm-gc-aarch64-linux> ============
boehm-gc-aarch64-linux> 
boehm-gc-aarch64-linux> Switched to incremental mode
boehm-gc-aarch64-linux> Emulating dirty bits with mprotect/signals
boehm-gc-aarch64-linux> **
boehm-gc-aarch64-linux> ERROR:../plugins/core.c:221:qemu_plugin_vcpu_init_hook: assertion failed: (success)
boehm-gc-aarch64-linux> Bail out! ERROR:../plugins/core.c:221:qemu_plugin_vcpu_init_hook: assertion failed: (success)
boehm-gc-aarch64-linux> **
boehm-gc-aarch64-linux> ERROR:../accel/tcg/cpu-exec.c:532:cpu_exec_longjmp_cleanup: assertion failed: (cpu == current_cpu)
boehm-gc-aarch64-linux> Bail out! ERROR:../accel/tcg/cpu-exec.c:532:cpu_exec_longjmp_cleanup: assertion failed: (cpu == current_cpu)
boehm-gc-aarch64-linux> Child process failed, pid= 15699, status= 0x7f00
boehm-gc-aarch64-linux> Test failed
boehm-gc-aarch64-linux> qemu: uncaught target signal 6 (Aborted) - core dumped
boehm-gc-aarch64-linux> FAIL gctest (exit status: 134)
boehm-gc-aarch64-linux> 
boehm-gc-aarch64-linux> ============================================================================
boehm-gc-aarch64-linux> Testsuite summary for gc 8.3.0
boehm-gc-aarch64-linux> ============================================================================
boehm-gc-aarch64-linux> # TOTAL: 17
boehm-gc-aarch64-linux> # PASS:  16
boehm-gc-aarch64-linux> # SKIP:  0
boehm-gc-aarch64-linux> # XFAIL: 0
boehm-gc-aarch64-linux> # FAIL:  1
boehm-gc-aarch64-linux> # XPASS: 0
boehm-gc-aarch64-linux> # ERROR: 0
boehm-gc-aarch64-linux> ============================================================================
boehm-gc-aarch64-linux> See ./test-suite.log
boehm-gc-aarch64-linux> Please report to https://github.com/ivmai/bdwgc/issues
boehm-gc-aarch64-linux> ============================================================================
boehm-gc-aarch64-linux> make[3]: *** [Makefile:2068: test-suite.log] Error 1
boehm-gc-aarch64-linux> make[3]: Leaving directory '/build/source'
boehm-gc-aarch64-linux> make[2]: *** [Makefile:2176: check-TESTS] Error 2
boehm-gc-aarch64-linux> make[2]: Leaving directory '/build/source'
boehm-gc-aarch64-linux> make[1]: *** [Makefile:2532: check-am] Error 2
boehm-gc-aarch64-linux> make[1]: Leaving directory '/build/source'
boehm-gc-aarch64-linux> make: *** [Makefile:1953: check-recursive] Error 1
ivmai commented 1 year ago

Thank you for reporting! What is signal 6? Has child process failed because of Qemu issue? Do you have any insights about the failure?

ConnorBaker commented 1 year ago

Unfortunately I have no ideas about what signal 6 could be or if it's an issue with Qemu.

I'm using NixOS on x86_64-linux with Qemu to emulate an aarch64-linux builder: https://github.com/ConnorBaker/nixos-configs/blob/47d40f6f060a000c4dbe0fe412c102e163df52be/devices/nixos-desktop/hardware.nix#L5.

For the moment I've worked around this by disabling the check phase (https://github.com/ConnorBaker/nixos-configs/blob/47d40f6f060a000c4dbe0fe412c102e163df52be/nixpkgs-overlays.nix#L11-L19), but that causes a large rebuild of a bunch of Nixpkgs.