gcc 2.95.3 compile failure
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?
Quoted 7 lines · horse_rivers
hi:
I am trying to compile gcc2.95.3 ,after I patch source code , and
configure , makefail with this :gcc-2.95.3/libio/streambuf.h:37: parse error before `}'
Quoted 7 lines
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/
Quoted 8 lines
thanks?
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Signature · 6 lines
Thank you Warm Regards Anuz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121219/1525dfb5/attachment.html
Dear horse_rivers,
Quoted 1 line · horse_rivers
? 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
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Le mercredi 19 d?cembre 2012 ? 15:54 +0100, Thomas Petazzoni a ?crit :
Quoted 10 lines
Dear
horse_rivers,Quoted 1 line · horse_rivers
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 ;)
Signature · 2 lines
Yann Droneaud OPTEYA
Quoted 11 lines · At?2012-12-19?22:54:30,"Thomas?Petazzoni"?<[email protected]>…
Dear?horse_rivers,
Quoted 1 line · 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
Quoted 9 lines
Best?regards,
Thomas
--?
Thomas?Petazzoni,?Free?Electrons
Kernel,?drivers,?real-time?and?embedded?Linux
development,?consulting,?training?and?support.
http://free-electrons.com
On Don, 2012-12-20 at 11:11 +0800, horse_rivers wrote:
[....]
Quoted 1 line
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
Signature · 2 lines
Bernd Petrovitsch Email : bernd at petrovitsch.priv.at
LUGA : http://www.luga.atQuoted 4 lines · At?2012-12-20?18:01:40,"Bernd?Petrovitsch"?<[email protected]>?wrote:
On?Don,?2012-12-20?at?11:11?+0800,?horse_rivers?wrote:
[....]Quoted 1 line
?becasue?i?want?to?compile?linux?2.6?version??kernel?,which?require??gcc2.95.3
Quoted 8 lines
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!
Quoted 14 lines
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
Quoted 3 lines · horse_rivers
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) )
Signature · 4 lines
Sundararaj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121221/e2a69cd5/attachment.html
Quoted 8 lines · horse_rivers
Quoted 7 lines · At 2012-12-20 18:01:40,"Bernd Petrovitsch" <[email protected]> wrote:
On Don, 2012-12-20 at 11:11 +0800,
horse_riverswrote:
[....]Quoted 1 line
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.
Quoted 7 lines
Quoted 5 lines
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 bootstrapped one (which is IMHO easy enough).
Recent ones should understand/compile also 10 years old source ....
Bernd
Signature · 2 lines
Bernd Petrovitsch Email : bernd at petrovitsch.priv.at
LUGA : http://www.luga.atQuoted 27 lines · Bernd Petrovitsch
Quoted 1 line · horse_rivers
At 2012-12-20 18:01:40,"Bernd Petrovitsch" <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines · horse_rivers
[....]
Quoted 1 line
becasue i want to compile linux 2.6 version kernel ,which require
gcc2.95.3
Quoted 11 lines
Quoted 9 lines
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 bootstrapped one (which is IMHO easy enough).
Quoted 3 lines
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
Quoted 10 lines
--
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
Signature · 6 lines
Thank you Warm Regards Anuz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121221/930f3c98/attachment.html