Re: [Gc] "include/private/gcconfig.h", line 604: #error: "The collector has not been ported to this machine/OS combination."

Dennis Clarke <[email protected]> Wed, 23 Nov 2016 15:52:31 -0500
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
On 11/23/2016 02:53 PM, Dennis Clarke wrote:
> On 11/23/2016 02:23 PM, Bruce Hoult wrote:
>> Does it work if you disable threads (and therefore don't use atomic ops)?
>>
>
>
> I can give that a try but, would that be wise? I need libgc as a
> downstream dependency for gcc because gcc needs autogen which needs
> guile which needs libgc which needs atomic_ops.
>
> Welcome to dependency hell. :-)
>
> So I can give it a try and see what happens but I would think the right
> path to take is to sort out the code. However, first things first as
> they say. Let me spin this and see what configure option is needed to
> disable threads. Temporarily.
>

We seem to have a good result !

mimas$ elfdump -devl ./.libs/libgc.so.1.0.3

ELF Header
   ei_magic:   { 0x7f, E, L, F }
   ei_class:   ELFCLASS64          ei_data:       ELFDATA2MSB
   ei_osabi:   ELFOSABI_SOLARIS    ei_abiversion: EAV_SUNW_CURRENT
   e_machine:  EM_SPARCV9          e_version:     EV_CURRENT
   e_type:     ET_DYN
   e_flags:    [ EF_SPARCV9_TSO EF_SPARC_SUN_US1 ]
   e_entry:                     0  e_ehsize:     64  e_shstrndx:  29
   e_shoff:               0x94a28  e_shentsize:  64  e_shnum:     31
   e_phoff:                  0x40  e_phentsize:  56  e_phnum:     3

Version Needed Section:  .SUNW_version
      index  file                        version
        [2]  libc.so.1                   SUNW_1.1
        [3]                              SUNW_0.7             [ INFO ]
        [4]                              SUNWprivate_1.1

Dynamic Section:  .dynamic
      index  tag                value
        [0]  NEEDED            0x3196              libdl.so.1
        [1]  NEEDED            0x316a              libc.so.1
        [2]  INIT              0x22650
        [3]  FINI              0x22660
        [4]  SONAME            0x31a1              libgc.so.1
        [5]  RUNPATH           0x31ac              /usr/local/lib
        [6]  RPATH             0x31ac              /usr/local/lib
        [7]  HASH              0x348
        [8]  STRTAB            0x5010
        [9]  STRSZ             0x33bb
       [10]  SYMTAB            0x1680
       [11]  SYMENT            0x18
       [12]  CHECKSUM          0x3da9
       [13]  VERNEED           0x83d0
       [14]  VERNEEDNUM        0x1
       [15]  RELACOUNT         0x7
       [16]  PLTRELSZ          0x1938
       [17]  PLTREL            0x7
       [18]  JMPREL            0x9d08
       [19]  RELA              0x88e0
       [20]  RELASZ            0x2d60
       [21]  RELAENT           0x18
       [22]  FLAGS             0                   0
       [23]  FLAGS_1           0                   0
       [24]  SUNW_STRPAD       0x200
       [25]  SUNW_LDMACH       0x2b                EM_SPARCV9
       [26]  PLTGOT            0x124d00
    [27-37]  NULL              0

mimas$ mcs -p ./.libs/libgc.so.1.0.3 | sort -u

