[cmake-developers] [CMake 0013321]: ABI.h doesn't know about older HP compilers

Mantis Bug Tracker mantis at public.kitware.com
Wed Jun 20 01:55:43 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13321 
====================================================================== 
Reported By:                Daniel R. Gomez
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13321
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-20 01:55 EDT
Last Modified:              2012-06-20 01:55 EDT
====================================================================== 
Summary:                    ABI.h doesn't know about older HP compilers
Description: 
Bootstrapping CMake 2.8.8 on HP-UX 11.00 with the vendor-provided C compiler
fails with

[  0%] Building C object
Utilities/KWIML/test/CMakeFiles/cmIML_test.dir/test_ABI_C.c.o
        cd /tmp/cmake-2.8.8/_build/Utilities/KWIML/test && /opt/ansic/bin/cc 
-DKWIML_NAMESPACE=cmIML -DKWIML_LANGUAGE_C -DKWIML_LANGUAGE_CXX -Aa -Ae -Ae
+DA2.0 +ESlit +w1 -z -Wp,-H262144 +O2 
-I/tmp/cmake-2.8.8/_build/Utilities/KWIML/test
-I/tmp/cmake-2.8.8/_build/Utilities    -o
CMakeFiles/cmIML_test.dir/test_ABI_C.c.o   -c
/tmp/cmake-2.8.8/Utilities/KWIML/test/test_ABI_C.c
cpp: "/tmp/cmake-2.8.8/_build/Utilities/cmIML/ABI.h", line 163: error 4062:
"Signedness of 'char' unknown."
cpp: "/tmp/cmake-2.8.8/_build/Utilities/cmIML/ABI.h", line 257: error 4062:
"Existence of 'long long' unknown."
*** Error exit code 1


This compiler does not define __HP_cc nor __HP_aCC. I think it may be necessary
to do the equivalent of

    #if defined(__hpux) && \
       !defined(__HP_cc) && \
       !defined(__HP_aCC) && \
       !defined(__GNUC__)

in order to catch this case. (__hpux is specifically mentioned in the cpp(1) man
page.)

Version information on this compiler, for reference:

    $ cc -V -c foo.c
    cpp.ansi: HP92453-01 A.11.01.20 HP C Preprocessor (ANSI)
    ccom: HP92453-01 A.11.01.20 HP C Compiler
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-20 01:55 Daniel R. GomezNew Issue                                    
======================================================================




More information about the cmake-developers mailing list