Revision history   OpenPOWER Library

 2.1. Test Harness to Execute the GCC Compatibility Test Suite

The Test Harness for verifying GCC Compatibility is the DejaGNU-based test suite provided with the GNU Compiler Collection source code. To prepare the test harness, install the source code of the reference compiler (GCC version 10), configure and build the reference compiler.

To install the source code of GCC version 10:

      wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-10.1.0/gcc-10.1.0.tar.xz
      tar xvf gcc-10.1.0.tar.xz
    

To configure and build the reference compiler:

      mkdir gcc-10.1.0-build 
      cd gcc-10.1.0-build
      ../gcc-10.1.0/configure --prefix=/usr --enable-languages=c,c++
                              --disable-bootstrap
      make
    
[Note]Note

You may need to adapt the details of the configure line to your host system. For example, when building GCC on an Ubuntu distribution, you need to add the configure options --enable-multiarch --disable-multilib.