Operating System - HP-UX
1832993 Members
3752 Online
110048 Solutions
New Discussion

Re: binutils depot corrupted?

 
Clay Jones_2
Frequent Advisor

binutils depot corrupted?

I downloaded the binutils depot for my platform from here:

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

When I run swinstall on it, I get the following error messagE:

"Currently there are no products on this source which are compatible with the target...."

I've downloaded an unzipped twice to make sure. This depot is a prerequisite for gcc.

Thanks.
20 REPLIES 20
Mel Burslan
Honored Contributor

Re: binutils depot corrupted?

assuming you have downloaded the .gz file

after decompressing it by

gzip file_name.tar.gz

then

exploding the tar file by

tar -xvf file_name.tar

you need to expand the depot and ascii files by running

sh file_name

after this you will end up with a file which has an extension of .depot

this depot file is the one you need to use as the source.
________________________________
UNIX because I majored in cryptology...
Mel Burslan
Honored Contributor

Re: binutils depot corrupted?

also the link you gave, when you select gz file option to download is yielding a depot for HP-UX v11.11. Make sure this is the version of your OS.
________________________________
UNIX because I majored in cryptology...
Clay Jones_2
Frequent Advisor

Re: binutils depot corrupted?

Thanks for the reply.

The software downloaded was a ".gz", that is it was only gzipped. Unzipped reveals the ".depot".

Still having the problem, swlist produces:

# Initializing...
# Contacting target "xxxxxx"...
#
# Target: xxxxx:/usr/local/src/binutils_2.14_hppa-hp-hpux11.11_depot
#

#
# No Bundle(s) on xxxxxx:/usr/local/src/binutils_2.14_hppa-hp-hpux11.11_depot
# Product(s):
#

binutils 2.14


$ uname -a
HP-UX xxxxxxx B.11.11 U 9000/820 2005420492 unlimited-user license
Bharat Katkar
Honored Contributor

Re: binutils depot corrupted?

When you download a patch you need to unshar it first.

