All of lore.kernel.org
 help / color / mirror / Atom feed
* about gcc-3.4.6
@ 2011-07-29 11:14 esmaeil mirzaee
  2011-07-29 11:23 ` Bernd Petrovitsch
  0 siblings, 1 reply; 8+ messages in thread
From: esmaeil mirzaee @ 2011-07-29 11:14 UTC (permalink / raw)
  To: kernelnewbies

Hi all
apologize in advance, I know here is related the kernel but my question is
how can install gcc-3.4.6, I looked around but I could not find anything
useful.

I need gcc-3.4.6 for do work with ubuntu kernel and install some stuff I
needed.

Again I'm so sorry for interrupt.
Best
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110729/66c8b598/attachment.html 

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

* about gcc-3.4.6
  2011-07-29 11:14 about gcc-3.4.6 esmaeil mirzaee
@ 2011-07-29 11:23 ` Bernd Petrovitsch
  2011-07-29 11:46   ` Pravin Shedage
  0 siblings, 1 reply; 8+ messages in thread
From: Bernd Petrovitsch @ 2011-07-29 11:23 UTC (permalink / raw)
  To: kernelnewbies

Hi!

On Fre, 2011-07-29 at 07:14 -0400, esmaeil mirzaee wrote:
> apologize in advance, I know here is related the kernel but my

Than why do you post here in the first place?

[...]
> I need gcc-3.4.6 for do work with ubuntu kernel and install some stuff
> I needed.

You can find the source on http.//gcc.gnu.org/ or - surpise! - via
Google.

> Again I'm so sorry for interrupt.

No, you are not.
	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
                     LUGA : http://www.luga.at

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

* about gcc-3.4.6
  2011-07-29 11:23 ` Bernd Petrovitsch
@ 2011-07-29 11:46   ` Pravin Shedage
       [not found]     ` <CAOwGe_zPaGHwG2pUBx1hQ4A3cdt4gQ6YZLGwUwcTSK_BELNYBg@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Pravin Shedage @ 2011-07-29 11:46 UTC (permalink / raw)
  To: kernelnewbies

Hi Samuel,

check the FTP link
ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/

@enjoy....



On Fri, Jul 29, 2011 at 4:53 PM, Bernd Petrovitsch <
bernd@petrovitsch.priv.at> wrote:

> Hi!
>
> On Fre, 2011-07-29 at 07:14 -0400, esmaeil mirzaee wrote:
> > apologize in advance, I know here is related the kernel but my
>
> Than why do you post here in the first place?
>
> [...]
> > I need gcc-3.4.6 for do work with ubuntu kernel and install some stuff
> > I needed.
>
> You can find the source on http.//gcc.gnu.org/ or - surpise! - via
> Google.
>
> > Again I'm so sorry for interrupt.
>
> No, you are not.
>        Bernd
> --
> Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
>                     LUGA : http://www.luga.at
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>





Thanks & Regards,
---------PraviN---------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110729/ebeef556/attachment-0001.html 

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

* about gcc-3.4.6
       [not found]     ` <CAOwGe_zPaGHwG2pUBx1hQ4A3cdt4gQ6YZLGwUwcTSK_BELNYBg@mail.gmail.com>
@ 2011-07-29 12:01       ` esmaeil mirzaee
  2011-07-29 12:16         ` Bernd Petrovitsch
  0 siblings, 1 reply; 8+ messages in thread
From: esmaeil mirzaee @ 2011-07-29 12:01 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Jul 29, 2011 at 7:46 AM, Pravin Shedage <pravinshedage2008@gmail.com
> wrote:

> Hi Samuel,
>
> check the FTP link
> ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/
>
Actually I have gcc-3.4.6.tar.bz2 for process of installation I did:
untar the file
./configure
make but I've got error

some of the error is:
In function ?open?,
    inlined from ?collect_execute? at ./collect2.c:1537:20:
/usr/include/bits/fcntl2.h:51:24: error: call to ?__open_missing_mode?
declared with attribute error: open with O_CREAT in second argument needs 3
arguments
make[1]: *** [collect2.o] Error 1
make[1]: Leaving directory `/home/esmaeil/Documents/software/gcc-3.4.6/gcc'
make: *** [all-gcc] Error 2


