Could not determine location of 32-bit or 64-bit GCC (RHEL4U2, Y-HPC, YDL)

Scenario
You are running either the new_install or the xlf_configure utility to configure the compiler on a computer running RHEL4U2, Y-HPC, YDL or when you get at least one of the following error messages:
ERROR: Could not determine location of 32-bit GCC. Suggestion: Ensure 32-bit "glibc-devel", 32-bit
"libstdc++-devel" are installed.  These packages can be obtained from your operating system install media.
ERROR: Could not determine location of 64-bit GCC.  Suggestion: Ensure 64-bit "glibc-devel", 64-bit 
"libstdc++-devel" are installed.  These packages can be obtained from your operating system install media.
ERROR: Please ensure all relevant 32 and 64-bit GCC packages are installed before running "new_install"
again. If they are installed but cannot be detected by "new_install", please run "xlf_configure" manually.
Explanation
Either or both of the following packages are not installed in the appropriate directory:
  • glibc-devel
  • libstdc++-devel
Note: On RHEL4U2, Y-HPC, or YDL you cannot tell whether the 32-bit or the 64-bit version of GCC is installed by querying the packages because both the 32-bit and 64-bit packages have exactly the same name.
Action
Verify that both of the 32-bit and 64-bit packages of glibc-devel and libstdc++-devel are installed on the system by compiling test cases in both 32-bit and 64-bit modes. If the test programs compile successfully without any error message, it indicates that you have the package installed. If you get an error message, it means that you need to install the package.
Example
This example uses instances of the classic “Hello World” test case.
  1. To test for 32-bit mode version of GCC, run the following commands:
       gcc helloWorld.c 
       g++ helloWorld.cpp
  2. To test for 64-bit mode version of GCC:
       gcc -m64 helloWorld.c 
       g++ -m64 helloWorld.cpp
  3. If the programs cannot be compiled successfully, it means that you need to install the necessary packages and configure the compiler again:
    1. If you get an error message from 32-bit mode testing, install the required packages, using the following commands:
         rpm -ivh glibc-devel-V.R.M-F.ppc.rpm
         rpm -ivh libstdc++-devel-V.R.M-F.ppc.rpm
      where V.R.M-F is the Version.Release.Modification-Fix level of the package.
      Note: The 32-bit glibc-devel and libstdc++-devel packages are available from the installation media provided with the operating system. The package file name indicates whether the package is for 32-bit mode or 64-bit mode. The 32-bit mode package file names are *.ppc.rpm.
    2. If you get an error message from 64-bit mode testing, install the required packages, using the following commands:
         rpm -ivh glibc-devel-V.R.M-F.ppc64.rpm
         rpm -ivh libstdc++-devel-V.R.M-F.ppc64.rpm
      where V.R.M-F is the Version.Release.Modification-Fix level of the package.
      Note: The 64-bit glibc-devel and libstdc++-devel packages are available from the installation media provided with the operating system. The package file name indicates whether the package is for 32-bit mode or 64-bit mode. The 64-bit mode package file names are *.ppc64.rpm.
    3. Run new_install or xlf_configure again.