Enabling the error messages

If your system uses the en_US locale and encoding, the compiler message catalogs are automatically configured to display correctly, regardless of whether you used the basic or advanced method of installation and configuration. However, if your system uses any other supported locale (for a list of supported language locales, see National language support), you must set the NLSPATH environment variable, so that the compiler and runtime functions can find the appropriate message catalogs after the installation. However, if your system uses the en_US.utf8 encoding, you must set the NLSPATH environment variable, so that the compiler and runtime functions can find the appropriate message catalogs after the installation.

The command to set the NLSPATH environment variable depends on the shell that you are using.
  • If you are using the Bourne, Korn, or BASH shell, use the following command:
    export NLSPATH=$NLSPATH:
    		xlsmprt_path/msg/%L/%N:
    		xlrte_path/msg/%L/%N:
    		xlcmp_path/vacpp/bg/12.1/msg/%L/%N
  • If you are using the C shell, use the following command:
    setenv NLSPATH $NLSPATH:
    		xlsmprt_path/msg/%L/%N:
    		xlrte_path/msg/%L/%N:
    		xlcmp_path/vacpp/bg/12.1/msg/%L/%N
where:
  • xlsmprt_path is the installation location of the SMP packages. By default, this is /opt/ibmcmp/.
  • xlrte_path is the installation location of the IBM® XL C/C++ for Blue Gene®/Q, V12.1 runtime packages. By default, this is /opt/ibmcmp/.
  • xlcmp_path is the installation location of the IBM XL C/C++ for Blue Gene/Q, V12.1 compiler packages. By default, this is /opt/ibmcmp/.

Accessing the compiler message catalogs from an I/O node

Before an I/O node can access the compiler message catalogs, it needs to know their location on the Front-end node. This section describes how to set up the I/O node so it can access these messages in a default or non-default location on a Front-end node.

Default message location

The default location for the compiler message catalogs is /opt/ibmcmp/. To indicate this location to an I/O node, export /opt/ibmcmp/ from the Front-end node and mount this path to the I/O node.

In the following example, the compiler is installed in the default directory /opt/ibmcmp/vacpp/bg/12.1/ on the Front-end node called frontend1. There is one I/O node called machine1.
  • At frontend1, add the following line to the /etc/exports file:
    /opt/ibmcmp/ machine1
  • Run the following command to update the current NFS daemon of frontend1:
    /usr/sbin/exportifs -ra
  • Make sure the empty directory /opt/ibmcmp/ exists in machine1. Then, run the following command:
    mount frontend1:/opt/ibmcmp/ /opt/ibmcmp/