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

See the CrossGCC FAQ for lots more information.


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

UnExplainable xgcc ERROR (mc68020)!



PROBLEM:
    Building gcc m68k-coff cross-compiler fails when making libgcc1-asm.a on SunOS4.
    Error reports does not know what options 'm', 'c', '6', '8', '0', '2', '0' are.
    The native 2.95 gcc build finished ok, but with complaints of:
	1.  missing files that had to be copied over from the source directory 
                    such as texinfo/lib/system.h and getopt.h
	2. parse.o and xref.o missing in the $bin/gcc/java dir.
                   Had to put parse.c and xref.c dependancy in the java Makefile.
  
   I am building the 68020 cross-compiler using the "sh build-cross.sh" comand
   in the directory above the gcc-2.95.2 tree.
  It also had the missing files problem that the native build had, plus some 
  include directories not found or not specified in the build correctly. Got passed that
  by making the directories it was looking for and copying over files it was looking for.
  The problem is with xgcc trying to assemble libgcc1.S.
  I looked at libgcc1.S and there's nothing in there that references "mc68020".
  I've tried building other xgcc's, using old ones, making a different target. All fail.
  Did my build go wrong that led up to this point?

  Here's a description of the configuration:
HOST                             : sparc-sun-sunos4.1.4
TARGET                        : 68020
BUILD COMMAND    : sh build-cross.sh m68k-coff
SOURCE DIR               : /data/gnu/gcc-2.95.2
NATIVE DIR                 : /data/gnu/bin4
NATIVE GCC BUILD  : make bootstrap
CROSS GCC BUILD    : sh build-cross.sh

Here's where the error occurs:
 in b-m68k-coff/gcc; make libgcc1-asm.a to see error

DETAILED ERROR MESSAGE BELOW:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
cp ../../src/gcc/config/m68k/lb1sf68.asm libgcc1.S
for name in _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3  _double _float _floatex
_eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2  _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2
_lesf2; \
do \
  echo ${name}; \
    /data/gnu/b-m68k-coff/gcc/xgcc -B/data/gnu/b-m68k-coff/gcc/
    -B/usr/m68k-coff/bin/ -I/usr/m68k-coff/include -O2  -DCROSS_COMPILE
    -DIN_GCC    -g -O2 -I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
    -I. -I../../src/gcc -I../../src/gcc/config -I../../src/gcc/../include -c
    -DL${name} libgcc1.S; \
      if [ $? -eq 0 ] ; then true; else exit 1; fi; \
        mv libgcc1.o ${name}.o; \
          m68k-coff-ar rc tmplibgcc1.a ${name}.o; \
            rm -f ${name}.o; \
            done
            _mulsi3
            as: error: unknown option 'm'
            as: error: unknown option 'c'       
            as: error: unknown option '6'
            as: error: unknown option '8'
            as: error: unknown option '0'
            as: error: unknown option '2'
            as: error: unknown option '0'
            usage: as [-F[O][if]#] [-O[#]] [-S[C]] [-o objfile] [-L] [-R] [-Q]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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