jichu4n / prc-tools-remix Goto Github PK
View Code? Open in Web Editor NEWprc-tools ported to modern Linux
prc-tools ported to modern Linux
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
hey yall, so anyways I just installed the full palmos dev environment and it actually works with the examples real well . But i have a problem, when i try to compile my own code it gives me a error. the error says: make: *** No rule to make target 'Src/Test.h', needed by 'Obj/Test.o'. Stop. idk what this means so can you help me please also i am running the developmen environment on windows 11 with WSL.
Hey Yall, so anyways when i type make in the terminal to compile a prc file, it gives me a error. The error says:buildtools/toolchain/bin//m68k-none-elf-gcc -o code0001.elf -Wsign-compare -Wextra -Wall -Werror -Wno-unused-parameter -Wno-old-style-declaration -Wno-unused-function -Wno-unused-variable -Wno-error=cpp -Wno-error=switch -Wno-multichar -funsafe-math-optimizations -Os -m68000 -mno-align-int -mpcrel -fpic -fshort-enums -mshort -Wl,--gc-sections -Wl,-T linker.lkr main.cpp
make: buildtools/toolchain/bin//m68k-none-elf-gcc: No such file or directory
make: *** [Makefile:39: code0001.elf] Error 127
idk what to do so can you help me please
I could not manage to get this to get this to compile under Homebrew on High Sierra. I had an issue "undefined reference to libc_name_p." This seems to be related to this issue on stack overflow. To be honest I didn't try to debug the issue, I instead built using the alternate instructions, but had to change the following:
git clone http://github.com/jichu4n/prc-tools-remix.git
cd prc-tools-remix
mkdir build && cd build
../prc-tools-2.3/configure \
--enable-targets=m68k-palmos,arm-palmos \
--enable-languages=c,c++ \
--disable-nls \
--with-palmdev-prefix=/usr/local/opt/palmdev \
--host=i686-apple-darwin
make
sudo make install
So, used http protocol (as not set up for ssh on this box) and needed sudo as otherwise the install failed completely. Also worth noting - if you have installed any of the dependencies listed for Linux using Homebrew, the configure script seems to also fail - I was having an issue inititally where binutils was linking -lfl and not -ll and this prevented compilation from succeeding.
Not tested it compiles yet, but m68k-palmos-gcc seems to run with the standard error about no files if you run the command with no params.
for dir in
echo m68k-palmos arm-palmos multi-bfd doc include tools | sed 's/make//'
; do
(cd ${dir} && make DESTDIR="" install) || exit 1;
done
make[1]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos'
for dir inecho binutils gcc295 gdb crt libc libm | sed 's/make//'
; do
(cd ${dir} && make DESTDIR="" install) || exit 1;
done
make[2]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils'
/bin/sh ../../../prc-tools-2.3/binutils/mkinstalldirs /usr/local /usr/local
make[3]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/intl'
if test "@Package@" = "gettext"
&& test '' = 'intl-compat.o'; then
if test -r ../../../../prc-tools-2.3/binutils/intl/../../mkinstalldirs; then
../../../../prc-tools-2.3/binutils/intl/../../mkinstalldirs /usr/local/lib /usr/local/include;
else
../../../../prc-tools-2.3/binutils/intl/mkinstalldirs /usr/local/lib /usr/local/include;
fi;
/bin/sh /home/aladds/prc-tools-remix/prc-tools-2.3/binutils/install-sh -c -m 644 intlh.inst /usr/local/include/libintl.h;
/bin/sh /home/aladds/prc-tools-remix/prc-tools-2.3/binutils/install-sh -c -m 644 libintl.a /usr/local/lib/libintl.a;
else
: ;
fi
if test "@Package@" = "gettext"; then
if test -r ../../../../prc-tools-2.3/binutils/intl/../../mkinstalldirs; then
../../../../prc-tools-2.3/binutils/intl/../../mkinstalldirs /usr/local/share/gettext/intl;
else
../../../../prc-tools-2.3/binutils/intl/mkinstalldirs /usr/local/share/gettext/intl;
fi;
/bin/sh /home/aladds/prc-tools-remix/prc-tools-2.3/binutils/install-sh -c -m 644 VERSION /usr/local/share/gettext/intl/VERSION;
dists="ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in xopen-msg.sed gettext.h gettextP.h hash-string.h libgettext.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c intl-compat.c cat-compat.c";
for file in $dists; do
/bin/sh /home/aladds/prc-tools-remix/prc-tools-2.3/binutils/install-sh -c -m 644 ../../../../prc-tools-2.3/binutils/intl/$file /usr/local/share/gettext/intl/$file;
done;
else
: ;
fi
make[3]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/intl'
make[3]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/libiberty'
make[4]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/libiberty/testsuite'
/bin/sh ../../../../prc-tools-2.3/binutils/libiberty/../mkinstalldirs /usr/local/lib
/bin/sh /home/aladds/prc-tools-remix/prc-tools-2.3/binutils/install-sh -c -m 644 libiberty.a /usr/local/lib/libiberty.an
( cd /usr/local/lib ; ranlib libiberty.an )
mv -f /usr/local/lib/libiberty.an /usr/local/lib/libiberty.a
if test -n ""; then
case "" in
/*) thd=;;
*) thd=/usr/local/include/;;
esac;
/bin/sh ../../../../prc-tools-2.3/binutils/libiberty/../mkinstalldirs ${thd};
for h in ../../../../prc-tools-2.3/binutils/libiberty/../include/ansidecl.h ../../../../prc-tools-2.3/binutils/libiberty/../include/demangle.h ../../../../prc-tools-2.3/binutils/libiberty/../include/dyn-string.h ../../../../prc-tools-2.3/binutils/libiberty/../include/fibheap.h ../../../../prc-tools-2.3/binutils/libiberty/../include/floatformat.h ../../../../prc-tools-2.3/binutils/libiberty/../include/hashtab.h ../../../../prc-tools-2.3/binutils/libiberty/../include/libiberty.h ../../../../prc-tools-2.3/binutils/libiberty/../include/objalloc.h ../../../../prc-tools-2.3/binutils/libiberty/../include/partition.h ../../../../prc-tools-2.3/binutils/libiberty/../include/safe-ctype.h ../../../../prc-tools-2.3/binutils/libiberty/../include/sort.h ../../../../prc-tools-2.3/binutils/libiberty/../include/splay-tree.h ../../../../prc-tools-2.3/binutils/libiberty/../include/ternary.h; do
/bin/sh /home/aladds/prc-tools-remix/prc-tools-2.3/binutils/install-sh -c -m 644$h $ {thd};
done;
fi
make[4]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/libiberty/testsuite'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/libiberty/testsuite'
make[3]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/libiberty'
make[3]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/opcodes'
Making install in po
make[4]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/opcodes/po'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/opcodes/po'
make[4]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/opcodes'
make[5]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/opcodes'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/opcodes'
make[4]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/opcodes'
make[3]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/opcodes'
make[3]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/bfd'
Making install in doc
make[4]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/bfd/doc'
make[5]: Entering directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/bfd/doc'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/bfd/doc'
makeinfo --no-split -I ../../../../../prc-tools-2.3/binutils/bfd/doc ../../../../../prc-tools-2.3/binutils/bfd/doc/bfd.texinfo
./elf.texi:1: warning: @section missing argument
./bfdt.texi:325: raising the section level of @subsubsection which is too low
./init.texi:5: raising the section level of @subsubsection which is too low
./archive.texi:54: raising the section level of @subsubsection which is too low
./format.texi:27: raising the section level of @subsubsection which is too low
./reloc.texi:497: raising the section level of @subsubsection which is too low
./core.texi:8: raising the section level of @subsubsection which is too low
./opncls.texi:5: raising the section level of @subsubsection which is too low
./libbfd.texi:10: raising the section level of @subsubsection which is too low
./cache.texi:14: raising the section level of @subsubsection which is too low
./elf.texi:13: raising the section level of @subsubsection which is too low
Makefile:290: recipe for target 'bfd.info' failed
make[4]: *** [bfd.info] Error 1
make[4]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/bfd/doc'
Makefile:948: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils/bfd'
Makefile:1662: recipe for target 'install-bfd' failed
make[2]: *** [install-bfd] Error 2
make[2]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos/binutils'
Makefile:120: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/home/aladds/prc-tools-remix/build/m68k-palmos'
Makefile:124: recipe for target 'install' failed
make: *** [install] Error 1
aladds@anoia:~/prc-tools-r
libncurses5-dev is also needed to compile on Linux.
When compiling this on Pop!_OS 19.04 GCC errors out on this:
gcc -c -DCROSS_COMPILE -DIN_GCC -g -O2 -DHAVE_CONFIG_H -I. -I../../../../prc-tools-2.3/gcc295/gcc -I../../../../prc-tools-2.3/gcc295/gcc/config -I../../../../prc-tools-2.3/gcc295/gcc/../include ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c
In file included from ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:31:
../../../../prc-tools-2.3/gcc295/gcc/c-parse.h:74:5: error: redeclaration of enumerator ‘RETURN’
RETURN = 280,
^~~~~~
In file included from ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:24:
../../../../prc-tools-2.3/gcc295/gcc/rtl.def:503:14: note: previous definition of ‘RETURN’ was here
DEF_RTL_EXPR(RETURN, "return", "", 'x')
^~~~~~
../../../../prc-tools-2.3/gcc295/gcc/rtl.h:41:51: note: in definition of macro ‘DEF_RTL_EXPR’
#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) ENUM ,
^~~~
../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:65: warning: "YYDEBUG" redefined
#define YYDEBUG 1
In file included from ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:31:
../../../../prc-tools-2.3/gcc295/gcc/c-parse.h:41: note: this is the location of the previous definition
# define YYDEBUG 0
In file included from ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:133:
../../../../prc-tools-2.3/gcc295/gcc/c-gperf.h:192:21: warning: ‘wordlist’ is static but used in inline function ‘is_reserved_word’ which is not static
return &wordlist[key];
^~~~~~~~
../../../../prc-tools-2.3/gcc295/gcc/c-gperf.h:189:36: warning: ‘wordlist’ is static but used in inline function ‘is_reserved_word’ which is not static
register const char *s = wordlist[key].name;
^~~~~~~~
../../../../prc-tools-2.3/gcc295/gcc/c-gperf.h:185:26: warning: ‘hash’ is static but used in inline function ‘is_reserved_word’ which is not static
register int key = hash (str, len);
^~~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.