Parallel Routine not compile

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Nagac
Premium Member
Premium Member
Posts: 127
Joined: Tue Mar 29, 2011 11:39 am
Location: India

Parallel Routine not compile

Post by Nagac »

Hi

I have created simple c++ code with the help of Google. and compiled successfully in Unix server. Create routine in Datastage.

I called the routine in Transformer and tried to compile, but it is not successful and saying that
Output from transformer compilation follows:

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



##I IIS-DSEE-TUTL-00031 13:51:10(001) <main_program> The open files limit is 256; raising to 65536.
##I IIS-DSEE-TFCN-00006 13:51:10(002) <main_program> conductor uname: -s=SunOS; -r=5.10; -v=Generic_142909-17; -n=us034dc; -m=sun4u
##I IIS-DSEE-TOSH-00002 13:51:10(003) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 13:51:10(004) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 13:51:10(005) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 13:51:10(008) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TBLD-00076 13:51:16(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 256.
##E IIS-DSEE-TFSR-00019 13:51:16(001) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 13:51:16(002) <transform> Error when checking composite operator: The number of reject datasets "0" is less than the number of input datasets "1".
##W IIS-DSEE-TFEV-00025 13:51:16(003) <transform> Error when checking composite operator: Converting number to string.
##W IIS-DSEE-TFEV-00023 13:51:16(004) <transform> Error when checking composite operator: Implicit conversion from source type "Int8" to result type "String".
##W IIS-DSEE-TBLD-00000 13:51:16(005) <main_program> Error when checking composite operator: Output from subprocess: CC: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs

##W IIS-DSEE-TBLD-00000 13:51:16(006) <main_program> Error when checking composite operator: Output from subprocess: CC: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs

##W IIS-DSEE-TBLD-00000 13:51:16(007) <main_program> Error when checking composite operator: Output from subprocess: ld: fatal: file /export/home/dz08142f/ObjTestOne.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to /us034dc/app/dsprojects/DEV/RT_BP4507.O/V0S3_routinetest_Transformer_3.so

##I IIS-DSEE-TBLD-00079 13:51:16(008) <transform> Error when checking composite operator: /opt/sunstudio12.1/bin/CC -L/us034dc/app/dsprojects/DEV/RT_BP4507.O/ -L/us034dc/app/dsengine/Server/PXEngine/lib -L/us034dc/app/dsengine/Server/PXEngine/user_lib -G -library=iostream -xarch=v9 -lorchsun64 -lorchcoresun64 -lorchbuildopsun64 /export/home/dz08142f/ObjTestOne.o /us034dc/app/dsprojects/DEV/RT_BP4507.O/V0S3_routinetest_Transformer_3.tmp.o -o /us034dc/app/dsprojects/DEV/RT_BP4507.O/V0S3_routinetest_Transformer_3.so.
##E IIS-DSEE-TCOS-00029 13:51:16(009) <main_program> Creation of a step finished with status = FAILED. (routinetest.Transformer_3)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S3_routinetest_Transformer_3 transform operator.
0003: //
0004:
0005: // define external functions used
0006: extern int8 ObjTestOne();
0007:
0008: // define our input/output link names
0009: inputname 0 DSLink2;
0010: outputname 0 DSLink5;
0011:
0012: initialize {
0013: // define our row rejected variable
0014: int8 RowRejected0;
0015:
0016: // define our null set variable
0017: int8 NullSetVar0;
0018:
0019: // Stage variable declaration and initialisation
0020: string StageVar0_StageVar;
0021: StageVar0_StageVar = "";
0022: }
0023:
0024: mainloop {
0025: // initialise our row rejected variable
0026: RowRejected0 = 1;
0027:
0028: // evaluate the stage variables first
0029: StageVar0_StageVar = DSLink2.column;
0030:
0031: // evaluate columns (no constraints) for link: DSLink5
0032: DSLink5.output = ObjTestOne();
0033: writerecord 0;
0034: RowRejected0 = 0;
0035: }
0036:
0037: finish {
0038: }
0039:
*** End of Internal Generated Transformer Code
As it is saying i donot have any field conversion, just had Row Generator with one column, In Transformer i assigend to Stagevariable, in the output i called routine with the datatype as mentioned in routine.

Routine script:

Code: Select all

#include <stdlib.h>
#include <stdio.h>

char * ObjTestOne()
{
char* OutStr;
OutStr="Hello World - Object Testing";
return OutStr;
}
Could anybody help me on this.
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

You seem to have overlooked these errors:

Code: Select all

##W IIS-DSEE-TBLD-00000 13:51:16(005) <main_program> Error when checking composite operator: Output from subprocess: CC: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs 

##W IIS-DSEE-TBLD-00000 13:51:16(006) <main_program> Error when checking composite operator: Output from subprocess: CC: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs 

##W IIS-DSEE-TBLD-00000 13:51:16(007) <main_program> Error when checking composite operator: Output from subprocess: ld: fatal: file /export/home/dz08142f/ObjTestOne.o: wrong ELF class: ELFCLASS32 
You need to compile the routine as a 64-bit routine, as mentioned in the errors above.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
Post Reply