Topic
  • 4 replies
  • Latest Post - ‏2012-12-01T22:32:02Z by RobertDickson
larus
larus
3 Posts

Pinned topic Job compile does not work: C++ compiler options for Windows Server?

‏2012-11-30T11:26:33Z |
I'm trying to configure DataStage 8.5 C++ compiler on Windows Server 2008 R2. I installed Information Server successfully. I then installed Visual Studio .NET 2010 Express Edition C++ and assigned Environmental variables (based on the configuration instruction: http://publib.boulder.ibm.com/infocenter/iisinfsv/v8r5/index.jsp?topic=%2Fcom.ibm.swg.im.iis.productization.iisinfsv.install.doc%2Ftopics%2Fwsisinst_set_envars_cpp.html)

LIB: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib
INCLUDE: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include

What should the compiler options be in the administration client? Now I have the default options:

APT_COMPILEOPT: -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c -W/Zc:wchar_t-
APT_COMPILER: cxx
APT_LINKER: cxx
APT_LINKOPT: -s -W/dll -W/base:0x50000000 -W/Zc:wchar_t-

When I try to compile a job from the designer, I get an error:

Output from transformer compilation follows:

##I IIS-DSEE-TFCN-00001 13:28:11(000) <main_program>
IBM WebSphere DataStage Enterprise Edition 8.5.0.5746
Copyright (c) 2001, 2005-2008 IBM Corporation. All rights reserved

##I IIS-DSEE-TFCN-00006 13:28:11(001) <main_program> conductor uname: -s=Windows_NT; -r=1; -v=6; -n=WIN-548T0RUG6U7; -m=Pentium
##I IIS-DSEE-TOSH-00002 13:28:11(002) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 13:28:11(003) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 13:28:11(004) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 13:28:11(007) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TBLD-00076 13:28:11(009) <main_program> Error when checking composite operator: Subprocess command failed with exit status 256.
##E IIS-DSEE-TFSR-00019 13:28:11(010) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 13:28:11(011) <transform> Error when checking composite operator: The number of reject datasets "0" is less than the number of input datasets "1".
##I IIS-DSEE-TBLD-00079 13:28:11(012) <transform> Error when checking composite operator: cxx -O -IC:/IBM/InformationServer/Server/PXEngine/include -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c -W/Zc:wchar_t- C:/IBM/InformationServer/Server/Projects/dstage1/RT_BP1.O/V0S1_Test_Transformer_1.C -o C:/IBM/InformationServer/Server/Projects/dstage1/RT_BP1.O/V0S1_Test_Transformer_1.tmp.o.
##I IIS-DSEE-TBLD-00000 13:28:11(013) <main_program> Error when checking composite operator: Output from subprocess: Compiler "cl" not found.

##E IIS-DSEE-TCOS-00029 13:28:11(014) <main_program> Creation of a step finished with status = FAILED. (Test.Transformer_1)

  • Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S1_Test_Transformer_1 transform operator.
0003: //
0004:
0005: // define our input/output link names
0006: inputname 0 DSLink3;
0007: outputname 0 DSLink4;
0008:
0009: initialize {
0010: // define our control variables
0011: int8 RowRejected0;
0012: int8 NullSetVar0;
0013:
0014: }
0015:
0016: mainloop {
0017:
0018: // initialise the rejected row variable
0019: RowRejected0 = 1;
0020:
0021: // evaluate columns (no constraints) for link: DSLink4
0022: writerecord 0;
0023: RowRejected0 = 0;
0024: }
0025:
0026: finish {
0027: }
0028:
  • End of Internal Generated Transformer Code
Updated on 2012-12-01T22:32:02Z at 2012-12-01T22:32:02Z by RobertDickson
  • RobertDickson
    RobertDickson
    33 Posts

    Re: Job compile does not work: C++ compiler options for Windows Server?

    ‏2012-11-30T12:33:40Z  
    Hi,

    I don't think that Information Server 8.5 supports Visual Studio 2010. The latest it supports is 2008. Please see http://www-01.ibm.com/support/docview.wss?uid=swg27018822.

    Can you download the 2008 and SDK?

    You can also try to point to the SDK lib directory. Not sure where it is on full 2010 Studio, but on VC2010 Express it is C:\Program Files x(86)\Microsoft SDKs\Windows\v7.0A\Lib and C:\Program Files x(86)\Microsoft SDKs\Windows\v7.0A\Include.

    Remember to reboot after you change the LIB and INCLUDE environment variables, too.


    Regards,
    Robert
  • larus
    larus
    3 Posts

    Re: Job compile does not work: C++ compiler options for Windows Server?

    ‏2012-11-30T13:16:21Z  
    Hi,

    I don't think that Information Server 8.5 supports Visual Studio 2010. The latest it supports is 2008. Please see http://www-01.ibm.com/support/docview.wss?uid=swg27018822.

    Can you download the 2008 and SDK?

    You can also try to point to the SDK lib directory. Not sure where it is on full 2010 Studio, but on VC2010 Express it is C:\Program Files x(86)\Microsoft SDKs\Windows\v7.0A\Lib and C:\Program Files x(86)\Microsoft SDKs\Windows\v7.0A\Include.

    Remember to reboot after you change the LIB and INCLUDE environment variables, too.


    Regards,
    Robert
    Thanks! I changed the LIB and INCLUDE paths to (using Visual Studio 2010 C++ Express)

    C:\Program Files x(86)\Microsoft SDKs\Windows\v7.0A\Lib
    C:\Program Files x(86)\Microsoft SDKs\Windows\v7.0A\Include

    and tried to compile using the default compiler settings, but I got the same error. I will try installing Visual Studio 2008 and using the default settings...
  • larus
    larus
    3 Posts

    Re: Job compile does not work: C++ compiler options for Windows Server?

    ‏2012-12-01T11:32:20Z  
    • larus
    • ‏2012-11-30T13:16:21Z
    Thanks! I changed the LIB and INCLUDE paths to (using Visual Studio 2010 C++ Express)

    C:\Program Files x(86)\Microsoft SDKs\Windows\v7.0A\Lib
    C:\Program Files x(86)\Microsoft SDKs\Windows\v7.0A\Include

    and tried to compile using the default compiler settings, but I got the same error. I will try installing Visual Studio 2008 and using the default settings...
    Yes, now compilation works fine! My setup is

    Windows Server 2008 R2 Standard edition
    SQL Server 2008 Enterprise Edition SP3
    Visual Studio 2008 Express Edition C++ Compiler (from package: http://www.microsoft.com/en-us/download/details.aspx?id=20682)
    IBM Information Server 8.5

    Lib and Include folders are located

    C:\Program Files\Microsoft SDKs\Windows\v6.0A

    And no modifications are needed for Compiler options in DS Administrator.
  • RobertDickson
    RobertDickson
    33 Posts

    Re: Job compile does not work: C++ compiler options for Windows Server?

    ‏2012-12-01T22:32:02Z  
    That's great news! Thanks for the update.

    Regards,
    Robert