[M3devel] building CM3 on a Raspberry Pi?
Jay
jay.krell at cornell.edu
Mon Oct 14 18:09:44 CEST 2013
Another thing you can try is from the history, figure out which gcc version I was using when I added Armel/Linux. Or just try older. See m3-sys/m3cc/m3makefile. It is meant to support a few versions.
- Jay
On Oct 14, 2013, at 9:07 AM, Jay <jay.krell at cornell.edu> wrote:
> ./../gcc-4.7/libiberty/stack-limit.c:52: error: `u_quad_t' undeclared (first use in this function)if [ x"" != x ]; then \
>
>
> Maybe I removed too much. I.e. libquadmath. That should be easy to fix and/or switch to C backend.
>
>
> I forgot: besides switching the config file: add the parameter "c" to boot1.py.
>
>
> I'll *try* to build a bootstrap archive with cm3cg or C this week.
>
>
> Cm3.cfg: yes it might do that. I can see about using a separate file but no promises there. A flaw perhaps in some of my earlier thinking was over eagerness in when the config files get updated. The older config files were in general very flawed IMHO. But maybe good to leave them alone in early bootstrap, if they worked. But I really had a lot of problems with them. The current ones don't require cminstall, have less version/target-specific code, have far less duplication, and are meant to work with older cm3 (albeit maybe give up on dynamic linking with older versions).
>
>
> - Jay
>
> On Oct 14, 2013, at 8:19 AM, <mika at async.caltech.edu> wrote:
>
>>
>> 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 strerror.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 strsignal.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 timeval-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=: AUTOMAKE=: 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