binutils-2.24_2019Q2 rebuilding method
binutils-2.24_2019Q2 rebuilding method
I want to use 2019Q2 version tools on ubuntu18.04/WSL/windows10.
However, I cannot use .run for installing the binary codes.
So, I tried to re-build the binutils-2.24, gcc-4.8.4, and newlib-3.1.0 from source codes on this site.
I have already checked the documents as follows:
https://llvm-gcc-renesas.com/wiki/index.php?title=How_to_build_the_RX_Toolchain_under_Ubuntu_14.04
But, I have some errors in build binutils-2.24.
These errors are different from wiki.
Error 1:
Autoconf version 2.64 (different from the latest version 2.69)
Error 2:
mv bfd.po
–> mv: cannot stat ‘bfd.po’ : No such file or directory
Could you please share the environment information and building method for binutils-2.24_2019Q2, gcc-4.8.4_2019Q2, and newlib-3.1.0_2019Q2 ?
Best regards,
Norio OKADA
Hello,
Thank you for reaching out to us!
Could you please let us know what the issue that prevents you to use the .run for installing the toolchains is? If your OS is 64bits, you need to install the 32bit support to run the installers, with the following commands:
sudo dpkg –add-architecture i386
sudo apt-get -y install lib32z1 libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses-dev
Those commands should allow you to run the Linux installer without any issues.
In addition to the aforementioned commands we also recommend installing the 32 version of the following libraries, so that you shouldn’t encounter any issue when using the debugger (rx-elf-gdb):
sudo apt-get install libncurses5:i386 libncurses5-dev:i386 libpython2.7:i386
Related to the build issue, the environment used in the wiki page was Ubuntu 14.04, 32bit. It has autoconf version 2.64 by default.
On newer Linux (16.x xenial and up) and Windows Subsystem for Linux, it is necessary to manually install autoconf 2.64 (mandated by newer gcc). In order to do this, please download autoconf to any folder from http://ftp.gnu.org/gnu/autoconf/autoconf-2.64.tar.bz2 . Go to the download folder and enter the following commands:
$ tar -jxvf autoconf-2.64.tar.bz2
$ cd autoconf-2.64
$ ./configure
$ sudo make
$ sudo make install
Also, on newer Linux (16.x xenial and up) and Windows Subsystem for Linux, for backward compatibility, an older automake version must be installed.
$ sudo apt-get install automake1.11
Please let us know if we can be of additional assistance,
Best regards,
The GNU Tools
Hello,
I had the same issue with missing file during build:
mv: cannot stat ‘bfd.po’ : No such file or directory
I fixed this by configuring binutils without “–enable-maintainer-mode” flag