Michael Shell <list1@xxxxxxxxxxxxxxxx> writes: > Thank you. OK, I did. The result is below. I don't see (well, at least > a search by my text editor did not find) *any* reference to auto-host.h. The problem is here: > .. ../libdecnumber/config.h This needs to be gcc/config.h, not libdecnumber/config.h. It's picking up libdecnumber/config.h because of the -I../libdecnumber on the command line. That is odd, because on the command line -I. appears before -I../libdecnumber. The command should be run in the gcc build directory. There should be a config.h in that directory. The -I. should cause that config.h to be used first. Do you in fact have a config.h in that directory? If so I don't understand why it is not being used instead of ../libdecnumber/config.h. > I wonder if *anyone* has tried to build gccgo on 4.6.3 (on an x86 > system) yet (or even 4.6.x for that matter). Sure, many people have, including me just before I sent the previous reply. It worked fine for me on x86_64 GNU/Linux. Ian > =========== > g++ -c -H -I ../../gcc-4.6.3/gcc/go -I ../../gcc-4.6.3/gcc/go/gofrontend -I. -Igo -I../../gcc-4.6.3/gcc -I../../gcc-4.6.3/gcc/go -I../../gcc-4.6.3/gcc/../include -I../../gcc-4.6.3/gcc/../libcpp/include -I../../gcc-4.6.3/gcc/../libdecnumber -I../../gcc-4.6.3/gcc/../libdecnumber/bid -I../libdecnumber -fomit-frame-pointer -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -DHAVE_CONFIG_H ../../gcc-4.6.3/gcc/go/gofrontend/dataflow.cc -o go/dataflow.o > . ../../gcc-4.6.3/gcc/go/go-system.h > .. ../libdecnumber/config.h > .. /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/algorithm > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/c++config.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/os_defines.h > ...... /usr/include/features.h > ....... /usr/include/sys/cdefs.h > ........ /usr/include/bits/wordsize.h > ....... /usr/include/gnu/stubs.h > ........ /usr/include/bits/wordsize.h > ........ /usr/include/gnu/stubs-32.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/cpu_defines.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstring > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstddef > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ..... /usr/include/string.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ...... /usr/include/xlocale.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/climits > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/limits.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/syslimits.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/limits.h > ........ /usr/include/limits.h > ......... /usr/include/bits/posix1_lim.h > .......... /usr/include/bits/local_lim.h > ........... /usr/include/linux/limits.h > ......... /usr/include/bits/posix2_lim.h > ......... /usr/include/bits/xopen_lim.h > .......... /usr/include/bits/stdio_lim.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstdlib > ..... /usr/include/stdlib.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ...... /usr/include/bits/waitflags.h > ...... /usr/include/bits/waitstatus.h > ....... /usr/include/endian.h > ........ /usr/include/bits/endian.h > ...... /usr/include/sys/types.h > ....... /usr/include/bits/types.h > ........ /usr/include/bits/wordsize.h > ........ /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ........ /usr/include/bits/typesizes.h > ....... /usr/include/time.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ....... /usr/include/sys/select.h > ........ /usr/include/bits/select.h > ........ /usr/include/bits/sigset.h > ........ /usr/include/time.h > ........ /usr/include/bits/time.h > ....... /usr/include/sys/sysmacros.h > ....... /usr/include/bits/pthreadtypes.h > ...... /usr/include/alloca.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/iosfwd > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/c++locale.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstdio > ....... /usr/include/stdio.h > ........ /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ........ /usr/include/libio.h > ......... /usr/include/_G_config.h > .......... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > .......... /usr/include/wchar.h > ........... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ........... /usr/include/bits/wchar.h > .......... /usr/include/gconv.h > ........... /usr/include/wchar.h > ............ /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ........... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ......... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stdarg.h > ........ /usr/include/bits/stdio_lim.h > ........ /usr/include/bits/sys_errlist.h > ........ /usr/include/bits/stdio.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/clocale > ....... /usr/include/locale.h > ........ /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ........ /usr/include/bits/locale.h > ...... /usr/include/langinfo.h > ....... /usr/include/nl_types.h > ....... /usr/include/bits/locale.h > ...... /usr/include/iconv.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ...... /usr/include/libintl.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/c++io.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/gthr.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/gthr-default.h > ........ /usr/include/pthread.h > ......... /usr/include/sched.h > .......... /usr/include/time.h > .......... /usr/include/bits/sched.h > ......... /usr/include/time.h > .......... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > .......... /usr/include/bits/time.h > ......... /usr/include/signal.h > .......... /usr/include/bits/sigset.h > ......... /usr/include/bits/setjmp.h > ......... /usr/include/bits/wordsize.h > ........ /usr/include/unistd.h > ......... /usr/include/bits/posix_opt.h > ......... /usr/include/bits/environments.h > ......... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ......... /usr/include/bits/confname.h > ......... ../../gcc-4.6.3/gcc/../include/getopt.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cctype > ...... /usr/include/ctype.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stringfwd.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/postypes.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cwchar > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ctime > ....... /usr/include/wchar.h > ........ /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stdarg.h > ........ /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ...... /usr/include/stdint.h > ....... /usr/include/bits/wordsize.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/functexcept.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/exception_defines.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_pair.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/cpp_type_traits.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_iterator_base_types.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_iterator_base_funcs.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/concept_check.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_iterator.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/debug/debug.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_construct.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/new > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/exception > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_uninitialized.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_heap.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tempbuf.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/memory > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/allocator.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/c++allocator.h > ........ /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ext/new_allocator.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_raw_storage_iter.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/limits > .. /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/string > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/char_traits.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_function.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/basic_string.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/atomicity.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/atomic_word.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/basic_string.tcc > .. /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/list > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/list.tcc > .. /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/map > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_map.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_multimap.h > .. /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/set > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_set.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_multiset.h > .. /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/vector > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_bvector.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/vector.tcc > In file included from ../../gcc-4.6.3/gcc/go/gofrontend/dataflow.cc:7: > ../../gcc-4.6.3/gcc/go/go-system.h:118:3: error: #error "requires hash table type" > .. /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/iostream > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ostream > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ios > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/localefwd.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/ios_base.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/locale_classes.h > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/streambuf > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/streambuf.tcc > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/basic_ios.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/streambuf_iterator.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/locale_facets.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cwctype > ........ /usr/include/wctype.h > ......... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/ctype_base.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/ctype_inline.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/codecvt.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/time_members.h > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i586-pc-linux-gnu/bits/messages_members.h > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/basic_ios.tcc > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/ostream.tcc > ..... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/locale > ...... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/locale_facets.tcc > ....... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/typeinfo > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/istream > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/istream.tcc > .. ../../gcc-4.6.3/gcc/system.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stdarg.h > ... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > ... ../../gcc-4.6.3/gcc/../include/safe-ctype.h > ... /usr/include/errno.h > .... /usr/include/bits/errno.h > ..... /usr/include/linux/errno.h > ...... /usr/include/asm/errno.h > ....... /usr/include/asm-generic/errno.h > ........ /usr/include/asm-generic/errno-base.h > ... ../../gcc-4.6.3/gcc/hwint.h > ... /usr/include/signal.h > .... /usr/include/bits/sigset.h > .... /usr/include/bits/signum.h > .... /usr/include/bits/siginfo.h > ..... /usr/include/bits/wordsize.h > .... /usr/include/bits/sigaction.h > .... /usr/include/bits/sigcontext.h > ..... /usr/include/asm/sigcontext.h > ...... /usr/include/linux/compiler.h > .... /usr/include/bits/sigstack.h > .... /usr/include/sys/ucontext.h > ..... /usr/include/bits/sigcontext.h > .... /usr/include/bits/sigthread.h > ... /usr/include/inttypes.h > ... /usr/include/sys/stat.h > .... /usr/include/bits/stat.h > ... ../../gcc-4.6.3/gcc/../include/filenames.h > ... ../../gcc-4.6.3/gcc/../include/libiberty.h > .... ../../gcc-4.6.3/gcc/../include/ansidecl.h > .... /usr/lib/gcc/i586-pc-linux-gnu/4.1.2/include/stddef.h > .. ../../gcc-4.6.3/gcc/../include/ansidecl.h > .. ../../gcc-4.6.3/gcc/coretypes.h > .. ../../gcc-4.6.3/gcc/diagnostic-core.h > ... ../../gcc-4.6.3/gcc/input.h > .... ../../gcc-4.6.3/gcc/../libcpp/include/line-map.h > ... ./bversion.h > ... ../../gcc-4.6.3/gcc/diagnostic.def > .. ../../gcc-4.6.3/gcc/input.h > . ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h > . ../../gcc-4.6.3/gcc/go/gofrontend/expressions.h > .. /usr/include/gmp.h > .. /usr/include/mpfr.h > .. ../../gcc-4.6.3/gcc/go/gofrontend/operator.h > . ../../gcc-4.6.3/gcc/go/gofrontend/statements.h > . ../../gcc-4.6.3/gcc/go/gofrontend/dataflow.h > ../../gcc-4.6.3/gcc/system.h:462: error: declaration of C function 'const char* strsignal(int)' conflicts with > /usr/include/string.h:359: error: previous declaration 'char* strsignal(int)' here > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:640: error: ISO C++ forbids declaration of 'Unordered_map_hash' with no type > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:640: error: expected ';' before 'Map_descriptors' > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:644: error: ISO C++ forbids declaration of 'Unordered_map_hash' with no type > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:644: error: expected ';' before 'Type_descriptor_decls' > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:661: error: ISO C++ forbids declaration of 'Map_descriptors' with no type > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:661: error: expected ';' before '*' token > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:663: error: ISO C++ forbids declaration of 'Type_descriptor_decls' with no type > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:663: error: expected ';' before '*' token > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:2422: error: ISO C++ forbids declaration of 'Unordered_set_hash' with no type > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:2422: error: expected ';' before 'Types_seen' > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:2429: error: ISO C++ forbids declaration of 'Types_seen' with no type > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:2429: error: expected ';' before '*' token > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h: In constructor 'Traverse::Traverse(unsigned int)': > ../../gcc-4.6.3/gcc/go/gofrontend/gogo.h:2358: error: class 'Traverse' does not have any field named 'types_seen_' > ===========