IBM Support

PI93282: COMPILATION PROBLEMS WITH SIMULINK AND CYGWIN

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • CG uses   Share\etc\S-FunctionTemplates\C
    templates\build_sfunction_tmpl_anim.m.
    The $(LIB_PREFIX) was not replaced with "cygwin" substring.
    
    The reason - CPP_CG.Cygwin metaclass doesn't contain LibPrefix
    property, which is used to generate build template for Simulink
    block.
    
    
    Workaround: add such property into site.prp or siteC++.prp:
    
    Subject CPP_CG
    Metaclass Cygwin
            Property LibPrefix String "cygwin"
        end
    end
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Rhapsody                                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Compilation problems with Simulink and Cygwin                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • 1.Property LibPrefix was added to Cygwin environment.
    2. $(CPU) keyword was added to build templates (see
    Share\etc\S-FunctionTemplates build...  files). It solved the
    problem with 64 bit Cygwin library names.
    3. -DUSE_SYS_TYPES_FD_SET  and -D__USE_W32_SOCKETS macro flags
    were added to all templates (__USE_W32_SOCKETS is added for
    animation related templates).
    4. If mex linker doesn't find libws2_32.a socket support
    library, user should replace "-lws2_32" value with its full
    path. Rhapsody cannot know, where this library is located in
    user's Cygwin/MinGW installation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI93282

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    830

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-02-02

  • Closed date

    2018-06-17

  • Last modified date

    2018-06-17

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

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

Fix information

  • Fixed component name

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R830 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"830","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
17 June 2018