- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ld doesn't work with 64bit support in aCC 3.30 whe...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 06:33 PM
06-03-2007 06:33 PM
env | grep SDKROOT
SDKROOT=/opt/aCC.03.30
[77] % ld -b +s -o libicui18n.sl.18.1 ucnv_cnv.o
[78] % echo $status
1
Any idea about this kind of issue ?
Solved! Go to Solution.
- Tags:
- SDKROOT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 09:07 PM
06-03-2007 09:07 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2548,00.html
If you just want to use floating installation for aC++, you can just invoke:
/opt/aCC.03.30/opt/aCC/bin/aCC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 09:21 PM
06-03-2007 09:21 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
# cd /opt/aCC.03.30
# ls
opt usr
# cd opt
# ls
aCC ansic langtools
# cd a
# cd aCC
# ls
bin include include_std lbin lib
# pwd
/opt/aCC.03.30/opt/aCC
# cd /opt/aCC.03.30/usr
# ls
ccs include lib
# cd ccs
# ls
bin lbin lbin_bak lib
Is it correct or not ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 09:35 PM
06-03-2007 09:35 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
I take it you have the WHOLE directory tree (or symlinks) for /usr/include/, /usr/lib/ and /usr/ccs/ under /opt/aCC.03.30/usr/?
You'll also have to have your libs and includes there and set TARGETROOT.
You should add -v to ld to see where it goes wrong. (Any reason you are using ld directly to build a shlib, instead of a driver?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 09:45 PM
06-03-2007 09:45 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
I tried with ld -a option, but no luck.
I think it cannot invoke the ld command itself.
The same sttings works fine for 32 bit.
The problem is that the ld cannot redirect to
/opt/aCC.03.30/usr/ccs/lbin/ld64.
Any Idea about how can I explicitly call ld64 through ld coomand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 09:56 PM
06-03-2007 09:56 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
Why -a? What happens with -v or -t?
>The problem is that the ld cannot redirect to /opt/aCC.03.30/usr/ccs/lbin/ld64.
That should happen automatically if ucnv_cnv.o is a 64 bit ELF file.
>Any idea about how can I explicitly call ld64 through ld command.
That is a contradiction in term. :-) To explicitly invoke ld64, you must do it yourself. As I said before try invoking the driver to create your shlib:
$ cc +DD64 -b -Wl,+s -o libicui18n.sl.18.1 ucnv_cnv.o
Have you set NLSPATH, to the wrong place?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 10:06 PM
06-03-2007 10:06 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
[57] % echo $status
1
this driver usage is also not working.
[54] % ld -v -b +s -o libicuuc.sl.18.1 ucnv_cnv.o
[55] % echo $status
1
even -v option doesn,t give any message
The foolowing is the exicution of a 32 bit objct file
[64] % ld -v -b +s -o libicuuc.sl.18.1 ucnvscsu.o
/opt/aCC.03.30/usr/ccs/lbin/ld32 -v -b +s -o libicuuc.sl.18.1 ucnvscsu.o
LPATH is : /opt/aCC.03.30/opt/langtools/lib:/opt/aCC.03.30/usr/lib:/opt/aCC.03.30/usr/ccs/lib
Loading ucnvscsu.o:
/opt/aCC.03.30/usr/ccs/lbin/ld32: (Warning) At least one PA 2.0 object file (ucnvscsu.o) was detected. The linked output may not run on a PA 1.x system.
Searching library /usr/lib/milli.a:
Selecting dyncallU.o to resolve $$dyncall
referenced from ucnvscsu.o
Loading /usr/lib/milli.a(dyncallU.o):
Searching library /usr/lib/milli.a:
/opt/aCC.03.30/usr/ccs/lbin/ld32: Unsatisfied symbols:
memcpy (first referenced in ) (code)
free (first referenced in ) (code)
ucnv_updateCallbackOffsets (first referenced in ) (code)
ucnv_getNextUCharFromToUImpl (first referenced in ) (code)
malloc (first referenced in ) (code)
ucnv_cbFromUWriteBytes (first referenced in ) (code)
[65] % echo $status
0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 10:22 PM
06-03-2007 10:22 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 10:29 PM
06-03-2007 10:29 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2007 10:50 PM
06-03-2007 10:50 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
aCC 3.70 as my default installation.
If SDKROOT doesn't support, then how can I use aCC 3.30 installation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2007 11:19 AM
06-04-2007 11:19 AM
SolutionThe problem is in ld, not the compiler. You simply use the latest linker in all cases. Or a new enough ld that supports SDKROOT.
And A.03.30 does support floating installation.
You might want to use "tusc -fp -o tusc.out ld ..." to help you figure out why ld is getting an error but not printing any messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2007 06:45 PM
06-04-2007 06:45 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
In aCC 3.57 it works fine, but in aCC 3.30 it recursivly call some commands and exit.
Could you please compare this two outputs ?
- Tags:
- missing attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2007 08:08 PM
06-04-2007 08:08 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
As I said, the ld you have in /opt/aCC.03.30 doesn't support SDKROOT. You'll have to stop using SDKROOT with that version. Or you'll have to copy a newer ld into that path.
After all, ld should be upward compatible.
Looking at tusc shows it going from /usr/ccs/bin/ld to /opt/aCC.03.30/usr/ccs/bin/ld to /usr/ccs/lbin/ld64 to /opt/aCC.03.30/usr/ccs/bin/ld ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2007 05:02 PM
06-22-2007 05:02 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
You should also close this thread if you don't have any more questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2007 06:10 PM
06-26-2007 06:10 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
You can always reopen it to assign points:
http://forums1.itrc.hp.com/service/forums/helptips.do?#41
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2007 08:42 PM
06-26-2007 08:42 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
I assigned the points also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2007 09:12 PM
06-26-2007 09:12 PM
Re: ld doesn't work with 64bit support in aCC 3.30 when SDKROOT set
If you want to reach a perfect assignment score you can assign 0 points for the two responses telling you how the forums work.