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:

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
If you've only built a compiler and linker, you also need to build the libraries that are provided by libfxcg (or download the precompiled libraries from a release).
Perfect! that was the problem, idk why I thought that the libraries would be produced by the compilation of gcc/binutils. Thanks a lot Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement