Operating System - HP-UX
1833846 Members
1953 Online
110063 Solutions
New Discussion

Link error: "Failure updating exe"

 
SOLVED
Go to solution
Thiagu_1
Advisor

Link error: "Failure updating exe"

I am getting the following error when I try to link my exe

Failure updating

The exe is created but I am unable to debug with that exe. Is there any size limit for exe creation. The size of our exe is 628244416 (bytes). We are building in HP-UX 11.11 PA-RISC 2.0 64-bit.
aCC version - aCC: HP ANSI C++ B3910B A.03.65

Following are the linking options
aCC +DA2.0W -g -D_DEBUG -DUSE_AA_OPTION +W641 -Wl,+s -N -DPERFORMANCE -DKRWUNIX -DUSE_NAMESPACE_KTSTDKRW -DUSE_ROUGEWAVE_INTERFACE -DKRW_EXTENDED_CLASS_SE
T -DKRW_KLARITY_ENUM_ORTN_LOC -D_RWCONFIG__RogueWaveStdLib_NoThrLib_Static_Debug -I/opt/SourcePro64/Ed8/orasrc -I/opt/SourcePro64/Ed8 -
I/opt/Orbix6.3/asp/6.3/include -I/opt/SourcePro64/Ed8/include -I/opt/SourcePro64/Ed8 -D_CMA_NOWRAPPERS_ +DAporta
ble +DA2.0W +DS2.0W -AA -o lib/server lib/main.o /opt/SourcePro64/Ed8/lib/rwoci_RogueWaveStdLib_NoThrLib_Static_Debug.o -L/opt/SourcePro64/Ed8/lib -loci62-_RogueWaveStdL
ib_NoThrLib_Static_Debug -ldbt62-_RogueWaveStdLib_NoThrLib_Static_Debug -ltls79-_RogueWaveStdLib_NoThrLib_Static_Debug -lstd41-_RogueWaveStdLib_NoThrLib_Stat
ic_Debug -L/opt/Orbix6.3/asp/6.3/lib/pa20_64 -L/opt/Orbix6.3/shlib/pa20_64 -L/opt/Orbix6.3/shlib/default/pa20_64 -lit_naming -lit_poa -lit_art -lit_ifc -lpt
hread -L/u01/app/oracle/product/10.2.0/lib -lclntsh -lsql10 -lcommon10 -lnls10 -lcore10 -lnls10 -lclient10


What could be the reason for this error?
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: Link error: "Failure updating exe"

>I am getting the following error when I try to link my exe
Failure updating

Can you show the complete message? Was there something before that, something with pxdb?

>Is there any size limit for exe creation.

If this is pxdb64, it has to fit lots of it in memory. What is your maxdsiz setting??
Thiagu_1
Advisor

Re: Link error: "Failure updating exe"

hi,

I am giving you my total linking option

aCC +DA2.0W -v -g -D_DEBUG -DUSE_AA_OPTION +W641 -Wl,+s -DPERFORMANCE -DKRWUNIX -DUSE_NAMESPACE_KTSTDKRW -DUSE_ROUGEWAVE_INT
ERFACE -DKRW_EXTENDED_CLASS_SET -DKRW_KLARITY_ENUM_ORTN_LOC -D_RWCONFIG__RogueWaveStdLib_NoThrLib_Static_Debug -I./include -I.
./../../udb/components/libKRWWrapper/include -I../libKlarity/include -I../liberror/include -I../libservicefactory/include -I..
/libdsshare/include -I../libnewdsidl/include -I../libbspds/include -I../libnewds/include -I../libnewsubds/include -I../libdsim
pl/include -I../libnewwsidl/include -I../libwsimpl/include -I../libnewws/include -I../libypredict/include -I../libdsattribute/
include -I../libdscalc/include -I../libKLAutils/include -I../LoadDataSet/include -I../libklaserviceidl/include -I../libtudb/in
clude -I../libwaferlayout/include -I../libdbdataset/include -I../libklacorba/include -I../libcfgfile/include -I../libcrypt/inc
lude -I/opt/SourcePro64/Ed8/orasrc -I/opt/SourcePro64/Ed8 -I/opt/Orbix6.3/asp/6.3/include -I../../../udb/components/libKRW_HP/include -I/opt/SourcePro64/Ed8/include -I/opt/SourcePro64/Ed8 -D_CMA_NOWRAPPERS_ +DAportable +DA2.0W +DS2.0W -AA -o lib/DBD
ataSet_Service lib/main.o ../libnewdsidl/lib/dbdatasetC.o ../libnewdsidl/lib/dbdatasetS.o ../libnewdsidl/lib/dbmisc.o ../libnewdsidl/lib/KPCResults.o ../libdbdataset/lib/libdbds.a ../libklaserviceidl/lib/libklaserviceidl.a ../libservicefactory/lib/libservicefactory.a ../libdsimpl/lib/libdsimpl.a ../libwsimpl/lib/libwsimpl.a ../libdsattribute/lib/libdsattribute.a ../libypredict/lib/libypredict.a ../libdscalc/lib/libdscalc.a ../libnewsubds/lib/libsubdataset.a ../libnewds/lib/libdataset.a ../libbspds/lib/libbspds.a ../libwaferlayout/lib/libwaferlayout.a ../libwafercalc/lib/libwafercalc.a ../libdsshare/lib/libdsshare.a ../libnewws/lib/libworksheet.a ../libKLAutils/lib/libKLAutils.a ../libtudb/lib/libdbquery.a ../libKRWWrapper/lib/libKRWWrapper.a ../libklawtr/lib/libKlaWtr.a ../libcfgfile/lib/libcfgfile.a ../libtagdata/lib/libtagdata.a ../libRmtWtridl/lib/libRmtWtridl.a ../libstatfunction/lib/libstatfunction.a ../libnamespaceidl/lib/libnamespaceidl.a ../libblockdata/lib/libblockdata.a ../libadminidl/lib/libadminidl.a ../liberror/lib/liberror.a ../libKlarity/lib/libKlarity.a ../libklacorba/lib/libklacorba.a ../libcrypt/l
ib/libcrypt.a -L/opt/SourcePro64/Ed8/lib -L../../../udb/components/libKRW_HP/lib -lklarfRW_AA_2_5 /opt/SourcePro64/Ed8/lib/rwo
ci_RogueWaveStdLib_NoThrLib_Static_Debug.o -L/opt/SourcePro64/Ed8/lib -loci62-_RogueWaveStdLib_NoThrLib_Static_Debug -ldbt62-_
RogueWaveStdLib_NoThrLib_Static_Debug -ltls79-RogueWaveStdLib_NoThrLib_Static_Debug -lstd41-_RogueWaveStdLib_NoThrLib_Static_
Debug -L/opt/Orbix6.3/asp/6.3/lib/pa20_64 -L/opt/Orbix6.3/shlib/pa20_64 -L/opt/Orbix6.3/shlib/default/pa20_64 -lit_naming -lit_poa -lit_art -lit_ifc -lpthread -L/u01/app/oracle/product/10.2.0/lib -lclntsh -lsql10 -lcommon10 -lnls10 -lcore10 -lnls10 -lclient10 /opt/langtools/lib/pa20_64/end.o -lstd_ v2 -lCsup_v2 -lm -lcl -lc /usr/lib/pa20_64/libdld.sl >/var/tmp/AAAa03716 2>&1
/opt/aCC/bin/c++filt &2
Failure updating lib/DBDataSet_Service
removing /var/tmp/AAAa03716

My ld gone fine but it is showing Failure updating.

iseen the maxdisz as follows :

sysdef | grep maxdsiz
maxdsiz 262144 - 0-503866 Pages -
maxdsiz_64bit 524288 - 1024-1073479679 Pages -


kmtune -lq maxdsiz
Parameter: maxdsiz
Current: 1073741824
Planned: 1073741824
Default: 0x10000000
Minimum: -
Module: -
Version: -
Dynamic: No

If i give ldd of that exe it is showing proper only.

ldd DBDataSet_Service
libklarfRW_AA_2_5.sl => /home/sgonugun/lib/libklarfRW_AA_2_5.sl
libit_naming_acca0331.5 => /opt/Orbix6.3/shlib/pa20_64/libit_naming_acca0331.5
libit_poa_acca0331.5 => /opt/Orbix6.3/shlib/pa20_64/libit_poa_acca0331.5
libit_art_acca0331.5 => /opt/Orbix6.3/shlib/pa20_64/libit_art_acca0331.5
libit_ifc_acca0331.5 => /opt/Orbix6.3/shlib/default/pa20_64/libit_ifc_acca0331.5
libpthread.1 => /usr/lib/pa20_64/libpthread.1
libclntsh.sl.10.1 => /u01/app/oracle/product/10.2.0/lib/libclntsh.sl.10.1
libstd_v2.2 => /usr/lib/pa20_64/libstd_v2.2
libCsup_v2.2 => /usr/lib/pa20_64/libCsup_v2.2
libm.2 => /usr/lib/pa20_64/libm.2
libcl.2 => /usr/lib/pa20_64/libcl.2
libc.2 => /usr/lib/pa20_64/libc.2
libdl.1 => /usr/lib/pa20_64/libdl.1
libnsl.1 => /usr/lib/pa20_64/libnsl.1
libit_art_acca0331.5 => /opt/Orbix6.3/shlib/pa20_64/libit_art_acca0331.5
libit_ifc_acca0331.5 => /opt/Orbix6.3/shlib/default/pa20_64/libit_ifc_acca0331.5
libpthread.1 => /lib/pa20_64/libpthread.1
libit_location_acca0331.5 => /opt/Orbix6.3/shlib/pa20_64/libit_location_acca0331.5
libit_atli2_ip_acca0331.5 => /opt/Orbix6.3/shlib/pa20_64/libit_atli2_ip_acca0331.5
libit_atli2_acca0331.5 => /opt/Orbix6.3/shlib/pa20_64/libit_atli2_acca0331.5
libit_key_replacer_stubs_acca0331.5 => /opt/Orbix6.3/shlib/pa20_64/libit_key_replacer_stubs_acca0331.5
librt.2 => /lib/pa20_64/librt.2
libnnz10.sl => /u01/app/oracle/product/10.2.0/lib/libnnz10.sl
librt.2 => /lib/pa20_64/librt.2
libpthread.1 => /lib/pa20_64/libpthread.1
libnss_dns.1 => /lib/pa20_64/libnss_dns.1
libdl.1 => /lib/pa20_64/libdl.1
libnsl.1 => /lib/pa20_64/libnsl.1
libm.2 => /lib/pa20_64/libm.2
libc.2 => /lib/pa20_64/libc.2
libcl.2 => /lib/pa20_64/libcl.2
libdl.1 => /usr/lib/pa20_64/libdl.1
libxti.2 => /usr/lib/pa20_64/libxti.2
libpthread.1 => /lib/pa20_64/libpthread.1


Thiagu_1
Advisor

Re: Link error: "Failure updating exe"


maxdsiz and maxdsize_64 bit showing as

NAME VALUE BOOT MIN-MAX UNITS FLAGS

maxdsiz 262144 - 0-503866 Pages -
maxdsiz_64bit 524288 - 1024-1073479679 Pages -


please suggest me under what circumstances this Failure updating exe message will come?
Don Morris_1
Honored Contributor

Re: Link error: "Failure updating exe"

See your other thread where you gave tusc output. That indicated that the process needed more data space than maxdsiz allows (about 200Mb or so over, give or take... and who knows how much more it might end up needing).
Dennis Handly
Acclaimed Contributor
Solution

Re: Link error: "Failure updating exe"

>Failure updating lib/DBDataSet_Service
>My ld gone fine but it is showing Failure updating.

Ok, this message is broken. It should clearly identify itself as coming from pxdb64.

You might want to report that to the Response Center.

>Don: That indicated that the process needed more data space than maxdsiz allows

Right, pxdb64 needs 2 Gb.

If you have gotten the answers you need, you need to assign some points:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Thiagu_1
Advisor

Re: Link error: "Failure updating exe"

We suspect if this is identical to issue in itanium.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1110034


We could not debug the issue due to error below.
When we load this process in gdb attached is the error.

{magneto:/home/sgonugun/klarity/services:537} gdb DBDataSet_Service
HP gdb 5.2 for PA-RISC 2.0 (wide), HP-UX 11.00
and target hppa2.0w-hp-hpux11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
warning: File not processed by pxdb--about to process now.

Error opening: DBDataSet_Service for read/write.
PXDB aborted.

(gdb)

gdb) attach 25315
Attaching to program: /home/sgonugun/klarity/services/DBDataSet_Service, process 25315
warning: reading `r3' register: No data

warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.

warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: Load module /u01/app/oracle/product/10.2.0/lib/libclntsh.sl.10.1 has been stripped.
Debugging information is not available.

warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: Load module /u01/app/oracle/product/10.2.0/lib/libnnz10.sl has been stripped.
Debugging information is not available.

warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
warning: reading `r3' register: No data
0xc0000000005f83cc in __ksleep+0x2c () from /usr/lib/pa20_64/libc.2
(gdb)


Could be this due to error Failure Updating ?

Related incidents:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1117792
Thiagu_1
Advisor

Re: Link error: "Failure updating exe"

Attached the elfdump of executable for this issue.
Dennis Handly
Acclaimed Contributor

Re: Link error: "Failure updating exe"

>We suspect if this is identical to issue in itanium.

Why? pxdb64 isn't on IPF.

>We could not debug the issue due to error below.

Until you get your maxdsiz straightened out, you might as well make a copy of your executable and use strip -l on it. And then use gdb to debug at the assembly level.

>Attached the elfdump of executable for this issue.

What are you trying to show?