./.libs/libgc.so.1.0.3:
@(#)auxv.h      1.39    12/02/06 SMI
@(#)auxv_SPARC.h        1.11    13/03/15 SMI
@(#)ccompile.h  1.2     04/11/08 SMI
@(#)dlfcn.h     1.46    11/01/11 SMI
@(#)elf.h       1.6     92/07/14 SMI
@(#)elf.h       1.63    12/04/11 SMI
@(#)elftypes.h  1.22    04/03/29 SMI
@(#)errno.h     1.17    03/01/03 SMI
@(#)errno.h     1.20    00/01/12 SMI
@(#)fault.h     1.13    99/08/15 SMI
@(#)fcntl.h     1.17    06/03/10 SMI
@(#)fcntl.h     1.52    07/03/05 SMI
@(#)feature_tests.h     1.26    11/04/12 SMI
@(#)frame.h     1.17    03/04/21 SMI
@(#)int_limits.h        1.9     04/09/28 SMI
@(#)int_types.h 1.10    04/09/28 SMI
@(#)isa_defs.h  1.30    11/03/31 SMI
@(#)libelf.h    1.28    11/01/11 SMI
@(#)limits.h    1.60    11/04/12 SMI
@(#)limits_iso.h        1.2     03/12/04 SMI
@(#)link.h      1.49    11/01/11 SMI
@(#)link.h      1.71    11/01/11 SMI
@(#)machsig.h   1.15    99/08/15 SMI
@(#)machtypes.h 1.13    99/05/04 SMI
@(#)mman.h      1.49    12/01/17 SMI
@(#)old_procfs.h        1.43    03/07/09 SMI
@(#)procfs.h    1.38    12/01/17 SMI
@(#)procfs_isa.h        1.7     98/03/10 SMI
@(#)procset.h   1.26    11/04/18 SMI
@(#)regset.h    1.29    07/09/06 SMI
@(#)select.h    1.19    04/01/28 SMI
@(#)setjmp.h    1.38    04/09/28 SMI
@(#)setjmp_iso.h        1.2     04/09/28 SMI
@(#)siginfo.h   1.59    04/07/15 SMI
@(#)signal.h    1.43    04/09/28 SMI
@(#)signal.h    1.67    13/09/11 SMI
@(#)signal_iso.h        1.1     99/08/09 SMI
@(#)signal_iso.h        1.6     03/05/02 SMI
@(#)stat.h      1.12    10/01/15 SMI
@(#)stat_impl.h 1.4     03/12/04 SMI
@(#)stdarg.h    1.47    04/09/28 SMI
@(#)stdarg_c99.h        1.2     04/09/28 SMI
@(#)stdarg_iso.h        1.4     04/11/19 SMI
@(#)stddef.h    1.18    04/09/28 SMI
@(#)stddef_iso.h        1.2     03/03/06 SMI
@(#)stdio.h     1.86    13/09/11 SMI
@(#)stdio_c99.h 1.2     04/03/29 SMI
@(#)stdio_impl.h        1.15    07/03/05 SMI
@(#)stdio_iso.h 1.8     05/08/16 SMI
@(#)stdio_tag.h 1.4     04/09/28 SMI
@(#)stdlib.h    1.52    12/08/01 SMI
@(#)stdlib_c99.h        1.2     04/03/29 SMI
@(#)stdlib_iso.h        1.9     04/09/28 SMI
@(#)string.h    1.27    07/01/14 SMI
@(#)string_iso.h        1.5     04/06/18 SMI
@(#)syscall.h   1.113   14/11/11 SMI
@(#)time.h      1.45    08/01/09 SMI
@(#)time.h      2.79    13/07/01 SMI
@(#)time_impl.h 1.11    05/05/19 SMI
@(#)time_iso.h  1.4     04/09/07 SMI
@(#)types.h     1.90    14/04/07 SMI
@(#)ucontext.h  1.22    04/09/28 SMI
@(#)ucontext.h  1.31    03/12/18 SMI
@(#)unistd.h    1.46    12/01/17 SMI
@(#)unistd.h    1.76    06/03/10 SMI
@(#)va_impl.h   1.1     04/11/19 SMI
@(#)va_list.h   1.15    04/11/19 SMI
@(#)vmparam.h   2.35    98/06/03 SMI
acomp: Sun C 5.13 SunOS_sparc 2014/10/20
as: Sun Compiler Common 12.4 SunOS_sparc 2014/10/20
cg: Sun Compiler Common 12.4 SunOS_sparc 2014/10/20
iropt: Sun Compiler Common 12.4 SunOS_sparc 2014/10/20
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.1521


Hopefully there is also a testsuite ?


Dennis