From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,45d5a321269b1030 X-Google-Attributes: gid103376,public From: Ken Thomas Subject: Re: gnat3.07 on AIX4.1.4: link problems Date: 1996/12/19 Message-ID: <32B90628.41C67EA6@ecs.soton.ac.uk>#1/1 X-Deja-AN: 204887033 references: <32B00C9A.41C6@ubs.com> to: Meskovic Zlatko content-type: multipart/mixed; boundary="------------167EB0E72781E494446B9B3D" organization: CCG mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4c) Date: 1996-12-19T00:00:00+00:00 List-Id: This is a multi-part message in MIME format. --------------167EB0E72781E494446B9B3D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Meskovic Zlatko wrote: > > Hi all, > > I have a little problem with linking ada on my PowerPC. > It is good news that tasking is working on this version as I am developing code for the parallel IBM SP2. One aspect of this is an Ada95 binding to MPI in which alternative startup code (crt0.o) is used. After some experimentation the attached makefile was produced. The "trick" is to use the option -nostartfiles as a parameter to gnatlink. The MPI-Ada code is called from an enclosing C program. Hope this helps. Ken -- Dr K.S. Thomas Department of Electronics and Computer Science University of Southampton Highfield Southampton SO17 1BJ United Kingdom Telephone : (+44) 01703 593029 Fax : (+44) 01703 593903 email: kst@ecs.soton.ac.uk --------------167EB0E72781E494446B9B3D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile" MPI_LINK = -nostartfiles -L/usr/lpp/ppe.poe/lib -L/usr/lpp/ppe.poe/lib/ip -lmpi -lvtd -lppe -lc GNAT = -L/home/kst/SP2/GNAT.3.05/lib/gcc-lib/rs6000-ibm-aix3.2/2.7.2 -lgnat EXTRA_LINK = /usr/lpp/ppe.poe/lib/crt0.o wrapper1.o: wrapper1.c mpcc -c -I/usr/lpp/ppe.poe/include wrapper1.c wrapper.o: wrapper.c gcc -c -I/usr/lpp/ppe.poe/include wrapper.c test1.ali: test1.adb gnatmake -c test1 test1: wrapper1.o test1.ali gnatbind -n test1.ali gnatlink $(MPI_LINK) $(EXTRA_LINK) test1.ali wrapper1.o rm test1.ali test2.ali: test2.adb gnatmake -c test2 test2: wrapper.o test2.ali gnatbind -n test2.ali gnatlink $(MPI_LINK) $(EXTRA_LINK) test2.ali wrapper.o rm test2.ali one.o: one.c gcc -c -I/usr/lpp/ppe.poe/include one.c one: one.o gcc -o one $(MPI_LINK) $(EXTRA_LINK) one.o --------------167EB0E72781E494446B9B3D--