Skip to contentSkip to conversation

gnu tool-chain support for mips16?

DISCUSSION jackson 2 participants 2 messages Mar 6, 2003 MIPS

lore
Share & tools
lore

jackson

author
#0 lore raw

Dear all:

I follow rules on http://www.ltc.com/~brad/mips/mips-cross-toolchain/
to build gnu tool-cahin.
It works pefect for me to build linux/glibc/ulibc, and perform excellent on my Demo Board.

However, it report some bug messags as following when I compile a test.c like:
int test()

{
    return 0;
}

===================
mips-linux-gcc -c -mips16 -o test test.c
/tmp/ccjnCwV7.s: Assembler messages:
/tmp/ccjnCwV7.s:14: Internal error!
Assertion failure in macro_build_lui at ../../gas/config/tc-mips.c line 3107.
Please report this bug.
=====================
my mips-linux-gcc info:
Reading specs from /usr/local/lib/gcc-lib/mips-linux/3.0.3/specs
Configured with: ../configure --target=mips-linux --enable-languages=c --disable-shared --with-headers=/usr/local/include --with-newlib
Thread model: single
gcc version 3.0.3
/usr/local/lib/gcc-lib/mips-linux/3.0.3/cpp0 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -DMIPSEB -D_MIPSEB -Dunix -Dmips -D_mips -DR3000 -D_R3000 -Dlinux -D__ELF__ -D__PIC__ -D__pic__ -D__MIPSEB__ -D_MIPSEB -D__unix__ -D__mips__ -D__mips__ -D__R3000__ -D_R3000 -D__linux__ -D__ELF__ -D__PIC__ -D__pic__ -D__MIPSEB -D__unix -D__mips -D__mips -D__R3000 -D__linux -Asystem=posix -Acpu=mips -Amachine=mips -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__LANGUAGE_C -D_LANGUAGE_C -DLANGUAGE_C -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -D_MIPS_FPSET=32 -D_MIPS_ISA=_MIPS_ISA_MIPS1 -D_MIPS_SIM=_MIPS_SIM_ABI32 -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32 -U__mips -D__mips -U__mips64 -
GNU CPP version 3.0.3 (cpplib) (MIPS GNU/Linux with ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc-lib/mips-linux/3.0.3/include
/usr/local/mips-linux/sys-include
/usr/local/mips-linux/include
End of search list.

Can you kindly give me some help in this?
Thank you very much.

#1 lore raw
Quoted 12 lines · jackson

I follow rules on http://www.ltc.com/~brad/mips/mips-cross-toolchain/
to build gnu tool-cahin.
It works pefect for me to build linux/glibc/ulibc, and perform excellent on my Demo Board.

However, it report some bug messags as following when I compile a test.c like:
int test()

{
    return 0;
}
Quoted 6 lines

===================
mips-linux-gcc -c -mips16 -o test test.c
/tmp/ccjnCwV7.s: Assembler messages:
/tmp/ccjnCwV7.s:14: Internal error!
Assertion failure in macro_build_lui at ../../gas/config/tc-mips.c line 3107. Please report this bug.

All userspace with glibc, the standard userspace library environment for Linux, must be PIC code and therefore the Linux compiler defaults to PIC It's not possible to combine PIC code and MIPS16 ...

Ralf