[Gc] "include/private/gcconfig.h", line 604: #error: "The collector has not been ported to this machine/OS combination."
Dennis Clarke <[email protected]> Mon, 21 Nov 2016 08:56:03 -0500
| Newsgroups | gmane.comp.programming.garbage-collection.boehmgc |
|---|---|
| Message-ID | <[email protected]> |
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 : dclarke@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 : dclarke@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. Here is what my configure line and output looks like : dclarke@mimas_$ ./configure --disable-silent-rules \ > --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 : dclarke@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.