* Re: java fails to build
@ 1999-01-27 11:33 Mike Stump
1999-01-27 12:52 ` autoconf between stages. was: " Robert Lipe
1999-01-31 23:58 ` Mike Stump
0 siblings, 2 replies; 6+ messages in thread
From: Mike Stump @ 1999-01-27 11:33 UTC (permalink / raw)
To: robertlipe; +Cc: egcs
> The Linux linker seems to see the two symbols and not complain:
> $ nm class.o parse.o | grep WORDS_TO_D
> 0000002c t WORDS_TO_DOUBLE
> 0000002c t WORDS_TO_DOUBLE
> The SCO linkers see duplicate global definitions for the two symbols and
> fusses.
> $ nm class.o parse.o | grep WORDS_TO
> [198] | 124| 28|FUNC |GLOB |0 |1 |WORDS_TO_DOUBLE
> [199] | 92| 31|FUNC |GLOB |0 |1 |WORDS_TO_LONG
> [493] | 124| 28|FUNC |GLOB |0 |1 |WORDS_TO_DOUBLE
> [494] | 92| 31|FUNC |GLOB |0 |1 |WORDS_TO_LONG
Ah, do:
make class.o CFLAGS=-E | more
in java, and look at the source:
static double
WORDS_TO_DOUBLE(uint32 hi, uint32 lo)
{ union DWord wu;
wu.l = WORDS_TO_LONG(hi, lo);
return wu.d;
}
In the javaop.h file, I see:
inline jdouble
WORDS_TO_DOUBLE(jword hi, jword lo)
{ union DWord wu;
wu.l = WORDS_TO_LONG(hi, lo);
return wu.d;
}
Do you -Dinline ? Bad. Do you compile with something other than gcc,
bad! Do you autoconf with something other than gcc for stage1, and
then use gcc, but don't reautoconf, bad!
^ permalink raw reply [flat|nested] 6+ messages in thread
* autoconf between stages. was: java fails to build
1999-01-27 11:33 java fails to build Mike Stump
@ 1999-01-27 12:52 ` Robert Lipe
1999-01-31 23:58 ` Robert Lipe
1999-01-31 23:58 ` Mike Stump
1 sibling, 1 reply; 6+ messages in thread
From: Robert Lipe @ 1999-01-27 12:52 UTC (permalink / raw)
To: Mike Stump; +Cc: egcs
> > The SCO linkers see duplicate global definitions for the two symbols and
> > fusses.
>
> > $ nm class.o parse.o | grep WORDS_TO
> > [198] | 124| 28|FUNC |GLOB |0 |1 |WORDS_TO_DOUBLE
> > [199] | 92| 31|FUNC |GLOB |0 |1 |WORDS_TO_LONG
> > [493] | 124| 28|FUNC |GLOB |0 |1 |WORDS_TO_DOUBLE
> > [494] | 92| 31|FUNC |GLOB |0 |1 |WORDS_TO_LONG
>
> make class.o CFLAGS=-E | more
You're definitely on the right track with that way of thinking, Mike.
> Do you -Dinline ? Bad.
*I* didn't -Dinline. But stay tuned....
> Do you compile with something other than gcc, bad!
No, this is with the standard 'make bootstrap' target and it's
definitely building java/* with the previous stage xgcc.
> Do you autoconf with something other than gcc for stage1, and then use
> gcc, but don't reautoconf, bad!
Bingo.
Yes, I was doing a full bootstrap which means that autoconf and stage1
was run with a compiler that doesn't support 'inline'. Therefore, we
see:
auto-host.h:#define inline
Exactly what part of the Makefile is supposed to rerun autoconf to
regenerate this between passes?
Thanx,
RJL
^ permalink raw reply [flat|nested] 6+ messages in thread
* autoconf between stages. was: java fails to build
1999-01-27 12:52 ` autoconf between stages. was: " Robert Lipe
@ 1999-01-31 23:58 ` Robert Lipe
0 siblings, 0 replies; 6+ messages in thread
From: Robert Lipe @ 1999-01-31 23:58 UTC (permalink / raw)
To: Mike Stump; +Cc: egcs
> > The SCO linkers see duplicate global definitions for the two symbols and
> > fusses.
>
> > $ nm class.o parse.o | grep WORDS_TO
> > [198] | 124| 28|FUNC |GLOB |0 |1 |WORDS_TO_DOUBLE
> > [199] | 92| 31|FUNC |GLOB |0 |1 |WORDS_TO_LONG
> > [493] | 124| 28|FUNC |GLOB |0 |1 |WORDS_TO_DOUBLE
> > [494] | 92| 31|FUNC |GLOB |0 |1 |WORDS_TO_LONG
>
> make class.o CFLAGS=-E | more
You're definitely on the right track with that way of thinking, Mike.
> Do you -Dinline ? Bad.
*I* didn't -Dinline. But stay tuned....
> Do you compile with something other than gcc, bad!
No, this is with the standard 'make bootstrap' target and it's
definitely building java/* with the previous stage xgcc.
> Do you autoconf with something other than gcc for stage1, and then use
> gcc, but don't reautoconf, bad!
Bingo.
Yes, I was doing a full bootstrap which means that autoconf and stage1
was run with a compiler that doesn't support 'inline'. Therefore, we
see:
auto-host.h:#define inline
Exactly what part of the Makefile is supposed to rerun autoconf to
regenerate this between passes?
Thanx,
RJL
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: java fails to build
1999-01-27 11:33 java fails to build Mike Stump
1999-01-27 12:52 ` autoconf between stages. was: " Robert Lipe
@ 1999-01-31 23:58 ` Mike Stump
1 sibling, 0 replies; 6+ messages in thread
From: Mike Stump @ 1999-01-31 23:58 UTC (permalink / raw)
To: robertlipe; +Cc: egcs
> The Linux linker seems to see the two symbols and not complain:
> $ nm class.o parse.o | grep WORDS_TO_D
> 0000002c t WORDS_TO_DOUBLE
> 0000002c t WORDS_TO_DOUBLE
> The SCO linkers see duplicate global definitions for the two symbols and
> fusses.
> $ nm class.o parse.o | grep WORDS_TO
> [198] | 124| 28|FUNC |GLOB |0 |1 |WORDS_TO_DOUBLE
> [199] | 92| 31|FUNC |GLOB |0 |1 |WORDS_TO_LONG
> [493] | 124| 28|FUNC |GLOB |0 |1 |WORDS_TO_DOUBLE
> [494] | 92| 31|FUNC |GLOB |0 |1 |WORDS_TO_LONG
Ah, do:
make class.o CFLAGS=-E | more
in java, and look at the source:
static double
WORDS_TO_DOUBLE(uint32 hi, uint32 lo)
{ union DWord wu;
wu.l = WORDS_TO_LONG(hi, lo);
return wu.d;
}
In the javaop.h file, I see:
inline jdouble
WORDS_TO_DOUBLE(jword hi, jword lo)
{ union DWord wu;
wu.l = WORDS_TO_LONG(hi, lo);
return wu.d;
}
Do you -Dinline ? Bad. Do you compile with something other than gcc,
bad! Do you autoconf with something other than gcc for stage1, and
then use gcc, but don't reautoconf, bad!
^ permalink raw reply [flat|nested] 6+ messages in thread
* java fails to build
1999-01-27 8:47 Robert Lipe
@ 1999-01-31 23:58 ` Robert Lipe
0 siblings, 0 replies; 6+ messages in thread
From: Robert Lipe @ 1999-01-31 23:58 UTC (permalink / raw)
To: egcs
Sometime in the last 48 hours Java has stopped building for me. Since this
spans the merge and several large checkins, does this look familar to anyone?
stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-sco3.2v5.0.5/bin/ -DIN_GCC -W -Wall -O2 -g -o ../jc1 \
parse.o class.o decl.o expr.o constants.o lang.o typeck.o except.o verify.o zextract.o jcf-io.o jcf-parse.o mangle.o jcf-write.o buffer.o check-init.o jcf-depend.o jcf-path.o `cat ../stamp-objlist` `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi` ../../libiberty/libiberty.a
class.o: fatal error: symbol `WORDS_TO_DOUBLE` multiply-defined, also in file parse.o
^ permalink raw reply [flat|nested] 6+ messages in thread
* java fails to build
@ 1999-01-27 8:47 Robert Lipe
1999-01-31 23:58 ` Robert Lipe
0 siblings, 1 reply; 6+ messages in thread
From: Robert Lipe @ 1999-01-27 8:47 UTC (permalink / raw)
To: egcs
Sometime in the last 48 hours Java has stopped building for me. Since this
spans the merge and several large checkins, does this look familar to anyone?
stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-sco3.2v5.0.5/bin/ -DIN_GCC -W -Wall -O2 -g -o ../jc1 \
parse.o class.o decl.o expr.o constants.o lang.o typeck.o except.o verify.o zextract.o jcf-io.o jcf-parse.o mangle.o jcf-write.o buffer.o check-init.o jcf-depend.o jcf-path.o `cat ../stamp-objlist` `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi` ../../libiberty/libiberty.a
class.o: fatal error: symbol `WORDS_TO_DOUBLE` multiply-defined, also in file parse.o
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-01-31 23:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-27 11:33 java fails to build Mike Stump
1999-01-27 12:52 ` autoconf between stages. was: " Robert Lipe
1999-01-31 23:58 ` Robert Lipe
1999-01-31 23:58 ` Mike Stump
-- strict thread matches above, loose matches on Subject: below --
1999-01-27 8:47 Robert Lipe
1999-01-31 23:58 ` Robert Lipe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).