Page 1 of 1

g++/gcc configuration in AIX

Posted: Wed Apr 16, 2008 8:43 am
by jusami25
Hi experts,

We installed IS8 using the XLC evaluation license and everything was ok. After 60 days we got the license error when we tried to compile parallel jobs.

We have uninstalled XLC compiler and installed gcc/g++ version 4.2.3 and changed the next values:

APT_COMPILER: /usr/bin/g++
APT_LINKER: /usr/bin/g++

APT_COMPILEOPT: -o -fPIC -Wno-deprecated -c
APT_LINKOPT: -shared -Wl,-Bsymbolic,--allow-shlib-undefined

Specified in this thread viewtopic.php?t=113349&highlight=g+++APT_COMPILER

But when we try to compile a simple job (Seq->Trans-Peek) we are getting below error message:


Output from transformer compilation follows:

##I IIS-DSEE-TFCN-00001 16:39:01(000) <main_program>
IBM WebSphere DataStage Enterprise Edition 8.0.1.4458
Copyright (c) 2001, 2005-2007 IBM Corporation. All rights reserved



##I IIS-DSEE-TUTL-00031 16:39:01(001) <main_program> The open files limit is 2000; raising to 2147483647.
##I IIS-DSEE-TOSH-00002 16:39:01(002) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 16:39:01(003) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 16:39:01(004) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 16:39:01(007) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TBLD-00076 16:39:03(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 256.
##E IIS-DSEE-TFSR-00019 16:39:03(001) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 16:39:03(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-TBLD-00000 16:39:03(003) <main_program> Error when checking composite operator: Output from subprocess: In file included from /data/IBM/IS/Server/PXEngine/include/apt_util/assert.h:49,
from /data/IBM/IS/Server/PXEngine/include/apt_util/archive.h:38,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/fieldsel.h:33,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/accessorbase.h:27,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/accessor.h:10,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/orchestr
##W IIS-DSEE-TBLD-00000 16:39:03(004) <main_program> Error when checking composite operator: Output from subprocess: ate.h:18,
from /data/IBM/IS/Server/Projects/Tool/RT_BP8.O/V2S1_Mario_MarioTrans.C:57:
/data/IBM/IS/Server/PXEngine/include/apt_util/strstream_s.h:38:23: error: strstream.h: No such file or directory

##I IIS-DSEE-TBLD-00079 16:39:03(005) <transform> Error when checking composite operator: /usr/bin/g++ -O -I/data/IBM/IS/Server/PXEngine/include -o -fPIC -Wno-deprecated -c /data/IBM/IS/Server/Projects/Tool/RT_BP8.O/V2S1_Mario_MarioTrans.C -o /data/IBM/IS/Server/Projects/Tool/RT_BP8.O/V2S1_Mario_MarioTrans.tmp.o.
##W IIS-DSEE-TBLD-00000 16:39:03(006) <main_program> Error when checking composite operator: Output from subprocess: In file included from /data/IBM/IS/Server/PXEngine/include/apt_util/identifier.h:55,

##W IIS-DSEE-TBLD-00000 16:39:03(007) <main_program> Error when checking composite operator: Output from subprocess: from /data/IBM/IS/Server/PXEngine/include/apt_framework/fieldsel.h:29,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/accessorbase.h:27,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/accessor.h:10,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/orchestrate.h:18,
from /data/IBM/IS/Server/Projects/Tool/RT_BP8.O/V2S1_Mario_MarioTrans.C:57:
/data/IBM/IS/Server/PXEngine/include/apt_util/iosfwd_s.h:23: error: usi
##W IIS-DSEE-TBLD-00000 16:39:03(008) <main_program> Error when checking composite operator: Output from subprocess: ng typedef-name 'std::istream' after 'class'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/include/c++/iosfwd:137: error: 'std::istream' has a previous declaration here
/data/IBM/IS/Server/PXEngine/inc
##W IIS-DSEE-TBLD-00000 16:39:03(009) <main_program> Error when checking composite operator: Output from subprocess: lude/apt_util/iosfwd_s.h:24: error: using typedef-name 'std::ostream' after 'class'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/include/c++/iosfwd:138: error: 'std::ostream' has a previous declaration here
##W IIS-DSEE-TBLD-00000 16:39:03(010) <main_program> Error when checking composite operator: Output from subprocess:

##W IIS-DSEE-TBLD-00000 16:39:03(011) <main_program> Error when checking composite operator: Output from subprocess: In file included from /data/IBM/IS/Server/PXEngi
##W IIS-DSEE-TBLD-00000 16:39:03(012) <main_program> Error when checking composite operator: Output from subprocess: ne/include/apt_util/archive.h:38,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/fieldsel.h:33,
from /data/IBM/IS/Server/PXEn
##W IIS-DSEE-TBLD-00000 16:39:03(013) <main_program> Error when checking composite operator: Output from subprocess: gine/include/apt_framework/accessorbase.h:27,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/accessor.h:10,
from /data/IBM/IS/Server/PXEngine/include/apt_framework/orchestrate.h:18,
from /data/IBM/IS/Server/Projects/Tool/RT_BP8.O/V2S1_Mario_MarioTrans.C:57:
/data/IBM/IS/Server/PXEngine/inclu
##W IIS-DSEE-TBLD-00000 16:39:03(014) <main_program> Error when checking composite operator: Output from subprocess: de/apt_util/assert.h:148: error: '::ostrstream' has not been declared

