[M3devel] problems on FreeBSD 10.0-RELEASE
mika at async.caltech.edu
mika at async.caltech.edu
Wed Aug 27 20:54:59 CEST 2014
I think last time I tried on FreeBSD (AMD64_FREEBSD) it was working again.
But of course pthreads are still broken on that system. Haven't had time to look at that.
Mika
=?utf-8?Q?Dragi=C5=A1a_Duri=C4=87?= writes:
>
>--Apple-Mail=_CFCEC712-B5CE-4266-A433-4CACD1B61CFA
>Content-Transfer-Encoding: quoted-printable
>Content-Type: text/plain;
> charset=us-ascii
>
>Mika,
>
>If you did not fix this already - last commit on origin/master probably =
>will do it for you.
>
>dd
>
>On 26 May 2014, at 21:22, mika at async.caltech.edu wrote:
>
>> Hi m3devel,
>>=20
>> The usual story.. new computer, new OS, trying to set up CM3.
>>=20
>> I installed the binary snapshot=20
>>=20
>> =
>cm3-bin-core-AMD64_FREEBSD-d5.9.0-x86_64-unknown-freebsd8.3-2013-10-15-17-=
>59-51.tgz
>>=20
>> cvs synced against current as of today
>>=20
>> ran ./upgrade.sh and got various errors. (See below.) Versions...
>>=20
>> 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
>>=20
>> root at pluto:/home/mika/cm3/cm3/scripts # gcc -v
>> Using built-in specs.
>> COLLECT_GCC=3Dgcc
>> =
>COLLECT_LTO_WRAPPER=3D/usr/local/libexec/gcc47/gcc/x86_64-portbld-freebsd1=
>0.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=3D/usr/local/lib/gcc47 --libexecdir=3D/usr/local/libexec/gcc47 =
>--program-suffix=3D47 --with-as=3D/usr/local/bin/as =
>--with-gmp=3D/usr/local =
>--with-gxx-include-dir=3D/usr/local/lib/gcc47/include/c++/ =
>--with-ld=3D/usr/local/bin/ld --with-pkgversion=3D'FreeBSD Ports =
>Collection' --with-system-zlib =
>--with-ecj-jar=3D/usr/local/share/java/ecj-4.5.jar =
>--enable-languages=3Dc,c++,objc,fortran,java --prefix=3D/usr/local =
>--mandir=3D/usr/local/man --infodir=3D/usr/local/info/gcc47 =
>--build=3Dx86_64-portbld-freebsd10.0
>> Thread model: posix
>> gcc version 4.7.3 (FreeBSD Ports Collection)=20
>> root at pluto:/home/mika/cm3/cm3/scripts #=20
>>=20
>> Any ideas? It looks like gcc is having trouble compiling gcc?
>>=20
>> Mika
>>=20
>>=20
>> 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) =3D 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) =3D 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=3D"gmake -j4 " AUTOCONF=3D: AUTOMAKE=3D: LEX=3D'touch lex.yy.c' =
>MAKEINFO=3D: -j4 s-modes insn-config.h m3cg
>>=20
>> --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
>>=20
>> Fatal Error: package build failed
>> =3D=3D> /home/mika/cm3/cm3/m3-sys/m3cc done
>>=20
>> 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
>>=20
>> --procedure-- -line- -file---
>> 2 /usr/local/cm3/bin/cm3.cfg
>> target:=20
>>=20
>> ./upgrade.sh: /home/mika/cm3/cm3/m3-sys/m3cc/AMD64_FREEBSD/cm3cg: not =
>found
>> root at pluto:/home/mika/cm3/cm3/scripts #=20
>>=20
>
>
>--Apple-Mail=_CFCEC712-B5CE-4266-A433-4CACD1B61CFA
>Content-Transfer-Encoding: 7bit
>Content-Disposition: attachment;
> filename=signature.asc
>Content-Type: application/pgp-signature;
> name=signature.asc
>Content-Description: Message signed with OpenPGP using GPGMail
>
>-----BEGIN PGP SIGNATURE-----
>Comment: GPGTools - http://gpgtools.org
>
>iQEcBAEBAgAGBQJT/iYoAAoJEJtljYXUJo8xYuYIAJLvrSpyyxo3vfbZCBNB6ZrB
>FCuFUQSoro+s/mxDBH1xGFd403ZfZTGZfrSOJLr/4ydZqdMJHokdAtUrgA12E6C+
>oR874yVlEPHw1LXBaiSAuBi3C/RrlGbop5DDzSx5dsyFtD6Zta8Dg28vJrbpAUbJ
>iPZuoW17jXnHw91DdHtN4OiEm8Z2GUZyUrF5W3bbRc8NVYYwd7i81eEAwQajxXqU
>nu5l57GjgeQKwf2GRQm0V4rVJl5qjeQm/awH/np+d4gwgN1Zau7QQGaBftZgkp0O
>FII3NXJGPAqzNlUF/yC2lhhomAGs8FFU2wNTxWcQFLgbp1ZXkcSkx1q9q2EvlnI=
>=HjrH
>-----END PGP SIGNATURE-----
>
>--Apple-Mail=_CFCEC712-B5CE-4266-A433-4CACD1B61CFA--
More information about the M3devel
mailing list