jichu4n / prc-tools-remix

prc-tools ported to modern Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The new verison of bison on Ubunut 18.04 is more strict in some cases so it cannot compile

user5518 opened this issue · comments

mkdir minitooldir
mkdir minitooldir/bin
cd minitooldir/bin; ln -s ../../binutils/gas/as-new as
cd minitooldir/bin; ln -s ../../binutils/ld/ld-new ld
touch binutils.stamp
cwd=`pwd`; cd gcc && make AR_FOR_TARGET="$cwd/binutils/binutils/ar" RANLIB_FOR_TARGET="$cwd/binutils/binutils/ranlib" build_tooldir="$cwd/minitooldir" MAKEINFO= all
make[2]: Entering directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc'
make[3]: Entering directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc/libiberty'
make[4]: Entering directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc/libiberty/testsuite'
make[3]: Leaving directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc/libiberty'
make[3]: Entering directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc/gcc'
(cd intl && make all)
make[4]: Entering directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc/gcc/intl'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc/gcc/intl'
cd ../../../../prc-tools-2.3/gcc/gcc && \
if bison  -o c-p$$.c c-parse.y; then \
  test -f c-p$$.output && mv -f c-p$$.output c-parse.output ; \
  mv -f c-p$$.c c-parse.c ; \
else \
  rm -f c-p$$.* ; \
  false ; \
fi
c-parse.y:1664.19-20: error: $$ for the midrule at $4 of ‘structsp_attr’ has no declared type
                { $$ = start_struct (RECORD_TYPE, $2);
                   ^~
c-parse.y:1674.19-20: error: $$ for the midrule at $4 of ‘structsp_attr’ has no declared type
                { $$ = start_struct (UNION_TYPE, $2); }
                   ^~
c-parse.y:1682.19-20: error: $$ for the midrule at $4 of ‘structsp_attr’ has no declared type
                { $$ = start_enum ($2); }
                   ^~
c-parse.y:1687.19-20: error: $$ for the midrule at $3 of ‘structsp_attr’ has no declared type
                { $$ = start_enum (NULL_TREE); }
                   ^~
make[3]: *** [Makefile:1604: ../../../../prc-tools-2.3/gcc/gcc/c-parse.c] Error 1
make[3]: Leaving directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc/gcc'
make[2]: *** [Makefile:1544: all-gcc] Error 2
make[2]: Leaving directory '/home/parker/build/prc-tools-remix/build/arm-palmos/gcc'
make[1]: *** [Makefile:84: real-gcc] Error 2
make[1]: Leaving directory '/home/parker/build/prc-tools-remix/build/arm-palmos'
make: *** [Makefile:95: arm-palmos] Error 2

This is the error when running "make". There is already a fix from stevelittle:
stevelittle@7480169