On Wed, 2015-04-22 at 16:07 -0400, Olivier Diotte wrote: > Hi, > > I'm trying to build GCC-4.8.2 (on Gentoo Linux x86_64) to (eventually) > build GHDL-0.31. > > Here's what I tried: > 1. Download gnat-gpl-2014-x86_64-linux-bin.tar.gz from > http://libre.adacore.com/download/ > 2. Unpack the archive (into <gnat-gpl-bin>) > 3. Download gcc-4.8.2.tar.bz2 and unpack into <gcc-4.8.2>) > 4. mkdir <gcc-4.8.2>/build; cd <gcc-4.8.2>/build > 5. PATH="<gnat-gpl-bin>/bin:${PATH}" ../configure > --enable-languages=c,c++,ada && PATH="<gnat-gpl-bin>/bin:${PATH}" make I am neither a Gnat expert nor a maintainer, but I have built ghdl-0.31 under Debian. Step 1 may be the problem here : there is a danger you are mixing the Adacore gpl gnat compiler with the Gentoo native FSF gcc/gnat. It would be better to at least, less risky to use the distribution's own gnat (the gentoo equivalent of apt-get install gnat) and compile with that. ghdl isn't hyper-critical about requiring the same compiler and source versions - for 0.31, 4.8.4 should work equally well, and there's a switch to allow building with gcc-4.9. So as a first step, which gentoo-native gnat and gcc do you have? If you can install 4.8.x and the matching sources, you should not need to build gnat first, but if you do, it should be identical to the packaged one. -- Brian > The build inevitably fails with: > [snip] > mkdir -p ada/bldtools/snamest > rm -f ada/bldtools/snamest/snames.ads-tmpl > ada/bldtools/snamest/snames.adb-tmpl > ada/bldtools/snamest/snames.h-tmpl ada/bldtools/snamest/xsnamest.adb > ada/bldtools/snamest/xutil.ads ada/bldtools/snamest/xutil.adb > cp -p ../../gcc/ada/snames.ads-tmpl ../../gcc/ada/snames.adb-tmpl > ../../gcc/ada/snames.h-tmpl ../../gcc/ada/xsnamest.adb > ../../gcc/ada/xutil.ads ../../gcc/ada/xutil.adb ada/bldtools/snamest > (cd ada/bldtools/snamest; gnatmake -q xsnamest ; ./xsnamest ) > a-stream.ads:69:04: run-time configuration error > a-stream.ads:69:04: entity "Ada.Tags.Prim_Ptr" not defined > gnatmake: "xsnamest.adb" compilation error > /bin/sh: ./xsnamest: No such file or directory > ../../gcc/ada/Make-generated.in:50: recipe for target 'ada/stamp-snames' failed > make[3]: *** [ada/stamp-snames] Error 127 > make[3]: Leaving directory '/home/dioo/Prog/gcc-4.8.2/build/gcc' > Makefile:4156: recipe for target 'all-stage1-gcc' failed > make[2]: *** [all-stage1-gcc] Error 2 > make[2]: Leaving directory '/home/dioo/Prog/gcc-4.8.2/build' > Makefile:20118: recipe for target 'stage1-bubble' failed > make[1]: *** [stage1-bubble] Error 2 > make[1]: Leaving directory '/home/dioo/Prog/gcc-4.8.2/build' > Makefile:885: recipe for target 'all' failed > make: *** [all] Error 2 > > I don't understand this Ada.Tags.Prim_Ptr and the only thing I could > find related to it is > https://gcc.gnu.org/ml/gcc-patches/2012-07/msg00712.html (and this > change is already applied in 4.8.2) > > If anyone can help me bootstrap this, it would be much appreciated. > > Regards, > Olivier