Linux MIPS Architecture development
 help / color / mirror / Atom feed
* gnu tool-chain support for mips16?
@ 2003-03-06  8:32 jackson
  2003-03-06  8:32 ` jackson
  2003-03-06 12:22 ` Ralf Baechle
  0 siblings, 2 replies; 3+ messages in thread
From: jackson @ 2003-03-06  8:32 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1916 bytes --]



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.
 

[-- Attachment #2: Type: text/html, Size: 2989 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* gnu tool-chain support for mips16?
  2003-03-06  8:32 gnu tool-chain support for mips16? jackson
@ 2003-03-06  8:32 ` jackson
  2003-03-06 12:22 ` Ralf Baechle
  1 sibling, 0 replies; 3+ messages in thread
From: jackson @ 2003-03-06  8:32 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1916 bytes --]



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.
 

[-- Attachment #2: Type: text/html, Size: 2989 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnu tool-chain support for mips16?
  2003-03-06  8:32 gnu tool-chain support for mips16? jackson
  2003-03-06  8:32 ` jackson
@ 2003-03-06 12:22 ` Ralf Baechle
  1 sibling, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2003-03-06 12:22 UTC (permalink / raw)
  To: jackson; +Cc: linux-mips

On Thu, Mar 06, 2003 at 04:32:02PM +0800, jackson wrote:

> 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.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-06 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-06  8:32 gnu tool-chain support for mips16? jackson
2003-03-06  8:32 ` jackson
2003-03-06 12:22 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox