All of lore.kernel.org
 help / color / mirror / Atom feed
* gcc 2.95.3 compile failure
@ 2012-12-19 14:10 horse_rivers
  2012-12-19 14:35 ` Anuz Pratap Singh Tomar
  2012-12-19 14:54 ` Thomas Petazzoni
  0 siblings, 2 replies; 10+ messages in thread
From: horse_rivers @ 2012-12-19 14:10 UTC (permalink / raw)
  To: kernelnewbies

hi:

? I am trying to ?compile gcc2.95.3 ,after I patch ?source code , and configure , make?

? fail with this :gcc-2.95.3/libio/streambuf.h:37: parse error before `}'

? I find this line is ? ? 35??extern "C" {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?36 ? ?#include <libio.h>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 37 }

how can I fix this error?


thanks?

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

* gcc 2.95.3 compile failure
  2012-12-19 14:10 gcc 2.95.3 compile failure horse_rivers
@ 2012-12-19 14:35 ` Anuz Pratap Singh Tomar
  2012-12-19 14:54 ` Thomas Petazzoni
  1 sibling, 0 replies; 10+ messages in thread
From: Anuz Pratap Singh Tomar @ 2012-12-19 14:35 UTC (permalink / raw)
  To: kernelnewbies

On Wed, Dec 19, 2012 at 2:10 PM, horse_rivers <horse_rivers@126.com> wrote:

> hi:
>
>   I am trying to  compile gcc2.95.3 ,after I patch  source code , and
> configure , make
>
>   fail with this :gcc-2.95.3/libio/streambuf.h:37: parse error before `}'
>
>   I find this line is     35  extern "C" {
>                                36    #include <libio.h>
>                               37 }
>
> how can I fix this error?
>
> Try this list, you may get a better answer:
 http://gcc.gnu.org/ml/gcc-help/

>
> thanks?
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121219/1525dfb5/attachment.html 

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

* gcc 2.95.3 compile failure
  2012-12-19 14:10 gcc 2.95.3 compile failure horse_rivers
  2012-12-19 14:35 ` Anuz Pratap Singh Tomar
@ 2012-12-19 14:54 ` Thomas Petazzoni
  2012-12-19 15:12   ` Yann Droneaud
  2012-12-20  3:11   ` horse_rivers
  1 sibling, 2 replies; 10+ messages in thread
From: Thomas Petazzoni @ 2012-12-19 14:54 UTC (permalink / raw)
  To: kernelnewbies

Dear horse_rivers,

On Wed, 19 Dec 2012 22:10:07 +0800 (CST), horse_rivers wrote:

> ? I am trying to ?compile gcc2.95.3 ,after I patch ?source code , and configure , make?

Do you know we are in 2012 ?

Some people are even saying that the end of the world will be in two
days. So what do you risk at trying with a sane, recent, version of
gcc, instead of the prehistoric 2.95 version?

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* gcc 2.95.3 compile failure
  2012-12-19 14:54 ` Thomas Petazzoni
@ 2012-12-19 15:12   ` Yann Droneaud
  2012-12-20  3:11   ` horse_rivers
  1 sibling, 0 replies; 10+ messages in thread
From: Yann Droneaud @ 2012-12-19 15:12 UTC (permalink / raw)
  To: kernelnewbies

Le mercredi 19 d?cembre 2012 ? 15:54 +0100, Thomas Petazzoni a ?crit :
> Dear horse_rivers,
> 
> On Wed, 19 Dec 2012 22:10:07 +0800 (CST), horse_rivers wrote:
> 
> >   I am trying to  compile gcc2.95.3 ,after I patch  source code , and configure , make 
> 
> Do you know we are in 2012 ?
> 
> Some people are even saying that the end of the world will be in two
> days.

This is already the end of the world:

Zombie programs are coming back to live !
Blue screen of the death and such.

(hey, just kidding ;)

-- 
Yann Droneaud
OPTEYA

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

* gcc 2.95.3 compile failure
  2012-12-19 14:54 ` Thomas Petazzoni
  2012-12-19 15:12   ` Yann Droneaud
@ 2012-12-20  3:11   ` horse_rivers
  2012-12-20 10:01     ` Bernd Petrovitsch
  1 sibling, 1 reply; 10+ messages in thread
From: horse_rivers @ 2012-12-20  3:11 UTC (permalink / raw)
  To: kernelnewbies

At?2012-12-19?22:54:30,"Thomas?Petazzoni"?<thomas.petazzoni@free-electrons.com>?wrote:
>Dear?horse_rivers,
>
>On?Wed,?19?Dec?2012?22:10:07?+0800?(CST),?horse_rivers?wrote:
>
>>???I?am?trying?to??compile?gcc2.95.3?,after?I?patch??source?code?,?and?configure?,?make?
>
>Do?you?know?we?are?in?2012??
>
>Some?people?are?even?saying?that?the?end?of?the?world?will?be?in?two
>days.?So?what?do?you?risk?at?trying?with?a?sane,?recent,?version?of
>gcc,?instead?of?the?prehistoric?2.95?version?

becasue i want to compile linux 2.6 version ?kernel ,which require ?gcc2.95.3

Best regards

>
>Best?regards,
>
>Thomas
>--?
>Thomas?Petazzoni,?Free?Electrons
>Kernel,?drivers,?real-time?and?embedded?Linux
>development,?consulting,?training?and?support.
>http://free-electrons.com

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

* gcc 2.95.3 compile failure
  2012-12-20  3:11   ` horse_rivers
