public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/25740]  New: Bus Error compiling gcc/config/sparc/sol2-c1.asm
@ 2006-01-10 15:37 darren at mambo dot net
  2006-01-10 16:05 ` [Bug bootstrap/25740] " ebotcazou at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: darren at mambo dot net @ 2006-01-10 15:37 UTC (permalink / raw)
  To: gcc-bugs

Building GCC 3.4.5 on Solaris 2.10

Configure line: configure --prefix=/usr/local --enable-languages=c,c++

Directory: gcc-3.4.5/build/gcc

Triggering line:
/opt/apps/src/gcc-3.4.5/build/gcc/xgcc -B/opt/apps/src/gcc-3.4.5/build/gcc/
-B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/
-isystem /usr/local/sparc-sun-solaris2.10/include -isystem
/usr/local/sparc-sun-solaris2.10/sys-include  -c -o crt1.o -x
assembler-with-cpp ../../gcc/config/sparc/sol2-c1.asm

Compiler Output:
cc1: internal compiler error: Bus Error
Please submit a full bug report,
with preprocessed source if appropriate.

Preprocessed source:
None available from -save-temps


-- 
           Summary: Bus Error compiling gcc/config/sparc/sol2-c1.asm
           Product: gcc
           Version: 3.4.5
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: darren at mambo dot net
 GCC build triplet: sparc-sun-solaris2.10
  GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
@ 2006-01-10 16:05 ` ebotcazou at gcc dot gnu dot org
  2006-01-10 16:12 ` darren at mambo dot net
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-01-10 16:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ebotcazou at gcc dot gnu dot org  2006-01-10 16:05 -------
Please try again, GCC 3.4.5 is known to bootstrap fine on SPARC/Solaris 10.  If
it's reproducible, post a backtrace at the crashpoint.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |WAITING


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
  2006-01-10 16:05 ` [Bug bootstrap/25740] " ebotcazou at gcc dot gnu dot org
@ 2006-01-10 16:12 ` darren at mambo dot net
  2006-01-10 16:58 ` ebotcazou at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: darren at mambo dot net @ 2006-01-10 16:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from darren at mambo dot net  2006-01-10 16:12 -------
Backtrace will take a few days - I'm on a deadline to get this system
installed, so right now I'm compiling 3.4.4 and hoping it doesn't have the same
bug.

Once the system's ready, I'll re-try compiling 3.4.5


-- 


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
  2006-01-10 16:05 ` [Bug bootstrap/25740] " ebotcazou at gcc dot gnu dot org
  2006-01-10 16:12 ` darren at mambo dot net
@ 2006-01-10 16:58 ` ebotcazou at gcc dot gnu dot org
  2006-01-10 17:52 ` darren at mambo dot net
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-01-10 16:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ebotcazou at gcc dot gnu dot org  2006-01-10 16:58 -------
> Backtrace will take a few days - I'm on a deadline to get this system
> installed, so right now I'm compiling 3.4.4 and hoping it doesn't have
> the same bug.

Well, unless proven otherwise, GCC 3.4.5 has no bug either.

hikaru% uname -a
SunOS hikaru 5.10 Generic sun4u sparc SUNW,Sun-Fire-V240
hikaru% gcc/xgcc -v
Using built-in specs.
Configured with: /home/eric/gcc-3.4.5/configure --prefix=/usr/local
--enable-languages=c
Thread model: posix
gcc version 3.4.5

> Once the system's ready, I'll re-try compiling 3.4.5

Thanks.


-- 


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
                   ` (2 preceding siblings ...)
  2006-01-10 16:58 ` ebotcazou at gcc dot gnu dot org
@ 2006-01-10 17:52 ` darren at mambo dot net
  2006-01-10 18:09 ` ebotcazou at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: darren at mambo dot net @ 2006-01-10 17:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from darren at mambo dot net  2006-01-10 17:52 -------
Well, 3.4.4 craps out on the same file, unable to malloc after exhausting the
8Gb swap space.

Note that the difference between your system and this one is I have
"--enable-languages=c,c++".  I do have a running gcc 3.4.4 on the same system
where I only had "--enable-languages=c"

-bash-3.00$ /usr/local/bin/gcc -v ## Running version
Reading specs from /usr/local/lib/gcc/sparcv9-sun-solaris2.10/3.4.4/specs
Configured with: ./configure --prefix=/usr/local --enable-languages=c
sparcv9-sun-solaris2.10
Thread model: posix
gcc version 3.4.4

-bash-3.00$ uname -a
SunOS challenger 5.10 Generic_118822-20 sun4u sparc SUNW,Ultra-250

Line that dies:
/opt/apps/src/gcc-3.4.4/build/gcc/xgcc -B/opt/apps/src/gcc-3.4.4/build/gcc/
-B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/
-isystem /usr/local/sparc-sun-solaris2.10/include -isystem
/usr/local/sparc-sun-solaris2.10/sys-include  -c -o crt1.o -x
assembler-with-cpp ../../gcc/config/sparc/sol2-c1.asm

cc1: out of memory allocating 134217728 bytes after a total of 9127182336 bytes
gmake[1]: *** [crt1.o] Error 1
gmake[1]: Leaving directory `/opt/apps/src/gcc-3.4.4/build/gcc'
gmake: *** [all-gcc] Error 2

I will try re-configuring this 3.4.4 with sparcv9-sun-solaris2.10 instead of
sparc-sun-solaris and see if that makes a difference.


-- 


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
                   ` (3 preceding siblings ...)
  2006-01-10 17:52 ` darren at mambo dot net
@ 2006-01-10 18:09 ` ebotcazou at gcc dot gnu dot org
  2006-01-10 21:32 ` darren at mambo dot net
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-01-10 18:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ebotcazou at gcc dot gnu dot org  2006-01-10 18:09 -------
> Note that the difference between your system and this one is I have
> "--enable-languages=c,c++".

That doesn't matter here.

> I will try re-configuring this 3.4.4 with sparcv9-sun-solaris2.10 instead of
> sparc-sun-solaris and see if that makes a difference.

Of course, that makes a big difference!  sparc-sun-solaris2.9 is a 32-bit
compiler while sparcv9-sun-solaris2.10 is a 64-bit compiler, you cannot compile
one with the other, you need to specify either CC="gcc -m32" or CC="gcc -m64"
at configure time.


-- 

ebotcazou at gcc dot gnu dot org changed:

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


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
                   ` (4 preceding siblings ...)
  2006-01-10 18:09 ` ebotcazou at gcc dot gnu dot org
@ 2006-01-10 21:32 ` darren at mambo dot net
  2006-01-10 21:38 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: darren at mambo dot net @ 2006-01-10 21:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from darren at mambo dot net  2006-01-10 21:32 -------
Well, I tried 'configure sparcv9-sun-solaris2.10' and it crashed on the same
file

I tried 'CC="gcc -m64" configure sparcv9-sun-solaris2.10' and it still crashed
on the same file.

I'm beginning to think I imagined ever compiling gcc on this box! :)


-- 


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
                   ` (5 preceding siblings ...)
  2006-01-10 21:32 ` darren at mambo dot net
@ 2006-01-10 21:38 ` ebotcazou at gcc dot gnu dot org
  2006-01-10 22:13 ` ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-01-10 21:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ebotcazou at gcc dot gnu dot org  2006-01-10 21:38 -------
> I'm beginning to think I imagined ever compiling gcc on this box! :)

What happens if you bootstrap the sparc-sun-solaris2.10 compiler?

CC="gcc -m32" $(scrdir)/configure sparc-sun-solaris2.10 --prefix=...
gmake bootstrap


-- 


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
                   ` (6 preceding siblings ...)
  2006-01-10 21:38 ` ebotcazou at gcc dot gnu dot org
@ 2006-01-10 22:13 ` ebotcazou at gcc dot gnu dot org
  2006-01-10 22:50 ` ebotcazou at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-01-10 22:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from ebotcazou at gcc dot gnu dot org  2006-01-10 22:13 -------
The 64-bit compiler:

hikaru% gcc/xgcc -v
Using built-in specs.
Configured with: /home/eric/gcc-3.4.5/configure sparc64-sun-solaris2.10
--prefix=/usr/local --enable-languages=c
Thread model: posix
gcc version 3.4.5


-- 


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
                   ` (7 preceding siblings ...)
  2006-01-10 22:13 ` ebotcazou at gcc dot gnu dot org
