public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12154] New: mips/amd/gcc/mvista/glib  internal error: Segmentation fault
@ 2003-09-03 15:37 andreww at bemac dot com
  2003-09-03 15:40 ` [Bug c/12154] " andreww at bemac dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: andreww at bemac dot com @ 2003-09-03 15:37 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154

           Summary: mips/amd/gcc/mvista/glib  internal error: Segmentation
                    fault
           Product: gcc
           Version: 3.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andreww at bemac dot com
                CC: gcc-bugs at gcc dot gnu dot org

We are compiling glib on a mips32 board (AMD au1500) running
mvista linux, gcc seg faults with this error.

Erm, is there not a button to include the .i file...hmm...


root@mymachine:~/glibc-2.3.2/elf# gcc dl-conflict.c -c -std=gnu99 -O2 -Wall -
Winline -Wstrict-prototypes -Wwrite-strings -g      -I../include -I. -I/root/bui
ld/elf -I.. -I../libio  -I/root/build -I../sysdeps/mips/elf -I../sysdeps/unix/sy
sv/linux/mips -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/co
mmon -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../s
ysdeps/unix/mips -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/mips/mipsel -
I../sysdeps/mips/fpu -I../sysdeps/mips -I../sysdeps/wordsize-32 -I../sysdeps/iee
e754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generi
c/elf -I../sysdeps/generic    -include ../include/libc-symbols.h  -DPIC  -save-t
emps   -o /root/build/elf/dl-conflict.o                                         
In file included from dynamic-link.h:49,
                 from dl-conflict.c:60:
../sysdeps/mips/dl-machine.h: In function `elf_machine_got_rel':
../sysdeps/mips/dl-machine.h:612: warning: unused variable `version'
../sysdeps/mips/dl-machine.h:615: warning: unused variable `version'
../sysdeps/mips/dl-machine.h:626: warning: unused variable `version'
../sysdeps/mips/dl-machine.h: In function `_dl_resolve_conflicts':
../sysdeps/mips/dl-machine.h:555: warning: inlining failed in call to `elf_machi
ne_got_rel'
../sysdeps/mips/dl-machine.h:670: warning: called from here
dl-conflict.c: In function `elf_machine_rela':
dl-conflict.c:66: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
root@mymachine:~/glibc-2.3.2/elf#   


root@mymachine:~/glibc-2.3.2/elf# gcc --version
gcc (GCC) 3.2.1 20020930 (MontaVista)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


root@mymachine:~/glibc-2.3.2/elf# uname -a
Linux mymachine 2.4.21-pre4 #1 Fri Aug 29 15:15:36 BST 2003 mips unknown


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
@ 2003-09-03 15:40 ` andreww at bemac dot com
  2003-09-03 19:28 ` rsandifo at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: andreww at bemac dot com @ 2003-09-03 15:40 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154



------- Additional Comments From andreww at bemac dot com  2003-09-03 15:40 -------
Created an attachment (id=4693)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4693&action=view)
temp file made from --save-temps

save-temps output.


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
  2003-09-03 15:40 ` [Bug c/12154] " andreww at bemac dot com
@ 2003-09-03 19:28 ` rsandifo at gcc dot gnu dot org
  2003-09-04 14:00 ` andreww at bemac dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2003-09-03 19:28 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154


rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From rsandifo at gcc dot gnu dot org  2003-09-03 19:28 -------
3.2 is no longer maintained.  Do you know if 3.3 has the same problem?


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
  2003-09-03 15:40 ` [Bug c/12154] " andreww at bemac dot com
  2003-09-03 19:28 ` rsandifo at gcc dot gnu dot org
@ 2003-09-04 14:00 ` andreww at bemac dot com
  2003-09-04 14:07 ` andreww at bemac dot com
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: andreww at bemac dot com @ 2003-09-04 14:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154


andreww at bemac dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1


------- Additional Comments From andreww at bemac dot com  2003-09-04 14:00 -------
This is trying to compile 3.3.1 with the old compiler, it gets as far
as (see below).  So it is using xgcc which is (I guess) the new 3.3.1
compiler (not sure which stage this is at).

So, erm, I guess yes ver 3.3.1 does have a similar problem...

root@172.16.13.26:~/gcc-3.3.1/gcc# ./xgcc -B./ -B/usr/local/mipsel-unknown-linux
-gnu/bin/ -isystem /usr/local/mipsel-unknown-linux-gnu/include -isystem /usr/loc
al/mipsel-unknown-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall -Wwrite-strings
 -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I. -I./. 
-I./config -I./../include  -g0 -finhibit-size-directive -fno-inline-functions -f
no-exceptions -fno-zero-initialized-in-bss  -c ./crtstuff.c -DCRT_BEGIN --save-t
emps -o crtbegin.o
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (2 preceding siblings ...)
  2003-09-04 14:00 ` andreww at bemac dot com
