Programming Languages on Power

Power Programming Languages

IBM Power, including the AIX, IBM i, and Linux operating systems, support a wide range of programming languages, catering to both traditional enterprise applications and modern development needs.


#Power


#Servers
#Programminglanguages
 View Only
  • 1.  XlC flag qhalt problem

    Posted 05/24/17 01:36 PM

    Originally posted by: Nicole Trudeau


    For our reference and/or continued discussion, I am copying a question that was added to the C/C++ Cafe by unrue on May 18:

    Dear IBM developers,

    I'm using xlC 13.1.5 and Cmake 3.5. When I try to compile an MPI package using cmake, I get the follow error

    /opt/ibm/xlC/13.1.5/bin/.orig/xlc_r: warning: 1501-269 fpic is not supported on this Operating System platform.  Option fpic will be ignored.
    error: 1540-5203 Unrecognized value "e" specified with option "halt".
    1 error generated.
    

    I read it is a bug of this compiler version, that add qhalt flag with "e" option that it is not supported. I there a workaround to solve the problem? At the moment I can't change compiler version. Thanks in advance.


    #Ask-Question-Here--General-Compiler-Q-and-A
    #C/C++andFortran


  • 2.  Re: XlC flag qhalt problem

    Posted 05/24/17 01:38 PM

    Originally posted by: Nicole Trudeau


    On May 18, Catherine Morton replied:

    -qhalt=e is from an older compiler version, only  -qhalt=w is supported on 13.1.5

    When I try it I get a warning instead of an error

    
    xlC -qhalt=w -c b1.cpp 
    xlC -qhalt=e -c b1.cpp  
    warning: 1540-5203 Unrecognized value "e" specified with option "halt".
    1 warning generated.``
    

    I'm assuming the option is in the makefile for your project which might be setup for the older xlC releases that accept the option. Can you update it in the makefile?

    -qhalt=w just get's transformed to -Werror and sent to clang


    #C/C++andFortran
    #Ask-Question-Here--General-Compiler-Q-and-A


  • 3.  Re: XlC flag qhalt problem

    Posted 05/25/17 02:40 AM

    Originally posted by: unrue


    Hi Nicole,

     

    thanks for the info. Using tour suggest, I solved the problem.


    #C/C++andFortran
    #Ask-Question-Here--General-Compiler-Q-and-A


  • 4.  Re: XlC flag qhalt problem

    Posted 05/25/17 12:45 PM

    Originally posted by: Nicole Trudeau


    Thanks for confirming that it solved the issue! If it's not too much trouble, would you mind accepting Catherine's answer on StackOverflow as well so others can benefit please? https://stackoverflow.com/questions/44044023/xlc-flag-qhalt-issue


    #Ask-Question-Here--General-Compiler-Q-and-A
    #C/C++andFortran