I got stuck with this problem for so many days. I downloaded arm-linux-gcc-4.3.2.tgz from this friendlyarm.net website and put it in /tmp folder. Then I followed this instruction. http://equallybad.blogspot.com/2010/02/project-how-to-setup-default-dev-... I untar the file with this command. root@ubuntu:/tmp# sudo tar xfzv arm-linux-gcc-4.3.2.tgz -C / Everything went well and I got every stuffs stored in /usr/local/arm/4.3.2/... Then, I added the path with export root@ubuntu:/tmp# export PATH=/usr/local/arm/4.3.2/bin:$PATH At last, I tried this command to check whether the OS can see the package or not by typing this and got the following error. root@ubuntu:/tmp# arm-linux-gcc -v /usr/local/arm/4.3.2/bin/arm-linux-gcc: line 3: /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: No such file or directory /usr/local/arm/4.3.2/bin/arm-linux-gcc: line 3: /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: Success I don't know what was wrong. I think that I follow the manual step by step. BTW, I am using Ubuntu 10.04. I can not continue my work. Please tell me what did I do wrong. Thank you in advance.
problem with arm-linux-gcc 4.3.2
root@ubuntu:/tmp# export PATH=/usr/local/arm/4.3.2/bin:$PATH I am curious about where you have placed this. If you type this command in at the beginning of your work session it should work. When you shut your session down it will be lost. Either place this command in your .profile or bashrc file (depends on your Linux host distro) or write a little scrip that you run each time you want to do some cross-compilation. HTH
Thank you for your reply. I typed in the export command before I ran arm-linux-gcc and I got the above error. Then, I added it into .bashrc and re-login. I still had no luck. I asked my friend to try the arm-linux-gcc package and he said he has no any problem. I wonder why this happened to my machine. Since the error is 'No such file or directory', I supposed that the path is working but the cross compiler try to call some program that may not exist in my machine. Do I need to pre-install something before using this cross compiler package?
There are tools that need to be loaded to do cross-compilation on your linux host. Unfortunately, the list is at home. From memory: build-essentials ?? ?? ncurses-5 ?? to look at menuconfig Look for tutorials for ARM cross-compiling
davef, Thank you for your reply. I tried to install the build-essential as you suggested, but I still has no luck. The same error appeared. I am keep looking for solution. If you have any other suggestion, please let me know.
Try this: Check if "/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc" exist on your machine: $ls -la /usr/local/arm/4.3.2/bin/ | grep arm-none-linux-gnueabi-gcc Check if "/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc" is an executable: $sudo chmod 777 /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc Create your own symbolic link: $sudo ln -s /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc /bin/arm-linux-gcc I'm using the cross compiler on ubuntu without any problem. PS: I didn't test any command above.
Thank you for all of your kindly responses. I tried many times to solve the problem and I finally solved it. I would like to post my solution here as a reference to someone that has the same problem as mine. I decided to uninstall Ubuntu 10.04 (latest version) and re-install Ubuntu 9.10 (Karmic Koala). Then, I followed the same steps as I explained in the first post and it works without any error. I think my problem was Ubuntu 10.04. If there are someone faced with this kind of problem, Backward your linux version may solve the problem. Regards,
Hi, I solved a problem, that seems identical to yours, installing ia32-libs as recommended here: http://ubuntuforums.org/showthread.php?t=1026373 Regards, Giuseppe
apt-get install ia32-libs fixed the problem with Ubuntu 11.04 too Thanks for share the response. I was going crazy. I was using ubuntu 9.04, and this error show up when I installed ubuntu 11.04.
hai, i have ubuntu 9.10. i want to install arm-linux-gcc-4.3.2.tgz. i follow the steps given a amnual. bu i got the error root@ubuntu:/tmp# arm-linux-gcc -v /usr/local/arm/4.3.2/bin/arm-linux-gcc: line 3: /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: No such file or directory /usr/local/arm/4.3.2/bin/arm-linux-gcc: line 3: /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: Success what can i do for these error.anybody reply me.
hi i am using fedora 15, please inform me how to generate a executable file through arm-linux-gcc commands...........? iam using arm-linux-gcc 4.3.2 version
Hi I have 2440 package and I tried to install arm-linux-4.3.2-gcc and I almost succeed but when I try to compile any code it does not find include libraries so could you please tell me where should I get them and where should I copy them so the package can see those libraries?? Thanks
help me, please ! kdich@kdich:~$ arm-linux-gcc -v /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gcc: 15: exec: /opt/FriendlyARM/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-gcc: Permission denied kdich@kdich:~$ sudo arm-linux-gcc -v /bin/arm-linux-gcc: 15: exec: /opt/FriendlyARM/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-gcc: Permission denied kdich@kdich:~$
With the above solution apt-get install ia32-libs fixed the gcc issue in Ubuntu 12.04. But still the CROSS COMPILER issue exists with Ubuntu 12.04. "Overriding commands for target" "ignorig old commands for target" Kbuild.include: No such file or directory Please let me know if anyone else has solved this issue. thanks in advance.
hi The following packages have unmet dependencies: ia32-libs : Depends: ia32-libs-multiarch E: Unable to correct problems, you have held broken packages. this error appears when i enter "apt-get install ia32-libs " ?? and about "export CROSS_COMPILE=arm-linux-" when it will be written ???
please help me this error appears when i enter "apt-get install ia32-libs " ?? The following packages have unmet dependencies: ia32-libs : Depends: ia32-libs-multiarch E: Unable to correct problems, you have held broken packages.
please help me this error appears when i enter "sudo apt-get install gcc make binutils ncurses-dev perl uboot-mkimage" ??????????? Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_P ackages E: The package lists or status file could not be parsed or opened.
Hi all, I have done all the above suggested apt-get installs, but the below issue exists in 11.04, 11.10, 12.04 ubuntu versions...while i give make .... root@ubuntu:/home/ubuntu1110/KM/friendlyarm_source compiler# cd linux-2.6.32.2 root@ubuntu:/home/ubuntu1110/KM/friendlyarm_source compiler/linux-2.6.32.2# make menuconfig Makefile:302: warning: overriding commands for target `/home/ubuntu1110/KM/friendlyarm_source' Makefile:104: warning: ignoring old commands for target `/home/ubuntu1110/KM/friendlyarm_source' Makefile:303: /home/ubuntu1110/KM/friendlyarm_source: No such file or directory Makefile:303: compiler/linux-2.6.32.2/scripts/Kbuild.include: No such file or directory Makefile:446: /home/ubuntu1110/KM/friendlyarm_source: No such file or directory Makefile:446: compiler/linux-2.6.32.2/arch/arm/Makefile: No such file or directory make: *** No rule to make target `compiler/linux-2.6.32.2/arch/arm/Makefile'. Stop.
Hi all, It worked successfully... It might be helpful for all who would try to build now: Always try to do things in the root folder. sudo apt-get install build-essential automake autoconf libtool sudo apt-get install ia32-libs sudo su //will help you stay in root. cd /root //start things in the root folder. I do not know what is the reason root@ubuntu //it would look similar to this. create a folder under /root .. eg: /root/linux/ copy the tar file under this folder untar the linux jar file go inside linux-2.6.32.2 export the path of cross compiler now type make. It will and should work.. Thanks...
This issue root cause is 32 bit edition GCC can't run on the 64 bit edition host OS without 32 bit lib support. So the solution is install the 32 bit lib. apt-get install ia32-libs.
This case of Ubuntu 13.10 amd64 $ sudo apt-get install build-essential automake autoconf libtool $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 it fixed my problem
Step 1: Uncompressed the installation package $ sudo tar zxpf arm-linux-gcc-4.3.2.tgz or # tar zxpf arm-linux-gcc-4.3.2.tgz Step 2: Copy the "arm" folder to the /usr/local directory. This is not mandatory. $ sudo cp -r /home/mathew/Documents/usr/local/arm /usr/local or # cp -r /home/mathew/Documents/usr/local/arm /usr/local Step 3: Before installing we need some essential tools and library files # apt-get install build-essential automake autoconf libtool # apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 or $ sudo apt-get install build-essential automake autoconf libtool $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 Step 4: Add the path of the arm linux gcc compiler by # export PATH=$PATH:/usr/local/arm/4.3.2/bin or $ sudo export PATH=$PATH:/usr/local/arm/4.3.2/bin Step 5: Verify the installation by $ arm-linux-gcc -v
Worked for me on Ubuntu 16.04, AMD64 architecture: $ sudo apt-get install libc6-i386 libc6-i386 is a dependency for ia32-libs, lib32z1, lib32ncurses5 and so on mentioned above. So, it seems, you need just a libc6-i386 to please your GCC on Ubuntu AMD64/i386. :) And probably libc6-s390 for IBM zSeries.
I am installing Arm linux gcc 4.3.2 when I fire the command on terminal --------> apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 it is showing this error message everytime------------> ------------------------------------------------------------ Package lib32bz2-1.0 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Package lib32ncurses5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Package lib32z1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'lib32z1' has no installation candidate E: Package 'lib32ncurses5' has no installation candidate E: Package 'lib32bz2-1.0' has no installation candidate --------------------------------------------------------------- Please help Me to solve this problem ASAP. Thank you in advance.