@ 2003-09-04 14:07 ` andreww at bemac dot com
  2003-09-04 14:35 ` andreww at bemac dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: andreww at bemac dot com @ 2003-09-04 14:07 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154


andreww at bemac dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


------- Additional Comments From andreww at bemac dot com  2003-09-04 14:07 -------
Hang on, file system full for the compilation of 3.3.1.  But I don't think it
was full for the original problem...I'll check...


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (3 preceding siblings ...)
  2003-09-04 14:07 ` andreww at bemac dot com
@ 2003-09-04 14:35 ` andreww at bemac dot com
  2003-09-04 14:42 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: andreww at bemac dot com @ 2003-09-04 14:35 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154


andreww at bemac dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW


------- Additional Comments From andreww at bemac dot com  2003-09-04 14:35 -------
OK, even with space on the file system we still get the
same problem with compiling 3.3.1 with the crtstuff.c.


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (4 preceding siblings ...)
  2003-09-04 14:35 ` andreww at bemac dot com
@ 2003-09-04 14:42 ` pinskia at gcc dot gnu dot org
  2003-09-04 14:59 ` andreww at bemac dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-04 14:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-04 14:42 -------
Do did you compile GCC 3.3.1 with "make bootstrap" or just "make"?


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (5 preceding siblings ...)
  2003-09-04 14:42 ` pinskia at gcc dot gnu dot org
@ 2003-09-04 14:59 ` andreww at bemac dot com
  2003-09-04 22:51 ` drow at mvista dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: andreww at bemac dot com @ 2003-09-04 14:59 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154



------- Additional Comments From andreww at bemac dot com  2003-09-04 14:59 -------
I'm using 'make bootstrap'


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (6 preceding siblings ...)
  2003-09-04 14:59 ` andreww at bemac dot com
@ 2003-09-04 22:51 ` drow at mvista dot com
  2003-09-05  8:26 ` andreww at bemac dot com
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: drow at mvista dot com @ 2003-09-04 22:51 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154



------- Additional Comments From drow at mvista dot com  2003-09-04 22:51 -------
Subject: Re:  New: mips/amd/gcc/mvista/glib  internal error: Segmentation fault

On Wed, Sep 03, 2003 at 03:37:46PM -0000, andreww at bemac dot com wrote:
> We are compiling glib on a mips32 board (AMD au1500) running
> mvista linux, gcc seg faults with this error.

> root@mymachine:~/glibc-2.3.2/elf# gcc --version
> gcc (GCC) 3.2.1 20020930 (MontaVista)

I've built glibc with this compiler, but not configured as a MIPS native
(rather than cross).

> root@mymachine:~/glibc-2.3.2/elf# uname -a
> Linux mymachine 2.4.21-pre4 #1 Fri Aug 29 15:15:36 BST 2003 mips unknown

There've been a number of kernel cache-related problems on this board
over its lifetime.  I'd bet on that.


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (7 preceding siblings ...)
  2003-09-04 22:51 ` drow at mvista dot com
@ 2003-09-05  8:26 ` andreww at bemac dot com
  2003-09-08  8:35 ` andreww at bemac dot com
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: andreww at bemac dot com @ 2003-09-05  8:26 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154



