LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-01-2005, 08:05 AM   #1
srinis
LQ Newbie
 
Registered: Nov 2004
Location: India
Distribution: FC1
Posts: 9

Rep: Reputation: 0
compiling older gcc


hi,
I currently have FC3 with gcc-3.4 installed on it.

For some readons. i wanted to work with an older compiler version of gcc , so i dnloaded the gcc-3.0 src code from the GNU mirror sites,

I did the following.

Untarred the src code into the /opt dir and then did the
./configure --prefix=/usr/local/mygcc --enable-shadow-headers

then i did the make
make bootstrap

After pretty long time, i lande with an error 2
saying
in file included in from locale.cc at line 508

which was #include<bits/ctype_noninline.h>
In constructor std:ctype<char>:ctype(.........); undefined reference to do_toupper, similarly do_tollower

then it had exited,

I chked the file. but coulld not really set it right.
There exists a #ifdef regarding shadow headers which says if given in configure would allow legacy C definitions to be used, but to summarise i landed in nothing after a struggle for 2 days. Can any1 suggest what is wrong and what needs to be done to get this gcc-3.0 compiled.

Does glibc create some problems. This is precisely only in the libstdc++ library compilations.

Any suggestions would be great.....

Thanking u,
Satish
 
Old 04-01-2005, 12:18 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
hi,
you might want to look on the internet for a no_fixincludes patch (always a good idea to disabe that)
http://lfs-matrix.net/patches/downloads/gcc/
for the locale problem you might try
--enable-clocale=gnu
and i would also be using
--enable-shared
--enable-threads=posix
and it may be necesarry to use
--enable-__cxa_atexit


and since you are using one version to compile another version use
make bootstrap
so it can sort itself

sometimes there are just problems between glibc versions and gcc versions on certain hardware

edit: it may be that --enable-shadow-headers is broken as well posibly ?
doesn't seem like that would be necesary but i don't fully understand all the ins and outs of that

Last edited by foo_bar_foo; 04-01-2005 at 12:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I install an older gcc thorney Fedora 1 11-25-2005 09:16 PM
Installing older gcc. Bad idea? Surg Debian 1 11-14-2005 11:53 AM
compiling issues on as3 with older gcc nkshirsagar Red Hat 2 12-07-2004 11:56 PM
using an older version of gcc win32sux Slackware 1 05-12-2004 02:53 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 04:08 PM


All times are GMT -5. The time now is 10:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration