Hi, I'm trying to set up a working environment to develop my first program for my Casio. I followed the wiki recompiling gcc with the specific target and I cloned the SDK, I tried to compile the example project but I got this error:
Code:
I later checked whether the library files were present and they aren't. I followed the wiki step by step precisely and I don't think to have left something behind. Do you know what I did wrong?
Here is the command I used to recompile gcc:
Code:
Code:
sh3eb-elf/bin/ld: cannot find -lc
sh3eb-elf/bin/ld: cannot find -lfxcg
I later checked whether the library files were present and they aren't. I followed the wiki step by step precisely and I don't think to have left something behind. Do you know what I did wrong?
Here is the command I used to recompile gcc:
Code:
tar -xf binu* && tar -xf gcc* && export PREFIX=/root/dev/casio/casio-gcc && export PATH=$PATH:$PREFIX/bin && export TARGET=sh3eb-elf && export CFLAGS="-O2 -pipe -s -fomit-frame-pointer -ffunction-sections -fdata-sections" && export CXXFLAGS=$CFLAGS && export LDFLAGS="-Wl,--gc-sections" && mkdir build-binutils && cd build-binutils && ../binutils-2.*/configure --disable-werror --target=$TARGET --prefix=$PREFIX --disable-nls --disable-tls --disable-libssp && make && make install && cd .. && mkdir build-gcc && cd build-gcc && ../gcc-11.*/configure --target=$TARGET --prefix=$PREFIX --enable-sjlj-exceptions --disable-hosted-libstdcxx --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-nls --disable-tls --disable-libssp --disable-threads --disable-shared --disable-__cxa_atexit && make all-gcc && make install-gcc && make all-target-libgcc && make install-target-libgcc