FS#9591 - gcc-gnat package request

Attached to Project: Arch Linux
Opened by Michał Małek (michalm) - Saturday, 16 February 2008, 20:41 GMT
Last edited by Jan de Groot (JGC) - Friday, 18 July 2008, 21:48 GMT
Task Type Support Request
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,
I would like to request Ada support in gcc. Nowadays in Arch it is a tough task to compile Ada program. Since gnat itself is written in Ada it's not easy for ordinary user to build gcc-gnat by himself. Because of this AUR is not an answer for this package. I hope it will be possible to add gcc-gnat to extra repository (like gcc-gcj).
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 18 July 2008, 21:48 GMT
Reason for closing:  Won't implement
Comment by Jan de Groot (JGC) - Sunday, 17 February 2008, 00:11 GMT
When I revised our gcc package, I enabled the ada compiler, to find out the same thing you already found out: it needs an ada compiler to build, which we don't have on archlinux.
Any suggestion is welcome though.
Comment by Michał Małek (michalm) - Sunday, 17 February 2008, 08:07 GMT
Well, actually I managed to build custom gcc with ada enabled. I did this by using gcc binaries from other distribution (PLD as far as I can remember). I'll try to write PKGBUILD which do this.
Comment by Flavien Bridault (vlaaad) - Tuesday, 26 February 2008, 17:25 GMT
http://wiki.archlinux.org/index.php/Successfully_Build_an_Ada_Compiler_in_Arch

Be sure to read the comments I added in the discussion tab, because the suggested compiler in the original article didn't work, at least for me.
Comment by Michał Małek (michalm) - Thursday, 13 March 2008, 18:52 GMT
Thanks Flavien, based on your tips I have finally written PKBUILDS for gcc and gnat.

The flow:
1. Build and install gnat-bootstrap package. It installs binary gnat 4.2.0 from Suse 9.2.
2. Build and install gcc with gnat support (PKBUILD-gcc_and_gnat). Now you can remove gnat-bootstrap package.
3. Build gcc (PKGBUILD-gcc) and gcc-gnat (PKGBUILD-gnat).
4. Install gcc and gcc-gnat packages.
Comment by Michał Małek (michalm) - Wednesday, 26 March 2008, 20:21 GMT
I have updated PKGBUILDs for gcc 4.3.0
Comment by Juanra (juanra) - Saturday, 10 May 2008, 17:46 GMT
Hi, i tried to build gnat using these PKGBUILD's (i think there is an error on gcc_and_gnat updated for gcc 4.3 PKGBUILD), and i get an error on treelang. So, i remove treelang from enable-languages option, but i continue getting other error. I get this:

make[2]: Entering directory `/home/juanra/abs/gcc_and_gnat/src/gcc-4.3.0/build'
make[3]: Entering directory `/home/juanra/abs/gcc_and_gnat/src/gcc-4.3.0/build'
rm -f stage_current
make[3]: Leaving directory `/home/juanra/abs/gcc_and_gnat/src/gcc-4.3.0/build'
Comparing stages 2 and 3
warning: ./cc1objplus-checksum.o differs
warning: ./cc1obj-checksum.o differs
warning: ./cc1plus-checksum.o differs
warning: ./cc1-checksum.o differs
Bootstrap comparison failure!
./varasm.o differs
./gcc.o differs
./crtbeginS.o differs
./crtendS.o differs
./i386.o differs
make[2]: *** [compare] Error 1
make[2]: Leaving directory `/home/juanra/abs/gcc_and_gnat/src/gcc-4.3.0/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/home/juanra/abs/gcc_and_gnat/src/gcc-4.3.0/build'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
Comment by Michał Małek (michalm) - Sunday, 18 May 2008, 20:02 GMT
Yes, for some reason these packages doesn't work for gcc 4.3.0. I'll try to fix it but for now you can use my packages: http://michalm.ramtel.pl/gcc/gcc-4.3.0-2-i686.pkg.tar.gz http://michalm.ramtel.pl/gcc/gcc-gnat-4.3.0-1-i686.pkg.tar.gz
Comment by Juanra (juanra) - Monday, 19 May 2008, 19:42 GMT
Thank you very much :)
Comment by Juanra (juanra) - Monday, 19 May 2008, 19:44 GMT
i tried to compile from the previous PKGBUILDs, not including the old gcc-hash-style-both patch, but i got the same error. where can i find the patch?? please
Comment by Harri (mr.leino) - Monday, 19 May 2008, 20:43 GMT
dosent the patch found in /var/abs/core/devel/gcc/gcc-hash-style-both.patch work?

thanks Michał you saved my day! you should get a gold medal or something..
Comment by Andreas Radke (AndyRTR) - Sunday, 25 May 2008, 22:09 GMT
i'd prefer to see that pkg in AUR and not in the official Arch core repo. afaik nothing in the supported area would depend on it in the near future. so put it into AUR and wait for the usual voting process. maybe it will hit one day the community repo.
Comment by Jan de Groot (JGC) - Sunday, 25 May 2008, 23:10 GMT
I'm not planning to add support for an ADA compiler to arch at this moment. Creating one needs a full bootstrap with weird binaries from other distributions. If I would create this package, I would install makepkg on a distribution like debian testing and build an ADA compiler with the gcc-gnat on that distribution and use the resulting arch-friendly package as bootstrap compiler for the final arch package instead of downloading some random RPM, extracting it and using that package.

Loading...