c/c++ · linux · power

power: xlC Community Edition

The IBM® XL C/C++ for Linux is a highly advanced optimizing compiler for Linux. The latest release (v13.1.4)  introduces its first community edition (xlC CE).

It is a free-of-charge solution which embodies most of the core features  of the fully warranted XL C/C++ for Linux. For example, the community edition does not support optimization at level 5 for generation of the highest level of optimization nor OpenMP constructs for parallel programming.

The xlC CE runs on the following little endian (ppc64le) Linux distributions:

  • Ubuntu 14.04, 14.10 and 16.04;
  • RHEL 7.1 and 7.2
  • CentOS 7;
  • SLES 12 and 12 SP1.

Install the xlC CE is easy. Is has public repositories for both yum and apt packages managers. Proceed with the following steps to get xlC CE installed:


Configuring the Repository

wget http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/rhel7/repodata/repomd.xml.key

sudo rpm --import repomd.xml.key

wget http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/rhel7/ibm-xl-compiler-eval.repo

sudo cp ibm-xl-compiler-eval.repo /etc/yum.repos.d/
Installing and Configuring

sudo yum install xlc.13.1.4 xlc-license-community.13.1.4 --exclude xlc-license-eval.13.1.4

sudo /opt/ibm/xlC/13.1.4/bin/xlc_configure


Configuring the Repository

sudo zypper addrepo -c http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/sles12/ ibm-xl-compiler-eval

sudo zypper refresh

Installing and Configuring

sudo zypper install xlc.13.1.4 xlc-license-community.13.1.4

sudo /opt/ibm/xlC/13.1.4/bin/xlc_configure


Configuring the Repository

wget http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/ubuntu/public.gpg -O- | sudo apt-key add

echo "deb http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/ubuntu/ trusty main" | sudo tee /etc/apt/sources.list.d/ibm-xl-compiler-eval.list

sudo apt-get update
Installing and Configuring

sudo apt-get install xlc.13.1.4 xlc-license-community.13.1.4

sudo /opt/ibm/xlC/13.1.4/bin/xlc_configure

If you have Docker installed on you Power System, you can download a pre-configured container and quickly start using it.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s