[M3devel] building CM3 on a Raspberry Pi?

Jay jay.krell at cornell.edu
Mon Oct 14 18:15:11 CEST 2013


Could be related to my removal of the C frontends. C frontend sometimes gets intermingled with backends, possibly target-specific parts. Should be easy to deal with...

 - Jay

On Oct 14, 2013, at 8:54 AM, <mika at async.caltech.edu> wrote:

> 
> Well it looked to me like the quad_t issue was a mistake in the GCC code.  getrlimit requires #include <sys/types.h> on my system at least.
> 
> But this is less clear to me:
> 
> echo '#include "tree.def"' > tmp-all-tree.def
> echo timestamp > s-gtyp-input
> echo 'END_OF_BASE_TREE_CODES' >> tmp-all-tree.def
> echo "#define BUILDING_GCC_PATCHLEVEL `echo 4.7.1 | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`" >> bversion.h
> echo '#include "c-family/c-common.def"' >> tmp-all-tree.def
> TARGET_CPU_DEFAULT="" \
> HEADERS="auto-host.h ansidecl.h" DEFINES="" \
> /bin/bash ../../gcc-4.7/gcc/mkconfig.sh config.h
> gmake: *** No rule to make target `c-family/c-pragma.h', needed by `arm.o'.  Stop.
> gmake: *** Waiting for unfinished jobs....
> ltf=""; for f in $ltf; do \
>  echo "#include \"$f\""; \
> done | sed 's|../../gcc-4.7/gcc/||' >> tmp-all-tree.def
> echo "#define BUILDING_GCC_VERSION (BUILDING_GCC_MAJOR * 1000 + BUILDING_GCC_MINOR)" >> bversion.h
> /bin/bash ../../gcc-4.7/gcc/../move-if-change tmp-all-tree.def all-tree.def
> echo timestamp > s-bversion
> echo timestamp > s-alltree
> "/big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile", line 339: quake runtime error: exit 2: cd ../FreeBSD4-ARMEL_LINUX && 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          339  /big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile
> include_dir       589  /big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile
>                    9  /big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/ARMEL_LINUX/m3make.args
> 
> Fatal Error: package build failed
> *** execution of [<function _BuildLocalFunction at 0x82d55a4>] failed ***
> (137)rover:~/cm3-cvs-anon/cm3/scripts/python>
> 
> I don't know if this matters:
> 
> (137)rover:~/cm3-cvs-anon/cm3/scripts/python>uname -a
> FreeBSD rover 5.5-RELEASE FreeBSD 5.5-RELEASE #0: Sat May 24 10:13:58 PDT 2008     root at rover:/usr/src/sys/i386/compile/ROVERSMP  i386
> (138)rover:~/cm3-cvs-anon/cm3/scripts/python>gcc -v
> Using built-in specs.
> Configured with: FreeBSD/i386 system compiler
> Thread model: posix
> gcc version 3.4.2 [FreeBSD] 20040728
> 
> mika writes:
>> 
>> OK, with the new cvs update, this happens:
>> 
>> gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../gcc-4.7/libiberty/../include  -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic  ../../gcc-4.7/libiberty/strerror.c -o strerro
>> r.o
>> ../../gcc-4.7/libiberty/stack-limit.c: In function `stack_limit_increase':
>> ../../gcc-4.7/libiberty/stack-limit.c:52: error: `u_quad_t' undeclared (first use in this function)if [ x"" != x ]; then \
>> 
>> gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../gcc-4.7/libiberty/../include  -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic   ../../gcc-4.7/libiberty/strsignal.c -o pic
>> /strsignal.o; \
>> ../../gcc-4.7/libiberty/stack-limit.c:52: error: (Each undeclared identifier is reported only oncechecking for string.h... else true; fi
>> 
>> ../../gcc-4.7/libiberty/stack-limit.c:52: error: for each function it appears in.)
>> gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../gcc-4.7/libiberty/../include  -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic  ../../gcc-4.7/libiberty/strsignal.c -o strsig
>> nal.o
>> ../../gcc-4.7/libiberty/stack-limit.c:52: error: syntax error before numeric constant
>> if [ x"" != x ]; then \
>> ../../gcc-4.7/libiberty/stack-limit.c:54: error: syntax error before numeric constant
>> ../../gcc-4.7/libiberty/stack-limit.c:57: error: syntax error before numeric constant
>> gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../gcc-4.7/libiberty/../include  -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic   ../../gcc-4.7/libiberty/timeval-utils.c -o
>> pic/timeval-utils.o; \
>> else true; fi
>> gmake[1]: *** [stack-limit.o] Error 1
>> gmake[1]: *** Waiting for unfinished jobs....
>> gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../gcc-4.7/libiberty/../include  -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic  ../../gcc-4.7/libiberty/timeval-utils.c -o ti
>> meval-utils.o
>> yes
>> gmake[1]: Leaving directory `/big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/FreeBSD4-ARMEL_LINUX/libiberty'
>> gmake: *** [all-libiberty] Error 2
>> gmake: *** Waiting for unfinished jobs....
>> 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
>> 
>> [ more config output ]
>> 
>> checking for getpagesize... (cached) yes
>> checking for working mmap... yes
>> checking for working strncmp... yes
>> configure: updating cache ../config.cache
>> configure: creating ./config.status
>> config.status: creating Makefile
>> config.status: creating testsuite/Makefile
>> config.status: creating config.h
>> config.status: executing default commands
>> "/big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile", line 339: quake runtime error: exit 2: cd ../FreeBSD4-ARMEL_LINUX && gmake   MAKE="gmake -j4  "  AUTOCONF=: AUTOMA
>> KE=: LEX='touch lex.yy.c' MAKEINFO=: -j4  all-build-libiberty all-libiberty  
>> 
>> --procedure--  -line-  -file---
>> exec               --  <builtin>
>> m3cc_Run          339  /big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile
>> include_dir       580  /big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile
>>                   9  /big/home2/mika/2/cm3-cvs/cm3/m3-sys/m3cc/ARMEL_LINUX/m3make.args
>> 
>> Fatal Error: package build failed
>> *** execution of [<function _BuildLocalFunction at 0x82d55a4>] failed ***
>> (129)rover:~/cm3-cvs-anon/cm3/scripts/python>



More information about the M3devel mailing list