From: Ken Thomas <kst@ecs.soton.ac.uk>
To: Meskovic Zlatko <zlatko.meskovic@ubs.com>
Subject: Re: gnat3.07 on AIX4.1.4: link problems
Date: 1996/12/19
Date: 1996-12-19T00:00:00+00:00 [thread overview]
Message-ID: <32B90628.41C67EA6@ecs.soton.ac.uk> (raw)
In-Reply-To: 32B00C9A.41C6@ubs.com
[-- Attachment #1: Type: text/plain, Size: 752 bytes --]
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
[-- Attachment #2: Makefile --]
[-- Type: text/plain, Size: 797 bytes --]
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
prev parent reply other threads:[~1996-12-19 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-12 0:00 gnat3.07 on AIX4.1.4: link problems Meskovic Zlatko
[not found] ` <01bbe8ce$b6813a50$262a6282@cln49ae>
1996-12-16 0:00 ` Meskovic Zlatko
[not found] ` <01bbeb38$069d5210$262a6282@cln49ae>
1996-12-16 0:00 ` Stephen Leake
1996-12-19 0:00 ` Ken Thomas [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox