PM78307: Clearmake, doing GNU make emulation, interprets # in quoted strings in define/endef macros as the beginning of a comment.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as user error.

Error description

  • When migrating a makefile from the Free Software Foundation GNU
    make tool to IBM Rational ClearCase clearmake, macro definitions
    containing '#' characters are interpreted incorrectly.
    
    clearmake interprets the # characters as the beginning of a
    makefile comment, thus potentially causing make errors, or other
    incorrect output.
    
    For example, using this makefile:
    define msg
    'Test #string'
    endef
    
    
    .PHONY: foo
    
    foo:
     echo '$(msg)'
    
    will cause the following incorrect output:
    clearmake -C gnu -f sample1.mk
            echo ''Test '
    ''Test '
    
    With gnu make, the output will be:
    make -f Sample1.mk
    echo ''Test #string''
    'Test #string'
    

Local fix

Problem summary

Problem conclusion

Temporary fix

Comments

  • CCASE_IGNORE_ESCAPED_HASH_IN_MULTILINE_MACRO needs to be set
    for the desired behaviour.
    

APAR Information

  • APAR number

    PM78307

  • Reported component name

    CLEARCASE UNIX

  • Reported component ID

    5724G2901

  • Reported release

    712

  • Status

    CLOSED USE

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-12-03

  • Closed date

    2013-03-25

  • Last modified date

    2013-03-25

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational ClearCase

Software version:

7.1.2

Reference #:

PM78307

Modified date:

2013-03-25

Translate my page

Machine Translation

Content navigation