public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* how-to, GCC installation
@ 2011-05-08 10:40 JF MARQUET (Y)
  2011-05-08 12:14 ` Jonathan Wakely
  0 siblings, 1 reply; 6+ messages in thread
From: JF MARQUET (Y) @ 2011-05-08 10:40 UTC (permalink / raw)
  To: gcc-help

High

I am not an expert...! But I try to install GCC on a small server
(
a "Q-ONE" from Memup Corrporation,
the uname of this server is : Linux Q-ONE 2.6.15 #221 Wed Jun 10 
14:43:33 KST 2009 armv4l unknown
its shell is transferred to a Busybox : BusyBox v1.00-rc3 
(2009.04.17-08:49+0000) Built-in shell (ash)

Afetr GCC installation, I can try to install some other simpler software....
)

After 1 full day with constant failures, I perhaps understand that I 
cannot install GCC on a system with does not have already a minimal 
compiler installed......
Then I hope it is possible to make a "remote installation" ?
This idea because I also have a much better equipped LINUX PC connected 
to this server (built from UBUNTU distribution, and having GCC installed)

Is it possible to "run" the installation of GCC on my server from my PC 
? (using the parameter "target", may be ? What is the grammar for that ?
 From google, I can see many people having the same problem : misleaded 
by the GCC installation instructions....

thanks a lot for any help !!!

JF MARQUET
-- 
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 3357 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how-to, GCC installation
  2011-05-08 10:40 how-to, GCC installation JF MARQUET (Y)
@ 2011-05-08 12:14 ` Jonathan Wakely
  2011-05-08 12:48   ` Jonathan Wakely
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Wakely @ 2011-05-08 12:14 UTC (permalink / raw)
  To: jfmarquet; +Cc: gcc-help

On 8 May 2011 11:39, JF MARQUET (Y) wrote:
> High
>
> I am not an expert...! But I try to install GCC on a small server
> (
> a "Q-ONE" from Memup Corrporation,
> the uname of this server is : Linux Q-ONE 2.6.15 #221 Wed Jun 10 14:43:33
> KST 2009 armv4l unknown
> its shell is transferred to a Busybox : BusyBox v1.00-rc3
> (2009.04.17-08:49+0000) Built-in shell (ash)
>
> Afetr GCC installation, I can try to install some other simpler software....
> )
>
> After 1 full day with constant failures, I perhaps understand that I cannot
> install GCC on a system with does not have already a minimal compiler
> installed......

Correct. That should be clear from the first item listed at
http://gcc.gnu.org/install/prerequisites.html


> Then I hope it is possible to make a "remote installation" ?
> This idea because I also have a much better equipped LINUX PC connected to
> this server (built from UBUNTU distribution, and having GCC installed)
>
> Is it possible to "run" the installation of GCC on my server from my PC ?
> (using the parameter "target", may be ? What is the grammar for that ?

You need a cross-compiler, which will run on your PC but generate code
for your arm box.

You don't just run gcc with a target option, it needs to be an
entirely separate installation of gcc and it will only generate code
for arm.

You can probably install a cross-compiler from your distro's package
manager, look for a package called arm-gcc or arm-linux-gcc or
something like that.

> From google, I can see many people having the same problem : misleaded by
> the GCC installation instructions....

What part of the instructions is misleading?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how-to, GCC installation
  2011-05-08 12:14 ` Jonathan Wakely
@ 2011-05-08 12:48   ` Jonathan Wakely
       [not found]     ` <4DC69D89.2000700@yahoo.fr>
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Wakely @ 2011-05-08 12:48 UTC (permalink / raw)
  To: jfmarquet; +Cc: gcc-help

