[M3devel] problems on FreeBSD 10.0-RELEASE

mika at async.caltech.edu mika at async.caltech.edu
Mon May 26 21:22:46 CEST 2014


Hi m3devel,

The usual story.. new computer, new OS, trying to set up CM3.

I installed the binary snapshot 

cm3-bin-core-AMD64_FREEBSD-d5.9.0-x86_64-unknown-freebsd8.3-2013-10-15-17-59-51.tgz

cvs synced against current as of today

ran ./upgrade.sh and got various errors.  (See below.)  Versions...

root at pluto:/home/mika/cm3/cm3/scripts # uname -a
FreeBSD pluto 10.0-RELEASE-p3 FreeBSD 10.0-RELEASE-p3 #0: Tue May 13 18:31:10 UTC 2014     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

root at pluto:/home/mika/cm3/cm3/scripts # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc47/gcc/x86_64-portbld-freebsd10.0/4.7.3/lto-wrapper
Target: x86_64-portbld-freebsd10.0
Configured with: ./../gcc-4.7.3/configure --disable-bootstrap --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc47 --libexecdir=/usr/local/libexec/gcc47 --program-suffix=47 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc47/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --with-ecj-jar=/usr/local/share/java/ecj-4.5.jar --enable-languages=c,c++,objc,fortran,java --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/gcc47 --build=x86_64-portbld-freebsd10.0
Thread model: posix
gcc version 4.7.3 (FreeBSD Ports Collection) 
root at pluto:/home/mika/cm3/cm3/scripts # 

Any ideas?  It looks like gcc is having trouble compiling gcc?

     Mika


build/gcov-iov '4.7.1' '' \
    > tmp-gcov-iov.h
/bin/sh ../../gcc-4.7/gcc/../move-if-change tmp-gcov-iov.h gcov-iov.h
echo timestamp > s-iov
gcc -c  -DIN_GCC_FRONTEND -g -O2 -DIN_GCC  -Wno-missing-field-initializers -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.7/gcc -I../../gcc-4.7/gcc/. -I../../gcc-4.7/gcc/../include -I../../gcc-4.7/gcc/../libcpp/include -I/usr/local/include ../../gcc-4.7/gcc/attribs.c -o attribs.o
gcc -c   -g -O2 -DIN_GCC  -Wno-missing-field-initializers -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.7/gcc -I../../gcc-4.7/gcc/. -I../../gcc-4.7/gcc/../include -I../../gcc-4.7/gcc/../libcpp/include -I/usr/local/include ../../gcc-4.7/gcc/main.c -o main.o
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:46:
In file included from ../../gcc-4.7/gcc/tree.h:30:
../../gcc-4.7/gcc/statistics.h:48:46: error: reference to 'function' is ambiguous
extern void statistics_counter_event (struct function *, const char *, int);
                                             ^
../../gcc-4.7/gcc/statistics.h:41:8: note: candidate found by name lookup is 'function'
struct function;
       ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:46:
In file included from ../../gcc-4.7/gcc/tree.h:30:
../../gcc-4.7/gcc/statistics.h:49:48: error: reference to 'function' is ambiguous
extern void statistics_histogram_event (struct function *, const char *, int);
                                               ^
../../gcc-4.7/gcc/statistics.h:41:8: note: candidate found by name lookup is 'function'
struct function;
       ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
gcc -c   -g -O2 -DIN_GCC  -Wno-missing-field-initializers -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.7/gcc -I../../gcc-4.7/gcc/. -I../../gcc-4.7/gcc/../include -I../../gcc-4.7/gcc/../libcpp/include -I/usr/local/include ../../gcc-4.7/gcc/tree-browser.c -o tree-browser.o
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:46:
../../gcc-4.7/gcc/tree.h:3547:10: error: reference to 'function' is ambiguous
  struct function *f;
         ^
../../gcc-4.7/gcc/tree.h:2653:8: note: candidate found by name lookup is 'function'
struct function;
       ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
In file included from ../../gcc-4.7/gcc/basic-block.h:26:
../../gcc-4.7/gcc/function.h:643:24: error: reference to 'function' is ambiguous
add_local_decl (struct function *fun, tree d)
                       ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
In file included from ../../gcc-4.7/gcc/basic-block.h:26:
../../gcc-4.7/gcc/function.h:657:23: error: reference to 'function' is ambiguous
extern GTY(()) struct function *cfun;
                      ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
In file included from ../../gcc-4.7/gcc/basic-block.h:26:
../../gcc-4.7/gcc/function.h:693:30: error: reference to 'function' is ambiguous
extern void set_cfun (struct function *new_cfun);
                             ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
In file included from ../../gcc-4.7/gcc/basic-block.h:26:
../../gcc-4.7/gcc/function.h:694:31: error: reference to 'function' is ambiguous
extern void push_cfun (struct function *new_cfun);
                              ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
In file included from ../../gcc-4.7/gcc/basic-block.h:26:
../../gcc-4.7/gcc/function.h:732:40: error: reference to 'function' is ambiguous
extern void free_after_parsing (struct function *);
                                       ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
In file included from ../../gcc-4.7/gcc/basic-block.h:26:
../../gcc-4.7/gcc/function.h:733:44: error: reference to 'function' is ambiguous
extern void free_after_compilation (struct function *);
                                           ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
In file included from ../../gcc-4.7/gcc/basic-block.h:26:
../../gcc-4.7/gcc/function.h:764:50: error: reference to 'function' is ambiguous
extern bool optimize_function_for_size_p (struct function *);
                                                 ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
In file included from ../../gcc-4.7/gcc/basic-block.h:26:
../../gcc-4.7/gcc/function.h:765:51: error: reference to 'function' is ambiguous
extern bool optimize_function_for_speed_p (struct function *);
                                                  ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:53:
In file included from ../../gcc-4.7/gcc/gimple.h:32:
../../gcc-4.7/gcc/basic-block.h:779:31: error: reference to 'function' is ambiguous
extern void init_flow (struct function *);
                              ^../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:59:
../../gcc-4.7/gcc/output.h:137:6: warning: 'format' attribute argument not supported: __asm_fprintf__ [-Wignored-attributes]
     ATTRIBUTE_ASM_FPRINTF(2, 3);
     ^
../../gcc-4.7/gcc/output.h:123:53: note: expanded from macro 'ATTRIBUTE_ASM_FPRINTF'
#define ATTRIBUTE_ASM_FPRINTF(m, n) __attribute__ ((__format__ (__asm_fprintf__, m, n))) ATTRIBUTE_NONNULL(m)
                                                    ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:63:
../../gcc-4.7/gcc/langhooks-def.h:40:38: error: reference to 'function' is ambiguous
extern void lhd_do_nothing_f (struct function *);
                                     ^
../../gcc-4.7/gcc/function.h:503:16: note: candidate found by name lookup is 'function'
struct GTY(()) function {
               ^
/usr/include/c++/v1/__functional_03:206:44: note: candidate found by name lookup is 'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS function; // undefined
                                           ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:69:
In file included from ../../gcc-4.7/gcc/expr.h:28:
In file included from ../../gcc-4.7/gcc/rtl.h:2244:
./genrtl.h:385:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XWINT (rt, 1) = arg1;
  ^          ~
../../gcc-4.7/gcc/rtl.h:633:29: note: expanded from macro 'XWINT'
#define XWINT(RTX, N)               ((RTX)->u.hwint[N])
                                     ^
../../gcc-4.7/gcc/rtl.h:344:5: note: array 'hwint' declared here
    HOST_WIDE_INT hwint[1];
    ^
../../gcc-4.7/gcc/hwint.h:64:26: note: expanded from macro 'HOST_WIDE_INT'
#   define HOST_WIDE_INT long
                         ^
In file included from ../../gcc-4.7/gcc/m3cg/parse.c:69:
In file included from ../../gcc-4.7/gcc/expr.h:28:
In file included from ../../gcc-4.7/gcc/rtl.h:2244:
./genrtl.h:386:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XWINT (rt, 2) = arg2;
  ^          ~
../../gcc-4.7/gcc/rtl.h:633:29: note: expanded from macro 'XWINT'
#define XWINT(RTX, N)               ((RTX)->u.hwint[N])
                                     ^
../../gcc-4.7/gcc/rtl.h:344:5: note: array 'hwint' declared here
    HOST_WIDE_INT hwint[1];
    ^../../gcc-4.7/gcc/hwint.h:64:26: note: expanded from macro 'HOST_WIDE_INT'
#   define HOST_WIDE_INT long
                         ^
3 warnings and 13 errors generated.
gmake: *** [m3cg/parse.o] Error 1
gmake: *** Waiting for unfinished jobs....
/bin/sh ../../gcc-4.7/gcc/../move-if-change tmp-attrtab.c insn-attrtab.c
echo timestamp > s-attrtab
/bin/sh ../../gcc-4.7/gcc/../move-if-change tmp-automata.c insn-automata.c
echo timestamp > s-automata
"/usr/home/mika/cm3/cm3/m3-sys/m3cc/src/m3makefile", line 327: quake runtime error: exit 2: cd ../AMD64_FREEBSD && cd gcc && gmake  MAKE="gmake -j4  "  AUTOCONF=: AUTOMAKE=: LEX='touch lex.yy.c' MAKEINFO=: -j4  s-modes insn-config.h m3cg

--procedure--  -line-  -file---
exec               --  <builtin>
m3cc_Run          327  /usr/home/mika/cm3/cm3/m3-sys/m3cc/src/m3makefile
include_dir       577  /usr/home/mika/cm3/cm3/m3-sys/m3cc/src/m3makefile
                    6  /usr/home/mika/cm3/cm3/m3-sys/m3cc/AMD64_FREEBSD/m3make.args

Fatal Error: package build failed
 ==> /home/mika/cm3/cm3/m3-sys/m3cc done

Critical Mass Modula-3 version d5.9.0
  last updated: 2010-07-21
  compiled: 2014-05-26 19:11:28
  configuration: /usr/local/cm3/bin/cm3.cfg
  host: AMD64_FREEBSD
quake runtime error: "/usr/local/cm3/bin/cm3.cfg", line 2: quake runtime error: undefined variable: SL

--procedure--  -line-  -file---
                    2  /usr/local/cm3/bin/cm3.cfg
  target: 

./upgrade.sh: /home/mika/cm3/cm3/m3-sys/m3cc/AMD64_FREEBSD/cm3cg: not found
root at pluto:/home/mika/cm3/cm3/scripts # 




More information about the M3devel mailing list