public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "karo13de at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/63262] [4.9.2] ICE including math.h on darwin
Date: Sun, 02 Nov 2014 23:09:00 -0000	[thread overview]
Message-ID: <bug-63262-4-JFOnudUxxY@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-63262-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63262

--- Comment #16 from karsten <karo13de at googlemail dot com> ---
Hmm, hmm I am a packager in this case and don't know how to build that library.
It is delivered with the compiler from hpc.
What I could try is to replace it with install_name_tool with my MacPorts
library libgmp.10.dylib. But that will last some time.

By the way, I would appreciate a nice complete test case.

Good night,

Karsten

otool -L /usr/local/libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/cc1plus
/usr/local/libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/cc1plus:
    /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version
7.0.0)
    /usr/local/lib/libmpc.3.dylib (compatibility version 4.0.0, current version
4.0.0)
    /usr/local/lib/libmpfr.4.dylib (compatibility version 6.0.0, current
version 6.2.0)
    /usr/local/lib/libgmp.10.dylib (compatibility version 13.0.0, current
version 13.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1213.0.0)

Am 02.11.2014 um 23:51 schrieb fxcoudert at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org>:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63262
> 
> --- Comment #14 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
> (In reply to karsten from comment #13)
>> libgmp.10.dylib`__gmpn_popcount + 26, queue = 'com.apple.main-thread', stop
>> reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
>>  * frame #0: 0x00000001415c747a libgmp.10.dylib`__gmpn_popcount + 26
>>    frame #1: 0x0000000141578f67 libmpfr.4.dylib`parsed_string_to_mpfr + 2567
>>    frame #2: 0x000000014157847b libmpfr.4.dylib`mpfr_strtofr + 2011
>>    frame #3: 0x00000001006f4d11 cc1plus`real_from_string(real_value*, char
>> const*) + 817
>>    frame #4: 0x00000001006f5741 cc1plus`real_from_string3(real_value*, char
>> const*, machine_mode) + 33
> 
> So the segfault happens in GMP. I also confirm that I don't see it after doing
> a clean build of the 4.9.2 sources you linked, which makes sense because I do
> my builds with an older GMP version.
> 
> What I would advise is building GMP without too much optimization, or with no
> optimization at all, and see if it fixes your issue.
> 
> PS: the attached short testcase might be useful. Could you confirm that it does
> trigger the ICE (internal compiler error)?
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

Karsten
karo13de@googlemail.com


  parent reply	other threads:[~2014-11-02 23:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-14 14:24 [Bug c++/63262] New: internal compiler error including math.h karo13de at googlemail dot com
2014-09-29 12:22 ` [Bug c++/63262] " fxcoudert at gcc dot gnu.org
2014-10-04 14:38 ` karo13de at googlemail dot com
2014-10-04 15:00 ` fxcoudert at gcc dot gnu.org
2014-11-02 21:38 ` karo13de at googlemail dot com
2014-11-02 21:46 ` fxcoudert at gcc dot gnu.org
2014-11-02 22:13 ` [Bug c++/63262] [4.9.2] ICE including math.h on darwin fxcoudert at gcc dot gnu.org
2014-11-02 22:17 ` karo13de at googlemail dot com
2014-11-02 22:22 ` karo13de at googlemail dot com
2014-11-02 22:51 ` fxcoudert at gcc dot gnu.org
2014-11-02 22:52 ` fxcoudert at gcc dot gnu.org
2014-11-02 22:53 ` fxcoudert at gcc dot gnu.org
2014-11-02 23:09 ` karo13de at googlemail dot com [this message]
2014-11-03  7:09 ` jakub at gcc dot gnu.org
2014-11-03  8:48 ` fxcoudert at gcc dot gnu.org
2014-11-03 12:09 ` karo13de at googlemail dot com
2014-11-03 12:25 ` karo13de at googlemail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-63262-4-JFOnudUxxY@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).