[comp.unix.aix] Porting from AIX/RT to AIX PS/2.

cs3631bs@hydra.unm.edu (Peter Blemel) (07/11/90)

I am trying to port C and f77 code to the PS/2 running AIX. The IBM guys
loaned me one of these boxes, but had no manuals. Worse yet, no one seems
to know anything about the compilers. 

I have been told there is no f77 or cc, just vsfort and vsc. There also seems
to be no make, which is making my life miserable at best. I have figured out
that one must invoke vsfort, vspass2, and vspass3 in order to produce a .o
file (IBM talks about some vsf command, but a "find / -name "*vsf*" -print"
can only find the stuff in /lib.

Now that I've gotten this far, I am trying to link. I use ld with a -l for
every .a file in /lib/libvs*.a, but there are C symbols that remain unresolved
(things like printf()). I can not for the life of me find the standard C
library.

I find it very hard to believe that this is all IBM has to offer, especially
with the RT AIX version being as complete as it is (I.e. cc and f77 and make).
Would someone please be so kind as to 

a) send product numbers for f77, cc, make.
b) tell me at least how to compile and link a simple fortran program.

Peter Blemel

kevin@msa3b.UUCP (Kevin P. Kleinfelter) (07/11/90)

cs3631bs@hydra.unm.edu (Peter Blemel) writes:

>I have been told there is no f77 or cc, just vsfort and vsc. There also seems
>to be no make, which is making my life miserable at best. I have figured out

>a) send product numbers for f77, cc, make.

Can't help with f77, but for cc and make, you need to install the
"Application Development Toolkit."  IBM thinks that cc is not part of C.
-- 
Kevin Kleinfelter @ Management Science America, Inc (404) 239-2347
gatech!nanovx!msa3b!kevin

"Don't hold your finger on the button if the motor ain't goin' roundy-roundy."

richp@romulus.la.locus.com (Richard L. Pettit Jr.) (07/11/90)

In article <1990Jul10.182257.1528@ariel.unm.edu> cs3631bs@hydra.unm.edu (Peter Blemel) writes:
>I am trying to port C and f77 code to the PS/2 running AIX. The IBM guys
>loaned me one of these boxes, but had no manuals. Worse yet, no one seems
>to know anything about the compilers. 
>
>I have been told there is no f77 or cc, just vsfort and vsc. There also seems
>to be no make, which is making my life miserable at best. I have figured out

You must have the Application Development Toolkit installed in order to
have make.  ADT also gives you dbx, nm, strip, the C library, and lots
of other stuff (is /usr/include/stdio.h missing ?).

>that one must invoke vsfort, vspass2, and vspass3 in order to produce a .o

Again, if you have ADT, then you should have cc and according to the
vs{fort,pas,c} documentation (I've never used the Fortran compiler, I
*HATE* Fortran) simply invoking cc on the input source should work.
It works fine for .c and .p files (C and Pascal).  You should never
have to invoke the separate passes of the compiler by hand.

>file (IBM talks about some vsf command, but a "find / -name "*vsf*" -print"
>can only find the stuff in /lib.
>
>Now that I've gotten this far, I am trying to link. I use ld with a -l for
>every .a file in /lib/libvs*.a, but there are C symbols that remain unresolved
>(things like printf()). I can not for the life of me find the standard C
>library.

You DEFINITELY don't have ADT installed.

>
>I find it very hard to believe that this is all IBM has to offer, especially
>with the RT AIX version being as complete as it is (I.e. cc and f77 and make).
>Would someone please be so kind as to 
>
>a) send product numbers for f77, cc, make.
>b) tell me at least how to compile and link a simple fortran program.
>
>Peter Blemel

Tell the IBM person you need "the following lpps: ADT, C, and Fortran".
Once installp'ed, the command for compiling your Fortran program should
look like this:  

  cc filename.f
----
              Richard Pettit                       Locus Computing Corp.
                                richp@locus.com
            "Opinions expressed herein are of the author, not LCC."

jackv@turnkey.tcc.com (Jack F. Vogel) (07/11/90)

In article <1990Jul10.182257.1528@ariel.unm.edu> cs3631bs@hydra.unm.edu (Peter Blemel) writes:
>I am trying to port C and f77 code to the PS/2 running AIX. The IBM guys
>loaned me one of these boxes, but had no manuals. Worse yet, no one seems
>to know anything about the compilers. 
>
>I have been told there is no f77 or cc, just vsfort and vsc. There also seems
>to be no make, which is making my life miserable at best. 
 
Huh?? Your "IBM guys" have given you an incompletely installed system. It is
true that there is no f77 but there definitely should be a cc and make. The
problem is that this stuff is part of the LPP called ADT (Advanced Dev.
Tools) which is seperate from the C compiler (vsc), so it seems that they
installed the C compiler LPP without ADT, as you found out NOT very useful!
Make and cc would also know when to call the C compiler and when to call
the fortran compiler without your having to do anything. My suggestion is
that you yell long and hard to get the rest of the needed tools on the
system.

Disclaimer: I speak for myself, not LCC nor IBM.

-- 
Jack F. Vogel			jackv@locus.com
AIX370 Technical Support	       - or -
Locus Computing Corp.		jackv@turnkey.TCC.COM

mjones@aix.aix.kingston.ibm.com (Mike Jones) (07/11/90)

In article <1990Jul10.182257.1528@ariel.unm.edu>, cs3631bs@hydra.unm.edu
(Peter Blemel) writes:
> I am trying to port C and f77 code to the PS/2 running AIX. The IBM guys
> loaned me one of these boxes, but had no manuals. Worse yet, no one seems
> to know anything about the compilers. 
> 
> I have been told there is no f77 or cc, just vsfort and vsc. There also seems
> to be no make, which is making my life miserable at best.

You seem to have been loaned an incomplete system. Get in touch with the IBM
guys who loaned it to you and tell them you need to get the "Application
Developer's Toolkit" LPP installed. That has cc, f77 (I think), make, and
any libs you may be missing.

Mike Jones	   | The nature of programming being what it is, there is no
AIX Development	   | relationship between the "size" of the error and the
Kingston, NY	   | problems it causes.
ibmps2!aix!mjones  | 	- Gerald Weinberg
	Any opinions are purely my own.

mbrown@tonic.osf.org (Mark Brown) (07/12/90)

In article <1332@msa3b.UUCP>, kevin@msa3b.UUCP (Kevin P. Kleinfelter) writes:
|> cs3631bs@hydra.unm.edu (Peter Blemel) writes:
|> Can't help with f77, but for cc and make, you need to install the
|> "Application Development Toolkit."  IBM thinks that cc is not part of C.

Correction: IBM most likely believes that non-developer users shouldn't
have to pay (money, disk space, etc) for a development installation.

cc is "part of C". It is not necessarily "part of UNIX". See the difference?


DISCLAIMER: I don't speak for IBM. They don't make me wear ties.
Mark Brown   IBM AWD / OSF  |  "The tricky part is common usage."
The Good     mbrown@osf.org |
The Bad     uunet!osf!mbrown|       ---B.2.8.2, "POSIX Symbols",
The Ugly     (617) 621-8981 |                 POSIX 1003.1-1988

karish@mindcrf.UUCP (07/13/90)

In article <10638@paperboy.OSF.ORG> mbrown@tonic.osf.org (Mark Brown) writes:
|In article <1332@msa3b.UUCP>, kevin@msa3b.UUCP (Kevin P. Kleinfelter) writes:
||> cs3631bs@hydra.unm.edu (Peter Blemel) writes:
||> Can't help with f77, but for cc and make, you need to install the
||> "Application Development Toolkit."  IBM thinks that cc is not part of C.
|
|Correction: IBM most likely believes that non-developer users shouldn't
|have to pay (money, disk space, etc) for a development installation.
|
|cc is "part of C". It is not necessarily "part of UNIX". See the difference?

No, I don't.  This thread still doesn't make any sense to me.

The Application Development Toolkit is a set of tools that are
useful with a number of different compilers that are available on AIX.
For example, cc is smart enough to call the FORTRAN compiler if it's
given foo.f to compile.

The expectation is that a developer will first install the bosadt
LPP, then whatever compilers are needed.  That's the order that's
suggested in the AIX installation instructions, anyway.
-- 

	Chuck Karish		karish@mindcraft.com
	Mindcraft, Inc.		(415) 323-9000		

RAH@IBM.COM ("Russell A. Heise") (07/23/90)

 cs3631bs@hydra.unm.edu (Peter Blemel) writes:

 > I am trying to port C and f77 code to the PS/2 running AIX. The IBM guys
 > loaned me one of these boxes, but had no manuals. Worse yet, no one seems
 > to know anything about the compilers.
 >
 > I have been told there is no f77 or cc, just vsfort and vsc. There also seems
 > to be no make, which is making my life miserable at best. I have figured out
 > that one must invoke vsfort, vspass2, and vspass3 in order to produce a .o
 > file (IBM talks about some vsf command, but a "find / -name "*vsf*" -print"
 > can only find the stuff in /lib.
 > ...

 Your loaner machine apparently has one glaring deficiency:  it does not
 have the "Application Development Toolkit" program installed.  This
 package is a prerequisite to all the languages offered under AIX PS/2.
 In particular, it has 'cc'.  Once you have it installed, you should
 have no trouble using 'cc' to compile both .c and .f files; 'cc' will
 call the appropriate commands for the two types of source files.

Russ Heise, AIX Technical Support, IBM