I have recently upgraded my gcc 2.95.3. Well, I have kept the 2.95.3 and installed 3.0.4 under /usr/local/, since removing or overwriting the SuSE Linux 7.3 default gcc 2.95.3 would probably break some of the 7.3 packages. Of course I would have liked to have the new 3.2, but the make processes of both 3.1.1 and 3.2 failed on me. There seems to be a problem with libgnat. I enclose the last part of a make of 3.1.1: //////////////////////////////////////////////////////////////////// gnatgcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -W -Wall -gnatpg -gnata -I- -I. -I../../gcc-3.1.1/gcc/ada ../../gcc-3.1.1/gcc/ada/back_end.adb gnatgcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -W -Wall -gnatpg -gnata -I- -I. -I../../gcc-3.1.1/gcc/ada ../../gcc-3.1.1/gcc/ada/gnat1drv.adb gnatbind -C -I- -I. -I../../gcc-3.1.1/gcc/ada -o b_gnat1.c -n gnat1drv.ali gnatbind: error while loading shared libraries: libgnat-3.13p.so.1: cannot open shared object file: No such file or directorymake[2]: *** [b_gnat1.c] Error 127 make[2]: Leaving directory `/home/david/FFN/build/gcc/ada' make[1]: *** [gnat1] Error 2 make[1]: Leaving directory `/home/david/FFN/build/gcc' make: *** [all-gcc] Error 2 //////////////////////////////////////////////////////////////////// And here is what I get when searching for the messing file: //////////////////////////////////////////////////////////////////// dt:~ # find / -name libgnat* /usr/lib/gcc-lib/i386-Ada-linux/2.8.1/adalib/libgnat.a /usr/lib/gcc-lib/i386-Ada-linux/2.8.1/adalib/libgnat.so /usr/lib/gcc-lib/i386-Ada-linux/2.8.1/adalib/libgnat_so.a /usr/lib/gcc-lib/i386-Ada-linux/2.8.1/adalib/libgnat-3.13p.so /usr/lib/gcc-lib/i386-Ada-linux/2.8.1/libgnatgcc.a /usr/lib/libgnat-3.15a.so /usr/i486-linux-libc5/lib/libgnat.so.3.09 /usr/i486-linux-libc5/lib/libgnat.so //////////////////////////////////////////////////////////////////// I have the impression that libgnat is part of the whole gcc shebang and should be built with all the other stuff when you build the whole of gcc. Am I wrong in this? Should I upgrade libgnat by itself first? Best regards, David List
David List
Of course I would have liked to have the new 3.2, but the make processes of both 3.1.1 and 3.2 failed on me. There seems to be a problem with libgnat. I enclose the last part of a make of 3.1.1:
Better use the just released 3.2 as C++ programs/libraries compiled with 3.2 will be incompatible to 3.1.X versions. And yes, libgnat belongs to the ADA part of gcc. But in order to compile gnat you need a working binary version as gnat is in great parts written in ADA. GCC consists of C, C++, Java, ADA, Fortran77 and Objective-C compilers. If you do not need all of those languages, you can restrict the choice to a subset of your choice by using the --enable-languages options. So if you only need C and C++ (I guess you do), just use --enable-languages=c,c++ in addition to the other configure options you're using. Philipp -- Philipp Thomas work: pthomas@suse.de Development SuSE Linux AG private: pth@t-link.de
On Monday 02 September 2002 20:59, Philipp Thomas wrote:
David List
[ Sun, 1 Sep 2002 10:43:22 +0200]: Of course I would have liked to have the new 3.2, but the make processes of both 3.1.1 and 3.2 failed on me. There seems to be a problem with libgnat. I enclose the last part of a make of 3.1.1:
Better use the just released 3.2 as C++ programs/libraries compiled with 3.2 will be incompatible to 3.1.X versions.
I know, the enclosed error messages were just part of my latest attempt which was with 3.1.1.
And yes, libgnat belongs to the ADA part of gcc. But in order to compile gnat you need a working binary version as gnat is in great parts written in ADA.
GCC consists of C, C++, Java, ADA, Fortran77 and Objective-C compilers. If you do not need all of those languages, you can restrict the choice to a subset of your choice by using the --enable-languages options. So if you only need C and C++ (I guess you do), just use
--enable-languages=c,c++
in addition to the other configure options you're using.
I'll try it out. Thank you for your answer. Best regards, David List
participants (2)
-
David List
-
Philipp Thomas