* Re: [parisc-linux] Trouble building CVS binutils
1999-12-30 17:16 [parisc-linux] Trouble building CVS binutils Matthew Wilcox
@ 1999-12-30 17:16 ` Jeffrey A Law
1999-12-30 17:22 ` Matthew Wilcox
1999-12-30 19:18 ` Matthew Wilcox
1 sibling, 1 reply; 7+ messages in thread
From: Jeffrey A Law @ 1999-12-30 17:16 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: parisc-linux
In message <19991230121655.T12629@thepuffingroup.com>you write:
>
> I just attempted to build the binutils in CVS and ran across this problem.
> When building bfd/hpux-core.c, it stops with a parse error before uint64_t
> which is used in one of the hpux header files. <sys/_inttypes.h>
> does not define this type unless the __STDC_EXT__ symbol is defined.
> I added this symbol to the egcs spec file and binutils now builds, but
> I'm not sure this is the most appropriate fix. It probably is, since
> HPUX's headers seem to use this as a sign that the compiler supports
> `long long', but I'm not sure if that's the only thing it means.
Let me guess. You're using gcc on hpux11?
No released version of gcc supports hpux11 yet.
jeff
^ permalink raw reply [flat|nested] 7+ messages in thread
* [parisc-linux] Trouble building CVS binutils
@ 1999-12-30 17:16 Matthew Wilcox
1999-12-30 17:16 ` Jeffrey A Law
1999-12-30 19:18 ` Matthew Wilcox
0 siblings, 2 replies; 7+ messages in thread
From: Matthew Wilcox @ 1999-12-30 17:16 UTC (permalink / raw)
To: parisc-linux
I just attempted to build the binutils in CVS and ran across this problem.
When building bfd/hpux-core.c, it stops with a parse error before uint64_t
which is used in one of the hpux header files. <sys/_inttypes.h>
does not define this type unless the __STDC_EXT__ symbol is defined.
I added this symbol to the egcs spec file and binutils now builds, but
I'm not sure this is the most appropriate fix. It probably is, since
HPUX's headers seem to use this as a sign that the compiler supports
`long long', but I'm not sure if that's the only thing it means.
Now back to finding out why nm no longer likes to work on vmlinux...
--
"If I abstain from fun and such,
I'll probably amount to much;
But I shall stay the way I am,
Because I do not give a damn."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] Trouble building CVS binutils
1999-12-30 17:16 ` Jeffrey A Law
@ 1999-12-30 17:22 ` Matthew Wilcox
1999-12-30 17:42 ` Jeffrey A Law
0 siblings, 1 reply; 7+ messages in thread
From: Matthew Wilcox @ 1999-12-30 17:22 UTC (permalink / raw)
To: Jeffrey A Law; +Cc: parisc-linux
On Thu, Dec 30, 1999 at 10:16:33AM -0700, Jeffrey A Law wrote:
> Let me guess. You're using gcc on hpux11?
correct.
> No released version of gcc supports hpux11 yet.
oops, didn't realise that. i should build binaries on hpux-10 to run
them on hpux 11?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] Trouble building CVS binutils
1999-12-30 17:22 ` Matthew Wilcox
@ 1999-12-30 17:42 ` Jeffrey A Law
0 siblings, 0 replies; 7+ messages in thread
From: Jeffrey A Law @ 1999-12-30 17:42 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: parisc-linux
In message <19991230122228.U12629@thepuffingroup.com>you write:
> > No released version of gcc supports hpux11 yet.
>
> oops, didn't realise that. i should build binaries on hpux-10 to run
> them on hpux 11?
It's not the binaries that are the problem, but the changes HP made to their
header files for hpux11. So using hpux10 binaries doesn't solve the problem.
[ There's some other hpux11 changes that effect C++ and shared libraries, but I
don't think those changes would effect what you're doing. ]
I put hpux11 support into the GCC development tree over the summer; it should
be possible to take that code and retrofit it into gcc-2.95.x.
jeff
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] Trouble building CVS binutils
1999-12-30 17:16 [parisc-linux] Trouble building CVS binutils Matthew Wilcox
1999-12-30 17:16 ` Jeffrey A Law
@ 1999-12-30 19:18 ` Matthew Wilcox
1999-12-30 19:28 ` Jeffrey A Law
1 sibling, 1 reply; 7+ messages in thread
From: Matthew Wilcox @ 1999-12-30 19:18 UTC (permalink / raw)
To: parisc-linux
On Thu, Dec 30, 1999 at 12:16:55PM -0500, Matthew Wilcox wrote:
> Now back to finding out why nm no longer likes to work on vmlinux...
I'm closer...
in bfd/som.c, function setup_sections(), in the subspace_index loop, around
line 2025 here:
subspace_asect->alignment_power = log2 (subspace.alignment);
if (subspace_asect->alignment_power == -1)
goto error_return;
subspace.alignment is _0_ in one of the subspaces. HP's nm manages
just fine. GNU's bails, which actually seems pretty reasonable to me :-)
Two questions spring to mind:
Why is the linker producing a subspace with an alignment of 0?
What should BFD do when it encounters a file with such an alignment?
I shall continue investigating to see if I can find the answer to #1.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] Trouble building CVS binutils
1999-12-30 19:18 ` Matthew Wilcox
@ 1999-12-30 19:28 ` Jeffrey A Law
1999-12-30 20:49 ` Matthew Wilcox
0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey A Law @ 1999-12-30 19:28 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: parisc-linux
In message <19991230141847.W12629@thepuffingroup.com>you write:
> I'm closer...
>
> in bfd/som.c, function setup_sections(), in the subspace_index loop, around
> line 2025 here:
>
> subspace_asect->alignment_power = log2 (subspace.alignment);
> if (subspace_asect->alignment_power == -1)
> goto error_return;
>
> subspace.alignment is _0_ in one of the subspaces. HP's nm manages
> just fine. GNU's bails, which actually seems pretty reasonable to me :-)
> Two questions spring to mind:
> Why is the linker producing a subspace with an alignment of 0?
> What should BFD do when it encounters a file with such an alignment?
According to the SOM spec the subspace alignment must be greater than zero.
Thus, this seems like a bug in the HP linker.
jeff
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] Trouble building CVS binutils
1999-12-30 19:28 ` Jeffrey A Law
@ 1999-12-30 20:49 ` Matthew Wilcox
0 siblings, 0 replies; 7+ messages in thread
From: Matthew Wilcox @ 1999-12-30 20:49 UTC (permalink / raw)
To: Jeffrey A Law; +Cc: parisc-linux
On Thu, Dec 30, 1999 at 12:28:48PM -0700, Jeffrey A Law wrote:
> According to the SOM spec the subspace alignment must be greater than zero.
> Thus, this seems like a bug in the HP linker.
OK, it seems we were tripping it with the 2.3 kernel. We had:
.SPACE $CODE$
.SUBSPA $TEXT$
(a function)
.SUBSPA $DATA$
(some more functions)
Changing this to:
.SPACE $CODE$
.SUBSPA $DATA$
(a function)
(some more functions)
seems to work OK.
Thanks to prumpf for his help tracking this down.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-12-30 20:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-30 17:16 [parisc-linux] Trouble building CVS binutils Matthew Wilcox
1999-12-30 17:16 ` Jeffrey A Law
1999-12-30 17:22 ` Matthew Wilcox
1999-12-30 17:42 ` Jeffrey A Law
1999-12-30 19:18 ` Matthew Wilcox
1999-12-30 19:28 ` Jeffrey A Law
1999-12-30 20:49 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox