Checking xlc compiler version


 
Thread Tools Search this Thread
Operating Systems AIX Checking xlc compiler version
# 1  
Old 05-10-2013
Checking xlc compiler version

Hi,

Below is output of lslpp command.
Code:
bash-3.00# lslpp -L | grep xlC
  xlC.aix50.rte             11.1.0.1    C     F    XL C/C++ Runtime for AIX 5.3
  xlC.cpp                    9.0.0.0    C     F    C for AIX Preprocessor
  xlC.msg.en_US.cpp          9.0.0.0    C     F    C for AIX Preprocessor
  xlC.msg.en_US.rte         11.1.0.1    C     F    XL C/C++ Runtime
  xlC.rte                   11.1.0.1    C     F    XL C/C++ Runtime

how to check xlc compiler version using command line? example gcc --version

though it is showing in installed state, how to verify it using command line?

Last edited by Scott; 05-10-2013 at 06:00 AM.. Reason: Code tags
# 2  
Old 05-12-2013
Quote:
Originally Posted by manoj.solaris
how to check xlc compiler version using command line? example gcc --version
Honestly, i don't quite get it. lslpp is the common method to get version information in AIX an it works already from the command line.

Quote:
Originally Posted by manoj.solaris
though it is showing in installed state, how to verify it using command line?
I might be slow, but i don't get this either. Of course you can only obtain a version information if the compiler is installed (the packages shown in your example aren't the compiler at all, just the runtimes).

I hope this helps.

bakunin
# 3  
Old 05-13-2013
As Bakunin stated, your lslpp output does not include the IBM C compiler. Those are the levels of the rte (run-time-environment) aka libC et al. That would probably be vaccp.*

To specifically answer you question: once installed -

Code:
cc -qversion

Displays the version and release of the compiler being invoked.
cc can also be xlc, xlc_r, etc.

Quick/short man page
Code:
cc

In other words, just cc with no arguments.

=== update === from the compiler reference (PDF)
Syntax

Code:
cc -qversion

For more details, see Example 1.
or
Code:
cc -qversion=verbose

For more details, see Example 2.
Code:
Defaults
-qnoversion

Code:
Parameters
verbose
Additionally displays information about the version, release, and level of each
compiler component installed.
Usage
When you specify -qversion, the compiler displays the version information and
exits; compilation is stopped. If you want to save this information to the output
object file, you can do so with the -qsaveopt -c options.
-qversion specified without the verbose suboption shows compiler information in
the format:
product_nameVersion: VV.RR.MMMM.LLLL
where:
V Represents the version.
R Represents the release.
M Represents the modification.
L Represents the level.
For more details, see Example 1.
-qversion=verbose shows component information in the following format:
component_name Version: VV.RR(product_name) Level: component_level
where:
component_name
Specifies an installed component, such as the low-level optimizer.
component_level
Represents the level of the installed component.
For more details, see Example 2.
Predefined macros
None.

Examples
Code:
Example 1:
IBM XL C for AIX, V12.1
Version: 12.01.0000.0001

Code:
Example 2:
IBM XL C for AIX, V12.1
Version: 12.01.0000.0001
Driver Version: 12.01(C) Level: 060414
C Front End Version: 12.01(C) Level: 060419
High Level Optimizer Version: 12.01(C) and 14.01(Fortran) Level: 060411
Low Level Optimizer Version: 12.01(C) and 14.01(Fortran) Level: 060418


Last edited by MichaelFelt; 05-13-2013 at 03:48 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Xlc compiler on Redhat Linux

Hi , Currently i have my c and pro*c code got compiled in IBM POWER - AIX machine with xlc compiler version 9. We are planning to migrate all our applications from IBM POWER - AIX to Redhat Linux. Can i use the same current (IBM AIX) xlc compiler with the same compiling... (3 Replies)
Discussion started by: mugunthanvh
3 Replies

2. AIX

AIX xlc compiler vs gcc

Hello, We are migrating some applications from previously running on an AIX system to a Linux RedHat system. I was tasked with recompiling some of the code. Unfortunatly I am a big novice on this. So i have the commands used to compile the code with xlc compiler in the AIX environment and i am... (0 Replies)
Discussion started by: spooksman
0 Replies

3. Programming

Choose compiler version

Hi, I'm new, here, and I'm searching for a simple solution for a simple problem. I'm working on RedHat 4.4.6-4 through a CentOS Virtual Machine and due to some reasons I must compile my C++ codes with these two different g++ versions: 4.4.6 and 4.2.2. The fact is that I should be able to... (4 Replies)
Discussion started by: Marcuss
4 Replies

4. AIX

xlc compiler options versus gcc

Hi all, I would like to compile a program and get current errors and warnings report to me as « gcc -Wall ». Does someone can give me these options to get an equivalent ? Or the ommon option used to put them in a CFLAGS in a Makefile. Something like : xlc -O2 -Wall my_prog.c -o... (5 Replies)
Discussion started by: domiq44
5 Replies

5. UNIX for Advanced & Expert Users

XLC compiler: enterprise edition VS XLC for AIX

Who can explain in a few words the difference between XLC for AIX and XLC enterprise Edition for AIX (0 Replies)
Discussion started by: fvaltat1
0 Replies

6. AIX

install two different compiler version

Hi all. I have a simple question. There's a way to install under AIX system (5.3) two different compiler version, i.e. ibm xlf fortran 11 and 12? Seems that smitty doesn't allows user to change the default installation path; it only allows you to save the replaced files of the superseded... (1 Reply)
Discussion started by: poldo000
1 Replies

7. AIX

AIX Xlc compiler

Hi Team I have a native applicaiton built on AIX using the xLC v8 Which could be the possible impacts from a code change point of view if I'll compile with the xLC v10? Thanks Marco (0 Replies)
Discussion started by: antcos
0 Replies

8. HP-UX

how can I install aC++ Compiler bundle Evaluation version

according those steps 1. Copy your 26 digit hexadecimal license key in a plain text (ASCII) file. 2. Save the file as aCC.cwd in the following location: /opt/aCC/newconfig/aCC.cwd 3. export the variable ST_CODEWORD to point to the file where the license key is stored. ... (0 Replies)
Discussion started by: alert0919
0 Replies

9. UNIX for Dummies Questions & Answers

What version is the compiler?

Hi ! we have a intel fortran compiler on our computer. How do i find out what version it is ? Thank you, dsmv. (1 Reply)
Discussion started by: dsmv
1 Replies

10. UNIX for Dummies Questions & Answers

gcc compiler version?

How do you determine which version of the GNU gcc compiler is on your system? (1 Reply)
Discussion started by: Ben070371
1 Replies
Login or Register to Ask a Question