@ 2006-01-10 22:50 ` ebotcazou at gcc dot gnu dot org
  2006-01-12 15:30 ` darren at mambo dot net
  2006-01-12 15:47 ` ebotcazou at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-01-10 22:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from ebotcazou at gcc dot gnu dot org  2006-01-10 22:50 -------
> The 64-bit compiler:

...under another name:

hikaru% gcc/xgcc -v
Using built-in specs.
Configured with: /home/eric/gcc-3.4.5/configure sparcv9-sun-solaris2.10
--prefix=/usr/local --enable-languages=c
Thread model: posix
gcc version 3.4.5


-- 


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



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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
                   ` (8 preceding siblings ...)
  2006-01-10 22:50 ` ebotcazou at gcc dot gnu dot org
@ 2006-01-12 15:30 ` darren at mambo dot net
  2006-01-12 15:47 ` ebotcazou at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: darren at mambo dot net @ 2006-01-12 15:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from darren at mambo dot net  2006-01-12 15:30 -------
Well, after about ten tries, I got it to all compile.

The magic required was:

1. Ensure bintools was in path before /usr/ccs/bin
2. Remove gnu ld from system
3. CFLAGS='-m64' configure --disable-multilib --enable-languages=c,c++
sparcv9-sun-solaris2.10
4. gmake

I disabled multilib because otherwise it tried to compile sparcv7 with 'xgcc
... -m32 -m64', requiring too many manual changes of config.status and
resulting Makefile's

I guess my final point is that if configure sees that it's on Solaris 2.10 with
a v9 processor, shouldn't it at least guess 'sparcv9-sun-solaris2.10' as the
triplet instead of the generic 'sparc-sun-solaris', especially since I hadn't
specified --host, --target or --build?


-- 


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


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

* [Bug bootstrap/25740] Bus Error compiling gcc/config/sparc/sol2-c1.asm
  2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
                   ` (9 preceding siblings ...)
  2006-01-12 15:30 ` darren at mambo dot net
@ 2006-01-12 15:47 ` ebotcazou at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-01-12 15:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from ebotcazou at gcc dot gnu dot org  2006-01-12 15:47 -------
> The magic required was:
> 
> 1. Ensure bintools was in path before /usr/ccs/bin

What is bintools?

> 2. Remove gnu ld from system
> 3. CFLAGS='-m64' configure --disable-multilib --enable-languages=c,c++
> sparcv9-sun-solaris2.10

Setting CFLAGS on the configure line is a _recipe_for_disaster_, only CC should
be set.

> I disabled multilib because otherwise it tried to compile sparcv7 with 'xgcc
> ... -m32 -m64', requiring too many manual changes of config.status and
> resulting Makefile's

!??? See above.

> I guess my final point is that if configure sees that it's on Solaris 2.10
> with a v9 processor, shouldn't it at least guess 'sparcv9-sun-solaris2.10'
> as the triplet instead of the generic 'sparc-sun-solaris', especially since I
> hadn't specified --host, --target or --build?

No, the canonical target triplet is always sparc-sun-solaris2.* on Solaris as
the default architecture is V8.

I'm really puzzled by all this mess, you're the first one who reported that.


-- 


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


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

end of thread, other threads:[~2006-01-12 15:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10 15:37 [Bug bootstrap/25740] New: Bus Error compiling gcc/config/sparc/sol2-c1.asm darren at mambo dot net
2006-01-10 16:05 ` [Bug bootstrap/25740] " ebotcazou at gcc dot gnu dot org
2006-01-10 16:12 ` darren at mambo dot net
2006-01-10 16:58 ` ebotcazou at gcc dot gnu dot org
2006-01-10 17:52 ` darren at mambo dot net
2006-01-10 18:09 ` ebotcazou at gcc dot gnu dot org
2006-01-10 21:32 ` darren at mambo dot net
2006-01-10 21:38 ` ebotcazou at gcc dot gnu dot org
2006-01-10 22:13 ` ebotcazou at gcc dot gnu dot org
2006-01-10 22:50 ` ebotcazou at gcc dot gnu dot org
2006-01-12 15:30 ` darren at mambo dot net
2006-01-12 15:47 ` ebotcazou 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).