Hi, I haven't been able to build lang/mono on -current ( or elsewhere, for that matter ) for quite some time. I tend to try periodically on version jumps and pkgsrc updates to build it - not that I have a particular use for it, but for the bits needed by gnome.
The failure I got this time was of an internal gcc compiler error, as follows: ---------- .... CXXLD libmini.la CCLD libmonoboehm-2.0.la gcc: internal compiler error: Segmentation fault (program ld received signal 11) Please submit a full bug report, with preprocessed source if appropriate. See <http://www.NetBSD.org/support/send-pr.html> for instructions. gmake[4]: *** [Makefile:1267: libmonoboehm-2.0.la] Error 4 gmake[4]: Leaving directory '/usr/pkgsrc/lang/mono/work/mono-4.0.4/mono/mini' gmake[3]: *** [Makefile:1176: all] Error 2 gmake[3]: Leaving directory '/usr/pkgsrc/lang/mono/work/mono-4.0.4/mono/mini' gmake[2]: *** [Makefile:438: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/pkgsrc/lang/mono/work/mono-4.0.4/mono' gmake[1]: *** [Makefile:522: all-recursive] Error 1 gmake[1]: Leaving directory '/usr/pkgsrc/lang/mono/work/mono-4.0.4' gmake: *** [Makefile:449: all] Error 2 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/lang/mono *** Error code 1 --------- For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/ld... (No debugging symbols found in /usr/bin/ld) [New process 1] Core was generated by `ld'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000740365cc1cb8 in bfd_getl32 () from /usr/lib/libbfd.so.16 (gdb) bt #0 0x0000740365cc1cb8 in bfd_getl32 () from /usr/lib/libbfd.so.16 #1 0x0000740365ca22f4 in bfd_elf64_swap_symbol_in () from /usr/lib/libbfd.so.16 #2 0x0000740365ca9798 in ?? () from /usr/lib/libbfd.so.16 #3 0x0000740365c8db38 in bfd_elf_final_link () from /usr/lib/libbfd.so.16 #4 0x00000000abc2401a in ldwrite () #5 0x00000000abc53c81 in main () ... It fails if I add --with-gc=none: ... CC libmonoruntime_static_la-boehm-gc.lo CCLD libmonoruntime-static.la CC pedump.o CCLD pedump ld: ./.libs/libmonoruntime.a(libmonoruntime_la-string-icalls.o): in function `ves_icall_System_String_InternalSetLength': /usr/pkgsrc/lang/mono/work/mono-4.0.4/mono/metadata/string-icalls.c:72: undefined reference to `mono_gc_set_string_length' ld: pedump: hidden symbol `mono_gc_set_string_length' isn't defined ld: final link failed: bad value gmake[3]: *** [Makefile:1327: pedump] Error 1 gmake[3]: Leaving directory '/usr/pkgsrc/lang/mono/work/mono-4.0.4/mono/metadata' gmake[2]: *** [Makefile:438: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/pkgsrc/lang/mono/work/mono-4.0.4/mono' gmake[1]: *** [Makefile:522: all-recursive] Error 1 gmake[1]: Leaving directory '/usr/pkgsrc/lang/mono/work/mono-4.0.4' gmake: *** [Makefile:449: all] Error 2 *** Error code 2 ..... $ gcc --version gcc (nb3 20190319) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ uname -a NetBSD ymir 9.99.7 NetBSD 9.99.7 (GENERIC) #9: Mon Aug 12 21:26:12 BST 2019 sysbuild@ymir:/home/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC amd64 ---- pkgsrc is also current. Chavdar -- ----
