Topic
3 replies Latest Post - ‏2012-05-22T19:58:07Z by Brad.Elkin
Brad.Elkin
Brad.Elkin
4 Posts
ACCEPTED ANSWER

Pinned topic compiling 471.omnetpp and 483.xalancbmk : xlC+native gcc vs xlC+at5.0.4 gcc

‏2012-05-22T15:28:18Z |
I am working on getting these two SPECcpu2006 applications built with the XL and AT5 compiler tool. I used the kit12 for my starting point. I installed AT 5.0.4 (internal release candidate)and used at-create-ibmcmp-cfg.sh to create config files for vac and xlf (I only use the vac config file). See attachment.
Building with the native gcc (4.4.6) and with xlC + native gcc was successful; both also had successful passes through fdprpro and succeeded in completing the benchmark runs.
However, when I tried to use xlC with AT5, I got the following error:

/opt/ibmcmp/vacpp/11.1/bin/xlC -F /opt/at5.0/scripts/vac-11_1-AT5_0.dfp.cfg -c -o EtherAppCli.o -DSPEC_CPU -DNDEBUG -I. -Iomnet_include -Ilibs/envir -O4 -qarch=pwr7 -qtune=pwr7 -qipa=threads -qrtti EtherAppCli.cc
/opt/ibmcmp/vacpp/11.1/bin/.orig/xlC: 1501-274 (W) An incompatible level of gcc has been specified.
"/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 243.31: 1540-0825 (W) The character "#" is not allowed.
"/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 248.1: 1540-0825 (W) The character "#" is not allowed.
"/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 250.1: 1540-0825 (W) The character "#" is not allowed.
"omnet_include/cpar.h", line 273.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 274.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 275.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 276.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 277.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 279.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 280.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 281.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 282.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 283.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"omnet_include/cpar.h", line 287.15: 1540-1608 (W) An anonymous union should only define non-static data members.
"/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 243.32: 1540-0040 (S) The text "ifndef" is unexpected. "_gthrw" may be undeclared or ambiguous.
"/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 75.10: 1540-2407 (I) The local macro "_gthrw" is not visible in the current source.
"/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/ext/atomicity.h", line 51.14: 1540-0130 (S) "__volatile" is not declared.
"/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/ext/atomicity.h", line 63.14: 1540-0130 (S) "__volatile" is not declared.
"/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/ext/atomicity.h", line 73.7: 1540-0130 (S) "__volatile" is not declared.
make: *** http://EtherAppCli.o Error 1

This looks like a configuration error - in the sense that the built-in functions being complained about are understood by gcc 4.6.4 (the AT5 version), but not by gcc 4.4.6 (the native version).

Did I misconfigure AT5?
Updated on 2012-05-22T19:58:07Z at 2012-05-22T19:58:07Z by Brad.Elkin
  • Brad.Elkin
    Brad.Elkin
    4 Posts
    ACCEPTED ANSWER

    Re: compiling 471.omnetpp and 483.xalancbmk : xlC+native gcc vs xlC+at5.0.4 gcc

    ‏2012-05-22T15:31:58Z  in response to Brad.Elkin
    I should also note I'm using a POWER7 system running RHEL 6.2
    • bergner
      bergner
      3 Posts
      ACCEPTED ANSWER

      Re: compiling 471.omnetpp and 483.xalancbmk : xlC+native gcc vs xlC+at5.0.4 gcc

      ‏2012-05-22T16:51:58Z  in response to Brad.Elkin
      I have a POWER7 system with RHEL6.2 installed on it as well as AT5.0-4. I'll try installing XL on it to see whether I can recreate your issue.

      Question, can you paste a simple test case that shows the error I can test with? I'm assuming a simple hello.cpp doesn't show the problem?
      • Brad.Elkin
        Brad.Elkin
        4 Posts
        ACCEPTED ANSWER

        Re: compiling 471.omnetpp and 483.xalancbmk : xlC+native gcc vs xlC+at5.0.4 gcc

        ‏2012-05-22T19:58:07Z  in response to bergner
        Well, it would probably have been quicker to just include a tarball of the SPEC code, but it turns out the testcase for this is really simple: (included another copy of the cfg file, here)

        #-------------------Begin script----------------------------------------------
        #!/bin/bash

        cat > tst.cc <<EOF
        #include <iostream>
        EOF

        /opt/ibmcmp/vacpp/11.1/bin/xlC -F /opt/at5.0/scripts/vac-11_1-AT5_0.dfp.cfg -c -o tst.o -DSPEC_CPU -I. -O -qarch=pwr7 -qtune=pwr7 tst.cc

        #------------------End script-------------------------------------------------

        I get almost the same output:
        /opt/ibmcmp/vacpp/11.1/bin/.orig/xlC: 1501-274 (W) An incompatible level of gcc has been specified.
        "/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 243.31: 1540-0825 (W) The character "#" is not allowed.
        "/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 248.1: 1540-0825 (W) The character "#" is not allowed.
        "/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 250.1: 1540-0825 (W) The character "#" is not allowed.
        "/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 243.32: 1540-0040 (S) The text "ifndef" is unexpected. "_gthrw" may be undeclared or ambiguous.
        "/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/powerpc64-linux/32/bits/gthr-default.h", line 75.10: 1540-2407 (I) The local macro "_gthrw" is not visible in the current source.
        "/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/ext/atomicity.h", line 51.14: 1540-0130 (S) "__volatile" is not declared.
        "/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/ext/atomicity.h", line 63.14: 1540-0130 (S) "__volatile" is not declared.
        "/opt/at5.0/lib/gcc/powerpc64-linux/4.6.4/../../../../include/c++/4.6.4/ext/atomicity.h", line 73.7: 1540-0130 (S) "__volatile" is not declared.