This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libiberty and m68k-coff?


After wrestling a little getting things pounded out into the one-tree
configuration, and getting egcs-1.1.2 to compile and almost all of
newlib built, I'm now stuck with libiberty:

make[1]: Leaving directory `/usr/local/src/onepass/m68k/m68k-coff/newlib'
make[1]: Entering directory `/usr/local/src/onepass/m68k/m68k-coff/libiberty'
test x"yes" != xyes || \
  /usr/local/src/onepass/m68k/gcc/xgcc -B/usr/local/src/onepass/m68k/gcc/ -idirafter /usr/local/src/onepass/m68k/m68k-coff/newlib/targ-include -idirafter /usr/local/src/onepass/newlib/libc/include -nostdinc -c -DHAVE_CONFIG_H -g -Os -I. -I../../../libiberty/../include  -fpic ../../../libiberty/argv.c -o pic/argv.o
/tmp/cc0hCo8E.s: Assembler messages:
/tmp/cc0hCo8E.s:52: Error: parse error -- statement `lea (%pc,_GLOBAL_OFFSET_TABLE_@GOTPC),%a5' ignored
/tmp/cc0hCo8E.s:177: Error: parse error -- statement `lea (%pc,_GLOBAL_OFFSET_TABLE_@GOTPC),%a5' ignored
/tmp/cc0hCo8E.s:231: Error: parse error -- statement `lea (%pc,_GLOBAL_OFFSET_TABLE_@GOTPC),%a5' ignored
make[1]: *** [argv.o] Error 1
make[1]: Leaving directory `/usr/local/src/onepass/m68k/m68k-coff/libiberty'
make: *** [all-target-libiberty] Error 2

Is _GLOBAL_OFFSET_TABLE@GOTPC supposed to be defined in a header file
somewhere?

For the curious, here's the verbose version:

Reading specs from /usr/local/src/onepass/m68k/gcc/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 /usr/local/src/onepass/m68k/gcc/cpp -lang-c -nostdinc -v -I. -I../../../libiberty/../include -isystem /usr/local/src/onepass/m68k/gcc/include -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -Dmc68000 -D__embedded__ -D__mc68000__ -D__embedded__ -D__mc68000 -Asystem(embedded) -Amachine(mc68000) -D__OPTIMIZE__ -g -D__HAVE_68881__ -Dmc68020 -D__mc68020 -D__mc68020__ -DHAVE_CONFIG_H -idirafter /usr/local/src/onepass/m68k/m68k-coff/newlib/targ-include -idirafter /usr/local/src/onepass/newlib/libc/include ../../../libiberty/argv.c /tmp/ccSUaYEi.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (68k, Motorola syntax)
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../libiberty/../include
 /usr/local/src/onepass/m68k/gcc/include
 /usr/local/src/onepass/m68k/m68k-coff/newlib/targ-include
 /usr/local/src/onepass/newlib/libc/include
End of search list.
 /usr/local/src/onepass/m68k/gcc/cc1 /tmp/ccSUaYEi.i -quiet -dumpbase argv.c -g -O2 -version -fpic -o /tmp/ccMbTNex.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (m68k-coff) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
 /usr/local/src/onepass/m68k/gcc/as -mc68020 -o pic/argv.o /tmp/ccMbTNex.s
/tmp/ccMbTNex.s: Assembler messages:
/tmp/ccMbTNex.s:52: Error: parse error -- statement `lea (%pc,_GLOBAL_OFFSET_TABLE_@GOTPC),%a5' ignored
/tmp/ccMbTNex.s:177: Error: parse error -- statement `lea (%pc,_GLOBAL_OFFSET_TABLE_@GOTPC),%a5' ignored
/tmp/ccMbTNex.s:231: Error: parse error -- statement `lea (%pc,_GLOBAL_OFFSET_TABLE_@GOTPC),%a5' ignored

Sooo close... yet sooo far...  :)  I suppose if worse comes to worst
that I don't really need libiberty, since my target is an embedded '331
system, but it would be nice to have for the sake of completeness.

----
  Aaron J. Grier   |   Frye Electronics, Tigard, OR   |   aaron@frye.com
  "People who are more than casually interested in computers should have
   at least some idea of what the underlying hardware is like. Otherwise
   the programs they write will be pretty weird."   --   Donald Knuth
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]