Information sur le portage de JGNAT sur Mac - seconde version.
Pascal <[email protected]>
| Newsgroups | gmane.comp.lang.ada.france |
|---|---|
| Message-ID | <[email protected]> |
Bonjour. J'ai progressé sur le portage de JGNAT sur Mac OS X. (JGNAT est le compilateur Ada basé sur GNAT pour l'environnement d'exécution de Java). J'ai fait plusieurs modifications mineures et quelques unes plus sérieuses pour obtenir une compilation correcte. Tous les utilitaires compilent correctement. Ils sont dans le répertoire de "bin" : gnat1drv, gnatfind, gnatls, gnatpsta, jarmake, jvm2ada, jvmstrip, gnatbind, gnatlink, gnatmake, gnatxref, jgnat alias pour gnat1drv et jvmlist. Les prochaines étapes sont de construire la bibliothèque d'exécution. Voir le code source modifié sur : http://blady.perso.orange.fr/alpha.html Voir les instructions dans read-me.txt (en PJ) N'hésitez pas à m'envoyer vos expérimentations et idées ou remarques. Elles sont les bienvenues. À suivre, Pascal. http://blady.perso.orange.fr _______________________________________________ Site WWW de l'association Ada-France: http://www.ada-france.org/ [email protected] http://www.ada-france.org/mailman/listinfo/ada-france
read-me.txt
(text/plain, 2 KB)
JGNAT compilation on Mac JGNAT is the Ada GNAT-based compiler for the Java Runtime Environment. It compiles Ada into Java Byte Code. I get JGNAT source code on: http://gd.tuwien.ac.at/languages/ada/gnat/jgnat/jgnat-1.1p/split-1.1p I have done several minor (;-) modifications and few more serious to get compilation ok. The modified source are available on: http://blady.perso.orange.fr/telechargements/jgnat/jgnat-1.1p2-src.tgz Download the file on your desktop, then type the followings with the Terminal: $ cd ~/Desktop $ tar xzf jgnat-1.1p2-src.tgz $ cd jgnat-1.1p2/src $ make 2>&1 | tee ../make.log Then I get the following link error with GNAT GPL PPC-DARWIN 2006: gnatlink ../obj/gnat1drv.ali -o ../bin/jgnat jpatch.o jmissing.o a-adaint.o a-argv.o a-cio.o a-cstrea.o a-exit.o a-final.o a-init.o a-link.o a-raise.o a-sysdep.o a-traceb.o fatal error, run-time library not installed correctly cannot locate file system.ads compilation abandoned gnatmake: *** link failed. Please help, tell me what are these errors and how to recover. When I use GPS from GNAT GPL PPC-DARWIN 2006: $ cd ~/Desktop $ tar xzf jgnat-1.1p2-src.tgz $ cd jgnat-1.1p2 $ mkdir obj1 $ cd obj1 $ mkdir bin $ cp ../src/jconfig.h config.h $ gcc -g -I. -c ../src/*.c $ gcc -g -I. -I../src/gcc-include -I../src/gcc-include/include -DIN_RTS -DIN_GCC -c ../src/raise-gcc.c $ cp ../src/jbackend.adb back_end.adb $ cp ../src/jgettarg.ads get_targ.ads $ cp ../src/jdefault.adb sdefault.adb $ cp ../src/sinfo.ads . $ cp ../src/treeprs.adt . $ cp ../src/nmake.adt . $ gnatmake -I- -aO. ../src/xnmake $ gnatmake -I- -aO. ../src/xtreeprs $ ./xnmake $ ./xtreeprs $ gnatmake -P../jgnat.gpr All utilities compile correctly. They are in bin directory: gnat1drv, gnatfind, gnatls, gnatpsta, jarmake, jvm2ada, jvmstrip, gnatbind, gnatlink, gnatmake, gnatxref, jgnat alias for gnat1drv and jvmlist. The next steps are to build the run-time library. Don't hesitate to send me all remarks. http://blady.perso.orange.fr/contact.html Pascal Pignard, August 2006.