NorioOKADA

NorioOKADA
4 Rep. 0 Answers 1 Questions 0 Followers 0 Following

Stats

  • 0 answers, 0 selected
  • 1 questions, 0 solved
  • Member for 5 years, 6 months, 7 days
  • 7906 profile views
  • Last seen July 9, 2020

Reputation

Total 4
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
+1
June 30, 2020 Commented Thanks a lot. However, I've got some errors. I tried to build binutils, gcc, and newlibs for my steps as follows : --- cut here --- How to build the RX Toolchain under Ubuntu 18.04 on WSL/Windows10 Steps for building the RX Toolchain under a fresh Ubuntu 18.04 installation: This applies to the GCC for Renesas v4.8.4.201803-GNURX Run the followings commands before you start: $ sudo apt install build-essential $ sudo apt update $ sudo apt upgrade $ sudo apt install flex bison texinfo libncurses5-dev m4 1) Create a new folder for the toolchain $ mkdir ~/RX-Toolchain 2) Change the current directory to RX-Toolchain $ cd ~/RX-Toolchain 3) Create 2 new folders $ mkdir rx-elf $ mkdir linux 4) Download the source codes for binutils, gcc, newlib, gmp, mpfr and mpc -Binutils: https://gcc-renesas.com/downloads/d.php?f=rx/binutils/8.3.0.202002-gnurx/binutils_rx_2.24_2020q2.zip -Newlib: https://gcc-renesas.com/downloads/d.php?f=rx/newlib/8.3.0.202002-gnurx/newlib_rx_3.1.0_2020q2.zip -GCC: https://gcc-renesas.com/downloads/d.php?f=rx/gcc/4.8.4.201803-gnurx/rx_gcc_4.8.4_2018Q3.tar.gz -GMP : ftp://ftp.gnu.org/gnu/gmp/gmp-6.2.0.tar.xz (please download the latest version) -MPFR : ftp://ftp.gnu.org/gnu/mpfr/mpfr-4.0.2.tar.xz (please download the latest version) -MPC : ftp://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz (please download the latest version) note: Download folder depends on your download tool and OS. e.g. there are download files in ~/Download. 5) Change the current directory and extract the archives: $ cd ~/RX-Toolchain $ unzip ~/Download/binutils_rx_2.24_2020q2.zip $ unzip ~/Download/newlib_rx_3.1.0_2020q2.zip $ tar xvf ~/Download/rx_gcc-4.8.4_2018Q3.tar.gz $ tar xvf ~/Download/gmp-x.x.x.tar.xz $ tar xvf ~/Download/mpfr-x.x.x.tar.xz $ tar xvf ~/Download/mpc-x.x.x.tar.gz 6) Install gmp, mpfr, and mpc $ cd ~/RX-Toolchain/linux $ mkdir gmp $ cd gmp $ ../../gmp-x.x.x/configure --prefix=/usr/local $ make $ sudo make install $ cd .. $ mkdir mpfr $ ../../mpfr-x.x.x/configure --prefix=/usr/local $ make $ sudo make install $ cd .. $ mkdir mpc $ ../../mpc-x.x.x/configure --prefix=/usr/local $ make $ sudo make install $ cd /usr/local/lib $ sudo ldconfig 7) Install binutils a) Create a new folder for binutils and change the current directory to it: $ cd ~/RX-Toolchain/rx-elf $ mkdir binutils-2.24_2020q2 $ cd binutils-2.24_2020q2 b) configuration $ ../../binutils/configure --target=rx-elf --prefix=/usr/local --disable-werror If you get a permission denied error try $ chmod +x ../../binutils/configure after that please retry configure. c) build and install $ make $ sudo make install 8) Install gcc (firstly without c++) a) Change the current directory to GCC source folder and run the following command : $ cd ~/RX-Toolchain/rx-elf $ mkdir gcc-4.8.4_2018q3 $ cd gcc-4.8.4_2018q3 b) configuration $ ../../gcc/configure --target=rx-elf --prefix=/usr/local \ --disable-shared --disable-multilib --disable-libssp --disable-libstdcxx-pch\ --disable-werror --enable-lto --enable-gold --with-pkgversion=GCC_Build_1.02 \ --with-newlib --enable-languages=c If you get a permission denied error try $ chmod +x ../../gcc/configure after that please retry configure. c) build and install $ make $ sudo make install 9) Install newlib a) Create a new folder for newlib and change the current directory to it: $ cd ~/RX-Toolchain/rx-elf $ mkdir newlib-3.1.0_2020q2 $ cd newlib-3.1.0_2020q2 b) configuration $ ../../newlib/configure --target=rx-elf --prefix=/usr/local If you get a permission denied error try $ chmod +x ../../newlib/configure after that please retry configure. c) build and install $ make $ sudo make install 10) Install gcc (with c++) a) Change the current directory to GCC source folder and run the following command : $ cd ~/RX-Toolchain/rx-elf $ cd gcc-4.8.4_2018q3 b) configuration $ ../../gcc/configure --target=rx-elf --prefix=/usr/local \ --disable-shared --disable-multilib --disable-libssp --disable-libstdcxx-pch\ --disable-werror --enable-lto --enable-gold --with-pkgversion=GCC_Build_1.02 \ --with-newlib --enable-languages=c,c++ c) build and install $ make $ sudo make install --- cut here --- Best regards, Norio OKADA
+1
October 11, 2018 registration

Votes

0 votes received 0/100 0up 0down
0 votes casted 0/100 0up 0down

Top Answers

No answer posted yet!

New questions

Support