Hi,
I tried to install tinyos and mspgcc on a new machine and got the
compiling error when I tried to build gcc-core-3.2.3. Any suggest will be
highly appreciated.
Thanks in advance!
haodong
make[1]: Entering directory
`/opt/tinyos-1.x/tools/src/mspgcc/archive/gcc-3.2.3/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional
-pedantic regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional
-pedantic regex.c
In file included from ./../include/xregex.h:26,
from regex.c:195:
./../include/xregex2.h:548: warning: ISO C90 does not support static or
type qualifiers in parameter array declarators
In file included from regex.c:649:
regex.c: In function byte_compile_range:
regex.c:4602: warning: signed and unsigned type in conditional expression
regex.c:4612: warning: signed and unsigned type in conditional expression
regex.c:4612: warning: signed and unsigned type in conditional expression
regex.c: At top level:
regex.c:1428: warning: traditional C rejects string constant concatenation
regex.c: In function xregcomp:
regex.c:8099: warning: signed and unsigned type in conditional expression
regex.c: In function xregerror:
regex.c:8234: warning: unused parameter preg
............
............
............
rm -f libiberty.a pic/libiberty.a
ar rc libiberty.a \
regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o
concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o
getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o
make-temp-file.o objalloc.o obstack.o partition.o pexecute.o
safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o
ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o
mkstemps.o
ranlib libiberty.a
if [ x"" != x ]; then \
cd pic; \
ar rc libiberty.a \
regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o
concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o
getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o
make-temp-file.o objalloc.o obstack.o partition.o pexecute.o
safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o
ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o
mkstemps.o; \
ranlib libiberty.a; \
cd ..; \
else true; fi
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr
strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf
vfork waitpid bcmp bcopy bzero; do \
for g in mkstemps.o ; do \
case "$g" in \
*$f*) echo $g >> needed-list ;; \
esac; \
done; \
done
echo regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o
concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o
getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o
make-temp-file.o objalloc.o obstack.o partition.o pexecute.o safe-ctype.o
sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o xatexit.o
xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o > required-list
make[2]: Entering directory
`/opt/tinyos-1.x/tools/src/mspgcc/archive/gcc-3.2.3/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/opt/tinyos-1.x/tools/src/mspgcc/archive/gcc-3.2.3/libiberty/testsuite'
make[1]: Leaving directory
`/opt/tinyos-1.x/tools/src/mspgcc/archive/gcc-3.2.3/libiberty'
make[1]: Entering directory
`/opt/tinyos-1.x/tools/src/mspgcc/archive/gcc-3.2.3/gcc'
HEADERS="auto-host.h ansidecl.h msp430/msp430.h defaults.h"
DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ./mkconfig.sh config.h
HEADERS="auto-host.h ansidecl.h msp430/msp430.h defaults.h"
DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ./mkconfig.sh hconfig.h
gcc -c -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./.
-I./config -I./../include ./gengenrtl.c -o gengenrtl.o
In file included from ./gengenrtl.c:26:
./rtl.h:125: warning: type of bit-field code is a GCC extension
./rtl.h:128: warning: type of bit-field mode is a GCC extension
gcc -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
./gengenrtl -h > tmp-genrtl.h
/bin/sh ./move-if-change tmp-genrtl.h genrtl.h
./gengenrtl > tmp-genrtl.c
/bin/sh ./move-if-change tmp-genrtl.c genrtl.c
echo timestamp > s-genrtl
gcc -c -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./.
-I./config -I./../include ./genflags.c -o genflags.o
In file included from ./genflags.c:27:
./rtl.h:125: warning: type of bit-field code is a GCC extension
./rtl.h:128: warning: type of bit-field mode is a GCC extension
gcc -c -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./.
-I./config -I./../include rtl.c -o rtl.o
In file included from rtl.c:24:
rtl.h:125: warning: type of bit-field code is a GCC extension
rtl.h:128: warning: type of bit-field mode is a GCC extension
gcc -c -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./.
-I./config -I./../include ./read-rtl.c -o read-rtl.o
In file included from ./read-rtl.c:24:
./rtl.h:125: warning: type of bit-field code is a GCC extension
./rtl.h:128: warning: type of bit-field mode is a GCC extension
./read-rtl.c: In function fatal_with_file_and_line:
./read-rtl.c:62: warning: traditional C rejects ISO C style function
definitions
./read-rtl.c: In function read_rtx:
./read-rtl.c:662: error: invalid lvalue in increment
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory
`/opt/tinyos-1.x/tools/src/mspgcc/archive/gcc-3.2.3/gcc'
make: *** [all-gcc] Error 2
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help