×
Discuss on any other topics
CATALOG error for PROGRAM on HPUX
- mathew
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
7 years 7 months ago - 7 years 7 months ago #20166
by mathew
CATALOG error for PROGRAM on HPUX was created by mathew
Dear All,
I'm facing an issue while CATALOG a PROGRAM on HPUX with GNU compiler but there is no error for CATALOG a SUBROUTINE. If I'm using the HP C Compiler there is no error while CATALOG the PROGRAM or SUBROUTINE.
I have the below settings on system.properties
jcompile.cc=gcc
jcompile.cc.options=-mlp64 -fPIC -w
jcompile.cpp=g++
jcompile.cpp.options=-fPIC -w
jcompile.ccslib=gcc
jcompile.ccslib.options=-mlp64 -shared -Wl
jcompile.ccexe=gcc
jcompile.ccexe.options=-mlp64 -shared -Wl
jcompile.ccjbc=gcc
jcompile.ccjbc.options=-mlp64 -fPIC -w
jcompile.output.file=-o
jcompile.debug=-g
jcompile.optimise=-O2
jcompile.obj.extension=.o
jsh rneqf ~ -->CATALOG MAT.BP TESTSUB
TESTSUB
Object TESTSUB cataloged successfully
Library /home/mathew/ModelBank-R15/bnk/bnk.run/matlib/lib0.so.3 rebuild okay
jsh rneqf ~ -->CATALOG MAT.BP TESTPGM
TESTPGM
ld: Mismatched ABI for -lTAFCfrmwrk, found /home/mathew/TAFC/R15/lib/libTAFCfrmwrk.so
Fatal error.
collect2: ld returned 1 exit status
g++ -fPIC -w CATALOG_8.o /home/mathew/TAFC/R15/bin/jmainfunction.o -L/home/mathew/TAFC/R15/lib -lTAFCfrmwrk -lTAFCutil -lTAFCjee -lpthread -lcurses -lm -o/home/mathew/ModelBank-R15/bnk/bnk.run/matbin/TESTPGM failed , command returned a code of 1
jcompile: Returned an error code of 8
** Unable to catalog object TESTPGM **
jsh rneqf ~ -->
Even though the object is not generated, I can run the program as below as two files were generated under the bin
jsh rneqf ~ -->list matbin
TESTPGM.so.el
TESTPGM.so
2 Records Listed
jsh rneqf ~ -->
jsh rneqf ~ -->jshow -c TESTPGM
Executable: /home/mathew/ModelBank-R15/bnk/bnk.run/matbin/TESTPGM.so
jBC main() version 15.0 Mon Sep 12 04:59:48 2016
jBC main() source file MAT.BP
jsh rneqf ~ -->
jsh rneqf ~ -->TESTPGM
CALLING SUBROUTINE FROM PROGRAM
SUBROUTINE TEST SUCCESS
jsh rneqf ~ -->
I guess the above error is due to some 32 bit and 64 bit mixing issues but I couldn't find out any and not sure why it is good with HP C Compiler. May be I miss some of the GNU dependency package?
If any of you come across a similar situation and can help me out it'll be a great help.
Thanks,
Mathew
I'm facing an issue while CATALOG a PROGRAM on HPUX with GNU compiler but there is no error for CATALOG a SUBROUTINE. If I'm using the HP C Compiler there is no error while CATALOG the PROGRAM or SUBROUTINE.
I have the below settings on system.properties
jcompile.cc=gcc
jcompile.cc.options=-mlp64 -fPIC -w
jcompile.cpp=g++
jcompile.cpp.options=-fPIC -w
jcompile.ccslib=gcc
jcompile.ccslib.options=-mlp64 -shared -Wl
jcompile.ccexe=gcc
jcompile.ccexe.options=-mlp64 -shared -Wl
jcompile.ccjbc=gcc
jcompile.ccjbc.options=-mlp64 -fPIC -w
jcompile.output.file=-o
jcompile.debug=-g
jcompile.optimise=-O2
jcompile.obj.extension=.o
jsh rneqf ~ -->CATALOG MAT.BP TESTSUB
TESTSUB
Object TESTSUB cataloged successfully
Library /home/mathew/ModelBank-R15/bnk/bnk.run/matlib/lib0.so.3 rebuild okay
jsh rneqf ~ -->CATALOG MAT.BP TESTPGM
TESTPGM
ld: Mismatched ABI for -lTAFCfrmwrk, found /home/mathew/TAFC/R15/lib/libTAFCfrmwrk.so
Fatal error.
collect2: ld returned 1 exit status
g++ -fPIC -w CATALOG_8.o /home/mathew/TAFC/R15/bin/jmainfunction.o -L/home/mathew/TAFC/R15/lib -lTAFCfrmwrk -lTAFCutil -lTAFCjee -lpthread -lcurses -lm -o/home/mathew/ModelBank-R15/bnk/bnk.run/matbin/TESTPGM failed , command returned a code of 1
jcompile: Returned an error code of 8
** Unable to catalog object TESTPGM **
jsh rneqf ~ -->
Even though the object is not generated, I can run the program as below as two files were generated under the bin
jsh rneqf ~ -->list matbin
TESTPGM.so.el
TESTPGM.so
2 Records Listed
jsh rneqf ~ -->
jsh rneqf ~ -->jshow -c TESTPGM
Executable: /home/mathew/ModelBank-R15/bnk/bnk.run/matbin/TESTPGM.so
jBC main() version 15.0 Mon Sep 12 04:59:48 2016
jBC main() source file MAT.BP
jsh rneqf ~ -->
jsh rneqf ~ -->TESTPGM
CALLING SUBROUTINE FROM PROGRAM
SUBROUTINE TEST SUCCESS
jsh rneqf ~ -->
I guess the above error is due to some 32 bit and 64 bit mixing issues but I couldn't find out any and not sure why it is good with HP C Compiler. May be I miss some of the GNU dependency package?
If any of you come across a similar situation and can help me out it'll be a great help.
Thanks,
Mathew
Last edit: 7 years 7 months ago by mathew.
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 7 months ago #20167
by VK
Cheers
VK
Replied by VK on topic CATALOG error for PROGRAM on HPUX
Hi
It really looks like 32/64 bit mixture... And you're missing TESTPGM executable in matbin I believe...
what the output of:?
It really looks like 32/64 bit mixture... And you're missing TESTPGM executable in matbin I believe...
what the output of:
file MAT.BP/TESTPGM.o
Cheers
VK
Please Log in or Create an account to join the conversation.
- mathew
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
7 years 7 months ago #20168
by mathew
Replied by mathew on topic CATALOG error for PROGRAM on HPUX
Hi VK,
Yes, while trying to generate the object, I'm getting this error.
jsh root ~ -->file MAT.BP/TESTPGM.o
MAT.BP/TESTPGM.o: cannot open
jsh root ~ -->LIST MAT.BP
MAT.BP........
TESTPGM
$TESTPGM
TESTSUB
$TESTSUB
4 Records Listed
jsh root ~ -->
Yes, while trying to generate the object, I'm getting this error.
jsh root ~ -->file MAT.BP/TESTPGM.o
MAT.BP/TESTPGM.o: cannot open
jsh root ~ -->LIST MAT.BP
MAT.BP........
TESTPGM
$TESTPGM
TESTSUB
$TESTSUB
4 Records Listed
jsh root ~ -->
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
- mathew
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
7 years 7 months ago #20170
by mathew
Replied by mathew on topic CATALOG error for PROGRAM on HPUX
jsh root ~ -->file MAT.BP/$TESTPGM
MAT.BP/$TESTPGM: ELF-64 relocatable object file - IA64
jsh root ~ -->
MAT.BP/$TESTPGM: ELF-64 relocatable object file - IA64
jsh root ~ -->
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 7 months ago #20171
by VK
Cheers
VK
Replied by VK on topic CATALOG error for PROGRAM on HPUX
Well. it's 64-bit...
Is GNU C compiler a must?
Also, are you good in C? (I'm not :)
You can try to see the C code that is created during compilation. Also, compare the linker command line in both cases (HP C vs GNU C)...
But, generally, I think that stackoverflow is a better place to ask this question...
Is GNU C compiler a must?
Also, are you good in C? (I'm not :)
You can try to see the C code that is created during compilation. Also, compare the linker command line in both cases (HP C vs GNU C)...
But, generally, I think that stackoverflow is a better place to ask this question...
Cheers
VK
Please Log in or Create an account to join the conversation.
- mathew
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
7 years 7 months ago #20172
by mathew
Replied by mathew on topic CATALOG error for PROGRAM on HPUX
Thanks for the suggestion VK.
Yeah, GNU Compiler is a must.
Me too not good in C :)
But will try to compare as you have suggested.
Yeah, GNU Compiler is a must.
Me too not good in C :)
But will try to compare as you have suggested.
Please Log in or Create an account to join the conversation.
- mathew
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
7 years 7 months ago #20206
by mathew
Replied by mathew on topic CATALOG error for PROGRAM on HPUX
Hi VK,
By modifying the compiler options in system.properties as below solved the issue :)
Before:
#jcompile.cpp.options=-fPIC -w
New:
jcompile.cpp.options=-mlp64 -fPIC -w -lstd_v2 -lCsup -lunwind
Full config as below if someone needs in the future for HPUX
jcompile.cc=gcc
jcompile.cc.options=-mlp64 -fPIC -w
jcompile.cpp=g++
jcompile.cpp.options=-mlp64 -fPIC -w -lstd_v2 -lCsup -lunwind
jcompile.ccslib=gcc
jcompile.ccslib.options=-mlp64 -shared -Wl
jcompile.ccexe=gcc
jcompile.ccexe.options=-mlp64 -Wl
jcompile.ccjbc=gcc
jcompile.ccjbc.options=-mlp64 -fPIC -w
jcompile.output.file=-o
jcompile.debug=-g
jcompile.optimise=-O2
jcompile.obj.extension=.o
By modifying the compiler options in system.properties as below solved the issue :)
Before:
#jcompile.cpp.options=-fPIC -w
New:
jcompile.cpp.options=-mlp64 -fPIC -w -lstd_v2 -lCsup -lunwind
Full config as below if someone needs in the future for HPUX
jcompile.cc=gcc
jcompile.cc.options=-mlp64 -fPIC -w
jcompile.cpp=g++
jcompile.cpp.options=-mlp64 -fPIC -w -lstd_v2 -lCsup -lunwind
jcompile.ccslib=gcc
jcompile.ccslib.options=-mlp64 -shared -Wl
jcompile.ccexe=gcc
jcompile.ccexe.options=-mlp64 -Wl
jcompile.ccjbc=gcc
jcompile.ccjbc.options=-mlp64 -fPIC -w
jcompile.output.file=-o
jcompile.debug=-g
jcompile.optimise=-O2
jcompile.obj.extension=.o
Please Log in or Create an account to join the conversation.
Time to create page: 0.117 seconds