Linux MIPS Architecture development
 help / color / mirror / Atom feed
* native gcc-3.0.1?
@ 2001-09-20  5:57 Jim Paris
  2001-09-20  6:09 ` Ryan Murray
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Paris @ 2001-09-20  5:57 UTC (permalink / raw)
  To: linux-mips

Does anyone have gcc-3.0.1 built as a native MIPS compiler?
I have a 3.0.1 cross-compiler that seems to work fine, but when I
cross-compiled a native gcc-3.0.1, it doesn't work:

# cat hello.c
main() 
{
    printf("hello, world\n");
}
# gcc -c hello.c
hello.c: In function 'main':
hello.c:4: Internal error: Illegal instruction
Please submit a full bug report
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

It's possible that

1) My kernel is broken.  I doubt this, only because the other
   possibilities seem more likely; I suppose I could add debugging
   output to all of the places where the kernel generates SIGILL
2) My cross-compiler is broken.  But, everything else it's compiled
   has worked fine, including relatively complicated programs like
   strace and bash.

It could also be that gcc-3.0.1 is simply broken when running natively
on MIPS.  Has anyone done this?  Any luck?

It's also possible (and I think likely) that my cross-compiler is
making wrong assumptions about the target system (since ./configure
can be pretty dumb when it comes to setting up a cross compile).  If
anyone has built gcc-3.0 or gcc-3.0.1 natively on MIPS, can you send
me the config.cache from your build?

I tried using my gcc-3.0.1 cross-compiler to build a native gcc-2.95.3
instead, but the newer GCCs doesn't seem to happy about building old
ones.  Grr..

-jim

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

* Re: native gcc-3.0.1?
  2001-09-20  5:57 native gcc-3.0.1? Jim Paris
@ 2001-09-20  6:09 ` Ryan Murray
  2001-09-20 10:00   ` william
  0 siblings, 1 reply; 3+ messages in thread
From: Ryan Murray @ 2001-09-20  6:09 UTC (permalink / raw)
  To: linux-mips

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

On Thu, Sep 20, 2001 at 01:57:42AM -0400, Jim Paris wrote:
> Does anyone have gcc-3.0.1 built as a native MIPS compiler?

Debian built 3.0.1 natively...

> It could also be that gcc-3.0.1 is simply broken when running natively
> on MIPS.  Has anyone done this?  Any luck?

When that was the version in Debian, it did work.

> anyone has built gcc-3.0 or gcc-3.0.1 natively on MIPS, can you send
> me the config.cache from your build?

I don't have that around anymore, but I can send you the config.cache from
a build of a 3.0.2 CVS snapshot...

-- 
Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org)
The opinions expressed here are my own.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: native gcc-3.0.1?
  2001-09-20  6:09 ` Ryan Murray
@ 2001-09-20 10:00   ` william
  0 siblings, 0 replies; 3+ messages in thread
From: william @ 2001-09-20 10:00 UTC (permalink / raw)
  To: Ryan Murray; +Cc: linux-mips

Ryan Murray wrote:

> On Thu, Sep 20, 2001 at 01:57:42AM -0400, Jim Paris wrote:
> > Does anyone have gcc-3.0.1 built as a native MIPS compiler?
>
> Debian built 3.0.1 natively...
>
> > It could also be that gcc-3.0.1 is simply broken when running natively
> > on MIPS.  Has anyone done this?  Any luck?
>
> When that was the version in Debian, it did work.
>
> > anyone has built gcc-3.0 or gcc-3.0.1 natively on MIPS, can you send
> > me the config.cache from your build?
>
> I don't have that around anymore, but I can send you the config.cache from
> a build of a 3.0.2 CVS snapshot...
>
> --
> Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org)
> The opinions expressed here are my own.
>
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature

Hi,
       Just, I use GCC-3.0.1 to compile Linux kernel,except
ramdisk.o,everything seems fine.about ramdisk.o
because GCC-3.0.1 can't suppor failed to merge target specific data of file
../boot/ramdisk.ot ecoff-littlemips target.so I modified it as
elf32-littlemips,but when linking, compiler told me failed to merge specific
data of file ramdisk.o,from the output compiler message,it says ISA
mismatch(-mips1) with previous modules(--mips3) and used different
e_flags(0x0) fields than previous modules(0x100).What's wrong with it?
            Best regards
        william  20/9/2001

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

end of thread, other threads:[~2001-09-20 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-20  5:57 native gcc-3.0.1? Jim Paris
2001-09-20  6:09 ` Ryan Murray
2001-09-20 10:00   ` william

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