How to build or setup working tool chain for libronin ?
- Ian Micheal
- Developer
- Posts: 6277
- Location: USA
- Contact:
Re: How to build or setup working tool chain for libronin ?
Megavolt said I can save your time, KOS adds its own patches when building toolchain, don't even try to use a compiler built for KOS, you will get a bunch of linker errors when building openlara
I guess we cant use kos toolchain.. ???
I guess we cant use kos toolchain.. ???
- T_chan
- rebel
- Posts: 16
Re: How to build or setup working tool chain for libronin ?
Yes, indeed, if you're serious about libronin, it's best to use compilers just for that.
(I wasn't serious, wanted to do a quick check/help you out, so I just reused my kos compilers. The errors I got (at compilation time) also were not from the kos patches to gcc I think, the would appear on any gcc version)
Prepare to spend time making it work for you however, I think there's a lot to improve to make it user-friendly...
I for example, wouldn't be able to work only with the serial cable, or miss gdb...
So this is as far as I will go with libronin I think... up to you now
(I wasn't serious, wanted to do a quick check/help you out, so I just reused my kos compilers. The errors I got (at compilation time) also were not from the kos patches to gcc I think, the would appear on any gcc version)
Prepare to spend time making it work for you however, I think there's a lot to improve to make it user-friendly...
I for example, wouldn't be able to work only with the serial cable, or miss gdb...
So this is as far as I will go with libronin I think... up to you now

- T_chan
- rebel
- Posts: 16
Re: How to build or setup working tool chain for libronin ?
PS: added 2 steps, explaining how to compile an example, in my 1st post
... and now I stop
... and now I stop

- Dakangel
- letterbomb
- Posts: 152
Re: How to build or setup working tool chain for libronin ?
Ian Micheal, why you dont ask to the Open Lara developer for his toolchain and how he made it work for him, to bring and tell you the exact steps or a copy of his dev source.
- Ian Micheal
- Developer
- Posts: 6277
- Location: USA
- Contact:
Re: How to build or setup working tool chain for libronin ?
i have but i want to also learn about it and for scummvm as wellDakangel wrote:Ian Micheal, why you dont ask to the Open Lara developer for his toolchain and how he made it work for him, to bring and tell you the exact steps or a copy of his dev source.
https://gitlab.com/histat versions used are there
-
- Rank 9
- Posts: 966
Re: How to build or setup working tool chain for libronin ?
didn't know that histat was also behind the Cavestory port, back in the day
so he's a Libronin adept, afterall
https://github.com/histat/dc-nx/blob/master/nx/Makefile
so he's a Libronin adept, afterall
https://github.com/histat/dc-nx/blob/master/nx/Makefile
- megavolt85
- Developer
- Posts: 2159
Re: How to build or setup working tool chain for libronin ?
small instruction how build toolchain in linux
Code: Select all
sudo mkdir -p /opt/toolchains/dc/roninchain
sudo chown -R $USER:$USER /opt/toolchains/dc/roninchain
wget ftp.gnu.org/gnu/binutils/binutils-2.34.tar.xz
wget ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.xz
wget gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2
wget gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2
wget gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz
wget sourceware.org/pub/newlib/newlib-3.3.0.tar.gz
tar -xf binutils-2.34.tar.xz
mkdir binutils-2.34-build
cd binutils-2.34-build
CC=gcc-9 ../binutils-2.34/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --without-headers --with-newlib --enable-languages=c
make
make install
cd ..
export PATH=/opt/toolchains/dc/roninchain/bin:$PATH
tar -xf gcc-9.3.0.tar.xz
mkdir gcc-9.3.0-build1
tar jxf gmp-6.1.0.tar.bz2
mv gmp-6.1.0 gcc-9.3.0/gmp
tar jxf mpfr-3.1.4.tar.bz2
mv mpfr-3.1.4 gcc-9.3.0/mpfr
tar zxf mpc-1.0.3.tar.gz
mv mpc-1.0.3 gcc-9.3.0/mpc
cd gcc-9.3.0-build1
CC=gcc-9 ../gcc-9.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp
make
make install
cd ..
tar zxf newlib-3.3.0.tar.gz
mkdir newlib-3.3.0-build
cd newlib-3.3.0-build
CC=gcc-9 ../newlib-3.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf
make
make install
cd ..
mkdir gcc-9.3.0-build2
cd gcc-9.3.0-build2
CC=gcc-9 ../gcc-9.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --with-newlib --enable-languages=c,c++
make
make install
cd ..
- Ian Micheal
- Developer
- Posts: 6277
- Location: USA
- Contact:
Re: How to build or setup working tool chain for libronin ?
Thank you for doing thismegavolt85 wrote:small instruction how build toolchain in linux
Code: Select all
sudo mkdir -p /opt/toolchains/dc/roninchain sudo chown -R $USER:$USER /opt/toolchains/dc/roninchain wget ftp.gnu.org/gnu/binutils/binutils-2.34.tar.xz wget ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.xz wget gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2 wget gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2 wget gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz wget sourceware.org/pub/newlib/newlib-3.3.0.tar.gz tar -xf binutils-2.34.tar.xz mkdir binutils-2.34-build cd binutils-2.34-build CC=gcc-9 ../binutils-2.34/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --without-headers --with-newlib --enable-languages=c make make install cd .. export PATH=/opt/toolchains/dc/roninchain/bin:$PATH tar -xf gcc-9.3.0.tar.xz mkdir gcc-9.3.0-build1 tar jxf gmp-6.1.0.tar.bz2 mv gmp-6.1.0 gcc-9.3.0/gmp tar jxf mpfr-3.1.4.tar.bz2 mv mpfr-3.1.4 gcc-9.3.0/mpfr tar zxf mpc-1.0.3.tar.gz mv mpc-1.0.3 gcc-9.3.0/mpc cd gcc-9.3.0-build1 CC=gcc-9 ../gcc-9.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp make make install cd .. tar zxf newlib-3.3.0.tar.gz mkdir newlib-3.3.0-build cd newlib-3.3.0-build CC=gcc-9 ../newlib-3.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf make make install cd .. mkdir gcc-9.3.0-build2 cd gcc-9.3.0-build2 CC=gcc-9 ../gcc-9.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --with-newlib --enable-languages=c,c++ make make install cd ..









- Ian Micheal
- Developer
- Posts: 6277
- Location: USA
- Contact:
Re: How to build or setup working tool chain for libronin ?
So does this build the arm toolchain or do i have to build that as well I just built the above step by step like you instructed.. What more do i need to do i guess build libronin the openlara..megavolt85 wrote:small instruction how build toolchain in linux
Code: Select all
sudo mkdir -p /opt/toolchains/dc/roninchain sudo chown -R $USER:$USER /opt/toolchains/dc/roninchain wget ftp.gnu.org/gnu/binutils/binutils-2.34.tar.xz wget ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.xz wget gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2 wget gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2 wget gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz wget sourceware.org/pub/newlib/newlib-3.3.0.tar.gz tar -xf binutils-2.34.tar.xz mkdir binutils-2.34-build cd binutils-2.34-build CC=gcc-9 ../binutils-2.34/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --without-headers --with-newlib --enable-languages=c make make install cd .. export PATH=/opt/toolchains/dc/roninchain/bin:$PATH tar -xf gcc-9.3.0.tar.xz mkdir gcc-9.3.0-build1 tar jxf gmp-6.1.0.tar.bz2 mv gmp-6.1.0 gcc-9.3.0/gmp tar jxf mpfr-3.1.4.tar.bz2 mv mpfr-3.1.4 gcc-9.3.0/mpfr tar zxf mpc-1.0.3.tar.gz mv mpc-1.0.3 gcc-9.3.0/mpc cd gcc-9.3.0-build1 CC=gcc-9 ../gcc-9.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp make make install cd .. tar zxf newlib-3.3.0.tar.gz mkdir newlib-3.3.0-build cd newlib-3.3.0-build CC=gcc-9 ../newlib-3.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf make make install cd .. mkdir gcc-9.3.0-build2 cd gcc-9.3.0-build2 CC=gcc-9 ../gcc-9.3.0/configure --prefix=/opt/toolchains/dc/roninchain --target=sh-elf --with-newlib --enable-languages=c,c++ make make install cd ..
- megavolt85
- Developer
- Posts: 2159
Re: How to build or setup working tool chain for libronin ?
arm toolchain used from KOS
now need download libronin dev from histat repo and build
now need download libronin dev from histat repo and build
-
- Similar Topics
- Replies
- Views
- Last post