Now execute make then make install commands. This error will occur if we miss the “–disable-werror” option in the configuration command. Suppose if any error occurred, which says about ‘if’ block statement means, go to that file, i.e., binutils2.19.1/gas/config/t-arm.c and at the line 2489, put brackets for those statements. –disable-werror This prevents the build from stopping in the event that there are warnings from the host’s compiler. –disable-nls This disables internationalization,and is not needed for the temporary tools. –prefix=/TOOLCHAIN This tells the configure script to prepare to install the Binutils programs in the TOOL CHAIN directory. binutils-2.19.1/configure -target=arm-linux -prefix=TOOLCHAIN -disable-nls -disable-werror Second, create one new directory for building binutils. It is important that Binutils be the first package compiled because both Glibc and GCC perform various tests on the available linker and assembler to determine which of their own features to enable.įirst, uncompress the binutils-2.19.1.tar.gz tarball: Hereafter TOOLCHAIN refers to /home/cross_compile/bin/binutils. bash_profile then save and execute the following cmd. In this example, I choose, /home/cross_compile/bin/binutils.Create a tool chain path to maintain the old compiler as well as this new cross compiler.glibc-ports – v2.10.1įirst, download all the sources and put them into a directory. In order to do program in ARM board, I cross-compiled using the Linux ‘C’ compiler for ARM and here is the procedure that I used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |