* Re: Q:Error building cross compiler for mips-mips-linux on Solaris.
@ 1998-11-04 2:42 Madhu Krishnamurthy
1998-11-06 4:27 ` Jeffrey A Law
0 siblings, 1 reply; 6+ messages in thread
From: Madhu Krishnamurthy @ 1998-11-04 2:42 UTC (permalink / raw)
To: krishm, law; +Cc: egcs
> From law@upchuck.cygnus.com Tue Nov 3 19:37 PST 1998
> "as", not "as-new" similarly for "ld".
>
> jeff
Thanks for your reply.
I copied the as,ld etc into
install/lib/gcc-lib/mips-mips-linux/egcs-2.91.57/
xgcc seems to be picking this up. So I went past my earlier problem
a little bit. I now know that it is using the correct assembler but
I am getting these errors.
_muldi3
Reading specs from
/home/k2_b/krishm/gcc/tryegcs/2inhibit_lib/build/gcc/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
/home/k2_b/krishm/gcc/tryegcs/2inhibit_lib/build/gcc/cpp -lang-c -v
-I./include -I. -I../../../egcs-1.1b/gcc -I../../../egcs-1.1b/gcc/config
-isystem /home/k2_b/krishm/gcc/tryegcs/2inhibit_lib/build/gcc/include
-undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -Dmips -Dunix -Dhost_mips -DMIPSEB
-DR3000 -DSYSTYPE_BSD43 -D_mips -D_unix -D_host_mips -D_MIPSEB -D_R3000
-D_SYSTYPE_BSD43 -D__mips__ -D__unix__ -D__host_mips__ -D__MIPSEB__
-D__R3000__ -D__SYSTYPE_BSD43__ -D___mips__ -D___unix__ -D___host_mips__
-D_MIPSEB -D_R3000 -D_SYSTYPE_BSD43 -D__mips -D__unix -D__host_mips
-D__MIPSEB -D__R3000 -D__SYSTYPE_BSD43 -D___mips -D___unix -D___host_mips
-Asystem(unix) -Asystem(bsd) -Acpu(mips) -Amachine(mips) -D__OPTIMIZE__ -g
-g1 -D__LANGUAGE_C -D_LANGUAGE_C -DLANGUAGE_C -D__SIZE_TYPE__=unsigned int
-D__PTRDIFF_TYPE__=int -DCROSS_COMPILE -DIN_GCC -DSVR4
-D__SSIZE_TYPE__=int -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DL_muldi3
../../../egcs-1.1b/gcc/libgcc2.c /var/tmp/ccctaray.i
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) [AL 1.1, MM 40]
BSD Mips
#include "..." search starts here:
#include <...> search starts here:
include
.
../../../egcs-1.1b/gcc
../../../egcs-1.1b/gcc/config
/home/k2_b/krishm/gcc/tryegcs/2inhibit_lib/build/gcc/include
/home/k2_b/krishm/gcc/tryegcs/2inhibit_lib/install/mips-mips-linux/sys-inc
lude
End of search list.
/home/k2_b/krishm/gcc/tryegcs/2inhibit_lib/build/gcc/cc1
/var/tmp/ccctaray.i -quiet -dumpbase libgcc2.c -g -g1 -O2 -O2 -version -o
/var/tmp/ccg3mWAo.s
GNU C version egcs-2.91.57 19980901 (egcs-1.1 release) (mips-mips-linux)
compiled by GNU C version 2.7.2.1.
/home/k2_b/krishm/gcc/tryegcs/2inhibit_lib/install/lib/gcc-lib/mips-mips-l
inux/egcs-2.91.57/as -O2 -g -g1 -v -o _muldi3.o /var/tmp/ccg3mWAo.s
GNU assembler version 2.9 (mips-mips-linux), using BFD version 2.9
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/var/tmp/ccg3mWAo.s: Assembler messages:
/var/tmp/ccg3mWAo.s:9: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:9: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:9: Error: expected comma after name `' in .size
directive
/var/tmp/ccg3mWAo.s:9: Error: Rest of line ignored. First ignored
character is `4'.
/var/tmp/ccg3mWAo.s:9: Warning: Bad COFF debugging information
/var/tmp/ccg3mWAo.s:10: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:10: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:11: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:11: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:12: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:12: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:13: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:13: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:14: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:14: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:15: Error: expected comma after name `' in .size
directive
/var/tmp/ccg3mWAo.s:15: Error: Rest of line ignored. First ignored
character is `4'.
/var/tmp/ccg3mWAo.s:16: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:16: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:16: Error: expected comma after name `' in .size
directive
/var/tmp/ccg3mWAo.s:16: Error: Rest of line ignored. First ignored
character is `4'.
/var/tmp/ccg3mWAo.s:16: Warning: Bad COFF debugging information
/var/tmp/ccg3mWAo.s:17: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:17: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:18: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:18: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:19: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:19: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:20: Error: ignoring unrecognized symbol type ""
/var/tmp/ccg3mWAo.s:20: Error: Rest of line ignored. First ignored
character is `0'.
/var/tmp/ccg3mWAo.s:21: Error: expected comma after name `' in .size
directive
/var/tmp/ccg3mWAo.s:21: Error: Rest of line ignored. First ignored
character is `4'.
/var/tmp/ccg3mWAo.s:21: Fatal error: too many st_End's
make[1]: *** [libgcc2.a] Error 1
make: *** [cross] Error 2
appreciate any suggestions.
thanks
madhu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Q:Error building cross compiler for mips-mips-linux on Solaris.
1998-11-04 2:42 Q:Error building cross compiler for mips-mips-linux on Solaris Madhu Krishnamurthy
@ 1998-11-06 4:27 ` Jeffrey A Law
0 siblings, 0 replies; 6+ messages in thread
From: Jeffrey A Law @ 1998-11-06 4:27 UTC (permalink / raw)
To: Madhu Krishnamurthy; +Cc: egcs
In message < 199811040352.TAA17355@yakuza.sanjose >you write:
>
> I copied the as,ld etc into
>
> install/lib/gcc-lib/mips-mips-linux/egcs-2.91.57/
>
> xgcc seems to be picking this up. So I went past my earlier problem
> a little bit. I now know that it is using the correct assembler but
> I am getting these errors.
Sounds like the compiler & assembler disagree on some aspect of the
assembly language.
I don't work on mips-linux ports at all, so I don't know what if anything
to look for.
You'll probably have to look at the generated assembler code to see what
the assembler is complaining about.
jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Q:Error building cross compiler for mips-mips-linux on Solaris.
1998-11-02 15:20 Madhu Krishnamurthy
@ 1998-11-03 21:28 ` Jeffrey A Law
0 siblings, 0 replies; 6+ messages in thread
From: Jeffrey A Law @ 1998-11-03 21:28 UTC (permalink / raw)
To: Madhu Krishnamurthy; +Cc: egcs
In message < 199811021816.KAA13525@yakuza.sanjose >you write:
> I have actually installed the binutils2.9.1 - as,ld,ranlib etc.
> I created links in my build directory so that the Makefile finds them
> as as-new,ld-new etc. I added a line to the Makefile to
> echo AS_FOR_TARGET. From this echo I can see that the Makefile knows
> AS_FOR_TARGET is as-new which is a mips assembler hosted on Sun.
"as", not "as-new" similarly for "ld".
jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Q:Error building cross compiler for mips-mips-linux on Solaris.
@ 1998-11-02 15:20 Madhu Krishnamurthy
1998-11-03 21:28 ` Jeffrey A Law
0 siblings, 1 reply; 6+ messages in thread
From: Madhu Krishnamurthy @ 1998-11-02 15:20 UTC (permalink / raw)
To: egcs
> From law@hurl.cygnus.com Sat Oct 31 09:03 PST 1998
> To: krishm (Madhu Krishnamurthy)
> cc: egcs@cygnus.com
> Subject: Re: Q:Error building cross compiler for mips-mips-linux on
Solaris.
> Date: Sat, 31 Oct 1998 10:02:51 -0700
> From: Jeffrey A Law <law@cygnus.com>
>
>
>
> In message <199810310154.RAA24092@yakuza.sanjose>you write:
> > After about 1 hour of compilation I get this message included below.
> >
> > Can someone please tell how I can solve this problem.
> You need a cross assembler.
> jeff
I have actually installed the binutils2.9.1 - as,ld,ranlib etc.
I created links in my build directory so that the Makefile finds them
as as-new,ld-new etc. I added a line to the Makefile to
echo AS_FOR_TARGET. From this echo I can see that the Makefile knows
AS_FOR_TARGET is as-new which is a mips assembler hosted on Sun.
But for some reason the xgcc seems to call the native sun assembler which
is the default as. [ path /usr/ccs/bin/as]. I know this from the way the
Error message is printed. The as-new from binutils will print it in
a different way.
So my feeling is xgcc is invoking the wrong assembler i.e the native
Sun assembler, instead of the mips cross assembler.
Appreciate your comments and suggestions.
madhu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Q:Error building cross compiler for mips-mips-linux on Solaris.
1998-10-30 22:02 Madhu Krishnamurthy
@ 1998-10-31 9:03 ` Jeffrey A Law
0 siblings, 0 replies; 6+ messages in thread
From: Jeffrey A Law @ 1998-10-31 9:03 UTC (permalink / raw)
To: Madhu Krishnamurthy; +Cc: egcs
In message < 199810310154.RAA24092@yakuza.sanjose >you write:
> After about 1 hour of compilation I get this message included below.
>
> Can someone please tell how I can solve this problem.
You need a cross assembler.
jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Q:Error building cross compiler for mips-mips-linux on Solaris.
@ 1998-10-30 22:02 Madhu Krishnamurthy
1998-10-31 9:03 ` Jeffrey A Law
0 siblings, 1 reply; 6+ messages in thread
From: Madhu Krishnamurthy @ 1998-10-30 22:02 UTC (permalink / raw)
To: egcs
Hello,
I am reposting my earlier question with a suitable subject.
I am trying to build a cross compiler on sparc-sun-solaris2.5.1.
for a mips-mips-linux target. I have downloaded egcs1.1.
Here is my config command
/egcs/cross/build%../../egcs-1.1b/configure --target=mips-mips-linux
--prefix=/egcs/cross/install --with-headers=/egcs/my_include
Then I do
make cross
After about 1 hour of compilation I get this message included below.
Can someone please tell how I can solve this problem.
thanks
madhu
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3
_ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf
_floatdisf
_fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi
_fix
unsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp
_varar
gs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors
_pur
e; \
do \
echo ${name}; \
/egcs/cross/build/gcc/xgcc -B/egcs/cross/build/gcc/ -O2 -DCROSS_COMPILE
-DIN_GCC -DSVR4 -g -O2 -I./incl
ude -D__SSIZE_TYPE__="int" -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-I. -I
../../../egcs-1.1b/gcc -I../../../egcs-1.1b/gcc/config -c -DL${name} \
../../../egcs-1.1b/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
mips-mips-linux-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
as: error: unknown option 'O'
as: error: unknown option '2'
as: error: unknown option 'g'
as: error: unknown option 'g'
as: error: unknown option '1'
usage: as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-xF] [-xarch=v7] [-xarch=v8] [-xarch=v8a]
[-xarc
h=v8plus] [-xarch=v8plusa] file.s...
make[1]: *** [libgcc2.a] Error 1
make: *** [cross] Error 2
(END)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-11-06 4:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-04 2:42 Q:Error building cross compiler for mips-mips-linux on Solaris Madhu Krishnamurthy
1998-11-06 4:27 ` Jeffrey A Law
-- strict thread matches above, loose matches on Subject: below --
1998-11-02 15:20 Madhu Krishnamurthy
1998-11-03 21:28 ` Jeffrey A Law
1998-10-30 22:02 Madhu Krishnamurthy
1998-10-31 9:03 ` Jeffrey A Law
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).