>
> @enjoy....
>
>
>
>  On Fri, Jul 29, 2011 at 4:53 PM, Bernd Petrovitsch <
> bernd at petrovitsch.priv.at> wrote:
>
>>  Hi!
>>
>> On Fre, 2011-07-29 at 07:14 -0400, esmaeil mirzaee wrote:
>> > apologize in advance, I know here is related the kernel but my
>>
>> Than why do you post here in the first place?
>>
>> [...]
>> > I need gcc-3.4.6 for do work with ubuntu kernel and install some stuff
>> > I needed.
>>
>> You can find the source on http.//gcc.gnu.org/ or - surpise! - via
>> Google.
>>
>> > Again I'm so sorry for interrupt.
>>
>> No, you are not.
>>        Bernd
>> --
>> Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
>>                     LUGA : http://www.luga.at
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
>
>
>
> Thanks & Regards,
> ---------PraviN---------
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110729/dd24c825/attachment.html 

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

* about gcc-3.4.6
  2011-07-29 12:01       ` esmaeil mirzaee
@ 2011-07-29 12:16         ` Bernd Petrovitsch
  2011-07-29 14:22           ` esmaeil mirzaee
  0 siblings, 1 reply; 8+ messages in thread
From: Bernd Petrovitsch @ 2011-07-29 12:16 UTC (permalink / raw)
  To: kernelnewbies

On Fre, 2011-07-29 at 08:01 -0400, esmaeil mirzaee wrote:
> On Fri, Jul 29, 2011 at 7:46 AM, Pravin Shedage
> <pravinshedage2008@gmail.com> wrote:
>         Hi Samuel,
>         
>         check the FTP link
>         ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/
> Actually I have gcc-3.4.6.tar.bz2 for process of installation I did:
> untar the file
> ./configure
> make but I've got error

Building a compiler is - in the worst case as in "canadian cross" - much
more complicated than some other random app

For the most simplest case - a compiler for the current host+OS -, `make
bootstrap` is the way to go.

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
                     LUGA : http://www.luga.at

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

* about gcc-3.4.6
  2011-07-29 12:16         ` Bernd Petrovitsch
@ 2011-07-29 14:22           ` esmaeil mirzaee
  2011-08-12  0:49             ` Javier Martinez Canillas
  0 siblings, 1 reply; 8+ messages in thread
From: esmaeil mirzaee @ 2011-07-29 14:22 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Jul 29, 2011 at 8:16 AM, Bernd Petrovitsch
<bernd@petrovitsch.priv.at> wrote:
> On Fre, 2011-07-29 at 08:01 -0400, esmaeil mirzaee wrote:
>> On Fri, Jul 29, 2011 at 7:46 AM, Pravin Shedage
>> <pravinshedage2008@gmail.com> wrote:
>> ? ? ? ? Hi Samuel,
>>
>> ? ? ? ? check the FTP link
>> ? ? ? ? ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/
>> Actually I have gcc-3.4.6.tar.bz2 for process of installation I did:
>> untar the file
>> ./configure
>> make but I've got error
>
> Building a compiler is - in the worst case as in "canadian cross" - much
> more complicated than some other random app
>
> For the most simplest case - a compiler for the current host+OS -, `make
> bootstrap` is the way to go.
could you explain more? I'm new.
>
> ? ? ? ?Bernd
> --
> Bernd Petrovitsch ? ? ? ? ? ? ? ? ?Email : bernd at petrovitsch.priv.at
> ? ? ? ? ? ? ? ? ? ? LUGA : http://www.luga.at
>
>

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

* about gcc-3.4.6
  2011-07-29 14:22           ` esmaeil mirzaee
@ 2011-08-12  0:49             ` Javier Martinez Canillas
  2011-08-12 10:14               ` Bernd Petrovitsch
  0 siblings, 1 reply; 8+ messages in thread
From: Javier Martinez Canillas @ 2011-08-12  0:49 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Jul 29, 2011 at 4:22 PM, esmaeil mirzaee
<esmaeil.debian@gmail.com> wrote:
> On Fri, Jul 29, 2011 at 8:16 AM, Bernd Petrovitsch
> <bernd@petrovitsch.priv.at> wrote:
>> On Fre, 2011-07-29 at 08:01 -0400, esmaeil mirzaee wrote:
>>> On Fri, Jul 29, 2011 at 7:46 AM, Pravin Shedage
>>> <pravinshedage2008@gmail.com> wrote:
>>> ? ? ? ? Hi Samuel,
>>>
>>> ? ? ? ? check the FTP link
>>> ? ? ? ? ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/
>>> Actually I have gcc-3.4.6.tar.bz2 for process of installation I did:

Why do you want to use such an old compiler?

>>
>> For the most simplest case - a compiler for the current host+OS -, `make
>> bootstrap` is the way to go.
> could you explain more? I'm new.

I think he means that you should use the standard GCC package that can
be installed using whatever package manager your Linux distribution
has (i.e: apt/yum/yast)

Building a compiler from source code is not an easy task, it has
dependencies with at least a C library, such as glibc. And I don't
know if you need binutils source code also to compile (I have never
compile GCC from scratch).

Why an standard GCC installation doesn't fit your needs? Even if you
need a cross tool-chain for a not so common arch, you have projects
like Ptxdist
 and Crosstool that automates the tool-chain compilation.

Hope it helps,

-- 
Javier Mart?nez Canillas
(+34) 682 39 81 69
Barcelona, Spain

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

* about gcc-3.4.6
  2011-08-12  0:49             ` Javier Martinez Canillas
