[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mips build bug in 2.11.x
From: |
mike stump |
Subject: |
mips build bug in 2.11.x |
Date: |
Sat, 23 Jun 2001 14:35:52 -0700 (PDT) |
I'm trying to build on the 2.11.x release branch:
gcc -W -Wall -O2 -o as-new app.o as.o atof-generic.o bignum-copy.o cond.o
depend.o dwarf2dbg.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o
flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o
macro.o messages.o output-file.o read.o sb.o stabs.o subsegs.o symbols.o
write.o tc-mips.o obj-elf.o atof-ieee.o itbl-parse.o itbl-lex.o itbl-ops.o
e-mipself.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a
../libiberty/libiberty.a
Undefined first referenced
symbol in file
ecoff_directive_extern tc-mips.o
ld: fatal: Symbol referencing errors. No output written to as-new
collect2: ld returned 1 exit status
make[2]: *** [as-new] Error 1
:-(
This is killed by:
2001-06-07 H.J. Lu <address@hidden>
* config/tc-mips.c (mips_pseudo_table): Add "extern" if
MIPS_STABS_ELF is defined.
from ecoff.c:
#ifdef ECOFF_DEBUGGING
void
ecoff_directive_extern (ignore)
int ignore ATTRIBUTE_UNUSED;
{
[ ... ]
}
#endif /* ECOFF_DEBUGGING */
and in tc-mips.c:
#ifdef MIPS_STABS_ELF
{ "extern", ecoff_directive_extern, 0},
#endif
:-( Guess what, I bet ECOFF_DEBUGGING isn't defined for me and
MIPS_STABS_ELF is.
The question is, should I turn on ECOFF_DEBUGGING, or eject extern in
my case? I'm building for mips-wrs-vxworks. I'm trying out:
Index: tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.34.2.2
diff -p -p -c -r1.34.2.2 tc-mips.c
*** tc-mips.c 2001/06/11 10:04:49 1.34.2.2
--- tc-mips.c 2001/06/23 21:33:12
*************** static const pseudo_typeS mips_pseudo_ta
*** 795,802 ****
--- 796,805 ----
{"word", s_cons, 2},
#ifdef MIPS_STABS_ELF
+ #if ECOFF_DEBUGGING
{ "extern", ecoff_directive_extern, 0},
#endif
+ #endif
{ NULL, NULL, 0 },
};
------------------------------
It gets me past the building phase.
I also noticed a bug just like this with .file for the pentium on
vxworks, it wanted dwarf2, and I was doing aout and stabs at the time.
It used to work, and now doesn't. I'll report this separately.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mips build bug in 2.11.x,
mike stump <=