8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1'
Thomas Schuetzkowski
Thomas.Schuetzkowski@web.de
Mon Mar 20 11:38:00 GMT 2000
Dear GCC-Developpers,
when trying to build a 8051-Cross-Compiler I get a:
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 _fixunsxfdi _floatdixf _fixunsxfsi
_fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb
_shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
echo ${name}; \
/gnu/gcc-2.95.2/gcc/xgcc -B/gnu/gcc-2.95.2/gcc/
-B/usr/local/8051/bin/ -I/usr/local/8051/include -O2 -DCROSS_COMPILE
-DIN_GCC -g -O2 -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -I./../include -c
-DL${name} \
./libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
8051-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
./libgcc2.c:41: stdlib.h: No such file or directory
./libgcc2.c:42: unistd.h: No such file or directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/gnu/gcc-2.95.2/gcc'
make: *** [all-gcc] Error 2
Do I have to provide the header files (stdlib.h, unistd.h, ...)?
I only want the compiler to create assembler code for the 8051. Do I
need a libgcc2 ?
I also donôt have a archiver. I use a shell-script which determines the
asm-routines that
are needed and calls the assembler with the appropiate files to create
hex-files.
The files cccp and cc1 were already created, can I use them?
When I try to compile a simple program with the created cc1 like:
int main(void)
{
int a=0;
return 0;
}
the cc1 crashes with:
main
test1.i: In function `main':
test1.i:5: Internal compiler error in `instantiate_virtual_regs_1', at
function.c:4027
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.
--
\|/ ______ \|/
"@'/ ,. \'@"
/__| \__/ |__\
\__U_/
More information about the Gcc
mailing list