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!
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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Thank you Warm Regards Anuz
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
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
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
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@petrovitsch.priv.at LUGA : http://www.luga.at
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@petrovitsch.priv.at LUGA : http://www.luga.at
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/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@zirconium) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) -- Sundararaj
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@petrovitsch.priv.at LUGA : http://www.luga.at
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@petrovitsch.priv.at LUGA : http://www.luga.at
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Thank you Warm Regards Anuz
participants (6)
-
Anuz Pratap Singh Tomar -
Bernd Petrovitsch -
horse_rivers -
sundararaj reel -
Thomas Petazzoni -
Yann Droneaud