On 8 May 2011 13:14, Jonathan Wakely wrote:
> On 8 May 2011 11:39, JF MARQUET (Y) wrote:
>> High
>>
>> I am not an expert...! But I try to install GCC on a small server
>> (
>> a "Q-ONE" from Memup Corrporation,
>> the uname of this server is : Linux Q-ONE 2.6.15 #221 Wed Jun 10 14:43:33
>> KST 2009 armv4l unknown
>> its shell is transferred to a Busybox : BusyBox v1.00-rc3
>> (2009.04.17-08:49+0000) Built-in shell (ash)
>>
>> Afetr GCC installation, I can try to install some other simpler software....
>> )
>>
>> After 1 full day with constant failures, I perhaps understand that I cannot
>> install GCC on a system with does not have already a minimal compiler
>> installed......
>
> Correct. That should be clear from the first item listed at
> http://gcc.gnu.org/install/prerequisites.html
>
>
>> Then I hope it is possible to make a "remote installation" ?
>> This idea because I also have a much better equipped LINUX PC connected to
>> this server (built from UBUNTU distribution, and having GCC installed)
>>
>> Is it possible to "run" the installation of GCC on my server from my PC ?
>> (using the parameter "target", may be ? What is the grammar for that ?
>
> You need a cross-compiler, which will run on your PC but generate code
> for your arm box.
>
> You don't just run gcc with a target option, it needs to be an
> entirely separate installation of gcc and it will only generate code
> for arm.
>
> You can probably install a cross-compiler from your distro's package
> manager, look for a package called arm-gcc or arm-linux-gcc or
> something like that.

Alternatively you can build gcc on your PC and then copy the resulting
compiler to your arm box.  Maybe that's what you meant by remote
installation - but you don't "run the installation ... from your PC",
you build gcc on your PC, then when that's finished you copy the gcc
files to the arm server.

That would allow you to run the compiler on the arm box itself,
instead of running it on the PC.

I think building gcc like that would be done by configuring with
--host set to some suitable value for your arm box (I'm not sure what
that would be for your case.)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how-to, GCC installation
       [not found]     ` <4DC69D89.2000700@yahoo.fr>
@ 2011-05-08 14:31       ` Jonathan Wakely
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Wakely @ 2011-05-08 14:31 UTC (permalink / raw)
  To: jfmarquet; +Cc: gcc-help

Please reply to the mailing list, not just to me, thanks.

On 8 May 2011 14:41, JF MARQUET (Y) <jfmarquet@yahoo.fr> wrote:
> Thanks a lot , or more !
> This is etremely useful, and very rapid information (although we are on
> Sunday !).
> You asked me what I felt as misleading in the documentation ; for beginners
> like me (google says I am not the only one...), it is hard to imagine that
> the "prerequisites" be really meaning that you cannot install GCC if it is

That's exactly what "prerequisite" means.

"Tools/packages necessary for building GCC" means they are *necessary*
not optional.


> not....already installed or almost (!), without saying many words (without
> saying any ?) on what you should do if it is not the case (which may
> represent 99 % of people trying to install GCC out of any "good LINUX
> distribution"?).

If the prerequisites are not installed then you need to install them,
what's complicated about that?

GCC works on dozens of platforms, not just GNU/Linux, so it's not
possible to say how to install packages in general, but all platforms
have a C compiler of some sort available, usually available as
installable a binary which doesn't need to be built from sources.

For Linux you would use your distro's package manager, which is
different for Fedora, Debian, SUSE, Ubuntu, Gentoo etc. etc. For BSD
systems you would probably use the Ports system. For other operating
systems it would be different again.

I suppose we could add a note saying that if no C compiler is
available then you might need to cross-compile on another system to
produce a native compiler for your host.

> I must confess that I misunderstood what "cross-compiler"
> meant (I thought of something going from one language to another...) ; now
> that I have quickly browsed on the term "cross compiler", and with your
> precious info, I am sure to succeed, some way or another (may be I will
> "cross compile" directly the program for which I was trynig to install GCC,
> which is...mutt !).

Be aware you will also need an assembler, linker and C library to
compile programs such as mutt.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how-to, GCC installation
@ 2011-05-08 14:59 JF MARQUET (Y)
  0 siblings, 0 replies; 6+ messages in thread
From: JF MARQUET (Y) @ 2011-05-08 14:59 UTC (permalink / raw)
  To: gcc-help

Thanks a lot , or more !
This is etremely useful, and very rapid information (although we are on 
Sunday !).
You asked me what I felt as misleading in the documentation ; for 
beginners like me (google says I am not the only one...), it is hard to 
imagine that the "prerequisites" be really meaning that you cannot 
install GCC if it is not....already installed or almost (!), without 
saying many words (without saying any ?) on what you should do if it is 
not the case (which may represent 99 % of people trying to install GCC 
out of any "good LINUX distribution"?). I must confess that I 
misunderstood what "cross-compiler" meant (I thought of something going 
from one language to another...) ; now that I have quickly browsed on 
the term "cross compiler", and with your precious info, I am sure to 
succeed, some way or another (may be I will "cross compile" directly the 
program for which I was trynig to install GCC, which is...mutt !).
Thanks again.

JF MARQUET


Le 08/05/2011 14:48, Jonathan Wakely a écrit :
> On 8 May 2011 13:14, Jonathan Wakely wrote:
>> On 8 May 2011 11:39, JF MARQUET (Y) wrote:
>>> High
>>>
>>> I am not an expert...! But I try to install GCC on a small server
>>> (
>>> a "Q-ONE" from Memup Corrporation,
>>> the uname of this server is : Linux Q-ONE 2.6.15 #221 Wed Jun 10 
>>> 14:43:33
>>> KST 2009 armv4l unknown
>>> its shell is transferred to a Busybox : BusyBox v1.00-rc3
>>> (2009.04.17-08:49+0000) Built-in shell (ash)
>>>
>>> Afetr GCC installation, I can try to install some other simpler 
>>> software....
>>> )
>>>
>>> After 1 full day with constant failures, I perhaps understand that I 
>>> cannot
>>> install GCC on a system with does not have already a minimal compiler
>>> installed......
>> Correct. That should be clear from the first item listed at
>> http://gcc.gnu.org/install/prerequisites.html
>>
>>
>>> Then I hope it is possible to make a "remote installation" ?
>>> This idea because I also have a much better equipped LINUX PC 
>>> connected to
>>> this server (built from UBUNTU distribution, and having GCC installed)
>>>
>>> Is it possible to "run" the installation of GCC on my server from my 
>>> PC ?
>>> (using the parameter "target", may be ? What is the grammar for that ?
>> You need a cross-compiler, which will run on your PC but generate code
>> for your arm box.
>>
>> You don't just run gcc with a target option, it needs to be an
>> entirely separate installation of gcc and it will only generate code
>> for arm.
>>
>> You can probably install a cross-compiler from your distro's package
>> manager, look for a package called arm-gcc or arm-linux-gcc or
>> something like that.
> Alternatively you can build gcc on your PC and then copy the resulting
> compiler to your arm box.  Maybe that's what you meant by remote
> installation - but you don't "run the installation ... from your PC",
> you build gcc on your PC, then when that's finished you copy the gcc
> files to the arm server.
>
> That would allow you to run the compiler on the arm box itself,
> instead of running it on the PC.
>
> I think building gcc like that would be done by configuring with
> --host set to some suitable value for your arm box (I'm not sure what
> that would be for your case.)
>


-- 
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 3357 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message

^ permalink raw reply	[flat|nested] 6+ messages in thread

* how-to, GCC installation
@ 2011-05-08 11:07 JF MARQUET (Y)
  0 siblings, 0 replies; 6+ messages in thread
From: JF MARQUET (Y) @ 2011-05-08 11:07 UTC (permalink / raw)
  To: gcc-help

High

I am not an expert...! But I try to install GCC on a small server
(
a "Q-ONE" from Memup Corrporation,
the uname of this server is : Linux Q-ONE 2.6.15 #221 Wed Jun 10
14:43:33 KST 2009 armv4l unknown
its shell is transferred to a Busybox : BusyBox v1.00-rc3
(2009.04.17-08:49+0000) Built-in shell (ash)

Afetr GCC installation, I can try to install some other simpler software....
)

After 1 full day with constant failures, I perhaps understand that I
cannot install GCC on a system with does not have already a minimal
compiler installed......
Then I hope it is possible to make a "remote installation" ?
This idea because I also have a much better equipped LINUX PC connected
to this server (built from UBUNTU distribution, and having GCC installed)

Is it possible to "run" the installation of GCC on my server from my PC
? (using the parameter "target", may be ? What is the grammar for that ?
 From google, I can see many people having the same problem : misleaded
by the GCC installation instructions....

thanks a lot for any help !!!

JF MARQUET
-- 
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 3357 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-08 14:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-08 10:40 how-to, GCC installation JF MARQUET (Y)
2011-05-08 12:14 ` Jonathan Wakely
2011-05-08 12:48   ` Jonathan Wakely
     [not found]     ` <4DC69D89.2000700@yahoo.fr>
2011-05-08 14:31       ` Jonathan Wakely
2011-05-08 11:07 JF MARQUET (Y)
2011-05-08 14:59 JF MARQUET (Y)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).