wrong ELF class: ELFCLASS32

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
vikas gupta
Participant
Posts: 30
Joined: Wed Mar 24, 2004 1:28 am

wrong ELF class: ELFCLASS32

Post by vikas gupta »

We have created multiple routine with c++ code 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

== Earlier we had got error following Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
while compiling job and asking change to -xarch=v9 to -m64 then we change environment variable in project level as

Old

APT_COMPLIEOPT : -dalign -O -PIC -library=iostream -c -xarch=v9
APT_LINKOPT : -G -library=iostream -xarch=v9

New

APT_COMPLIEOPT: -dalign -O -PIC -library=iostream -c -m64

APT_LINKOPT : -G -library=iostream -m64

==== Now we are getting following compilation error


Pls help to get resolution-----

Output from transformer compilation follows:

##I IIS-DSEE-TFCN-00001 15:46:23(000) <main_program>
IBM InfoSphere DataStage Enterprise Edition 8.7.0.6118
Copyright (c) 2001, 2005-2011 IBM Corporation. All rights reserved



##I IIS-DSEE-TFCN-00006 15:46:23(001) <main_program> conductor uname: -s=SunOS; -r=5.10; -v=Generic_147440-23; -n=D5011RTLDB; -m=sun4u
##I IIS-DSEE-TOSH-00002 15:46:23(002) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 15:46:23(003) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 15:46:23(004) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 15:46:23(007) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TFSR-00019 15:46:28(000) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 15:46:28(001) <transform> Error when checking composite operator: The number of reject datasets "0" is less than the number of input datasets "1".
##W IIS-DSEE-TBLD-00000 15:46:28(002) <main_program> Error when checking composite operator: Output from subprocess: ld: fatal: file /u06/PRODDSS/data4/srcfiles/pxroutine/RCOM.o: wrong ELF class: ELFCLASS32
ld: fatal: file processing errors. No output written to /u01/app/datastage/product/IBM/InformationServer/Server/Projects/rcl_prod_crm/RT_BP1969.O/V0S1_J1Test_Transformer_1.so

##E IIS-DSEE-TCOS-00029 15:46:28(003) <main_program> Creation of a step finished with status = FAILED. (J1Test.Transformer_1)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S1_J1Test_Transformer_1 transform operator.
0003: //
0004:
0005: // define external functions used
0006: extern string RemoveUnWantedChar(string Input);
0007:
0008: // define our input/output link names
0009: inputname 0 DSLink3;
0010: outputname 0 DSLink4;
0011:
0012: initialize {
0013: // define our control variables
0014: int8 RowRejected0;
0015: int8 NullSetVar0;
0016:
0017: }
0018:
0019: mainloop {
0020:
0021: // declare our intermediate variables for this section
0022: string InterVar0_0;
0023:
0024: // initialise the rejected row variable
0025: RowRejected0 = 1;
0026:
0027: // evaluate columns (no constraints) for link: DSLink4
0028: InterVar0_0 = RemoveUnWantedChar(DSLink3.char);
0029: DSLink4.char = InterVar0_0;
0030: writerecord 0;
0031: RowRejected0 = 0;
0032: }
0033:
0034: finish {
0035: }
0036:
*** End of Internal Generated Transformer Code
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

The ELFCLASS32 error is referring to the object RCOM.o. I expect that your transformer is calling a custom parallel routine which is compiled as a 32-bit object. You will need to recompile that routine as a 64-bit object.

See this thread for a similar problem.

Regards,
- james wiles


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