@ 2011-08-12 10:14               ` Bernd Petrovitsch
  0 siblings, 0 replies; 8+ messages in thread
From: Bernd Petrovitsch @ 2011-08-12 10:14 UTC (permalink / raw)
  To: kernelnewbies

On Fri, 2011-08-12 at 02:49 +0200, Javier Martinez Canillas wrote:
> On Fri, Jul 29, 2011 at 4:22 PM, esmaeil mirzaee
> <esmaeil.debian@gmail.com> wrote:
> > On Fri, Jul 29, 2011 at 8:16 AM, Bernd Petrovitsch
> > <bernd@petrovitsch.priv.at> wrote:
> >> On Fre, 2011-07-29 at 08:01 -0400, esmaeil mirzaee wrote:
> >>> On Fri, Jul 29, 2011 at 7:46 AM, Pravin Shedage
> >>> <pravinshedage2008@gmail.com> wrote:
> >>>         Hi Samuel,
> >>>
> >>>         check the FTP link
> >>>         ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/
> >>> Actually I have gcc-3.4.6.tar.bz2 for process of installation I did:
> 
> Why do you want to use such an old compiler?

Sometimes there "environmental" restrictions as in "you have to use this
release because of support blabla ...".

> >> For the most simplest case - a compiler for the current host+OS -, `make
> >> bootstrap` is the way to go.
> > could you explain more? I'm new.

Well, it's not particularly on-topic here.
And there is lot of documentation on the net about building gcc so
reproducing it here in my own words doesn't make any sense and only a
lot of work.
Any specific questions/problems/bugs?

> I think he means that you should use the standard GCC package that can
> be installed using whatever package manager your Linux distribution
> has (i.e: apt/yum/yast)

For the "I just want a gcc" people, this is the simple way to go (and
should be in general the preferred one).

But if you need to have a special version - a specific old version,
specific patches e.g. the bounds-checking patch, a really plain gcc from
gcc.gnu.org because at least RedHat's gccs have lots of patches (which
are almost all bug fixes) in as one can see in the .spec file, a
cross-compiler - you can build your own.

For a compiler for the current system, the simple way is - out of the
top of my head - "download and unpack the .tar.gz, cd into it and 'make
bootstrap` and `make install`" and it should be in /usr/local/{bin,lib}
and God knows where else;-)
I install them always somewhere else (with "PREFIX=" IIRC) because I can
remove it with a simple `rm -rf`.

If you want to build a cross-compiler, google for "crosstool-ng" and/or
"crosstool". They probably assume that you basically know what the
complexity in a cross-compiler is.
For starters, you also need an assembler and linker for the target
platform (which are in the GNU bin-utils). And in case of gcc, also
the/a libc IIRC.

> Building a compiler from source code is not an easy task, it has
> dependencies with at least a C library, such as glibc. And I don't
> know if you need binutils source code also to compile (I have never
> compile GCC from scratch).

Depends on what exactly you want to build. If you don't know that, find
someone who knows;-)

The glibc (oder other libc) is not the big issue, but more recent gccs
need other quite recent libs (gmp and mpfr IIRC). You will see if you
want to build the most recent gcc on an Fedora[-1] or Fedora[-2]
system;-)

> Why an standard GCC installation doesn't fit your needs? Even if you
> need a cross tool-chain for a not so common arch, you have projects
> like Ptxdist and Crosstool that automates the tool-chain compilation.

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
                     LUGA : http://www.luga.at

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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 11:14 about gcc-3.4.6 esmaeil mirzaee
2011-07-29 11:23 ` Bernd Petrovitsch
2011-07-29 11:46   ` Pravin Shedage
     [not found]     ` <CAOwGe_zPaGHwG2pUBx1hQ4A3cdt4gQ6YZLGwUwcTSK_BELNYBg@mail.gmail.com>
2011-07-29 12:01       ` esmaeil mirzaee
2011-07-29 12:16         ` Bernd Petrovitsch
2011-07-29 14:22           ` esmaeil mirzaee
2011-08-12  0:49             ` Javier Martinez Canillas
2011-08-12 10:14               ` Bernd Petrovitsch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.