------- Additional Comments From andreww at bemac dot com  2003-09-05 08:26 -------
So if there could be a kernel/cache problem how can I go about
tracking this down?  Is there way to test the cache?  Can I
turn it off?  Any ideas?

Sorry, got a bit confused with your statement. You have compiled
glib with this version of the compiler, running as a cross compiler?

I tried to use a cross compiler, but the version of binutils I 
tried (2.12) to compile for the compiler said that it could not be 
compiled with a cross compiler, so I used the compiler on the board.
Then since compiling gcc seems to require multiple passes/stages
then that can't be done with a cross compiler.  And it is after the
1st stage that it falls over, so I don't think a cross compiler will
help me?

Anyway, thanks for all your help so far...keep the suggestions coming!

  thanks,

andy


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (8 preceding siblings ...)
  2003-09-05  8:26 ` andreww at bemac dot com
@ 2003-09-08  8:35 ` andreww at bemac dot com
  2003-09-08 15:05 ` drow at mvista dot com
  2004-01-01  3:13 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: andreww at bemac dot com @ 2003-09-08  8:35 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154



------- Additional Comments From andreww at bemac dot com  2003-09-08 08:35 -------
Another question about using the onboard mips gcc...

Should the ./configure script have put a -mips2 or a CPU=MIPS32 into
the compiler string?

Or since the compiler was built for the board this is already the 
default built in options?

If so, could there be some problem that this compiler is expecting
a particular kind of mips processor with some features/instructions
which my au1500 doesn't have?

Can I see which mips processor it thinks it is compiling for?

Or is it the case that gcc will just pick the common instructions?

thanks again,

andy


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (9 preceding siblings ...)
  2003-09-08  8:35 ` andreww at bemac dot com
@ 2003-09-08 15:05 ` drow at mvista dot com
  2004-01-01  3:13 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: drow at mvista dot com @ 2003-09-08 15:05 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154



------- Additional Comments From drow at mvista dot com  2003-09-08 15:05 -------
Subject: Re:  mips/amd/gcc/mvista/glib  internal error: Segmentation fault

On Mon, Sep 08, 2003 at 08:35:23AM -0000, andreww at bemac dot com wrote:
> Another question about using the onboard mips gcc...
> 
> Should the ./configure script have put a -mips2 or a CPU=MIPS32 into
> the compiler string?
> 
> Or since the compiler was built for the board this is already the 
> default built in options?
> 
> If so, could there be some problem that this compiler is expecting
> a particular kind of mips processor with some features/instructions
> which my au1500 doesn't have?
> 
> Can I see which mips processor it thinks it is compiling for?
> 
> Or is it the case that gcc will just pick the common instructions?

It'll use MIPS I unless you tell it otherwise, unless you've told it
not to.


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

* [Bug c/12154] mips/amd/gcc/mvista/glib  internal error: Segmentation fault
  2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
                   ` (10 preceding siblings ...)
  2003-09-08 15:05 ` drow at mvista dot com
@ 2004-01-01  3:13 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-01  3:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-01 03:13 -------
Not a GCC bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12154


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

end of thread, other threads:[~2004-01-01  3:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-03 15:37 [Bug c/12154] New: mips/amd/gcc/mvista/glib internal error: Segmentation fault andreww at bemac dot com
2003-09-03 15:40 ` [Bug c/12154] " andreww at bemac dot com
2003-09-03 19:28 ` rsandifo at gcc dot gnu dot org
2003-09-04 14:00 ` andreww at bemac dot com
2003-09-04 14:07 ` andreww at bemac dot com
2003-09-04 14:35 ` andreww at bemac dot com
2003-09-04 14:42 ` pinskia at gcc dot gnu dot org
2003-09-04 14:59 ` andreww at bemac dot com
2003-09-04 22:51 ` drow at mvista dot com
2003-09-05  8:26 ` andreww at bemac dot com
2003-09-08  8:35 ` andreww at bemac dot com
2003-09-08 15:05 ` drow at mvista dot com
2004-01-01  3:13 ` pinskia at gcc dot gnu dot org

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