@ 2012-12-20 10:01     ` Bernd Petrovitsch
  2012-12-21  1:11       ` horse_rivers
  0 siblings, 1 reply; 10+ messages in thread
From: Bernd Petrovitsch @ 2012-12-20 10:01 UTC (permalink / raw)
  To: kernelnewbies

On Don, 2012-12-20 at 11:11 +0800, horse_rivers wrote:
[....]
> becasue i want to compile linux 2.6 version  kernel ,which require  gcc2.95.3

2.6 as such covers the range of years - look at the release dates from
2.6.0 and 2.6.39.

And requirements are usually the minimum (here: oldest) version.
All remotely currently deployed gcc's (including from - but not limited
to - Debian/stable over RedHat-Enterprise-6 to SUSE/Novell with and
without updates) up to gcc-4.7.2 (most recent stable) should actually
work.

Known broken versions in between are explicitly checked

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

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

* gcc 2.95.3 compile failure
  2012-12-20 10:01     ` Bernd Petrovitsch
@ 2012-12-21  1:11       ` horse_rivers
  2012-12-21  9:17         ` sundararaj reel
  2012-12-21  9:56         ` Bernd Petrovitsch
  0 siblings, 2 replies; 10+ messages in thread
From: horse_rivers @ 2012-12-21  1:11 UTC (permalink / raw)
  To: kernelnewbies

At?2012-12-20?18:01:40,"Bernd?Petrovitsch"?<bernd@petrovitsch.priv.at>?wrote:
>On?Don,?2012-12-20?at?11:11?+0800,?horse_rivers?wrote:
>[....]
>>?becasue?i?want?to?compile?linux?2.6?version??kernel?,which?require??gcc2.95.3
>
>2.6?as?such?covers?the?range?of?years?-?look?at?the?release?dates?from
>2.6.0?and?2.6.39.
>
>And?requirements?are?usually?the?minimum?(here:?oldest)?version.
>All?remotely?currently?deployed?gcc's?(including?from?-?but?not?limited
>to?-?Debian/stable?over?RedHat-Enterprise-6?to?SUSE/Novell?with?and
>without?updates)?up?to?gcc-4.7.2?(most?recent?stable)?should?actually
>work.

that is saying the gcc4.7 can compile linux kernel 2.6.0-2.6.39 ??

Best Regards!

>
>Known?broken?versions?in?between?are?explicitly?checked
>
>Kind?regards,
>	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

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