##W IIS-DSEE-TBLD-00000 16:39:03(015) <main_program> Error when checking composite operator: Output from subprocess: /data/IBM/IS/Server/PXEngine/include/apt
##W IIS-DSEE-TBLD-00000 16:39:03(016) <main_program> Error when checking composite operator: Output from subprocess: _util/assert.h:185: error: '::ostrstream' has not been declared

##W IIS-DSEE-TBLD-00000 16:39:03(017) <main_program> Error when checking composite operator: Output from subprocess: In file included from /data/IBM/IS/Server/PXEngine/include/apt_framework/osh_name.h:34,
from /data/IBM/IS/Serve
##W IIS-DSEE-TBLD-00000 16:39:03(018) <main_program> Error when checking composite operator: Output from subprocess: r/PXEngine/include/apt_framework/orchestrate.h:30,
from /data/IBM/IS/Server/Projects/Tool/RT_BP8.O/V2S1_Mario_MarioTrans.C:57:
/data/IBM/IS/Server/PXEngine/include/apt_util/errlog.h:472: error: ISO C++ forbids declaration of 'ostrstream' with no type
/data/IBM/IS/Server/PXEngine/include/apt_util/errlog.h:472: error: invalid use of '::'
/data/IBM/IS/Server/PXEngine/inc
##W IIS-DSEE-TBLD-00000 16:39:03(019) <main_program> Error when checking composite operator: Output from subprocess: lude/apt_util/errlog.h:472: error: expected ';' before '*' token

##W IIS-DSEE-TBLD-00000 16:39:03(020) <main_program> Error when checking composite operator: Output from subprocess: In file included from /data/IBM/IS/Server/PXEngine/include/apt_f
##W IIS-DSEE-TBLD-00000 16:39:03(021) <main_program> Error when checking composite operator: Output from subprocess: ramework/orchestrate.h:58,
from /data/IBM/IS/Server/Projects/Tool/RT_BP8.O/V2S1_Mario_MarioTrans.C:57:
/data/IBM/IS/Server/PXEngine/include/apt_util/logmsg.h:59: error: '::ostrstream' has not
##W IIS-DSEE-TBLD-00000 16:39:03(022) <main_program> Error when checking composite operator: Output from subprocess: been declared
/data/IBM/IS/Server/PXEngine/include/apt_util/logmsg.h:59: error: 'stream' was not declared in this scope

##W IIS-DSEE-TBLD-00000 16:39:03(023) <main_program> Error when checking composite operator: Output from subprocess: In file included from /data/IBM/IS/Server/Projects/Tool/
##W IIS-DSEE-TBLD-00000 16:39:03(024) <main_program> Error when checking composite operator: Output from subprocess: RT_BP8.O/V2S1_Mario_MarioTrans.C:64:
/data/IBM/IS/Server/PXEngine/include/apt_util/unicode_utils.h:360: error: '::ostrstream' has not been declared

##W IIS-DSEE-TBLD-00000 16:39:03(025) <main_program> Error when checking composite operator: Output from subprocess: /data/IBM/IS/Server/PXEngine/include/apt_util/unicode_utils.h:360: error: 'ostr' was not declared in this scope

##E IIS-DSEE-TCOS-00029 16:39:03(026) <main_program> Creation of a step finished with status = FAILED. (Mario.MarioTrans)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V2S1_Mario_MarioTrans transform operator.
0003: //
0004:
0005: // define our input/output link names
0006: inputname 0 DSLink2;
0007: outputname 0 DSLink3;
0008:
0009: initialize {
0010: // define our row rejected variable
0011: int8 RowRejected0;
0012:
0013: // define our null set variable
0014: int8 NullSetVar0;
0015:
0016: }
0017:
0018: mainloop {
0019: // initialise our row rejected variable
0020: RowRejected0 = 1;
0021:
0022: // evaluate columns (no constraints) for link: DSLink3
0023: writerecord 0;
0024: RowRejected0 = 0;
0025: }
0026:
0027: finish {
0028: }
0029:
*** End of Internal Generated Transformer Code


Could you, please, help me to solve this problem? Thanks in advance.

Posted: Wed Apr 16, 2008 5:00 pm
by ray.wurlod
I don't believe g++ and AIX is a valid combination. I understand that you must use the XLC compiler on AIX. (But I would be happy to be corrected.)

Posted: Thu Apr 17, 2008 1:15 am
by jusami25
Thanks for the reply ray.

Is Xlc the only c compiler that can be used with AIX? Do you know if there is another freeware c compiler that we can use with AIX for DataStage?

Posted: Thu Apr 17, 2008 3:14 am
by ray.wurlod
I understand that you must use the XLC compiler on AIX.