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 |
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 |
All times are GMT -5. The time now is 12:47 PM. |