Hello,
I just bought my fx-cg20 calculator, and immediatly wanted to start coding for it. I found PrizmSDK and used this script to install it:
Code:
binutils compiles normally, but when it reaches gcc it fails saying:
Code:
I would appreciate any help since I really want to get to programming for the calculator.
Thanks in advance
I just bought my fx-cg20 calculator, and immediatly wanted to start coding for it. I found PrizmSDK and used this script to install it:
Code:
#!/bin/sh
TARGET=sh3eb-elf
SRC="/usr/src"
PREFIX="/home/the_true_potato/casio-gcc"
PARALLEL="-j"
SDKDIR="/home/the_true_potato"
BINUTILS=binutils-2.22 # http://www.gnu.org/software/binutils/
GCC=gcc-4.6.3 # http://gcc.gnu.org/
MKG3A=mkg3a-0.2a #https://bitbucket.org/tari/mkg3a/downloads/mkg3a-0.2a.tar.gz
chmod a+rw $SRC
mkdir $PREFIX $SRC/$MKG3A $SRC/build-binutils $SRC/build-gcc
cd $SRC
(wget -c http://ftpmirror.gnu.org/binutils/$BINUTILS.tar.bz2 && tar -xvjf $BINUTILS.tar.bz2 && cd $SRC/build-binutils && ../$BINUTILS/./configure --target=$TARGET --prefix=$PREFIX --disable-nls --disable-werror && make $PARALLEL && make install && cd .. && rm -r build-binutils) || exit 1
export PATH=$PATH:$PREFIX/bin #This is CRUCIAL. Do NOT remove this or build will FAIL!
(cd $SRC && wget -c http://ftpmirror.gnu.org/gcc/$GCC/$GCC.tar.bz2 && tar -xvjf $GCC.tar.bz2 && cd build-gcc && ../$GCC/./configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c,c++ --without-headers --disable-werror && make $PARALLEL all-gcc && make install-gcc && make $PARALLEL all-target-libgcc && make install-target-libgcc && cd .. && rm -r build-gcc) || exit 1
(cd $SRC && wget -c https://bitbucket.org/tari/mkg3a/downloads/mkg3a-0.2a.tar.gz && tar -xvzf $MKG3A.tar.gz && cd $MKG3A && cmake . && make $PARALLEL && make install && cd .. && rm -r $MKG3A) || exit 1
(cd $SDKDIR && mkdir PrizmSDK && chmod a+rw PrizmSDK && sudo -u $SUDO_USER git clone https://github.com/Jonimoose/libfxcg.git PrizmSDK && cd PrizmSDK && make $PARALLEL && cd toolchain && cp prizm_rules prizm_rules.bak && head -17 prizm_rules.bak > prizm_rules && echo "PREFIX := $PREFIX/bin/sh3eb-elf-" >> prizm_rules && tail -59 prizm_rules.bak >> prizm_rules) || exit 1
binutils compiles normally, but when it reaches gcc it fails saying:
Code:
/home/the_true_potato/casio-gcc/sh3eb-elf/bin/as: unrecognized option '--64'
Makefile:3838: recipe for target 'build/version.o' failed
make[1]: *** [build/version.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv tmp-sysroot-suffix.h sysroot-suffix.h
make[1]: *** wait: No child processes. Stop.
Makefile:5264: recipe for target 'all-gcc' failed
make: *** [all-gcc] Error 2
I would appreciate any help since I really want to get to programming for the calculator.
Thanks in advance