IBM Support

PM26737: ?SYNTAX ERROR NEAR UNEXPECTED TOKEN `('? OCCURS WHEN BUILDING A C AUDIT PROJECT THROUGH COMMAND LINE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment:
    --------------------
    Logiscope 6.6
    Operating System: Linux
    
    Description:
    ------------------
    The below errors occur when building a Logiscope C audit project
    through command line.
    
    sh: -c: line 0: syntax error near unexpected token `('
    sh: -c: line 0: `full_prepro -C -dial gnu_rhel_4 -trigraphs
    -ddef '/opt/Logiscope/util/.log_cc_linux_gnu_rhel_4.def'
    -I/home/hyei/Downloads/linux-2.6.34/arch/x86/include
    -I/home/hyei/Downloads/linux-2.6.34/include  -D__KERNEL__
    -DCONFIG_AS_CFI=1  -DCONFIG_AS_CFI_SIGNAL_FRAME=1
    -DKBUILD_STR(s)=#s  -DKBUILD_BASENAME=KBUILD_STR(asm_offsets)
    -DKBUILD_MODNAME=KBUILD_STR(asm_offsets)
    '/home/hyei/Downloads/linux-2.6.34/arch/x86/kernel/asm-offsets.c
    '  /tmp/file82UshA '
    Warning(s) or error(s) found at preprocessing time: full_prepro
    -C -dial gnu_rhel_4 -trigraphs -ddef
    '/opt/Logiscope/util/.log_cc_linux_gnu_rhel_4.def'
    -I/home/hyei/Downloads/linux-2.6.34/arch/x86/include
    -I/home/hyei/Downloads/linux-2.6.34/include  -D__KERNEL__
    -DCONFIG_AS_CFI=1  -DCONFIG_AS_CFI_SIGNAL_FRAME=1
    -DKBUILD_STR(s)=#s  -DKBUILD_BASENAME=KBUILD_STR(asm_offsets)
    -DKBUILD_MODNAME=KBUILD_STR(asm_offsets)
    '/home/hyei/Downloads/linux-2.6.34/arch/x86/kernel/asm-offsets.c
    '  /tmp/file82UshA
    /tmp/file82UshA: Error:  No such file or directory
    
    Steps to reproduce:
    -------------------------------
    1. Download the Linux Kernel at http://kernel.org/
    
    http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2
    
    
    2. Make sure your host compilers are setup properly (gcc etc)
    
    3. Extract it and modify the top level Makefile (inside
    linux-2.6.34/Makefile) to call the Logiscope create tool.
        CREATE=/opt/Logiscope/bin/create /home/hyei/tmp/pmr53738.ttp
    -audit -lang c
        CC= $(CREATE) -- gcc
        #CC = $(CROSS_COMPILE)gcc
    
    
    4. Run 'make defconfig' at the top level of the kernel source
    tree to create a default config file.
    
    5. Run 'make block/bsg.o' to create the preprocessed bsg.o
    object file. This should create the Logiscope project called
    'pmr53738.ttp'. (Please note that we were not able to create the
    .tto file at support labs hence used the .ttp file sent by the
    customer, modified and used it for the further steps).
    
    6. You should now have a Logiscope project file (ttp)
    referencing about 4 source files. There will be a preprocessing
    section with the arguments that cause the parenthesis issue:
      For example: Excerpt of pmr53738.ttp:
    
    {'16', '@LOG_BUILDER:PARSER_PREPRO', '15', NULL,
    {'-I/home/hyei/Downloads/linux-2.6.34/arch/x86/include
    -I/home/hyei/Downloads/linux-2.6.34/include -D__KERNEL__
    -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
    -DKBUILD_STR(s)=#s
    -DKBUILD_BASENAME=KBUILD_STR(bounds)
    -DKBUILD_MODNAME=KBUILD_STR(bounds)'}},
    {'18', '@LOG_BUILDER:PARSER_PREPRO', '17', NULL,
    {'-I/home/hyei/Downloads/linux-2.6.34/arch/x86/include
    -I/home/hyei/Downloads/linux-2.6.34/include -D__KERNEL__
    -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
    -DKBUILD_STR(s)=#s
    -DKBUILD_BASENAME=KBUILD_STR(asm_offsets)
    -DKBUILD_MODNAME=KBUILD_STR(asm_offsets)'}},
    
    7. Load the 'pmr53738.ttp' project into the Logiscope GUI.
    
    8. Select 'Build' from 'Project' Menu. The build will finish
    with 4 warnings and 4 failures. (Attached is the build_log.htm.
    from customer)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Environment:
    --------------------
    Logiscope 6.6
    Operating System: Linux
    
    Description:
    ------------------
    The below errors occur when building a Logiscope C audit
    project through command line.
    
    sh: -c: line 0: syntax error near unexpected token `('
    sh: -c: line 0: `full_prepro -C -dial gnu_rhel_4 -trigraphs
    -ddef "/opt/Logiscope/util/.log_cc_linux_gnu_rhel_4.def"
    -I/home/hyei/Downloads/linux-2.6.34/arch/x86/include
    -I/home/hyei/Downloads/linux-2.6.34/include  -D__KERNEL__
    -DCONFIG_AS_CFI=1  -DCONFIG_AS_CFI_SIGNAL_FRAME=1
    -DKBUILD_STR(s)=#s
    -DKBUILD_BASENAME=KBUILD_STR(asm_offsets)
    -DKBUILD_MODNAME=KBUILD_STR(asm_offsets)
    "/home/hyei/Downloads/linux-2.6.34/arch/x86/kernel/asm-offse
    ts.c"  /tmp/file82UshA '
    Warning(s) or error(s) found at preprocessing time:
    full_prepro -C -dial gnu_rhel_4 -trigraphs -ddef
    "/opt/Logiscope/util/.log_cc_linux_gnu_rhel_4.def"
    -I/home/hyei/Downloads/linux-2.6.34/arch/x86/include
    -I/home/hyei/Downloads/linux-2.6.34/include  -D__KERNEL__
    -DCONFIG_AS_CFI=1  -DCONFIG_AS_CFI_SIGNAL_FRAME=1
    -DKBUILD_STR(s)=#s
    -DKBUILD_BASENAME=KBUILD_STR(asm_offsets)
    -DKBUILD_MODNAME=KBUILD_STR(asm_offsets)
    "/home/hyei/Downloads/linux-2.6.34/arch/x86/kernel/asm-offse
    ts.c"  /tmp/file82UshA
    /tmp/file82UshA: Error:  No such file or directory
    

Problem conclusion

  • Fixed in fixpack 6.6.4
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM26737

  • Reported component name

    TLOGIC LOGISCOP

  • Reported component ID

    5724V81LS

  • Reported release

    660

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-11-15

  • Closed date

    2012-07-27

  • Last modified date

    2012-07-27

  • 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 LOGISCOP

  • Fixed component ID

    5724V81LS

Applicable component levels

  • R660 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYQHS","label":"Rational Logiscope"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.6","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 July 2012