* configuration error
@ 1998-05-12 15:25 Stefan Petters
1998-05-13 16:55 ` Philippe De Muyter
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Petters @ 1998-05-12 15:25 UTC (permalink / raw)
To: egcs
Hi,
I'm new to this list, but have looked into the archives without finding
a solution to my problem. I'm trying to make cross development toolset
for m68k-coff (no OS). I made several before (gcc-2.7.2 and binutils-2.6
and 2.7) but had not these problems.
I followed the guidlines in the faq and made my binutils this way:
cd /somewhere/
gtar -xvzf /pub/.../binutils-2.8.1.tgz
mkdir binutils
cd binutils
../binutils-2.8.1/configure --target=m68k-coff --with-gnu-as \
--with-gnu-ld --with-targets=all \
--prefix=/usr/local/m68k-coff/binutils-2.8.1
now I have various symlinks pointing to my cross-binaries which are
accessable via my PATH--variable:
m68k-coff-{as|ar|...}
{as|ar|...}-new
Now I have tried to make egcs
cd /somewhere/
gtar -xvzf /pub/.../egcs-1.0.2.tar.gz
mkdir egcs
cd egcs
../egcs-1.0.2/configure --target=m68k-coff --with-gnu-as --with-gnu-ld
I have tried some prefix values as well, but wanted to keep this
before I started configure new I cleaned up by making ``rm -rf *''
and each time I started a new make I made ``make clean'' before.
BTW: Yes my make is GNU--Make (Linux--box :)
now I tried
make
this left me
----------------------------SNIP--------------------------
gcc -DCROSS_COMPILE -DIN_GCC -g -O2 -DHAVE_CONFIG_H -I.
-I../../egcs-1.0.2/gcc -I../../egcs-1.0.2/gcc/config \
-DTARGET_MACHINE=\"m68k-coff\" \
-c `echo ../../egcs-1.0.2/gcc/collect2.c | sed 's,^\./,,'`
as: unrecognized option `-c68020'
make[1]: *** [collect2.o] Error 1
make[1]: Leaving directory `/a/batian/dist2/prakt/m68k-coff/tools/egcs/gcc'
make: *** [all-gcc] Error 2
----------------------------SNAP--------------------------
the I tried something out of the FAQ
make cross
this is what I got last:
-----------------------------SNIP-------------------------
/DIST/prakt/m68k-coff/tools/egcs/gcc/xgcc
-B/DIST/prakt/m68k-coff/tools/egcs/gcc/ -O2 -DCROSS_COMPILE -DIN_GCC
-g -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-fexceptions -m5200 -I. -I../../egcs-1.0.2/gcc
-I../../egcs-1.0.2/gcc/config -c -DL${name} \
../../egcs-1.0.2/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
m68k-coff-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
[... about 40 lines of these]
_new_handler
_op_delete
_bb
/var/tmp/cca30883.s: Assembler messages:
/var/tmp/cca30883.s:2106: Error: operands mismatch -- statement `move.b
#0,%a1' ignored
/var/tmp/cca30883.s:2107: Error: operands mismatch -- statement `move.b
%a1,(%a3,%a0.l)' ignored
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/a/batian/dist2/prakt/m68k-coff/tools/egcs/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/a/batian/dist2/prakt/m68k-coff/tools/egcs/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/a/batian/dist2/prakt/m68k-coff/tools/egcs/gcc'
make: *** [cross] Error 2
-----------------------------SNAP-------------------------
I think it's a pilot error, so this goes to egcs instead of egcs-bugs.
Is anyone there knowing what's going wrong?
Thanks in advance.
Regards,
Stefan.
--
----------------------------------------------------------------------
Stefan M. Petters Laboratory for Process Control and Realtime Systems -ooo
Arcisstr. 21 Technische Universitaet Muenchen --oooo
80290 Muenchen Tel: ++49/89-2892-3556 Fax: ++49/89-2892-3555 ----oo
Germany EMail: petters@ei.tum.de ---o
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: configuration error
1998-05-12 15:25 configuration error Stefan Petters
@ 1998-05-13 16:55 ` Philippe De Muyter
1998-05-18 2:09 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Philippe De Muyter @ 1998-05-13 16:55 UTC (permalink / raw)
To: Stefan Petters; +Cc: egcs
> /DIST/prakt/m68k-coff/tools/egcs/gcc/xgcc
> -B/DIST/prakt/m68k-coff/tools/egcs/gcc/ -O2 -DCROSS_COMPILE -DIN_GCC
> -g -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> -fexceptions -m5200 -I. -I../../egcs-1.0.2/gcc
> -I../../egcs-1.0.2/gcc/config -c -DL${name} \
> ../../egcs-1.0.2/gcc/libgcc2.c -o ${name}.o; \
> if [ $? -eq 0 ] ; then true; else exit 1; fi; \
> m68k-coff-ar rc tmplibgcc2.a ${name}.o; \
> rm -f ${name}.o; \
> done
> _muldi3
> [... about 40 lines of these]
> _new_handler
> _op_delete
> _bb
> /var/tmp/cca30883.s: Assembler messages:
> /var/tmp/cca30883.s:2106: Error: operands mismatch -- statement `move.b
> #0,%a1' ignored
> /var/tmp/cca30883.s:2107: Error: operands mismatch -- statement `move.b
> %a1,(%a3,%a0.l)' ignored
[...]
> I think it's a pilot error, so this goes to egcs instead of egcs-bugs.
I think it is a gcc error : gcc -m5200 generates invalid assembler
instructions for a cf5200 (and in this case even for any m68k family member)
Could you rerun the failed command (that's a `for' loop) for name=_bb,
replacing `-c -o ${name}.o' by `-S -dp', and show us the lines around
2106 of the produced .s file ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: configuration error
1998-05-13 16:55 ` Philippe De Muyter
@ 1998-05-18 2:09 ` Andreas Schwab
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 1998-05-18 2:09 UTC (permalink / raw)
To: Philippe De Muyter; +Cc: Stefan Petters, egcs
Philippe De Muyter <phdm@macqel.be> writes:
|> > /var/tmp/cca30883.s:2106: Error: operands mismatch -- statement `move.b
|> > #0,%a1' ignored
|> > /var/tmp/cca30883.s:2107: Error: operands mismatch -- statement `move.b
|> > %a1,(%a3,%a0.l)' ignored
|> [...]
|> > I think it's a pilot error, so this goes to egcs instead of egcs-bugs.
|> I think it is a gcc error : gcc -m5200 generates invalid assembler
|> instructions for a cf5200 (and in this case even for any m68k family member)
This is a bug in the assembler. The mcf5200 does support byte moves
from/to address registers, unlike the other m68k family members. An
upgrade to the latest binutils release will help.
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-05-18 2:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-12 15:25 configuration error Stefan Petters
1998-05-13 16:55 ` Philippe De Muyter
1998-05-18 2:09 ` Andreas Schwab
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).