problem with arm-linux-gcc 4.3.2

Atit 2010-07-26 16:04:00 Link
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.

davef 2010-07-26 22:10:43 Link
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

Atit 2010-07-27 02:56:58 Link
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?

davef 2010-07-27 04:59:27 Link
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 2010-07-27 07:48:01 Link
apt-get install build-essential automake autoconf libtool

Atit 2010-07-27 15:02:31 Link
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.

eduardo 2010-07-27 20:02:58 Link
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.

Atit 2010-07-29 16:33:11 Link
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,

Giuseppe Anzalone 2010-09-05 04:32:27 Link
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

Abdul 2010-12-22 02:16:12 Link
apt-get install ia32-libs 
fixed the problem with Ubuntu 10.04

eduardo 2011-08-02 20:09:14 Link
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.

kumari 2011-11-11 07:12:46 Link
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.

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 9617