[comp.unix.admin] Support for multiple C compilers

jona@iscp.Bellcore.COM (Jon Alperin) (05/17/91)

To All you UNIX C Compiler and Admin Guru's:

We have an IBM RS/6000 installation, and need to support multiple users at different levels of the operating system. Does anyone have ideas/comments or war stories regarding the following scenario:

Take a machine, create a directory tree for each operating system version we wish to support, place the C compiler and linker/loader (along with all headers, libraries, and shared libraries) under that tree, and then invoke the specific
release level C compiler we wish to build for. NOTE: the UNIX/AIX kernel would be at a completely different level.

Now: for all you AIX people...more details...

We know about LIBPATH and chroot, but we are a little afraid that a chroot will affect the AIX kernel since we are switching the shared libraries we use from the current OS to a previous one. 

Does anyone know what, if any dependencies exist between a compiler and the 
kernel under AIX V3? Short of setting aside a specific machine for each release we need to support, how can we let developers dynamically build code for specific levels? We have an extensive network, and it is difficult to maintain our onw machines at different levels.

Any ideas are welcome. I will post e-mail responses.

-- 
Jon Alperin
Bell Communications Research

---> Internet: jona@iscp.bellcore.com
---> Voicenet: (908) 699-8674
---> UUNET: uunet!bcr!jona

* All opinions and stupid questions are my own *
		   ^^^^^^^^^^^^^^^^^ Hopefully this is not one of those.

shaggy@shag.uucp (David J. Kleikamp) (05/17/91)

In article <1991May16.201020.7490@bellcore.bellcore.com> jona@iscp.Bellcore.COM (Jon Alperin) writes:
>We have an IBM RS/6000 installation, and need to support multiple users at
>different levels of the operating system.
>
>Does anyone know what, if any dependencies exist between a compiler and the 
>kernel under AIX V3? Short of setting aside a specific machine for each
>release we need to support, how can we let developers dynamically build
>code for specific levels? We have an extensive network, and it is difficult
>to maintain our onw machines at different levels.

There are really no dependencies between the compiler and the kernel.  The
dependencies exist between the compiler and libc.a, and between libc.a and
the kernel.  Generally, you will not have any problems running a version of
the compiler on the same or later version of libc.a or running with one
version of libc.a and the same or later version of the kernel.  You probably
will encounter errors if you run one version of libc.a with a back-level
kernel, and you may possibly have problems running one version of the compiler
with a back-level libc.a.

If you have the latest level of AIX V3 installed on the system, any level of
compiler should work.  As far as header files and libraries are concerned, by
using the -I compiler flag and the -Z ld flag, you shouldn't have to chroot
to use whatever version of these files you will need.  If you do want to
create a subtree for each version of the operating system and chroot to that
tree, I think it will work as long as the running kernel is the latest version.
Of course, I haven't tried this myself.

>-- 
>Jon Alperin
>Bell Communications Research

>* All opinions and stupid questions are my own *
>		   ^^^^^^^^^^^^^^^^^ Hopefully this is not one of those.
Not really.

---------------------------------------------------------------------------
David J. "Shaggy" Kleikamp	dave@kleikamp.austin.ibm.com
The content of this posting is independent of official IBM position.
External: uunet!cs.utexas.edu!ibmaus!auschs!kleikamp.austin.ibm.com!dave