List Info

Thread: HP-UX Chicken/Egg with binutils?




HP-UX Chicken/Egg with binutils?
user name
2008-04-15 16:21:56
So to build gcc on HP-UX, I need to build binutils first, as
the GNU
docs say gas is required for HP-UX + itanium.  So I go to
compile binutils-2.9.1...and I can't get it to recognize my
host...?

> ./configure

Config.guess failed to determine the host type.  You need to
specify
one.
> ./configure --host=ia64-hp-hpux11

Invalid configuration `ia64-hp-hpux11': machine `ia64-hp'
not
recognized
Invalid configuration `ia64-hp-hpux11': machine `ia64-hp'
not
recognized
Unrecognized host system name ia64-hp-hpux11.

> grep ia64 *

Looking through config.guess, it appears to branch based on
uname, but
I can't find any place where it would match uname -m's
"ia64" on HP-UX
itanium.

So...does binutils support ia64 on HP-UX?  GCC's requirement
would
seem to imply yes since it's required, but how to build it?

Thanks.

Re: HP-UX Chicken/Egg with binutils?
user name
2008-04-16 12:09:37
Andrew Fabbro wrote:
> So to build gcc on HP-UX, I need to build binutils
first, as the GNU
> docs say gas is required for HP-UX + itanium.

Yes.

> So I go to compile binutils-2.9.1...and I can't get it
to recognize
> my host...?

Wow.  Binutils-2.9.1 is quite old from around 1998.  I
didn't look
closely but I think ten years ago was before ia64 support
was added! 

Please use a newer version.  Version 2.18 is listed as the
current
release.  I think you will have much better luck.

  http://www.gnu.
org/software/binutils/

Bob



Re: HP-UX Chicken/Egg with binutils?
user name
2008-04-16 12:25:31
Yes, I mentally mis-sorted and thought 2.9.1 > 2.18...it is, strictly decimally speaking

2.9.1 recognizes ia64, but doesn't compile (fails in elflink.c), at least not with HP's stock K&R cc.  Unfortunately, I can't build gcc until I build binutils...I'm going to see if I can track down HP's ansic compiler and see if that produces better results.


On Wed, Apr 16, 2008 at 10:09 AM, Bob Proulx < bobproulx.com">bobproulx.com> wrote:
Andrew Fabbro wrote:
&gt; So to build gcc on HP-UX, I need to build binutils first, as the GNU
> docs say gas is required for HP-UX + itanium.

Yes.

> So I go to compile binutils-2.9.1...and I can't get it to recognize
> my host...?

Wow.  Binutils-2.9.1 is quite old from around 1998.  I didn't look
closely but I think ten years ago was before ia64 support was added!

Please use a newer version.  Version 2.18 is listed as the current
release.  I think you will have much better luck.

 http://www.gnu.org/software/binutils/

Bob

Re: HP-UX Chicken/Egg with binutils?
user name
2008-04-16 12:37:50
andrew fabbro wrote:
> Yes, I mentally mis-sorted and thought 2.9.1 >
2.18...it is, strictly
> decimally speaking 

Being the pedantic person I am (yes, a-r is hyphenated) you
can't mean
decimally because 9 < 18 in a decimal world. 

> 2.9.1 recognizes ia64, but doesn't compile (fails in
elflink.c), at least

Uhm...  Seeing 2.9.1 confuses me.  You know that 2.9.1 is
ten years
old because we just talked about it.  Or did you mean that
you did
download 2.18 and binutils-2.18 is having a problem with
elflink.c?

> not with HP's stock K&R cc.  Unfortunately, I can't
build gcc until I build
> binutils...I'm going to see if I can track down HP's
ansic compiler and see
> if that produces better results.

Bootstrapping a bare system quite an involved process.

Many people use the prebuilt tools at "The Porting and
Archiving
Centre for HP-UX" to good effect.  Perhaps they would
be useful to you
as well.

  http://hpux.cs.utah.edu/


Bob



Re: HP-UX Chicken/Egg with binutils?
user name
2008-04-16 12:54:00
Sorry, meant that I was using 2.18 and it recognized ia64. ; 2.18 has the issue in elflink.c.

I'll have a look at the link you sent. ; Unfortunately, bootstrapping is likely my only recourse, as I am not the sysadmin...I'm hoping to have better results with HP's optional ANSI C compiler.




On Wed, Apr 16, 2008 at 10:37 AM, Bob Proulx < bobproulx.com">bobproulx.com> wrote:
andrew fabbro wrote:
&gt; Yes, I mentally mis-sorted and thought 2.9.1 > 2.18...it is, strictly
> decimally speaking

Being the pedantic person I am (yes, a-r is hyphenated) you can't mean
decimally because 9 < 18 in a decimal world.

> 2.9.1 recognizes ia64, but doesn't compile (fails in elflink.c), at least

Uhm...  Seeing 2.9.1 confuses me.  You know that 2.9.1 is ten years
old because we just talked about it.  Or did you mean that you did
download 2.18 and binutils-2.18 is having a problem with elflink.c?

> not with HP's stock K&R cc.  Unfortunately, I can't build gcc until I build
&gt; binutils...I'm going to see if I can track down HP's ansic compiler and see
> if that produces better results.

Bootstrapping a bare system quite an involved process.

Many people use the prebuilt tools at "The Porting and Archiving
Centre for HP-UX"; to good effect.  Perhaps they would be useful to you
as well.

 http://hpux.cs.utah.edu/

Bob

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )