public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC on Solaris -- assertion failure
@ 2012-08-28 11:08 JonathonS
  2012-08-28 13:09 ` David Kirkby
  0 siblings, 1 reply; 3+ messages in thread
From: JonathonS @ 2012-08-28 11:08 UTC (permalink / raw)
  To: gcc-help

Hi all,

On most things I build with GCC 4.4.4 on Solaris, I get the following
assertion failure:

init2.c:37:  assertion failed: ((64 - 0)+0) == (((64 - 0)+0)/8) * 8 &&
sizeof(mp_limb_t) == (((64 - 0)+0)/8)

I've tried building Emacs, MPFR, ICU etc. and they all fail the same way.

My GCC flags are as follows.

Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.4/configure
--prefix=/usr/local/pkgs/gcc-4.4.4 --program-suffix=-4.4.4
--enable-threads=posix --enable-shared
--enable-version-specific-runtime-libs --enable-languages=c,c++
--with-gnu-as --with-gnu-ld --with-as=/usr/local/bin/as
--with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 4.4.4 (GCC)


Does anyone know why this could be the case?  My SPARC processor is
32-bit and I see a "64" number in the error so maybe it thinks that I
am building for 64-bit?  I am not sure.  Any help would be greatly
appreciated.

Thanks,
J

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

* Re: GCC on Solaris -- assertion failure
  2012-08-28 11:08 GCC on Solaris -- assertion failure JonathonS
@ 2012-08-28 13:09 ` David Kirkby
       [not found]   ` <CABw5CXcx=dkjYdAd_g6yHaAvJ0YzR2c9B57oykTxRvx1XevvxQ@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: David Kirkby @ 2012-08-28 13:09 UTC (permalink / raw)
  To: JonathonS; +Cc: gcc-help

On 28 August 2012 01:04, JonathonS <thejunkjon@gmail.com> wrote:
> Hi all,
>
> On most things I build with GCC 4.4.4 on Solaris, I get the following
> assertion failure:

> My GCC flags are as follows.
>
> Using built-in specs.
> Target: sparc-sun-solaris2.10

What version of Solaris are you running? If gcc was built on 10, and
you using an older version, that might be an issue.

> Does anyone know why this could be the case?  My SPARC processor is
> 32-bit and I see a "64" number in the error so maybe it thinks that I
> am building for 64-bit?  I am not sure.  Any help would be greatly
> appreciated.

I don't believe Solaris 10 supports 32-bit processors. What machine
are you using? What is the output of "uname -a"?

What is the output of "command -v gcc" ?

Dave

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

* Re: GCC on Solaris -- assertion failure
       [not found]   ` <CABw5CXcx=dkjYdAd_g6yHaAvJ0YzR2c9B57oykTxRvx1XevvxQ@mail.gmail.com>
@ 2012-08-29 16:44     ` David Kirkby
  0 siblings, 0 replies; 3+ messages in thread
From: David Kirkby @ 2012-08-29 16:44 UTC (permalink / raw)
  To: JonathonS, gcc-help

On 28 August 2012 18:15, JonathonS <thejunkjon@gmail.com> wrote:
> Hi Dave,

Hi,

> uname -a
> --------------
> SunOS lab8sun210-07 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Fire-V210

A sun 4u processor is 64-bit, not 32-bit. You can still build 32-bit
code on a 64-bit processor. gcc will do this unless you add the -m64
option on Solaris.

I can't reallly help you on your problem, but hopefully have clarified
that any "64" messages are not necessarily a problem.


Dave

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

end of thread, other threads:[~2012-08-28 20:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-28 11:08 GCC on Solaris -- assertion failure JonathonS
2012-08-28 13:09 ` David Kirkby
     [not found]   ` <CABw5CXcx=dkjYdAd_g6yHaAvJ0YzR2c9B57oykTxRvx1XevvxQ@mail.gmail.com>
2012-08-29 16:44     ` David Kirkby

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