* gcc 2.95.3 compile failure
  2012-12-21  1:11       ` horse_rivers
@ 2012-12-21  9:17         ` sundararaj reel
  2012-12-21  9:56         ` Bernd Petrovitsch
  1 sibling, 0 replies; 10+ messages in thread
From: sundararaj reel @ 2012-12-21  9:17 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Dec 21, 2012 at 2:11 AM, horse_rivers <horse_rivers@126.com> wrote:


> that is saying the gcc4.7 can compile linux kernel 2.6.0-2.6.39  ?
>
>
I would expect it to.

My 2.6.32 kernel was build by gcc4.4.3

$ cat /proc/version
Linux version 2.6.32-36-generic (buildd at zirconium) (gcc version 4.4.3
(Ubuntu 4.4.3-4ubuntu5) )


-- 

Sundararaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121221/e2a69cd5/attachment.html 

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

* gcc 2.95.3 compile failure
  2012-12-21  1:11       ` horse_rivers
  2012-12-21  9:17         ` sundararaj reel
@ 2012-12-21  9:56         ` Bernd Petrovitsch
  2012-12-21 10:39           ` Anuz Pratap Singh Tomar
  1 sibling, 1 reply; 10+ messages in thread
From: Bernd Petrovitsch @ 2012-12-21  9:56 UTC (permalink / raw)
  To: kernelnewbies

On Fre, 2012-12-21 at 09:11 +0800, horse_rivers wrote:
> At 2012-12-20 18:01:40,"Bernd Petrovitsch" <bernd@petrovitsch.priv.at> wrote:
> >On Don, 2012-12-20 at 11:11 +0800, horse_rivers wrote:
> >[....]
> >> becasue i want to compile linux 2.6 version  kernel ,which require  gcc2.95.3
> >
> >2.6 as such covers the range of years - look at the release dates from
> >2.6.0 and 2.6.39.
> >
> >And requirements are usually the minimum (here: oldest) version.
> >All remotely currently deployed gcc's (including from - but not limited
> >to - Debian/stable over RedHat-Enterprise-6 to SUSE/Novell with and
> >without updates) up to gcc-4.7.2 (most recent stable) should actually
> >work.
> 
> that is saying the gcc4.7 can compile linux kernel 2.6.0-2.6.39  ?

Short answer: Probably - it is worth a try.

Long answer: First, I would try the gcc from your distribution - it it
works, be done with it.
Than I would try a somewhat recent one - either a prepackaged one (beu I
do not know if such actually exist somewhere) or a self-`make
bootstrap`ped one (which is IMHO easy enough).

Recent ones should understand/compile also 10 years old source ....

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

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

* gcc 2.95.3 compile failure
  2012-12-21  9:56         ` Bernd Petrovitsch
@ 2012-12-21 10:39           ` Anuz Pratap Singh Tomar
  0 siblings, 0 replies; 10+ messages in thread
From: Anuz Pratap Singh Tomar @ 2012-12-21 10:39 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Dec 21, 2012 at 9:56 AM, Bernd Petrovitsch <
bernd@petrovitsch.priv.at> wrote:

> On Fre, 2012-12-21 at 09:11 +0800, horse_rivers wrote:
> > At 2012-12-20 18:01:40,"Bernd Petrovitsch" <bernd@petrovitsch.priv.at>
> wrote:
> > >On Don, 2012-12-20 at 11:11 +0800, horse_rivers wrote:
> > >[....]
> > >> becasue i want to compile linux 2.6 version  kernel ,which require
>  gcc2.95.3
> > >
> > >2.6 as such covers the range of years - look at the release dates from
> > >2.6.0 and 2.6.39.
> > >
> > >And requirements are usually the minimum (here: oldest) version.
> > >All remotely currently deployed gcc's (including from - but not limited
> > >to - Debian/stable over RedHat-Enterprise-6 to SUSE/Novell with and
> > >without updates) up to gcc-4.7.2 (most recent stable) should actually
> > >work.
> >
> > that is saying the gcc4.7 can compile linux kernel 2.6.0-2.6.39  ?
>
> Short answer: Probably - it is worth a try.
>
> Long answer: First, I would try the gcc from your distribution - it it
> works, be done with it.
> Than I would try a somewhat recent one - either a prepackaged one (beu I
> do not know if such actually exist somewhere) or a self-`make
> bootstrap`ped one (which is IMHO easy enough).
>
> Recent ones should understand/compile also 10 years old source ....
>
> Why not use a buildroot  based tool chains or get an old toolchain and use
it as cross compiler. That should work for the most part.
Though it uses uclibc, you can replace it with normal libc.

        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
>



-- 
Thank you
Warm Regards
Anuz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121221/930f3c98/attachment.html 

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

end of thread, other threads:[~2012-12-21 10:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-19 14:10 gcc 2.95.3 compile failure horse_rivers
2012-12-19 14:35 ` Anuz Pratap Singh Tomar
2012-12-19 14:54 ` Thomas Petazzoni
2012-12-19 15:12   ` Yann Droneaud
2012-12-20  3:11   ` horse_rivers
2012-12-20 10:01     ` Bernd Petrovitsch
2012-12-21  1:11       ` horse_rivers
2012-12-21  9:17         ` sundararaj reel
2012-12-21  9:56         ` Bernd Petrovitsch
2012-12-21 10:39           ` Anuz Pratap Singh Tomar

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.