* 8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1'
@ 2000-03-20 11:38 Thomas Schuetzkowski
2000-03-20 11:52 ` Alexandre Oliva
2000-03-20 14:48 ` Martin v. Loewis
0 siblings, 2 replies; 5+ messages in thread
From: Thomas Schuetzkowski @ 2000-03-20 11:38 UTC (permalink / raw)
To: gcc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2019 bytes --]
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_/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1'
2000-03-20 11:38 8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1' Thomas Schuetzkowski
@ 2000-03-20 11:52 ` Alexandre Oliva
2000-03-20 12:25 ` Thomas Schuetzkowski
2000-03-20 14:48 ` Martin v. Loewis
1 sibling, 1 reply; 5+ messages in thread
From: Alexandre Oliva @ 2000-03-20 11:52 UTC (permalink / raw)
To: Thomas.Schuetzkowski; +Cc: gcc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 823 bytes --]
On Mar 20, 2000, Thomas Schuetzkowski <Thomas.Schuetzkowski@web.de> wrote:
> Do I have to provide the header files (stdlib.h, unistd.h, ...)?
Yep. newlib (at sourceware.cygnus.com) may supply the headers you
need.
> I only want the compiler to create assembler code for the 8051. Do I
> need a libgcc2?
Dunno, it depends on the target.
> I also don´t have a archiver.
Try GNU binutils
> test1.i:5: Internal compiler error in `instantiate_virtual_regs_1', at function.c:4027
Is this GCC off CVS or some stable release?
--
Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1'
2000-03-20 11:52 ` Alexandre Oliva
@ 2000-03-20 12:25 ` Thomas Schuetzkowski
2000-03-20 12:53 ` Alexandre Oliva
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Schuetzkowski @ 2000-03-20 12:25 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: gcc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]
Alexandre Oliva wrote:
>
> On Mar 20, 2000, Thomas Schuetzkowski <Thomas.Schuetzkowski@web.de> wrote:
>
> > Do I have to provide the header files (stdlib.h, unistd.h, ...)?
>
> Yep. newlib (at sourceware.cygnus.com) may supply the headers you
> need.
>
> > I only want the compiler to create assembler code for the 8051. Do I
> > need a libgcc2?
>
> Dunno, it depends on the target.
>
> > I also don´t have a archiver.
>
> Try GNU binutils
>
> > test1.i:5: Internal compiler error in `instantiate_virtual_regs_1', at function.c:4027
>
> Is this GCC off CVS or some stable release?
>
> --
> Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
> Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
> Free Software Developer and Evangelist CS PhD student at IC-Unicamp
> oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
I use gcc 2.95.2 with my own machine descrition. This is the first time
I´ve tied to
compile gcc for this new target.
When I use the header files from my host machine (i586-gnu-linux) and
copy them to
/usr/local/8051 the compilation of libgcc2 crashes also with
Internal compiler error in `instantiate_virtual_regs_1'
Thanks
Thomas
--
\|/ ______ \|/
"@'/ ,. \'@"
/__| \__/ |__\
\__U_/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1'
2000-03-20 12:25 ` Thomas Schuetzkowski
@ 2000-03-20 12:53 ` Alexandre Oliva
0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Oliva @ 2000-03-20 12:53 UTC (permalink / raw)
To: Thomas.Schuetzkowski; +Cc: Alexandre Oliva, gcc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 691 bytes --]
On Mar 20, 2000, Thomas Schuetzkowski <Thomas.Schuetzkowski@web.de> wrote:
> When I use the header files from my host machine (i586-gnu-linux)
> and copy them to /usr/local/8051 the compilation of libgcc2 crashes
> also with Internal compiler error in `instantiate_virtual_regs_1'
I don't think this is a good idea, there may be machine dependencies
lurking around. I'd rather give newlib a try.
--
Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1'
2000-03-20 11:38 8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1' Thomas Schuetzkowski
2000-03-20 11:52 ` Alexandre Oliva
@ 2000-03-20 14:48 ` Martin v. Loewis
1 sibling, 0 replies; 5+ messages in thread
From: Martin v. Loewis @ 2000-03-20 14:48 UTC (permalink / raw)
To: Thomas.Schuetzkowski; +Cc: gcc
> 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 ?
If you only want to create assembler code, you don't need to compile
libgcc2. As a result, you don't need target header files, either. Of
course, if you use the compiler to compile C code, that C code might
also need header files - which you then would need to provide to users
of the compiler.
> The files cccp and cc1 were already created, can I use them?
Sure.
> When I try to compile a simple program with the created cc1 like:
[...]
> test1.i: In function `main':
> test1.i:5: Internal compiler error in `instantiate_virtual_regs_1', at
> function.c:4027
It looks like there is a bug in your compiler...
Regards,
Martin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-03-20 14:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-20 11:38 8051, libgcc2.a, Internal compiler error in `instantiate_virtual_regs_1' Thomas Schuetzkowski
2000-03-20 11:52 ` Alexandre Oliva
2000-03-20 12:25 ` Thomas Schuetzkowski
2000-03-20 12:53 ` Alexandre Oliva
2000-03-20 14:48 ` Martin v. Loewis
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).