Discussion:
[Gc] "include/private/gcconfig.h", line 604: #error: "The collector has not been ported to this machine/OS combination."
Dennis Clarke
2016-11-21 13:56:03 UTC
Permalink
A somewhat heartbreaking message seen on my Solaris 10 SPARC server
wherein I use the very strict Oracle Studio 12.4 compiler tools with
strict C99 compliance CFLAGS :

***@mimas_$ /usr/bin/time -p /usr/local/bin/gmake
gmake[1]: Entering directory
`/usr/local/build/garbage_collector/gc-7.6.0_SunOS5.10_sparcv9.001'
source='allchblk.c' object='allchblk.lo' libtool=yes \
DEPDIR=.deps depmode=dashXmstdout /usr/local/bin/bash ./depcomp \
/usr/local/bin/bash ./libtool --tag=CC --mode=compile
/opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H -I./include -I./include
-I./libatomic_ops/src -I./libatomic_ops/src -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none
-errhdr=%user -erroff=%none -errtags=yes -errfmt=error -errshort=full
-xstrconst -xildoff -xmemalign=8s -xnolibmil -Xc -xcode=pic32
-xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none
-xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600 -c -o allchblk.lo allchblk.c
libtool: compile: /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xc
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600 -c
allchblk.c -KPIC -DPIC -o .libs/allchblk.o
"include/private/gcconfig.h", line 604: #error: "The collector has not
been ported to this machine/OS combination."
c99: acomp failed for allchblk.c
gmake[1]: *** [allchblk.lo] Error 1
gmake[1]: Leaving directory
`/usr/local/build/garbage_collector/gc-7.6.0_SunOS5.10_sparcv9.001'
gmake: *** [all-recursive] Error 1

real 7.35
user 0.00
sys 0.00


This could just be because I start the process using C99 compliance
mode and a collection of restrictive and strict CFLAGS with a debug
compile such that I can single step along later.

My CFLAGS looks like this :

***@mimas_$ echo $CFLAGS
-m64 -xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xc
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600


Note the option -Xc and -D_XOPEN_SOURCE=600 there. Those two alone are
usually enough to catch every possible variation that strays away from
C99 and SUSv3. Enitely too pedantic I know but it is a very good test
to do on just about any open source code.
--enable-dependency-tracking --enable-threads=posix \
--enable-cplusplus --disable-java-finalization \
--enable-large-config --enable-handle-fork \
--with-libatomic-ops=check
Note that I have libatomic_ops-7.4.4 extracted and in a sub-directory
called libatomic_ops thus :

***@mimas_$ ln -s ./libatomic_ops-7.4.4 ./libatomic_ops

So configure runs fine and outputs this :

checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking GC version numbers... major=7 minor=6 micro=0
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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 for style of include used by make... GNU
checking for gcc... /opt/solarisstudio12.4/bin/c99
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... no
checking whether /opt/solarisstudio12.4/bin/c99 accepts -g... yes
checking for /opt/solarisstudio12.4/bin/c99 option to accept ISO C89...
none needed
checking whether /opt/solarisstudio12.4/bin/c99 understands -c and -o
together... yes
checking dependency style of /opt/solarisstudio12.4/bin/c99... dashXmstdout
checking whether we are using the GNU C++ compiler... no
checking whether /opt/solarisstudio12.4/bin/CC accepts -g... yes
checking dependency style of /opt/solarisstudio12.4/bin/CC... dashXmstdout
checking dependency style of /opt/solarisstudio12.4/bin/c99... dashXmstdout
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/sparcv9/ld
checking if the linker (/usr/ccs/bin/sparcv9/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/xpg4/bin/nm -p
checking the name lister (/usr/xpg4/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for /usr/ccs/bin/sparcv9/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/xpg4/bin/nm -p output from
/opt/solarisstudio12.4/bin/c99 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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/c99 -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 for /opt/solarisstudio12.4/bin/c99 option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.4/bin/c99 PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/c99 static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/c99 linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/solarisstudio12.4/bin/CC -E
checking whether the /opt/solarisstudio12.4/bin/CC linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking for /opt/solarisstudio12.4/bin/CC option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.4/bin/CC PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/CC static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/CC supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/CC supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/CC linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for inline... inline
checking for pthread_self in -lpthread... yes
c99: Warning: Option -nt-multi-os-directory passed to ld, if ld is
invoked, ignored otherwise
usage: c99 [ options ] files. Use 'c99 -flags' for details
checking for xlc... no
checking for dlopen in -ldl... no
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking whether to build shared libraries... yes
checking which machine-dependent code should be used... sparc_mach_dep.lo
checking whether Solaris gcc optimization fix is necessary... no
checking for dladdr... no
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 pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ATOMIC_OPS... no
checking which libatomic_ops to use... internal
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
=== configuring in libatomic_ops
(/usr/local/build/garbage_collector/gc-7.6.0_SunOS5.10_sparcv9.001/libatomic_ops)
configure: running /usr/local/bin/bash ./configure
--disable-option-checking '--prefix=/usr/local'
'--disable-silent-rules' '--enable-dependency-tracking'
'--enable-threads=posix' '--enable-cplusplus'
'--disable-java-finalization' '--enable-large-config'
'--enable-handle-fork' '--with-libatomic-ops=check'
'CC=/opt/solarisstudio12.4/bin/c99' 'CFLAGS=-m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none
-errhdr=%user -erroff=%none -errtags=yes -errfmt=error -errshort=full
-xstrconst -xildoff -xmemalign=8s -xnolibmil -Xc -xcode=pic32
-xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none
-xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600' 'LDFLAGS=-L/usr/local/lib'
'CPPFLAGS=-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE'
'CXX=/opt/solarisstudio12.4/bin/CC' 'CXXFLAGS=-m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -dalign
-erroff=%none -errtags=yes -ftrap=%none -g -xcode=pic32 -m64 -mc
-xunroll=1 -xbuiltin=%none -xtarget=ultra2e -xdepend=no -xnolibmopt
-xlinkopt=0 -xnolibmil -xregs=no%appl -xs' --cache-file=/dev/null --srcdir=.
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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 for style of include used by make... GNU
checking for gcc... /opt/solarisstudio12.4/bin/c99
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... no
checking whether /opt/solarisstudio12.4/bin/c99 accepts -g... yes
checking for /opt/solarisstudio12.4/bin/c99 option to accept ISO C89...
none needed
checking whether /opt/solarisstudio12.4/bin/c99 understands -c and -o
together... yes
checking dependency style of /opt/solarisstudio12.4/bin/c99... dashXmstdout
checking dependency style of /opt/solarisstudio12.4/bin/c99... dashXmstdout
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/sparcv9/ld -64
checking if the linker (/usr/ccs/bin/sparcv9/ld -64) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/xpg4/bin/nm -p
checking the name lister (/usr/xpg4/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for /usr/ccs/bin/sparcv9/ld -64 option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/xpg4/bin/nm -p output from
/opt/solarisstudio12.4/bin/c99 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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/c99 -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 for /opt/solarisstudio12.4/bin/c99 option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.4/bin/c99 PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/c99 static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/c99 linker
(/usr/ccs/bin/sparcv9/ld -64 -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for PIC compiler flag... -Kpic
checking for pthread_self in -lpthread... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating pkgconfig/atomic_ops.pc
config.status: creating pkgconfig/atomic_ops-uninstalled.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands


That seems to look fine but I get Makefile's that all have slightly
broken CFLAGS in them because an option "-O" has been pre-pended to the
CFLAGS. That options doesn't mean anything to the compiler and so it
halts the whole process. I manually edit the Makefile's to remove the
option -O and then run GNU make. Then I rapidly get that error message.

I figure I could now switch over to cc and some more relaxed CFLAGS and
give this a try again and see what happens but if it is possible to
push the sources past a very strict compiler then the results could be
of value to the project.

Dennis Clarke

ps: I'm not really pedantic .. I just like to test with C99 first.
Bruce Hoult
2016-11-21 21:22:43 UTC
Permalink
You might want to put some #error lines temporarily into here (in
gcconfig.h) to see what is failing to detect your machine. And/or just run
the preprocessor and examine the ouput.

# if defined(sun) && (defined(sparc) || defined(__sparc))
# define SPARC
/* Test for SunOS 5.x */
# include <errno.h>
# define SOLARIS
# define mach_type_known
# endif
# if defined(sparc) && defined(unix) && !defined(sun) && !defined(linux) \
&& !defined(__OpenBSD__) && !defined(__NetBSD__) \
&& !defined(__FreeBSD__) && !defined(__DragonFly__)
# define SPARC
# define DRSNX
# define mach_type_known
# endif
Post by Dennis Clarke
A somewhat heartbreaking message seen on my Solaris 10 SPARC server
wherein I use the very strict Oracle Studio 12.4 compiler tools with
gmake[1]: Entering directory `/usr/local/build/garbage_coll
ector/gc-7.6.0_SunOS5.10_sparcv9.001'
source='allchblk.c' object='allchblk.lo' libtool=yes \
DEPDIR=.deps depmode=dashXmstdout /usr/local/bin/bash ./depcomp \
/usr/local/bin/bash ./libtool --tag=CC --mode=compile
/opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H -I./include -I./include
-I./libatomic_ops/src -I./libatomic_ops/src -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user
-erroff=%none -errtags=yes -errfmt=error -errshort=full -xstrconst -xildoff
-xmemalign=8s -xnolibmil -Xc -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g
-xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
-D_XOPEN_SOURCE=600 -c -o allchblk.lo allchblk.c
libtool: compile: /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xc
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600 -c
allchblk.c -KPIC -DPIC -o .libs/allchblk.o
"include/private/gcconfig.h", line 604: #error: "The collector has not
been ported to this machine/OS combination."
c99: acomp failed for allchblk.c
gmake[1]: *** [allchblk.lo] Error 1
gmake[1]: Leaving directory `/usr/local/build/garbage_coll
ector/gc-7.6.0_SunOS5.10_sparcv9.001'
gmake: *** [all-recursive] Error 1
real 7.35
user 0.00
sys 0.00
This could just be because I start the process using C99 compliance
mode and a collection of restrictive and strict CFLAGS with a debug
compile such that I can single step along later.
-m64 -xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xc
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600
Note the option -Xc and -D_XOPEN_SOURCE=600 there. Those two alone are
usually enough to catch every possible variation that strays away from
C99 and SUSv3. Enitely too pedantic I know but it is a very good test
to do on just about any open source code.
--enable-dependency-tracking --enable-threads=posix \
--enable-cplusplus --disable-java-finalization \
--enable-large-config --enable-handle-fork \
--with-libatomic-ops=check
Note that I have libatomic_ops-7.4.4 extracted and in a sub-directory
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking GC version numbers... major=7 minor=6 micro=0
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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 for style of include used by make... GNU
checking for gcc... /opt/solarisstudio12.4/bin/c99
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... no
checking whether /opt/solarisstudio12.4/bin/c99 accepts -g... yes
checking for /opt/solarisstudio12.4/bin/c99 option to accept ISO C89...
none needed
checking whether /opt/solarisstudio12.4/bin/c99 understands -c and -o
together... yes
checking dependency style of /opt/solarisstudio12.4/bin/c99...
dashXmstdout
checking whether we are using the GNU C++ compiler... no
checking whether /opt/solarisstudio12.4/bin/CC accepts -g... yes
checking dependency style of /opt/solarisstudio12.4/bin/CC... dashXmstdout
checking dependency style of /opt/solarisstudio12.4/bin/c99...
dashXmstdout
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/sparcv9/ld
checking if the linker (/usr/ccs/bin/sparcv9/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/xpg4/bin/nm -p
checking the name lister (/usr/xpg4/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for /usr/ccs/bin/sparcv9/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/xpg4/bin/nm -p output from
/opt/solarisstudio12.4/bin/c99 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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/c99 -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 for /opt/solarisstudio12.4/bin/c99 option to produce PIC... -KPIC
-DPIC
checking if /opt/solarisstudio12.4/bin/c99 PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/c99 static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/c99 linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/solarisstudio12.4/bin/CC -E
checking whether the /opt/solarisstudio12.4/bin/CC linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking for /opt/solarisstudio12.4/bin/CC option to produce PIC... -KPIC
-DPIC
checking if /opt/solarisstudio12.4/bin/CC PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/CC static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/CC supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/CC supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/CC linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for inline... inline
checking for pthread_self in -lpthread... yes
c99: Warning: Option -nt-multi-os-directory passed to ld, if ld is
invoked, ignored otherwise
usage: c99 [ options ] files. Use 'c99 -flags' for details
checking for xlc... no
checking for dlopen in -ldl... no
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking whether to build shared libraries... yes
checking which machine-dependent code should be used... sparc_mach_dep.lo
checking whether Solaris gcc optimization fix is necessary... no
checking for dladdr... no
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 pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ATOMIC_OPS... no
checking which libatomic_ops to use... internal
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
=== configuring in libatomic_ops (/usr/local/build/garbage_coll
ector/gc-7.6.0_SunOS5.10_sparcv9.001/libatomic_ops)
configure: running /usr/local/bin/bash ./configure
--disable-option-checking '--prefix=/usr/local' '--disable-silent-rules'
'--enable-dependency-tracking' '--enable-threads=posix'
'--enable-cplusplus' '--disable-java-finalization' '--enable-large-config'
'--enable-handle-fork' '--with-libatomic-ops=check'
'CC=/opt/solarisstudio12.4/bin/c99' 'CFLAGS=-m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user
-erroff=%none -errtags=yes -errfmt=error -errshort=full -xstrconst -xildoff
-xmemalign=8s -xnolibmil -Xc -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g
-xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
-D_XOPEN_SOURCE=600' 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE'
'CXX=/opt/solarisstudio12.4/bin/CC' 'CXXFLAGS=-m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -dalign
-erroff=%none -errtags=yes -ftrap=%none -g -xcode=pic32 -m64 -mc -xunroll=1
-xbuiltin=%none -xtarget=ultra2e -xdepend=no -xnolibmopt -xlinkopt=0
-xnolibmil -xregs=no%appl -xs' --cache-file=/dev/null --srcdir=.
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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 for style of include used by make... GNU
checking for gcc... /opt/solarisstudio12.4/bin/c99
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... no
checking whether /opt/solarisstudio12.4/bin/c99 accepts -g... yes
checking for /opt/solarisstudio12.4/bin/c99 option to accept ISO C89...
none needed
checking whether /opt/solarisstudio12.4/bin/c99 understands -c and -o
together... yes
checking dependency style of /opt/solarisstudio12.4/bin/c99...
dashXmstdout
checking dependency style of /opt/solarisstudio12.4/bin/c99...
dashXmstdout
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/sparcv9/ld -64
checking if the linker (/usr/ccs/bin/sparcv9/ld -64) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/xpg4/bin/nm -p
checking the name lister (/usr/xpg4/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for /usr/ccs/bin/sparcv9/ld -64 option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/xpg4/bin/nm -p output from
/opt/solarisstudio12.4/bin/c99 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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/c99 -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 for /opt/solarisstudio12.4/bin/c99 option to produce PIC... -KPIC
-DPIC
checking if /opt/solarisstudio12.4/bin/c99 PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/c99 static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/c99 linker
(/usr/ccs/bin/sparcv9/ld -64 -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for PIC compiler flag... -Kpic
checking for pthread_self in -lpthread... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating pkgconfig/atomic_ops.pc
config.status: creating pkgconfig/atomic_ops-uninstalled.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
That seems to look fine but I get Makefile's that all have slightly
broken CFLAGS in them because an option "-O" has been pre-pended to the
CFLAGS. That options doesn't mean anything to the compiler and so it
halts the whole process. I manually edit the Makefile's to remove the
option -O and then run GNU make. Then I rapidly get that error message.
I figure I could now switch over to cc and some more relaxed CFLAGS and
give this a try again and see what happens but if it is possible to
push the sources past a very strict compiler then the results could be
of value to the project.
Dennis Clarke
ps: I'm not really pedantic .. I just like to test with C99 first.
_______________________________________________
bdwgc mailing list
https://lists.opendylan.org/mailman/listinfo/bdwgc
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Bruce Hoult
2016-11-22 11:52:05 UTC
Permalink
To amplify some more .. the only thing that "The collector has not been
ported to this machine/OS combination." means is that no one tried it with
your particular combination of machine/compiler. If your machine is similar
to others that work -- or if it works with other compilers -- then the
chances are good that the problem is simply that your compiler isn't
defining the preprocessor macros the header files are looking for.

You can find what preprocessor macros are defined with:

gcc -dM -E - </dev/null

Well, that works for gcc, g++, clang, clang++.

I'm not familiar with your compiler, but it appears that you're using the
-Xc flag and according to this page ...

https://docs.oracle.com/cd/E19205-01/819-5265/6n7c29df6/index.html

.. when -Xc is used none of "sun", "sparc" or "unix" are defined. So you
might try adding tests for "__sun", "__sparc" and "__unix" to the tests.

e.g.

# if (defined(sun) || defined(__sun)) && (defined(sparc) ||
defined(__sparc))
# define SPARC
/* Test for SunOS 5.x */
# include <errno.h>
# define SOLARIS
# define mach_type_known
# endif

This might or might not be enough to make everything work properly, but at
least it means the build system will now try to compile the code.
Post by Bruce Hoult
You might want to put some #error lines temporarily into here (in
gcconfig.h) to see what is failing to detect your machine. And/or just run
the preprocessor and examine the ouput.
# if defined(sun) && (defined(sparc) || defined(__sparc))
# define SPARC
/* Test for SunOS 5.x */
# include <errno.h>
# define SOLARIS
# define mach_type_known
# endif
# if defined(sparc) && defined(unix) && !defined(sun) && !defined(linux) \
&& !defined(__OpenBSD__) && !defined(__NetBSD__) \
&& !defined(__FreeBSD__) && !defined(__DragonFly__)
# define SPARC
# define DRSNX
# define mach_type_known
# endif
Post by Dennis Clarke
A somewhat heartbreaking message seen on my Solaris 10 SPARC server
wherein I use the very strict Oracle Studio 12.4 compiler tools with
gmake[1]: Entering directory `/usr/local/build/garbage_coll
ector/gc-7.6.0_SunOS5.10_sparcv9.001'
source='allchblk.c' object='allchblk.lo' libtool=yes \
DEPDIR=.deps depmode=dashXmstdout /usr/local/bin/bash ./depcomp \
/usr/local/bin/bash ./libtool --tag=CC --mode=compile
/opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H -I./include -I./include
-I./libatomic_ops/src -I./libatomic_ops/src -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user
-erroff=%none -errtags=yes -errfmt=error -errshort=full -xstrconst -xildoff
-xmemalign=8s -xnolibmil -Xc -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g
-xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
-D_XOPEN_SOURCE=600 -c -o allchblk.lo allchblk.c
libtool: compile: /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xc
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600 -c
allchblk.c -KPIC -DPIC -o .libs/allchblk.o
"include/private/gcconfig.h", line 604: #error: "The collector has not
been ported to this machine/OS combination."
c99: acomp failed for allchblk.c
gmake[1]: *** [allchblk.lo] Error 1
gmake[1]: Leaving directory `/usr/local/build/garbage_coll
ector/gc-7.6.0_SunOS5.10_sparcv9.001'
gmake: *** [all-recursive] Error 1
real 7.35
user 0.00
sys 0.00
This could just be because I start the process using C99 compliance
mode and a collection of restrictive and strict CFLAGS with a debug
compile such that I can single step along later.
-m64 -xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xc
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600
Note the option -Xc and -D_XOPEN_SOURCE=600 there. Those two alone are
usually enough to catch every possible variation that strays away from
C99 and SUSv3. Enitely too pedantic I know but it is a very good test
to do on just about any open source code.
--enable-dependency-tracking --enable-threads=posix \
--enable-cplusplus --disable-java-finalization \
--enable-large-config --enable-handle-fork \
--with-libatomic-ops=check
Note that I have libatomic_ops-7.4.4 extracted and in a sub-directory
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking GC version numbers... major=7 minor=6 micro=0
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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 for style of include used by make... GNU
checking for gcc... /opt/solarisstudio12.4/bin/c99
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... no
checking whether /opt/solarisstudio12.4/bin/c99 accepts -g... yes
checking for /opt/solarisstudio12.4/bin/c99 option to accept ISO C89...
none needed
checking whether /opt/solarisstudio12.4/bin/c99 understands -c and -o
together... yes
checking dependency style of /opt/solarisstudio12.4/bin/c99... dashXmstdout
checking whether we are using the GNU C++ compiler... no
checking whether /opt/solarisstudio12.4/bin/CC accepts -g... yes
checking dependency style of /opt/solarisstudio12.4/bin/CC...
dashXmstdout
checking dependency style of /opt/solarisstudio12.4/bin/c99... dashXmstdout
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/sparcv9/ld
checking if the linker (/usr/ccs/bin/sparcv9/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/xpg4/bin/nm -p
checking the name lister (/usr/xpg4/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for /usr/ccs/bin/sparcv9/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/xpg4/bin/nm -p output from
/opt/solarisstudio12.4/bin/c99 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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/c99 -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 for /opt/solarisstudio12.4/bin/c99 option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.4/bin/c99 PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/c99 static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/c99 linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/solarisstudio12.4/bin/CC -E
checking whether the /opt/solarisstudio12.4/bin/CC linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking for /opt/solarisstudio12.4/bin/CC option to produce PIC... -KPIC
-DPIC
checking if /opt/solarisstudio12.4/bin/CC PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/CC static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/CC supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/CC supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/CC linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for inline... inline
checking for pthread_self in -lpthread... yes
c99: Warning: Option -nt-multi-os-directory passed to ld, if ld is
invoked, ignored otherwise
usage: c99 [ options ] files. Use 'c99 -flags' for details
checking for xlc... no
checking for dlopen in -ldl... no
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking whether to build shared libraries... yes
checking which machine-dependent code should be used... sparc_mach_dep.lo
checking whether Solaris gcc optimization fix is necessary... no
checking for dladdr... no
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 pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ATOMIC_OPS... no
checking which libatomic_ops to use... internal
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
=== configuring in libatomic_ops (/usr/local/build/garbage_coll
ector/gc-7.6.0_SunOS5.10_sparcv9.001/libatomic_ops)
configure: running /usr/local/bin/bash ./configure
--disable-option-checking '--prefix=/usr/local' '--disable-silent-rules'
'--enable-dependency-tracking' '--enable-threads=posix'
'--enable-cplusplus' '--disable-java-finalization' '--enable-large-config'
'--enable-handle-fork' '--with-libatomic-ops=check'
'CC=/opt/solarisstudio12.4/bin/c99' 'CFLAGS=-m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user
-erroff=%none -errtags=yes -errfmt=error -errshort=full -xstrconst -xildoff
-xmemalign=8s -xnolibmil -Xc -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g
-xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
-D_XOPEN_SOURCE=600' 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE'
'CXX=/opt/solarisstudio12.4/bin/CC' 'CXXFLAGS=-m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -dalign
-erroff=%none -errtags=yes -ftrap=%none -g -xcode=pic32 -m64 -mc -xunroll=1
-xbuiltin=%none -xtarget=ultra2e -xdepend=no -xnolibmopt -xlinkopt=0
-xnolibmil -xregs=no%appl -xs' --cache-file=/dev/null --srcdir=.
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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 for style of include used by make... GNU
checking for gcc... /opt/solarisstudio12.4/bin/c99
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... no
checking whether /opt/solarisstudio12.4/bin/c99 accepts -g... yes
checking for /opt/solarisstudio12.4/bin/c99 option to accept ISO C89...
none needed
checking whether /opt/solarisstudio12.4/bin/c99 understands -c and -o
together... yes
checking dependency style of /opt/solarisstudio12.4/bin/c99... dashXmstdout
checking dependency style of /opt/solarisstudio12.4/bin/c99... dashXmstdout
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/sparcv9/ld -64
checking if the linker (/usr/ccs/bin/sparcv9/ld -64) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/xpg4/bin/nm -p
checking the name lister (/usr/xpg4/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for /usr/ccs/bin/sparcv9/ld -64 option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/xpg4/bin/nm -p output from
/opt/solarisstudio12.4/bin/c99 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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/c99 -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 for /opt/solarisstudio12.4/bin/c99 option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.4/bin/c99 PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/c99 static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/c99 supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/c99 linker
(/usr/ccs/bin/sparcv9/ld -64 -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for PIC compiler flag... -Kpic
checking for pthread_self in -lpthread... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating pkgconfig/atomic_ops.pc
config.status: creating pkgconfig/atomic_ops-uninstalled.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
That seems to look fine but I get Makefile's that all have slightly
broken CFLAGS in them because an option "-O" has been pre-pended to the
CFLAGS. That options doesn't mean anything to the compiler and so it
halts the whole process. I manually edit the Makefile's to remove the
option -O and then run GNU make. Then I rapidly get that error message.
I figure I could now switch over to cc and some more relaxed CFLAGS and
give this a try again and see what happens but if it is possible to
push the sources past a very strict compiler then the results could be
of value to the project.
Dennis Clarke
ps: I'm not really pedantic .. I just like to test with C99 first.
_______________________________________________
bdwgc mailing list
https://lists.opendylan.org/mailman/listinfo/bdwgc
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Dennis Clarke
2016-11-22 17:39:49 UTC
Permalink
Post by Bruce Hoult
To amplify some more .. the only thing that "The collector has not been
ported to this machine/OS combination." means is that no one tried it
with your particular combination of machine/compiler. If your machine is
similar to others that work -- or if it works with other compilers --
then the chances are good that the problem is simply that your compiler
isn't defining the preprocessor macros the header files are looking for.
gcc -dM -E - </dev/null
Well, that works for gcc, g++, clang, clang++.
I'm not familiar with your compiler, but it appears that you're using
the -Xc flag and according to this page ...
https://docs.oracle.com/cd/E19205-01/819-5265/6n7c29df6/index.html
.. when -Xc is used none of "sun", "sparc" or "unix" are defined. So you
might try adding tests for "__sun", "__sparc" and "__unix" to the tests.
e.g.
# if (defined(sun) || defined(__sun)) && (defined(sparc) ||
defined(__sparc))
# define SPARC
/* Test for SunOS 5.x */
# include <errno.h>
# define SOLARIS
# define mach_type_known
# endif
This might or might not be enough to make everything work properly, but
at least it means the build system will now try to compile the code.
Thank you for the reply because I was flailing a bit here trying to
figure out what the issue was. Seems to be libatomic_ops is broken
somewhere.

I found the world is a lot easier to deal with by just letting go
of the reins a small bit :-) so I stopped trying with the c99 compiler
which is obscenely strict and switched over to just cc. That works.

Sort of.

The whole process seems to work fine past configure and into the
compile right up until we need to deal with :

libtool: error: 'libatomic_ops/src/atomic_ops_sysdeps.lo' is not a
valid libtool object

Weird error.

There appears to be a strange assembly language source file in
the libatomic_ops area called libatomic_ops/src/atomic_ops_sysdeps.S
however there isn't much in it :

mimas$ cat libatomic_ops/src/atomic_ops_sysdeps.S
/*
* Include the appropriate system-dependent assembly file, if any.
* This is used only if the platform supports neither inline assembly
* code, nor appropriate compiler intrinsics.
*/

#if !defined(__GNUC__) && (defined(sparc) || defined(__sparc))
# include
"atomic_ops/sylibatomic_ops/src/atomic_ops_sysdeps.sdeps/sunc/sparc.S"
#endif


Well that is strange because assembly can be compiled no problem.

I look and see that something was done for sure :

mimas$ ls -lap .libs/atomic_ops_sysdeps.o
-rw-r--r-- 1 dclarke devl 656 Nov 21 14:47
.libs/atomic_ops_sysdeps.o

mimas$ ls -lap atomic_ops_sysdeps.o
-rw-r--r-- 1 dclarke devl 656 Nov 21 14:47 atomic_ops_sysdeps.o


So evil libtool comes along later and seems to go looking for
libatomic_ops/src/atomic_ops_sysdeps.lo which does not exist at all and
the whole process comes to a halt.

In fact the entire build process related to that file looks like :


Step 1 :

/usr/local/bin/bash ./libtool --tag=CC --mode=compile
/opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H -I./include -I./include
-I./libatomic_ops/src -I./libatomic_ops/src -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none
-errhdr=%user -erroff=%none -errtags=yes -errfmt=error -errshort=full
-xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa -xcode=pic32
-xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none
-xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -c libatomic_ops/src/atomic_ops_sysdeps.S


Step 2 :

libtool: compile: /opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -c
libatomic_ops/src/atomic_ops_sysdeps.S -KPIC -DPIC -o
.libs/atomic_ops_sysdeps.o


Step 3 :

libtool: compile: /opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -c
libatomic_ops/src/atomic_ops_sysdeps.S -o atomic_ops_sysdeps.o
Post by Bruce Hoult
/dev/null 2>&1
Step 4 :

/usr/local/bin/bash ./libtool --tag=CC --mode=link
/opt/solarisstudio12.4/bin/cc -m64 -xtarget=ultra2 -xarch=sparcvis
-xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user -erroff=%none
-errtags=yes -errfmt=error -errshort=full -xstrconst -xildoff
-xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc
-g -xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
-version-info 1:3:0 -no-undefined -L/usr/local/lib -o libgc.la -rpath
/usr/local/lib allchblk.lo alloc.lo blacklst.lo checksums.lo dbg_mlc.lo
dyn_load.lo finalize.lo gc_dlopen.lo gcj_mlc.lo headers.lo mach_dep.lo
malloc.lo mallocx.lo mark.lo mark_rts.lo misc.lo new_hblk.lo obj_map.lo
os_dep.lo pcr_interface.lo ptr_chck.lo real_malloc.lo reclaim.lo
specific.lo stubborn.lo thread_local_alloc.lo typd_mlc.lo
pthread_start.lo pthread_support.lo pthread_stop_world.lo fnlz_mlc.lo
libatomic_ops/src/atomic_ops_sysdeps.lo sparc_mach_dep.lo
-L/usr/lib/lwp/ -R/usr/lib/lwp/ -lpthread -lrt -ldl
libtool: error: 'libatomic_ops/src/atomic_ops_sysdeps.lo' is not a
valid libtool object


So this is quite strange. The absence of the weird ".lo" file which only
libtool needs.

Something went sadly wrong with libatomic_ops :

mimas$ cd libatomic_ops/src/

mimas$ ls -lo atomic_op*
-rw-r--r-- 1 dclarke 7446 May 24 2016 atomic_ops.c
-rw-r--r-- 1 dclarke 18806 May 24 2016 atomic_ops.h
-rw-r--r-- 1 dclarke 8063 May 24 2016 atomic_ops_malloc.c
-rw-r--r-- 1 dclarke 1665 May 24 2016 atomic_ops_malloc.h
-rw-r--r-- 1 dclarke 9869 May 24 2016 atomic_ops_stack.c
-rw-r--r-- 1 dclarke 6606 May 24 2016 atomic_ops_stack.h
-rw-r--r-- 1 dclarke 306 May 24 2016 atomic_ops_sysdeps.S

atomic_ops:
total 150
-rw-r--r-- 1 dclarke 1854 May 24 2016 ao_version.h
-rw-r--r-- 1 dclarke 127867 May 24 2016 generalize-arithm.h
-rw-r--r-- 1 dclarke 32899 May 24 2016 generalize-arithm.template
-rw-r--r-- 1 dclarke 102089 May 24 2016 generalize-small.h
-rw-r--r-- 1 dclarke 20649 May 24 2016 generalize-small.template
-rw-r--r-- 1 dclarke 27996 May 24 2016 generalize.h
drwxr-xr-x 10 dclarke 25 May 24 2016 sysdeps


No object files seen there at all and that means
libatomic_ops/src/atomic_ops_sysdeps.lo is missing and so is the object
file. However it does exist as :

mimas$ find . | grep "atomic_ops_sysdeps"
./.libs/atomic_ops_sysdeps.o
./atomic_ops_sysdeps.o
./libatomic_ops-7.4.4/src/.deps/atomic_ops_sysdeps.Plo
./libatomic_ops-7.4.4/src/atomic_ops_sysdeps.S
./atomic_ops_sysdeps.lo

The problem is somewhere down inside the libatomic sources.

I wrote a simple link hack.sh thus and ran it :

mimas$ cat hack.sh
#!/bin/ksh
/opt/solarisstudio12.4/bin/cc -\# -H \
-m64 -xtarget=ultra2 -xarch=sparcvis \
-xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user \
-erroff=%none -errtags=yes -errfmt=error -errshort=full -xstrconst \
-xildoff -xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl \
-xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none \
-xdebugformat=dwarf -xunroll=1 \
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE \
-L/usr/local/lib -L/usr/lib/lwp -R/usr/lib/lwp \
\
allchblk.o alloc.o blacklst.o checksums.o dbg_mlc.o dyn_load.o \
finalize.o gc_dlopen.o gcj_mlc.o headers.o mach_dep.o malloc.o \
mallocx.o mark.o mark_rts.o misc.o new_hblk.o obj_map.o os_dep.o \
pcr_interface.o ptr_chck.o real_malloc.o reclaim.o specific.o \
stubborn.o thread_local_alloc.o typd_mlc.o pthread_start.o \
pthread_support.o pthread_stop_world.o fnlz_mlc.o \
\
atomic_ops_sysdeps.o \
\
sparc_mach_dep.o \
\
-o libgc.foo -lpthread -lrt -ldl


Which works ( other than undefined symbols that must exist somewhere ) :


mimas$ ./hack.sh
### cc: Note: NLSPATH =
/opt/solarisstudio12.4/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/solarisstudio12.4/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### command line files and options (expanded):
### -# -H -m64 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xmemalign=8s -xnolibmil -Xa -xcode=pic32
-xregs=no%appl -xlibmieee -mc
-xdebuginfo=line,param,variable,tagtype,codetag,decl -xglobalize=yes
-xpatchpadding=fix -xkeep_unref=funcs,vars -xs=yes -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -L/usr/local/lib
-L/usr/lib/lwp -R/usr/lib/lwp allchblk.o alloc.o blacklst.o checksums.o
dbg_mlc.o dyn_load.o finalize.o gc_dlopen.o gcj_mlc.o headers.o
mach_dep.o malloc.o mallocx.o mark.o mark_rts.o misc.o new_hblk.o
obj_map.o os_dep.o pcr_interface.o ptr_chck.o real_malloc.o reclaim.o
specific.o stubborn.o thread_local_alloc.o typd_mlc.o pthread_start.o
pthread_support.o pthread_stop_world.o fnlz_mlc.o atomic_ops_sysdeps.o
sparc_mach_dep.o -olibgc.foo -lpthread -lrt -ldl
### cc: Note: LD_LIBRARY_PATH = (null)
### cc: Note: LD_LIBRARY_PATH_64 = (null)
### cc: Note: LD_RUN_PATH = /usr/local/lib
### cc: Note: LD_OPTIONS = -64 -L/usr/local/lib -R/usr/local/lib
ln -s /opt/solarisstudio12.4/lib/compilers /tmp/lib_link.1479836266.19734.01
/usr/ccs/bin/ld
-zld32=-S/tmp/lib_link.1479836266.19734.01/libldstab_ws.so
-zld64=-S/tmp/lib_link.1479836266.19734.01/sparcv9/libldstab_ws.so
-zld32=-S/tmp/lib_link.1479836266.19734.01/libld_annotate.so
-zld64=-S/tmp/lib_link.1479836266.19734.01/sparcv9/libld_annotate.so
/opt/solarisstudio12.4/lib/compilers/sparcv9/crti.o
/opt/solarisstudio12.4/lib/compilers/sparcv9/crt1.o
/opt/solarisstudio12.4/lib/compilers/sparcv9/values-xi.o
-L/usr/local/lib -L/usr/lib/lwp allchblk.o alloc.o blacklst.o
checksums.o dbg_mlc.o dyn_load.o finalize.o gc_dlopen.o gcj_mlc.o
headers.o mach_dep.o malloc.o mallocx.o mark.o mark_rts.o misc.o
new_hblk.o obj_map.o os_dep.o pcr_interface.o ptr_chck.o real_malloc.o
reclaim.o specific.o stubborn.o thread_local_alloc.o typd_mlc.o
pthread_start.o pthread_support.o pthread_stop_world.o fnlz_mlc.o
atomic_ops_sysdeps.o sparc_mach_dep.o -lpthread -lrt -ldl -o libgc.foo
-Y
"P,/opt/solarisstudio12.4/lib/compilers/staticlib/sparcv9:/opt/solarisstudio12.4/lib/compilers/sparcvis/sparcv9:/opt/solarisstudio12.4/lib/compilers/sparcv9:/usr/ccs/lib/sparcv9:/lib/64:/usr/lib/64"
-Qy -R/usr/lib/lwp -lc /opt/solarisstudio12.4/lib/compilers/sparcv9/crtn.o
Undefined first referenced
symbol in file
main
/opt/solarisstudio12.4/lib/compilers/sparcv9/crt1.o
AO_compare_double_and_swap_double_emulation allchblk.o
AO_fetch_compare_and_swap_emulation allchblk.o
AO_store_full_emulation mark.o
ld: fatal: symbol referencing errors. No output written to libgc.foo
mimas$


So the problem seems to be in the libatomic_ops region.



Dennis
Richard A. O'Keefe
2016-11-22 23:03:57 UTC
Permalink
Post by Bruce Hoult
To amplify some more .. the only thing that "The collector has not been
ported to this machine/OS combination." means is that no one tried it
with your particular combination of machine/compiler.
I believe that the OP's issue is that the collector HAS been tried with
that particular combination of machine and compiler.

Just not with that particular combination of *options*.
Post by Bruce Hoult
gcc -dM -E - </dev/null
Well, that works for gcc, g++, clang, clang++.
That's a gcc-ism; clang copied a lot gcc-isms.
I cannot find an analogue of that option in the cc manual page.

The likeliest problem is headers testing 'sparc' instead of '__sparc'.
Since sun and sparc are only defined when __sun and __sparc are, there
doesn't seem to be any point in ever testing for 'sun' or 'sparc';
they are "legacy" macros.
Ivan Maidanski
2016-11-23 03:59:35 UTC
Permalink
The following commit treats __amd64 as __amd64__ and __sun as sun: https://github.com/ivmai/bdwgc/commit/7f82ed2046cbc4bb594e7c2162d40c819daee111  

Regards,
Ivan
Post by Richard A. O'Keefe
Post by Bruce Hoult
To amplify some more .. the only thing that "The collector has not been
ported to this machine/OS combination." means is that no one tried it
with your particular combination of machine/compiler.
I believe that the OP's issue is that the collector HAS been tried with
that particular combination of machine and compiler.
Just not with that particular combination of *options*.
Post by Bruce Hoult
gcc -dM -E - </dev/null
Well, that works for gcc, g++, clang, clang++.
That's a gcc-ism; clang copied a lot gcc-isms.
I cannot find an analogue of that option in the cc manual page.
The likeliest problem is headers testing 'sparc' instead of '__sparc'.
Since sun and sparc are only defined when __sun and __sparc are, there
doesn't seem to be any point in ever testing for 'sun' or 'sparc';
they are "legacy" macros.
_______________________________________________
bdwgc mailing list
https://lists.opendylan.org/mailman/listinfo/bdwgc
Dennis Clarke
2016-11-23 19:20:53 UTC
Permalink
Post by Ivan Maidanski
https://github.com/ivmai/bdwgc/commit/7f82ed2046cbc4bb594e7c2162d40c819daee111
Thank you for the reply and the patch. However I am past that point in
that I stopped using the C99 compiler and switched to the general cc
compiler which generally works for all code. However it is not going
to accept a lot of gnu'isms or clang special tricks. It is just a flat
C compiler and still has a lot of strict code standards expectations.

Having said all that, I was making goog progress however the atomic ops
code fails in a strange way. I detailed all that earlier. However here
it is :

---------------------- from 22nd Nov -------------------
Seems to be libatomic_ops is broken somewhere.

I found the world is a lot easier to deal with by just letting go
of the reins a small bit :-) so I stopped trying with the c99 compiler
which is obscenely strict and switched over to just cc. That works.

Sort of.

The whole process seems to work fine past configure and into the
compile right up until we need to deal with :

libtool: error: 'libatomic_ops/src/atomic_ops_sysdeps.lo' is not a
valid libtool object

Weird error.

There appears to be a strange assembly language source file in
the libatomic_ops area called libatomic_ops/src/atomic_ops_sysdeps.S
however there isn't much in it :

mimas$ cat libatomic_ops/src/atomic_ops_sysdeps.S
/*
* Include the appropriate system-dependent assembly file, if any.
* This is used only if the platform supports neither inline assembly
* code, nor appropriate compiler intrinsics.
*/

#if !defined(__GNUC__) && (defined(sparc) || defined(__sparc))
# include
"atomic_ops/sylibatomic_ops/src/atomic_ops_sysdeps.sdeps/sunc/sparc.S"
#endif


Well that is strange because assembly can be compiled no problem.

I look and see that something was done for sure :

mimas$ ls -lap .libs/atomic_ops_sysdeps.o
-rw-r--r-- 1 dclarke devl 656 Nov 21 14:47
.libs/atomic_ops_sysdeps.o

mimas$ ls -lap atomic_ops_sysdeps.o
-rw-r--r-- 1 dclarke devl 656 Nov 21 14:47 atomic_ops_sysdeps.o


So evil libtool comes along later and seems to go looking for
libatomic_ops/src/atomic_ops_sysdeps.lo which does not exist at all and
the whole process comes to a halt.

In fact the entire build process related to that file looks like :


Step 1 :

/usr/local/bin/bash ./libtool --tag=CC --mode=compile
/opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H -I./include -I./include
-I./libatomic_ops/src -I./libatomic_ops/src -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none
-errhdr=%user -erroff=%none -errtags=yes -errfmt=error -errshort=full
-xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa -xcode=pic32
-xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none
-xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -c libatomic_ops/src/atomic_ops_sysdeps.S


Step 2 :

libtool: compile: /opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -c
libatomic_ops/src/atomic_ops_sysdeps.S -KPIC -DPIC -o
.libs/atomic_ops_sysdeps.o


Step 3 :

libtool: compile: /opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -c
libatomic_ops/src/atomic_ops_sysdeps.S -o atomic_ops_sysdeps.o
Post by Ivan Maidanski
/dev/null 2>&1
Step 4 :

/usr/local/bin/bash ./libtool --tag=CC --mode=link
/opt/solarisstudio12.4/bin/cc -m64 -xtarget=ultra2 -xarch=sparcvis
-xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user -erroff=%none
-errtags=yes -errfmt=error -errshort=full -xstrconst -xildoff
-xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc
-g -xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
-version-info 1:3:0 -no-undefined -L/usr/local/lib -o libgc.la -rpath
/usr/local/lib allchblk.lo alloc.lo blacklst.lo checksums.lo dbg_mlc.lo
dyn_load.lo finalize.lo gc_dlopen.lo gcj_mlc.lo headers.lo mach_dep.lo
malloc.lo mallocx.lo mark.lo mark_rts.lo misc.lo new_hblk.lo obj_map.lo
os_dep.lo pcr_interface.lo ptr_chck.lo real_malloc.lo reclaim.lo
specific.lo stubborn.lo thread_local_alloc.lo typd_mlc.lo
pthread_start.lo pthread_support.lo pthread_stop_world.lo fnlz_mlc.lo
libatomic_ops/src/atomic_ops_sysdeps.lo sparc_mach_dep.lo
-L/usr/lib/lwp/ -R/usr/lib/lwp/ -lpthread -lrt -ldl
libtool: error: 'libatomic_ops/src/atomic_ops_sysdeps.lo' is not a
valid libtool object


So this is quite strange. The absence of the weird ".lo" file which only
libtool needs.

Something went sadly wrong with libatomic_ops :

mimas$ cd libatomic_ops/src/

mimas$ ls -lo atomic_op*
-rw-r--r-- 1 dclarke 7446 May 24 2016 atomic_ops.c
-rw-r--r-- 1 dclarke 18806 May 24 2016 atomic_ops.h
-rw-r--r-- 1 dclarke 8063 May 24 2016 atomic_ops_malloc.c
-rw-r--r-- 1 dclarke 1665 May 24 2016 atomic_ops_malloc.h
-rw-r--r-- 1 dclarke 9869 May 24 2016 atomic_ops_stack.c
-rw-r--r-- 1 dclarke 6606 May 24 2016 atomic_ops_stack.h
-rw-r--r-- 1 dclarke 306 May 24 2016 atomic_ops_sysdeps.S

atomic_ops:
total 150
-rw-r--r-- 1 dclarke 1854 May 24 2016 ao_version.h
-rw-r--r-- 1 dclarke 127867 May 24 2016 generalize-arithm.h
-rw-r--r-- 1 dclarke 32899 May 24 2016 generalize-arithm.template
-rw-r--r-- 1 dclarke 102089 May 24 2016 generalize-small.h
-rw-r--r-- 1 dclarke 20649 May 24 2016 generalize-small.template
-rw-r--r-- 1 dclarke 27996 May 24 2016 generalize.h
drwxr-xr-x 10 dclarke 25 May 24 2016 sysdeps


No object files seen there at all and that means
libatomic_ops/src/atomic_ops_sysdeps.lo is missing and so is the object
file. However it does exist as :

mimas$ find . | grep "atomic_ops_sysdeps"
./.libs/atomic_ops_sysdeps.o
./atomic_ops_sysdeps.o
./libatomic_ops-7.4.4/src/.deps/atomic_ops_sysdeps.Plo
./libatomic_ops-7.4.4/src/atomic_ops_sysdeps.S
./atomic_ops_sysdeps.lo

The problem is somewhere down inside the libatomic sources.

I wrote a simple link hack.sh thus and ran it :

mimas$ cat hack.sh
#!/bin/ksh
/opt/solarisstudio12.4/bin/cc -\# -H \
-m64 -xtarget=ultra2 -xarch=sparcvis \
-xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user \
-erroff=%none -errtags=yes -errfmt=error -errshort=full -xstrconst \
-xildoff -xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl \
-xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none \
-xdebugformat=dwarf -xunroll=1 \
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE \
-L/usr/local/lib -L/usr/lib/lwp -R/usr/lib/lwp \
\
allchblk.o alloc.o blacklst.o checksums.o dbg_mlc.o dyn_load.o \
finalize.o gc_dlopen.o gcj_mlc.o headers.o mach_dep.o malloc.o \
mallocx.o mark.o mark_rts.o misc.o new_hblk.o obj_map.o os_dep.o \
pcr_interface.o ptr_chck.o real_malloc.o reclaim.o specific.o \
stubborn.o thread_local_alloc.o typd_mlc.o pthread_start.o \
pthread_support.o pthread_stop_world.o fnlz_mlc.o \
\
atomic_ops_sysdeps.o \
\
sparc_mach_dep.o \
\
-o libgc.foo -lpthread -lrt -ldl


Which works ( other than undefined symbols that must exist somewhere ) :


mimas$ ./hack.sh
### cc: Note: NLSPATH =
/opt/solarisstudio12.4/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/solarisstudio12.4/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### command line files and options (expanded):
### -# -H -m64 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xmemalign=8s -xnolibmil -Xa -xcode=pic32
-xregs=no%appl -xlibmieee -mc
-xdebuginfo=line,param,variable,tagtype,codetag,decl -xglobalize=yes
-xpatchpadding=fix -xkeep_unref=funcs,vars -xs=yes -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -L/usr/local/lib
-L/usr/lib/lwp -R/usr/lib/lwp allchblk.o alloc.o blacklst.o checksums.o
dbg_mlc.o dyn_load.o finalize.o gc_dlopen.o gcj_mlc.o headers.o
mach_dep.o malloc.o mallocx.o mark.o mark_rts.o misc.o new_hblk.o
obj_map.o os_dep.o pcr_interface.o ptr_chck.o real_malloc.o reclaim.o
specific.o stubborn.o thread_local_alloc.o typd_mlc.o pthread_start.o
pthread_support.o pthread_stop_world.o fnlz_mlc.o atomic_ops_sysdeps.o
sparc_mach_dep.o -olibgc.foo -lpthread -lrt -ldl
### cc: Note: LD_LIBRARY_PATH = (null)
### cc: Note: LD_LIBRARY_PATH_64 = (null)
### cc: Note: LD_RUN_PATH = /usr/local/lib
### cc: Note: LD_OPTIONS = -64 -L/usr/local/lib -R/usr/local/lib
ln -s /opt/solarisstudio12.4/lib/compilers /tmp/lib_link.1479836266.19734.01
/usr/ccs/bin/ld
-zld32=-S/tmp/lib_link.1479836266.19734.01/libldstab_ws.so
-zld64=-S/tmp/lib_link.1479836266.19734.01/sparcv9/libldstab_ws.so
-zld32=-S/tmp/lib_link.1479836266.19734.01/libld_annotate.so
-zld64=-S/tmp/lib_link.1479836266.19734.01/sparcv9/libld_annotate.so
/opt/solarisstudio12.4/lib/compilers/sparcv9/crti.o
/opt/solarisstudio12.4/lib/compilers/sparcv9/crt1.o
/opt/solarisstudio12.4/lib/compilers/sparcv9/values-xi.o
-L/usr/local/lib -L/usr/lib/lwp allchblk.o alloc.o blacklst.o
checksums.o dbg_mlc.o dyn_load.o finalize.o gc_dlopen.o gcj_mlc.o
headers.o mach_dep.o malloc.o mallocx.o mark.o mark_rts.o misc.o
new_hblk.o obj_map.o os_dep.o pcr_interface.o ptr_chck.o real_malloc.o
reclaim.o specific.o stubborn.o thread_local_alloc.o typd_mlc.o
pthread_start.o pthread_support.o pthread_stop_world.o fnlz_mlc.o
atomic_ops_sysdeps.o sparc_mach_dep.o -lpthread -lrt -ldl -o libgc.foo
-Y
"P,/opt/solarisstudio12.4/lib/compilers/staticlib/sparcv9:/opt/solarisstudio12.4/lib/compilers/sparcvis/sparcv9:/opt/solarisstudio12.4/lib/compilers/sparcv9:/usr/ccs/lib/sparcv9:/lib/64:/usr/lib/64"
-Qy -R/usr/lib/lwp -lc /opt/solarisstudio12.4/lib/compilers/sparcv9/crtn.o
Undefined first referenced
symbol in file
main /opt/solarisstudio12.4/lib/compilers/sparcv9/crt1.o
AO_compare_double_and_swap_double_emulation allchblk.o
AO_fetch_compare_and_swap_emulation allchblk.o
AO_store_full_emulation mark.o
ld: fatal: symbol referencing errors. No output written to libgc.foo
mimas$


So the problem seems to be in the libatomic_ops region.



Dennis
Bruce Hoult
2016-11-23 19:23:26 UTC
Permalink
Does it work if you disable threads (and therefore don't use atomic ops)?
Post by Dennis Clarke
Post by Ivan Maidanski
https://github.com/ivmai/bdwgc/commit/7f82ed2046cbc4bb594e7c
2162d40c819daee111
Thank you for the reply and the patch. However I am past that point in
that I stopped using the C99 compiler and switched to the general cc
compiler which generally works for all code. However it is not going
to accept a lot of gnu'isms or clang special tricks. It is just a flat
C compiler and still has a lot of strict code standards expectations.
Having said all that, I was making goog progress however the atomic ops
code fails in a strange way. I detailed all that earlier. However here
---------------------- from 22nd Nov -------------------
Seems to be libatomic_ops is broken somewhere.
I found the world is a lot easier to deal with by just letting go
of the reins a small bit :-) so I stopped trying with the c99 compiler
which is obscenely strict and switched over to just cc. That works.
Sort of.
The whole process seems to work fine past configure and into the
libtool: error: 'libatomic_ops/src/atomic_ops_sysdeps.lo' is not a
valid libtool object
Weird error.
There appears to be a strange assembly language source file in
the libatomic_ops area called libatomic_ops/src/atomic_ops_sysdeps.S
mimas$ cat libatomic_ops/src/atomic_ops_sysdeps.S
/*
* Include the appropriate system-dependent assembly file, if any.
* This is used only if the platform supports neither inline assembly
* code, nor appropriate compiler intrinsics.
*/
#if !defined(__GNUC__) && (defined(sparc) || defined(__sparc))
# include "atomic_ops/sylibatomic_ops/src/atomic_ops_sysdeps.sdeps/sun
c/sparc.S"
#endif
Well that is strange because assembly can be compiled no problem.
mimas$ ls -lap .libs/atomic_ops_sysdeps.o
-rw-r--r-- 1 dclarke devl 656 Nov 21 14:47
.libs/atomic_ops_sysdeps.o
mimas$ ls -lap atomic_ops_sysdeps.o
-rw-r--r-- 1 dclarke devl 656 Nov 21 14:47 atomic_ops_sysdeps.o
So evil libtool comes along later and seems to go looking for
libatomic_ops/src/atomic_ops_sysdeps.lo which does not exist at all and
the whole process comes to a halt.
/usr/local/bin/bash ./libtool --tag=CC --mode=compile
/opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H -I./include -I./include
-I./libatomic_ops/src -I./libatomic_ops/src -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user
-erroff=%none -errtags=yes -errfmt=error -errshort=full -xstrconst -xildoff
-xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g
-xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -c
libatomic_ops/src/atomic_ops_sysdeps.S
libtool: compile: /opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -c
libatomic_ops/src/atomic_ops_sysdeps.S -KPIC -DPIC -o
.libs/atomic_ops_sysdeps.o
libtool: compile: /opt/solarisstudio12.4/bin/cc -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -m64
-xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -c
libatomic_ops/src/atomic_ops_sysdeps.S -o atomic_ops_sysdeps.o >/dev/null
2>&1
/usr/local/bin/bash ./libtool --tag=CC --mode=link
/opt/solarisstudio12.4/bin/cc -m64 -xtarget=ultra2 -xarch=sparcvis
-xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user -erroff=%none
-errtags=yes -errfmt=error -errshort=full -xstrconst -xildoff -xmemalign=8s
-xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs
-ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -version-info 1:3:0
-no-undefined -L/usr/local/lib -o libgc.la -rpath /usr/local/lib
allchblk.lo alloc.lo blacklst.lo checksums.lo dbg_mlc.lo dyn_load.lo
finalize.lo gc_dlopen.lo gcj_mlc.lo headers.lo mach_dep.lo malloc.lo
mallocx.lo mark.lo mark_rts.lo misc.lo new_hblk.lo obj_map.lo os_dep.lo
pcr_interface.lo ptr_chck.lo real_malloc.lo reclaim.lo specific.lo
stubborn.lo thread_local_alloc.lo typd_mlc.lo pthread_start.lo
pthread_support.lo pthread_stop_world.lo fnlz_mlc.lo
libatomic_ops/src/atomic_ops_sysdeps.lo sparc_mach_dep.lo
-L/usr/lib/lwp/ -R/usr/lib/lwp/ -lpthread -lrt -ldl
libtool: error: 'libatomic_ops/src/atomic_ops_sysdeps.lo' is not a
valid libtool object
So this is quite strange. The absence of the weird ".lo" file which only
libtool needs.
mimas$ cd libatomic_ops/src/
mimas$ ls -lo atomic_op*
-rw-r--r-- 1 dclarke 7446 May 24 2016 atomic_ops.c
-rw-r--r-- 1 dclarke 18806 May 24 2016 atomic_ops.h
-rw-r--r-- 1 dclarke 8063 May 24 2016 atomic_ops_malloc.c
-rw-r--r-- 1 dclarke 1665 May 24 2016 atomic_ops_malloc.h
-rw-r--r-- 1 dclarke 9869 May 24 2016 atomic_ops_stack.c
-rw-r--r-- 1 dclarke 6606 May 24 2016 atomic_ops_stack.h
-rw-r--r-- 1 dclarke 306 May 24 2016 atomic_ops_sysdeps.S
total 150
-rw-r--r-- 1 dclarke 1854 May 24 2016 ao_version.h
-rw-r--r-- 1 dclarke 127867 May 24 2016 generalize-arithm.h
-rw-r--r-- 1 dclarke 32899 May 24 2016 generalize-arithm.template
-rw-r--r-- 1 dclarke 102089 May 24 2016 generalize-small.h
-rw-r--r-- 1 dclarke 20649 May 24 2016 generalize-small.template
-rw-r--r-- 1 dclarke 27996 May 24 2016 generalize.h
drwxr-xr-x 10 dclarke 25 May 24 2016 sysdeps
No object files seen there at all and that means
libatomic_ops/src/atomic_ops_sysdeps.lo is missing and so is the object
mimas$ find . | grep "atomic_ops_sysdeps"
./.libs/atomic_ops_sysdeps.o
./atomic_ops_sysdeps.o
./libatomic_ops-7.4.4/src/.deps/atomic_ops_sysdeps.Plo
./libatomic_ops-7.4.4/src/atomic_ops_sysdeps.S
./atomic_ops_sysdeps.lo
The problem is somewhere down inside the libatomic sources.
mimas$ cat hack.sh
#!/bin/ksh
/opt/solarisstudio12.4/bin/cc -\# -H \
-m64 -xtarget=ultra2 -xarch=sparcvis \
-xchip=ultra2 -xcache=generic -errwarn=%none -errhdr=%user \
-erroff=%none -errtags=yes -errfmt=error -errshort=full -xstrconst \
-xildoff -xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl \
-xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none \
-xdebugformat=dwarf -xunroll=1 \
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE \
-L/usr/local/lib -L/usr/lib/lwp -R/usr/lib/lwp \
\
allchblk.o alloc.o blacklst.o checksums.o dbg_mlc.o dyn_load.o \
finalize.o gc_dlopen.o gcj_mlc.o headers.o mach_dep.o malloc.o \
mallocx.o mark.o mark_rts.o misc.o new_hblk.o obj_map.o os_dep.o \
pcr_interface.o ptr_chck.o real_malloc.o reclaim.o specific.o \
stubborn.o thread_local_alloc.o typd_mlc.o pthread_start.o \
pthread_support.o pthread_stop_world.o fnlz_mlc.o \
\
atomic_ops_sysdeps.o \
\
sparc_mach_dep.o \
\
-o libgc.foo -lpthread -lrt -ldl
mimas$ ./hack.sh
### cc: Note: NLSPATH = /opt/solarisstudio12.4/bin/../
lib/locale/%L/LC_MESSAGES/%N.cat:/opt/solarisstudio12.4/bin/
../../lib/locale/%L/LC_MESSAGES/%N.cat
### -# -H -m64 -xarch=sparcvis -xchip=ultra2 -xcache=generic
-errwarn=%none -errhdr=%user -erroff=%none -errtags=yes -errfmt=error
-errshort=full -xstrconst -xmemalign=8s -xnolibmil -Xa -xcode=pic32
-xregs=no%appl -xlibmieee -mc -xdebuginfo=line,param,variable,tagtype,codetag,decl
-xglobalize=yes -xpatchpadding=fix -xkeep_unref=funcs,vars -xs=yes
-ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -L/usr/local/lib
-L/usr/lib/lwp -R/usr/lib/lwp allchblk.o alloc.o blacklst.o checksums.o
dbg_mlc.o dyn_load.o finalize.o gc_dlopen.o gcj_mlc.o headers.o mach_dep.o
malloc.o mallocx.o mark.o mark_rts.o misc.o new_hblk.o obj_map.o os_dep.o
pcr_interface.o ptr_chck.o real_malloc.o reclaim.o specific.o stubborn.o
thread_local_alloc.o typd_mlc.o pthread_start.o pthread_support.o
pthread_stop_world.o fnlz_mlc.o atomic_ops_sysdeps.o sparc_mach_dep.o
-olibgc.foo -lpthread -lrt -ldl
### cc: Note: LD_LIBRARY_PATH = (null)
### cc: Note: LD_LIBRARY_PATH_64 = (null)
### cc: Note: LD_RUN_PATH = /usr/local/lib
### cc: Note: LD_OPTIONS = -64 -L/usr/local/lib -R/usr/local/lib
ln -s /opt/solarisstudio12.4/lib/compilers /tmp/lib_link.1479836266.19734
.01
/usr/ccs/bin/ld -zld32=-S/tmp/lib_link.1479836266.19734.01/libldstab_ws.so
-zld64=-S/tmp/lib_link.1479836266.19734.01/sparcv9/libldstab_ws.so
-zld32=-S/tmp/lib_link.1479836266.19734.01/libld_annotate.so
-zld64=-S/tmp/lib_link.1479836266.19734.01/sparcv9/libld_annotate.so
/opt/solarisstudio12.4/lib/compilers/sparcv9/crti.o
/opt/solarisstudio12.4/lib/compilers/sparcv9/crt1.o
/opt/solarisstudio12.4/lib/compilers/sparcv9/values-xi.o -L/usr/local/lib
-L/usr/lib/lwp allchblk.o alloc.o blacklst.o checksums.o dbg_mlc.o
dyn_load.o finalize.o gc_dlopen.o gcj_mlc.o headers.o mach_dep.o malloc.o
mallocx.o mark.o mark_rts.o misc.o new_hblk.o obj_map.o os_dep.o
pcr_interface.o ptr_chck.o real_malloc.o reclaim.o specific.o stubborn.o
thread_local_alloc.o typd_mlc.o pthread_start.o pthread_support.o
pthread_stop_world.o fnlz_mlc.o atomic_ops_sysdeps.o sparc_mach_dep.o
-lpthread -lrt -ldl -o libgc.foo -Y "P,/opt/solarisstudio12.4/lib/
compilers/staticlib/sparcv9:/opt/solarisstudio12.4/lib/compi
lers/sparcvis/sparcv9:/opt/solarisstudio12.4/lib/compiler
s/sparcv9:/usr/ccs/lib/sparcv9:/lib/64:/usr/lib/64" -Qy -R/usr/lib/lwp
-lc /opt/solarisstudio12.4/lib/compilers/sparcv9/crtn.o
Undefined first referenced
symbol in file
main /opt/solarisstudio12.4/lib/compilers/sparcv9/crt1.o
AO_compare_double_and_swap_double_emulation allchblk.o
AO_fetch_compare_and_swap_emulation allchblk.o
AO_store_full_emulation mark.o
ld: fatal: symbol referencing errors. No output written to libgc.foo
mimas$
So the problem seems to be in the libatomic_ops region.
Dennis
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Dennis Clarke
2016-11-23 19:53:26 UTC
Permalink
Post by Bruce Hoult
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.

Dennis
Dennis Clarke
2016-11-23 20:40:05 UTC
Permalink
Post by Dennis Clarke
Post by Bruce Hoult
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.
$ ./configure --disable-silent-rules --enable-dependency-tracking \
Post by Dennis Clarke
--enable-cplusplus --disable-java-finalization \
--enable-large-config --enable-handle-fork \
--with-libatomic-ops=no
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking GC version numbers... major=7 minor=6 micro=0
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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 for style of include used by make... GNU
checking for gcc... /opt/solarisstudio12.4/bin/cc
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... no
checking whether /opt/solarisstudio12.4/bin/cc accepts -g... yes
checking for /opt/solarisstudio12.4/bin/cc option to accept ISO C89...
none needed
checking whether /opt/solarisstudio12.4/bin/cc understands -c and -o
together... yes
checking dependency style of /opt/solarisstudio12.4/bin/cc... dashXmstdout
checking whether we are using the GNU C++ compiler... no
checking whether /opt/solarisstudio12.4/bin/CC accepts -g... yes
checking dependency style of /opt/solarisstudio12.4/bin/CC... dashXmstdout
checking dependency style of /opt/solarisstudio12.4/bin/cc... dashXmstdout
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/sparcv9/ld
checking if the linker (/usr/ccs/bin/sparcv9/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/xpg4/bin/nm -p
checking the name lister (/usr/xpg4/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for /usr/ccs/bin/sparcv9/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/xpg4/bin/nm -p output from
/opt/solarisstudio12.4/bin/cc 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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/cc -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 for /opt/solarisstudio12.4/bin/cc option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.4/bin/cc PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/cc static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/cc supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/cc supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/cc linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/solarisstudio12.4/bin/CC -E
checking whether the /opt/solarisstudio12.4/bin/CC linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking for /opt/solarisstudio12.4/bin/CC option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.4/bin/CC PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/CC static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/CC supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/CC supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/CC linker
(/usr/ccs/bin/sparcv9/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for thread model used by GCC... no
checking for inline... inline
checking for xlc... no
checking for dlopen in -ldl... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking whether to build shared libraries... yes
checking which machine-dependent code should be used... sparc_mach_dep.lo
checking whether Solaris gcc optimization fix is necessary... no
checking for dladdr... 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 pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking which libatomic_ops to use... internal
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
=== configuring in libatomic_ops
(/usr/local/build/garbage_collector/gc-7.6.0_SunOS5.10_sparcv9.003/libatomic_ops)
configure: running /usr/local/bin/bash ./configure
--disable-option-checking '--prefix=/usr/local'
'--disable-silent-rules' '--enable-dependency-tracking'
'--enable-cplusplus' '--disable-java-finalization'
'--enable-large-config' '--enable-handle-fork' '--with-libatomic-ops=no'
'CC=/opt/solarisstudio12.4/bin/cc' 'CFLAGS=-m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none
-errhdr=%user -erroff=%none -errtags=yes -errfmt=error -errshort=full
-xstrconst -xildoff -xmemalign=8s -xnolibmil -Xa -xcode=pic32
-xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none
-xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE' 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE'
'CXX=/opt/solarisstudio12.4/bin/CC' 'CXXFLAGS=-m64 -xtarget=ultra2
-xarch=sparcvis -xchip=ultra2 -xcache=generic -errwarn=%none -dalign
-erroff=%none -errtags=yes -ftrap=%none -g -xcode=pic32 -m64 -mc
-xunroll=1 -xbuiltin=%none -xtarget=ultra2e -xdepend=no -xnolibmopt
-xlinkopt=0 -xnolibmil -xregs=no%appl -xs' --cache-file=/dev/null --srcdir=.
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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 for style of include used by make... GNU
checking for gcc... /opt/solarisstudio12.4/bin/cc
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... no
checking whether /opt/solarisstudio12.4/bin/cc accepts -g... yes
checking for /opt/solarisstudio12.4/bin/cc option to accept ISO C89...
none needed
checking whether /opt/solarisstudio12.4/bin/cc understands -c and -o
together... yes
checking dependency style of /opt/solarisstudio12.4/bin/cc... dashXmstdout
checking dependency style of /opt/solarisstudio12.4/bin/cc... dashXmstdout
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/sparcv9/ld -64
checking if the linker (/usr/ccs/bin/sparcv9/ld -64) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/xpg4/bin/nm -p
checking the name lister (/usr/xpg4/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking how to convert sparc-sun-solaris2.10 file names to
sparc-sun-solaris2.10 format... func_convert_file_noop
checking how to convert sparc-sun-solaris2.10 file names to toolchain
format... func_convert_file_noop
checking for /usr/ccs/bin/sparcv9/ld -64 option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/xpg4/bin/nm -p output from
/opt/solarisstudio12.4/bin/cc 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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/solarisstudio12.4/bin/cc -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 for /opt/solarisstudio12.4/bin/cc option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.4/bin/cc PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.4/bin/cc static flag -Bstatic works... yes
checking if /opt/solarisstudio12.4/bin/cc supports -c -o file.o... yes
checking if /opt/solarisstudio12.4/bin/cc supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.4/bin/cc linker
(/usr/ccs/bin/sparcv9/ld -64 -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for PIC compiler flag... -Kpic
checking for pthread_self in -lpthread... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating pkgconfig/atomic_ops.pc
config.status: creating pkgconfig/atomic_ops-uninstalled.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
mimas$
mimas$


... compile is running
Dennis Clarke
2016-11-23 20:52:31 UTC
Permalink
Post by Dennis Clarke
Post by Bruce Hoult
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
Bruce Hoult
2016-11-23 21:06:21 UTC
Permalink
make check
Post by Dennis Clarke
Post by Dennis Clarke
Post by Bruce Hoult
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
@(#)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
_______________________________________________
bdwgc mailing list
https://lists.opendylan.org/mailman/listinfo/bdwgc
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Dennis Clarke
2016-11-23 21:31:26 UTC
Permalink
Post by Bruce Hoult
make check
Looks good except for a core dump. See my next email post please Sir.


dc
Dennis Clarke
2016-11-23 22:16:02 UTC
Permalink
At this point I will dig into the core dump during the testsuite and see
why bufp went well into nowhereland at line 3597 of os_dep.c.

At the moment I see that the bufp starts off at 3554 nicely :

3554: bufp = GC_proc_buf;


(dbx) print GC_proc_buf

GC_proc_buf = 0x100157000 ""


seems safe enough.

Then we jump around a bit using the sizeof(some struct) from thereon
downwards.

Would love to single step through this.

In any case .. I am looking into it.

Dennis

Loading...