NorioOKADA

NorioOKADA
4 ポイント. 0 回答 1 質問 0 フォロワー 0 フォロー

統計

  • 0 answers, 0 selected
  • 1 questions, 0 solved
  • 1 年, 9 ヶ月, 24 日 のメンバー
  • 395 プロフィール閲覧
  • Last seen 7月 9, 2020

ポイント

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
6月 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
10月 11, 2018 registration

投票数

0 投票獲得 0/100 0up 0down
0 票獲得 0/100 0up 0down

Top 回答

回答がまだありません

新しい質問

サポート