# sh PHXX_yyyy
( this will uncompress the file into two giving you
1. PHXX_yyyy.depot file (Actual Patch)
2. PHXX_yyyy.text file (Information of Patch regarding installations,dependencies, etc.)

Then you have two options either you copy it to default depot or directly install using swinstall.
1. use swcopy
2. #swinstall -s /tmp/PHXX_yyyy.depot
(Assumed you copied it into tmp file.)

This works fine.

You need to know a lot to actually know how little you know
A. Clay Stephenson
Acclaimed Contributor

Re: binutils depot corrupted?

Most likely, you have downloaded a PA-RISC version rather than an Itanium version or vice versa. Just make sure that your download matches the target OS release.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: binutils depot corrupted?

By the way, you can also get these utilities and compilers from any of the HP-UX Porting Centre's:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.3.2/
If it ain't broke, I can fix that.
H.Merijn Brand (procura
Honored Contributor

Re: binutils depot corrupted?

Clay, I don't think so. 11.11 is pa-risc. Itanium is 11.2x

binutils-2.14 is also included in my binary port for 11.11 (11i) of gcc-3.4.0

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Clay Jones_2
Frequent Advisor

Re: binutils depot corrupted?

Thank you all. I do have the correct version:

DEPOT VERSION
binutils_2.14_hppa-hp-hpux11.11_depot

$ uname -a
HP-UX xxxxx B.11.11 U 9000/820 xxxxxxxx unlimited-user license

As opposed to an Itanium:
HP-UX xxxxx B.11.23 U ia64 xxxxxxxxxx unlimited-user license


Clay Jones_2
Frequent Advisor

Re: binutils depot corrupted?

Hello,

Thank you all for your workarounds, but I'd really like to use HP's depots for installing gcc. There must be some incompatibility with their binutils and my system, and I'd like to flesh out what it is.

BTW, the ports pages are not supporting 11.11:

"New packages or new versions of existing packages will be built on HP-UX 11.00 and 11.22 only...Also note that the 2 platform build system means that we are not yet supporting HP-UX 11.11, but almost all 11.00 packages should install correctly on 11.11."

Doesn't fill me with confidence. Again, I'd like to get HP's packages to work if possible, I do have the correct depot for my machine.

Again, I already have a ".depot" file after the gunzip. Running swinstall on this file bombs with the error in my original post.

Thank you all for your help...

H.Merijn Brand (procura
Honored Contributor

Re: binutils depot corrupted?

11.00 binutils and gcc will probably _run_ on 11.11 but these are two of the packages that may play bad on you. `normal' util built on 11.00 work fine on 11i, but gcc, binutils and perl (the one's I know of) realy prefer specific 11.11 builds

The porting center indeed does not have 11.11 ports of gcc, which - just like mine - does include binutils. (I don't use depots, but plain tar.bzip2)

HP har a real 11.11 port available here: http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

HTH, Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Jeroen Peereboom
Honored Contributor

Re: binutils depot corrupted?

Clay,

you can do an swlist -file(s) to list all files in the product in the depot to see if this yields an error. Probably not.

If swinstall refuses to install because of 'incompatibility' you either downloaded the wrong file (HP gave you the wrong file) or the metadata of the package are incorrect.

If you change the swinstall options, you can at least check the product in the GUI for its prerequisites (OS and version, HW, ...).

(I would not install it before checked the complete contents of the package in terms of files and directories.)

You may need to contact HP. There is a feedback button on the HP DSPP site.

JP.
Jeroen Peereboom
Honored Contributor

Re: binutils depot corrupted?

I meant 'swlist -l file'...

JP
Clay Jones_2
Frequent Advisor

Re: binutils depot corrupted?

procura:
The url you provided contains the binutils I'm having trouble with (see my original post).

Thanks for all of the suggestions....
Sanjay_6
Honored Contributor

Re: binutils depot corrupted?

Hi Clay,

Hope you have not downloaded the depot first to your windows workstation and then ftp-ied it to unix. Sometimes that corrupts the depot.

To avoid this, i normally download the depot directly to the unix box, bypassing the windows WS completely.

Hope this helps.

Regds
Clay Jones_2
Frequent Advisor

Re: binutils depot corrupted?

That's a good point.

I'm am downloading to an OS X box and then using SCP to copy the files over, but I've never had any issues using this method before. I am not unzipping them on my machine, but using HP's gzip to do so.

I'm not having issues loading up the gcc depot which I got in the same way, but of course it fails because binutils is a corequisite.
H.Merijn Brand (procura
Honored Contributor

Re: binutils depot corrupted?

If the gunzip went OK, the transfer was fine too. gzip will not decompress a corrupted transfer

I traced other URL's I had, but no gcc/binutils for 11i. So either contact HP, or use my port. Sorry I don't have depots.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Mel Burslan
Honored Contributor

Re: binutils depot corrupted?

Clay,

Just for the kicks, even if the name of the file ends with depot, when you run

# sh binutils_2.14_hppa-hp-hpux11.11_depot

what happens ?

because _depot did not sound too kosher to me. usually the actual depots end in .depot if they come from hp.

running the above command may yield your actual depot for you.

I don't think you can lose anything by trying.

HTH

________________________________
UNIX because I majored in cryptology...
Clay Jones_2
Frequent Advisor

Re: binutils depot corrupted?

I think I've got it. Using "swinstall -x allow_incompatible=true" allowed the install to proceed. I also had to turn off dependency checking afterwards to install gcc successfully.

Man these depots need some work, or at least some help making decisions.

I was able to successfully compile hello world afterwards. Now on to mo' better software....

Thanks again to all who helped.
H.Merijn Brand (procura
Honored Contributor

Re: binutils depot corrupted?

Please take the time to read my page (chapter about gcc: http://mirrors.develooper.com/hpux/#Gcc ) anyway, and use the provided build to build gcc from source again to make sure it _works_. On my page a sentence reads "When your gcc starts complaining about size_t, you have probably installed a 11.00 build on a 11i machine. Choosing the correct build is your key to success."

Also read http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137 to see how you can express thanks in a more forumlike way

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Juergen Tappe
Valued Contributor

Re: binutils depot corrupted?

Just to check the depot file execute :

tar tvf gcc....depot ; echo $?

depot files are tar archives - so the tar should return 0 if not the file is defintly corrupt.

If 0 try to use the -x allow_incompatible option like stated above ....
Working together