• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Getting Started with the cross compiler  (Read 13955 times)
wstupar
Newbie
*

Karma: 0
Posts: 33


View Profile
« on: June 05, 2009, 08:54:05 AM »

When I execute this,
[root@compaps hello]# /home/gcc/arm-none-linix-gnueabi/bin/gcc -o hello.sheeva hello.c
I get this:
gcc: error trying to exec 'cc1': execvp: No such file or directory
Can someone interpret this for me?
Logged

CharlesWGreenJr
Newbie
*

Karma: 0
Posts: 28



View Profile
« Reply #1 on: June 05, 2009, 10:49:56 AM »

Hi,

I don't use the cross-compiler, but I'm guessing in your case (especially since you are explicitly 'pathing' to 'gcc') that you need to add /home/gcc/arm-none-linux-gnueabi/bin to your $PATH?

This assumes that the directory actually contains 'cc1'...

Hope this helps,

Charles
Logged

wstupar
Newbie
*

Karma: 0
Posts: 33


View Profile
« Reply #2 on: June 05, 2009, 12:48:49 PM »

Thanks, Charles.

Yes, of course, it was a pathing problem. With your suggestion I found that cc1 is actually in
/home/gcc/libexec/gcc/arm-none-linux-gnueabi/4.2.1

I can see why they call them cross compilers--they are always very angry about something!

Wes Stupar
Logged

mike
Jr. Member
**

Karma: 2
Posts: 55


View Profile
« Reply #3 on: July 15, 2009, 06:04:30 AM »

Hi,

Hoping you can help me through getting set up with the MIMO monitor.

This is really more of a question for getting the toolchains working correctly, I guess.

I have the cross compiler working... able to compile my simple HelloWorld programs no problem.

I've downloaded, untarred/unzipped the xf86-video-displaylink and the attachment.c pointed to in your previous post.

I set up my PATH to point to the gcc instance: ./gcc/arm-none-linux-gnueabi/bin/gcc, located in my home directory.

I run sudo ./configure --build=i386-linux --host=arm-linux

Looks like the script is happy until:

No package 'xorg-server' found
No package 'fontsproto' found

Figured I'd ask how to proceed...

Thanks,
Mike
Logged

smartboyathome
Newbie
*

Karma: 0
Posts: 10


View Profile
« Reply #4 on: July 15, 2009, 02:33:12 PM »

Hi,

Hoping you can help me through getting set up with the MIMO monitor.

This is really more of a question for getting the toolchains working correctly, I guess.

I have the cross compiler working... able to compile my simple HelloWorld programs no problem.

I've downloaded, untarred/unzipped the xf86-video-displaylink and the attachment.c pointed to in your previous post.

I set up my PATH to point to the gcc instance: ./gcc/arm-none-linux-gnueabi/bin/gcc, located in my home directory.

I run sudo ./configure --build=i386-linux --host=arm-linux

Looks like the script is happy until:

No package 'xorg-server' found
No package 'fontsproto' found

Figured I'd ask how to proceed...

Thanks,
Mike

You need to install the xserver-xorg-dev package. With any luck, the fontsproto dependency will also be taken care of with that (I couldn't find fontsproto in any package search).
Logged

mancool
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #5 on: November 27, 2009, 03:10:49 AM »

When I execute this,
[root@compaps hello]# /home/gcc/arm-none-linix-gnueabi/bin/gcc -o hello.sheeva hello.c
I get this:
gcc: error trying to exec 'cc1': execvp: No such file or directory
Can someone interpret this for me?

Hello

I had the same error so I added the path to the directory which contains 'cc1' to my $PATH by executing this:
"export PATH=$PATH:/home/my_login/LinuxHost/gcc/libexec/gcc/arm-none-linux-gnueabi/4.2.1"

But I still have the same error
"gcc: error trying to exec 'cc1': execvp: No such file or directory"

Can anyone help me?
« Last Edit: November 27, 2009, 03:13:46 AM by mancool » Logged

Pages: [1]
Print
Jump to: