Topic
16 replies Latest Post - ‏2012-11-29T19:38:52Z by SystemAdmin
SystemAdmin
SystemAdmin
1245 Posts
ACCEPTED ANSWER

Pinned topic Compilation Error

‏2012-10-05T19:46:42Z |
Here is the error I am getting:

bash-3.2# pwd
/root/splsamples/RegularExpression
bash-3.2# make distributed
/opt/ibm/InfoSphereStreams/bin/sc -a -M sample::DateTimeFormatter
Creating types...
Can't locate loadable object for module XML::Parser::Expat in @INC (@INC contains: /opt/ibm/InfoSphereStreams/system/impl/bin/../../../bin /opt/ibm/InfoSphereStreams/system/impl/bin/../.. /opt/ibm/InfoSphereStreams/system/impl/bin /usr/lib/perl5/5.8.9/x86_64-linux-thread-multi /usr/lib/perl5/5.8.9 /usr/lib/perl5/site_perl/5.8.9/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.9 /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.9/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.9 /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/5.8.9/x86_64-linux-thread-multi/XML/Parser.pm line 14
CDISP0510E ERROR: Code generation has failed for code generation template '/opt/ibm/InfoSphereStreams/system/impl/template/tuple_h.cgt'.
The XML Parser is installed:

bash-3.2# yum info perl-XML-Parser
Loaded plugins: security
Installed Packages
Name : perl-XML-Parser
Arch : x86_64
Version : 2.36
Release : 1.el5.rfx
Size : 761 k
Repo : installed
Summary : A low level Perl module for parsing XML either via trees or
: streaming
URL : http://search.cpan.org/dist/XML-Parser/
License : Artistic/GPL
Description: This module provides ways to parse XML documents. It is built on
: top of XML::Parser::Expat, which is a lower level interface to
: James Clark's expat library. Each call to one of the parsing
: methods creates a new instance of XML::Parser::Expat which is then
: used to parse the document. Expat options may be provided when the
: XML::Parser object is created. These options are then passed on to
: the Expat object on each parse call. They can also be given as
: extra arguments to the parse methods, in which case they override
: options given at XML::Parser creation time.

Also, the dependency checker reports all is OK.

Thanks for your help!

Frank Blau
  • hnasgaard
    hnasgaard
    200 Posts
    ACCEPTED ANSWER

    Re: Compilation Error

    ‏2012-10-05T20:30:52Z  in response to SystemAdmin
    What version of linux are you running on? What hardware? 32-bit/64-bit? What version is the Streams product?

    On one of our systems I see Expat.pm in /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser. In your install it seems to be looking down the 32 bit path (ie: /usr/lib/perl5/...). Can Expat.pm be found on the system anywhere? According to RPM that file is owned by the package perl-XML-Parser so it should be there if it installed okay.
    • SystemAdmin
      SystemAdmin
      1245 Posts
      ACCEPTED ANSWER

      Re: Compilation Error

      ‏2012-10-05T21:17:00Z  in response to hnasgaard
      This is RHEL Server 5.5 on a VM on Win 7 x64

      Streams version 2.0.0.4

      I also have Expat.pm in /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser
      • laurieaw
        laurieaw
        72 Posts
        ACCEPTED ANSWER

        Re: Compilation Error

        ‏2012-10-05T21:22:01Z  in response to SystemAdmin
        Did you install perl-XML-Parser with yum? We have seen issue where this RPM was not installed via YUM and some setup for it did not get done.
        • SystemAdmin
          SystemAdmin
          1245 Posts
          ACCEPTED ANSWER

          Re: Compilation Error

          ‏2012-10-05T22:00:09Z  in response to laurieaw
          Yes I did use YUM to install the XML Parser.
          • SystemAdmin
            SystemAdmin
            1245 Posts
            ACCEPTED ANSWER

            Re: Compilation Error

            ‏2012-10-06T04:32:37Z  in response to SystemAdmin
            FWIW: This file does not exist in the install:

            /opt/ibm/InfoSphereStreams/system/impl/template/tuple_h.cgt
            • hnasgaard
              hnasgaard
              200 Posts
              ACCEPTED ANSWER

              Re: Compilation Error

              ‏2012-10-06T10:45:53Z  in response to SystemAdmin
              That file should not exist in your install, but /opt/ibm/InfoSphereStreams/system/impl/template/tuple_h.pm should. Check the clock in your VM. Compare the timestamps on your installed files with those of the sample you are trying to compile.
              • SystemAdmin
                SystemAdmin
                1245 Posts
                ACCEPTED ANSWER

                Re: Compilation Error

                ‏2012-10-06T17:40:20Z  in response to hnasgaard
                OK, tuple_h.pm is there.

                What files should I be checking timestamps for, and what SHOULD they be?

                This error is coming up when trying to compile both a new spl file and any of the samples.
  • mendell
    mendell
    219 Posts
    ACCEPTED ANSWER

    Re: Compilation Error

    ‏2012-10-07T14:01:13Z  in response to SystemAdmin
    Can you post the results of:
    ls -l /opt/ibm/InfoSphereStreams/system/impl/template/tuple_h.*
    and
    date
    This may help figure out the problem

    Mark
    • SystemAdmin
      SystemAdmin
      1245 Posts
      ACCEPTED ANSWER

      Re: Compilation Error

      ‏2012-10-07T17:39:09Z  in response to mendell
      bash-3.2# ls -l /opt/ibm/InfoSphereStreams/system/impl/template/tuple_h.*
      -rw-r--r-- 1 root root 770 Mar 20 2012 /opt/ibm/InfoSphereStreams/system/impl/template/tuple_h.cgt~
      -rw-r--r-- 1 streamsuser streamsuser 19059 Mar 20 2012 /opt/ibm/InfoSphereStreams/system/impl/template/tuple_h.pm

      bash-3.2# date
      Sun Oct 7 13:37:05 EDT 2012
  • mendell
    mendell
    219 Posts
    ACCEPTED ANSWER

    Re: Compilation Error

    ‏2012-10-08T00:37:52Z  in response to SystemAdmin
    tuple_h.cgt~ isn't right. It should be tuple_h.cgt. Something has messed up that file, which is essential to compiling. Can you please try re-installing streams, or at least installing it in another location, and looking at the files again?
    • SystemAdmin
      SystemAdmin
      1245 Posts
      ACCEPTED ANSWER

      Re: Compilation Error

      ‏2012-10-08T00:51:23Z  in response to mendell
      This is my second installation of Streams (the trial version) with identical results in that location.

      If it is still there, something is wrong with the install I think.
      • hnasgaard
        hnasgaard
        200 Posts
        ACCEPTED ANSWER

        Re: Compilation Error

        ‏2012-10-09T12:55:53Z  in response to SystemAdmin
        If I do an ls -l on the template dir I list the following files:
        4096 Mar 20 2012 CppOp/
        1799 Mar 20 2012 enum_cpp.pm
        3589 Mar 20 2012 enum_h.pm
        7580 Mar 20 2012 facade_tuple_cpp.pm
        22785 Mar 20 2012 facade_tuple_h.pm
        4096 Mar 20 2012 GenericOp/
        4096 Mar 20 2012 JavaOp/
        778 Mar 20 2012 pe_cpp.pm
        1112 Mar 20 2012 pe_h.pm
        1027 Mar 20 2012 standalone_cpp.pm
        301 Mar 20 2012 standalone_h.pm
        6582 Mar 20 2012 tuple_cpp.pm
        19059 Mar 20 2012 tuple_h.pm

        Note that there are no cgt files. It is interesting that root is the owner of the funny cgt file.

        This is an install of the 2.0.0.4 trial version. Where did you get this trial version from?
        • SystemAdmin
          SystemAdmin
          1245 Posts
          ACCEPTED ANSWER

          Re: Compilation Error

          ‏2012-10-09T17:14:59Z  in response to hnasgaard
          I got it from the ibm download site! :)

          I created a brand new VMWARE Image with RHEL 5 and installed fresh... seems to be working better now... though I would still like to know why this old one is so hosed up.
          • hnasgaard
            hnasgaard
            200 Posts
            ACCEPTED ANSWER

            Re: Compilation Error

            ‏2012-10-09T17:49:48Z  in response to SystemAdmin
            I'm glad to hear your new install is working. The problem with the old install is a bit of a mystery. The only thing I can think of is that there was a timestamp problem with the tuple_h.pm file relative to files it was trying to compile. At that point the compiler would try and rebuild the pm file from the cgt, which in this case is not part of the install since that should never happen :)
            We don't have any files that end with a tilde so I have no idea how that file came to be.
            • kjerick
              kjerick
              227 Posts
              ACCEPTED ANSWER

              Re: Compilation Error

              ‏2012-10-09T18:35:45Z  in response to hnasgaard
              Although /opt/ibm/InfoSphereStreams/system/impl/template/tuple_h.cgt doesn't exist in the install, is a tuple_h.cgt ever generated at some point? If so, and if for some reason someone poking around edits that file and saves it, the backup file tuple_h.cgt~ would be created. Then, since the uninstall process only removes files that were installed in the original install, this file will be left hanging around and be part of subsequent installs.
              • SystemAdmin
                SystemAdmin
                1245 Posts
                ACCEPTED ANSWER

                Re: Compilation Error

                ‏2012-11-29T19:38:52Z  in response to kjerick
                I got the same error in Streams 3.0 :
                CDISP0510E Code generation has failed for code generation template '/home/streamsadmin/eclipse/StreamsStudio/workspace/HealthcareToolkit/com.ibm.eme/Square/Square_cpp.cgt'.

                I uninstalled the perl-XML-Simple, comparing to other machine here I had perl-XML-Parser version 2.36 whereas I should have version 2.18. The dependency checker evaluated the system and did not find errors or warnings.