public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
@ 2014-10-21 18:36 vbraun at physics dot upenn.edu
  2014-10-21 18:37 ` [Bug target/63610] " vbraun at physics dot upenn.edu
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: vbraun at physics dot upenn.edu @ 2014-10-21 18:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63610
           Summary: OSX 10.10 (Yosemite) segfault in MPIR testsuite with
                    -O0 or -O1
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vbraun at physics dot upenn.edu

Trying to bulid gcc on OSX 10.10 with the Apple command line tools. So I first
compile MPIR/MPFR/MPC with clang, then bootstrap gcc. This works so far (the
patch from PR target/61407 for dealing with the version parsing is applied).
But the newly-built gcc can't successfully compile MPIR, and I'm getting the
testsuite failures below. The failure is only present if I both enable C++
(--enable-cxx in the MPIR configure), build a shared library, and set
optimization to -O0 or -O1 (whereas -O2 works).

Steps to reproduce (in the MPIR 2.6.0 source directory):

$ export CFLAGS=-O0
$ ./configure --enable-cxx --disable-static
$ make
$ make check
[...]
make  check-TESTS
/bin/sh: line 1: 59465 Segmentation fault: 11  "$tst" > t-bswap.log-t 2>&1
FAIL: t-bswap
PASS: t-constants
PASS: t-count_zeros
PASS: t-gmpmax
PASS: t-hightomask
PASS: t-modlinv
PASS: t-parity
/bin/sh: line 1: 59648 Segmentation fault: 11  "$tst" > t-popc.log-t 2>&1
FAIL: t-popc
PASS: t-sub
=============================================================
2 of 9 tests failed
See tests/test-suite.log
Please report to http://groups.google.co.uk/group/mpir-devel/
=============================================================
make[5]: *** [test-suite.log] Error 1
make[4]: *** [check-TESTS] Error 2
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2

Apart from the segfault, there is nothing in the log (full log attached) that
indicates a failure. It seems that lower optimization leaves something in the
binary that interacts badly with C++ support, but I don't have a better
testcase. It is not just in MPIR, I get similar looking segfaults in other
shared libraries when C++ is involved. Others have been able to reproduce the
same testsuite failure on OSX. Works fine on Linux x86_64 with same versions of
everything (except that gcc is used to bootstrap, of course).

Stack backtrace from the t-popc test (full gdb log attached):

#0  0x00007fff86172432 in __block_descriptor_tmp227 () from
/usr/lib/system/libdyld.dylib
#1  0x00007fff5fbffa80 in ?? ()
#2  0x00000001000ca0d0 in ?? () from
/Users/vbraun/Code/mpir-2.6.0/.libs/libmpir.11.dylib
#3  0x000000000000011d in ?? ()
#4  0x00000001000223c1 in __gmp_randget_mt (rstate=0x7fff5fbffb60,
dest=0x7fff5fbffab0, nbits=32)
    at randmt.c:256
#5  0x000000010006d81d in ?? () from
/Users/vbraun/Code/mpir-2.6.0/.libs/libmpir.11.dylib
#6  0x000000010006d71c in ?? () from
/Users/vbraun/Code/mpir-2.6.0/.libs/libmpir.11.dylib
#7  0x0000000100000f8c in main () at t-popc.c:60
(gdb) frame 4
#4  0x00000001000223c1 in __gmp_randget_mt (rstate=0x7fff5fbffb60,
dest=0x7fff5fbffab0, nbits=32)
    at randmt.c:256
256          NEXT_RANDOM;

The NEXT_RANDOM macro is just the next step of MPIR's Mersenne twister, it only
does elementary bit operations on the state variable. It also only fails after
the 70th iteration of the outermost loop. Successive runs always fail in the
same __block_descriptor_tmp227. The other failing testcase t-bswap also
segfaults in the Mersenne twister.


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

* [Bug target/63610] OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
  2014-10-21 18:37 ` [Bug target/63610] " vbraun at physics dot upenn.edu
@ 2014-10-21 18:37 ` vbraun at physics dot upenn.edu
  2014-10-21 19:15 ` vbraun at physics dot upenn.edu
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: vbraun at physics dot upenn.edu @ 2014-10-21 18:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Volker Braun <vbraun at physics dot upenn.edu> ---
Created attachment 33770
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33770&action=edit
Log of the MPIR compilation ending in the testsuite failure


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

* [Bug target/63610] OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
@ 2014-10-21 18:37 ` vbraun at physics dot upenn.edu
  2014-10-21 18:37 ` vbraun at physics dot upenn.edu
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: vbraun at physics dot upenn.edu @ 2014-10-21 18:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Volker Braun <vbraun at physics dot upenn.edu> ---
Created attachment 33771
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33771&action=edit
gcc -v output


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

* [Bug target/63610] OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
  2014-10-21 18:37 ` [Bug target/63610] " vbraun at physics dot upenn.edu
  2014-10-21 18:37 ` vbraun at physics dot upenn.edu
@ 2014-10-21 19:15 ` vbraun at physics dot upenn.edu
  2014-10-23 13:22 ` vbraun.name at gmail dot com
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: vbraun at physics dot upenn.edu @ 2014-10-21 19:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Volker Braun <vbraun at physics dot upenn.edu> ---
Created attachment 33773
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33773&action=edit
gdb log of the failing testcase


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

* [Bug target/63610] OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (2 preceding siblings ...)
  2014-10-21 19:15 ` vbraun at physics dot upenn.edu
@ 2014-10-23 13:22 ` vbraun.name at gmail dot com
  2014-10-23 13:56 ` vbraun.name at gmail dot com
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: vbraun.name at gmail dot com @ 2014-10-23 13:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Volker Braun <vbraun.name at gmail dot com> ---
I got my hands on a gcc 4.9.1 binary build made on OSX 10.9 and this one works.
Diffing the log shows that this is due to different linker flags, my binary
build calls 

libtool: link: gcc -std=gnu99 -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o
.libs/libmpir.11.dylib  [...]

whereas the Yosemite-bootstrapped gcc calls

libtool: link: gcc -std=gnu99 -dynamiclib -Wl,-flat_namespace -Wl,-undefined
-Wl,suppress -o .libs/libmpir.11.dylib [...]

Relinking with the previous linker flags fixes the segfault. This is most
likely due to incorrect aclocal.m4 case check

      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
        10.[[012]]*)
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined
${wl}suppress' ;;

not taking 10.10 properly into account.


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

* [Bug target/63610] OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (3 preceding siblings ...)
  2014-10-23 13:22 ` vbraun.name at gmail dot com
@ 2014-10-23 13:56 ` vbraun.name at gmail dot com
  2014-10-27 12:48 ` howarth at bromo dot med.uc.edu
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: vbraun.name at gmail dot com @ 2014-10-23 13:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Volker Braun <vbraun.name at gmail dot com> ---
Libtool upstream patch:

​http://lists.gnu.org/archive/html/libtool-patches/2014-09/msg00002.html
>From gcc-bugs-return-464794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 23 13:56:50 2014
Return-Path: <gcc-bugs-return-464794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30352 invoked by alias); 23 Oct 2014 13:56:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30312 invoked by uid 55); 23 Oct 2014 13:56:47 -0000
From: "StaffLeavers at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/12742] Type alignment is lost if const is added to typedef
Date: Thu, 23 Oct 2014 13:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 3.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: StaffLeavers at arm dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-12742-4-AyUhozKulk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-12742-4@http.gcc.gnu.org/bugzilla/>
References: <bug-12742-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-10/txt/msg01815.txt.bz2
Content-length: 314

https://gcc.gnu.org/bugzilla/show_bug.cgi?id\x12742

--- Comment #50 from StaffLeavers at arm dot com ---
william.munns no longer works for ARM.

Your email will be forwarded to their line manager.


Please do not reply to this email.
If you need more information, please email real-postmaster@arm.com

Thank you.


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

* [Bug target/63610] OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (4 preceding siblings ...)
  2014-10-23 13:56 ` vbraun.name at gmail dot com
@ 2014-10-27 12:48 ` howarth at bromo dot med.uc.edu
  2014-10-27 13:07 ` howarth at bromo dot med.uc.edu
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2014-10-27 12:48 UTC (permalink / raw)
  To: gcc-bugs

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

howarth at bromo dot med.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howarth at bromo dot med.uc.edu

--- Comment #6 from howarth at bromo dot med.uc.edu ---
Created attachment 33817
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33817&action=edit
convenience patch


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

* [Bug target/63610] OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (5 preceding siblings ...)
  2014-10-27 12:48 ` howarth at bromo dot med.uc.edu
@ 2014-10-27 13:07 ` howarth at bromo dot med.uc.edu
  2014-10-27 13:13 ` vbraun.name at gmail dot com
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2014-10-27 13:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from howarth at bromo dot med.uc.edu ---
I can confirm that there are many regressions (particularly in the fortran test
suite) on Yosemite due to the libtool bug which causes shared libraries to be
linked as if the target was Puma. The attached convenience patch solves the
issue (which should only be triggered if MACOSX_DEPLOYMENT_TARGET is being
set). The fix is of the form...

Index: gcc-4.9.1/gcc/configure
===================================================================
--- gcc-4.9.1.orig/gcc/configure
+++ gcc-4.9.1/gcc/configure
@@ -14415,7 +14415,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-       10.[012]*)
+       10.[012][,.]*)
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined
${wl}suppress' ;;
        10.*)
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;


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

* [Bug target/63610] OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (6 preceding siblings ...)
  2014-10-27 13:07 ` howarth at bromo dot med.uc.edu
@ 2014-10-27 13:13 ` vbraun.name at gmail dot com
  2014-11-11  9:15 ` [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14) fxcoudert at gcc dot gnu.org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: vbraun.name at gmail dot com @ 2014-10-27 13:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Volker Braun <vbraun.name at gmail dot com> ---
Another workaround is to set MACOSX_DEPLOYMENT_TARGET=10.9

Libtool-2.4.3 will have the fix, gcc (and everybody else) should just
reconfigure when its out.

http://lists.gnu.org/archive/html/libtool/2014-10/msg00001.html


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

* [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14)
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (7 preceding siblings ...)
  2014-10-27 13:13 ` vbraun.name at gmail dot com
@ 2014-11-11  9:15 ` fxcoudert at gcc dot gnu.org
  2014-11-11 20:25 ` fxcoudert at gcc dot gnu.org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-11  9:15 UTC (permalink / raw)
  To: gcc-bugs

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

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-apple-darwin14
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-11-11
                 CC|                            |fxcoudert at gcc dot gnu.org,
                   |                            |iains at gcc dot gnu.org
               Host|                            |x86_64-apple-darwin14
            Summary|OSX 10.10 (Yosemite)        |Fixing the libtool bug for
                   |segfault in MPIR testsuite  |Yosemite (darwin14)
                   |with -O0 or -O1             |
     Ever confirmed|0                           |1
              Build|                            |x86_64-apple-darwin14

--- Comment #11 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to howarth from comment #7)
> I can confirm that there are many regressions (particularly in the fortran
> test suite) on Yosemite due to the libtool bug

Patch submitted to fix the configure files in GCC tree:
https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00930.html

But it doesn't seem to make much difference in the test results:
https://gcc.gnu.org/ml/gcc-testresults/2014-11/msg01024.html


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

* [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14)
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (8 preceding siblings ...)
  2014-11-11  9:15 ` [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14) fxcoudert at gcc dot gnu.org
@ 2014-11-11 20:25 ` fxcoudert at gcc dot gnu.org
  2014-11-12 22:44 ` fxcoudert at gcc dot gnu.org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-11 20:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Author: fxcoudert
Date: Tue Nov 11 20:25:18 2014
New Revision: 217366

URL: https://gcc.gnu.org/viewcvs?rev=217366&root=gcc&view=rev
Log:
toplevel:
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * libtool.m4: Fix globbing of darwin versions.

boehm-gc/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

gcc/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libatomic/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libbacktrace/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libcc1/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libcilkrts/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libffi/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libgfortran/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libgomp/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libitm/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libobjc/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libquadmath/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libsanitizer/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libssp/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libstdc++-v3/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libvtv/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

lto-plugin/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libjava/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

libjava/classpath/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

zlib/
2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

    PR target/63610
    * configure: Regenerate.

Modified:
    trunk/ChangeLog
    trunk/boehm-gc/ChangeLog
    trunk/boehm-gc/configure
    trunk/gcc/ChangeLog
    trunk/gcc/configure
    trunk/libatomic/ChangeLog
    trunk/libatomic/configure
    trunk/libbacktrace/ChangeLog
    trunk/libbacktrace/configure
    trunk/libcc1/ChangeLog
    trunk/libcc1/configure
    trunk/libcilkrts/ChangeLog
    trunk/libcilkrts/configure
    trunk/libffi/ChangeLog
    trunk/libffi/configure
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/configure
    trunk/libgomp/ChangeLog
    trunk/libgomp/configure
    trunk/libitm/ChangeLog
    trunk/libitm/configure
    trunk/libjava/ChangeLog
    trunk/libjava/classpath/ChangeLog.gcj
    trunk/libjava/classpath/configure
    trunk/libjava/configure
    trunk/libobjc/ChangeLog
    trunk/libobjc/configure
    trunk/libquadmath/ChangeLog
    trunk/libquadmath/configure
    trunk/libsanitizer/ChangeLog
    trunk/libsanitizer/configure
    trunk/libssp/ChangeLog
    trunk/libssp/configure
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/configure
    trunk/libtool.m4
    trunk/libvtv/ChangeLog
    trunk/libvtv/configure
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/configure
    trunk/zlib/ChangeLog.gcj
    trunk/zlib/configure


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

* [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14)
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (9 preceding siblings ...)
  2014-11-11 20:25 ` fxcoudert at gcc dot gnu.org
@ 2014-11-12 22:44 ` fxcoudert at gcc dot gnu.org
  2014-11-12 22:59 ` howarth at bromo dot med.uc.edu
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-12 22:44 UTC (permalink / raw)
  To: gcc-bugs

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

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.0

--- Comment #13 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Fixed on trunk. I don't see the need to back port to 4.9, since I don't see
many test suite failures on that branch. If you have evidence that a back port
would help, please reopen and add the new info.


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

* [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14)
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (10 preceding siblings ...)
  2014-11-12 22:44 ` fxcoudert at gcc dot gnu.org
@ 2014-11-12 22:59 ` howarth at bromo dot med.uc.edu
  2014-11-14  8:37 ` fxcoudert at gcc dot gnu.org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2014-11-12 22:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from howarth at bromo dot med.uc.edu ---
(In reply to Francois-Xavier Coudert from comment #13)
> Fixed on trunk. I don't see the need to back port to 4.9, since I don't see
> many test suite failures on that branch. If you have evidence that a back
> port would help, please reopen and add the new info.

   You aren't seeing regressions because you're not setting
MACOSX_DEPLOYMENT_TARGET  during the gcc build. It took me days to puzzle that
out why a standalone build of gcc 4.9.2 on darwin14 produced clean test suite
results but one under the fink packaging system, which sets
MACOSX_DEPLOYMENT_TARGET, produced a huge number of regressions in the fortran
test suite.
   So you definitely do want to back port the configure/libtool.m4 fixes for
4.9.3.


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

* [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14)
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (11 preceding siblings ...)
  2014-11-12 22:59 ` howarth at bromo dot med.uc.edu
@ 2014-11-14  8:37 ` fxcoudert at gcc dot gnu.org
  2014-11-14  8:52 ` iains at gcc dot gnu.org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-14  8:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to howarth from comment #14)
> You aren't seeing regressions because you're not setting
> MACOSX_DEPLOYMENT_TARGET  during the gcc build.

Oh, so that's it! Thanks for puzzling it out.

I'll ask RM for permission to backport to all active branches (4.8 and 4.9).
Before I do that, can you confirm that the patch works as you expect on trunk,
with MACOSX_DEPLOYMENT_TARGET set? Just to be extra sure.


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

* [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14)
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (12 preceding siblings ...)
  2014-11-14  8:37 ` fxcoudert at gcc dot gnu.org
@ 2014-11-14  8:52 ` iains at gcc dot gnu.org
  2014-11-14  9:16 ` fxcoudert at gcc dot gnu.org
  2014-11-14 11:19 ` howarth at bromo dot med.uc.edu
  15 siblings, 0 replies; 17+ messages in thread
From: iains at gcc dot gnu.org @ 2014-11-14  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Iain Sandoe <iains at gcc dot gnu.org> ---
Hmm the patch for __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ has been
applied to 4.9 (AFAICT), although not to 4.8,

Jack, what does your 4.9 compiler give for:

gcc -dM -E -x c /dev/null |grep ENVIRO

?

If the __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ is being set correctly,
what is causing the need for MACOSX_DEPLOYMENT_TARGET?


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

* [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14)
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (13 preceding siblings ...)
  2014-11-14  8:52 ` iains at gcc dot gnu.org
@ 2014-11-14  9:16 ` fxcoudert at gcc dot gnu.org
  2014-11-14 11:19 ` howarth at bromo dot med.uc.edu
  15 siblings, 0 replies; 17+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-14  9:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #16)
> Hmm the patch for __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ has been
> applied to 4.9 (AFAICT)

Yes it has.


> although not to 4.8

You're right. Provided that the patches are simple, maybe it's good enough to
document them (as I have in the __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
patch for 4.8) and let distributors apply them.


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

* [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14)
  2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
                   ` (14 preceding siblings ...)
  2014-11-14  9:16 ` fxcoudert at gcc dot gnu.org
@ 2014-11-14 11:19 ` howarth at bromo dot med.uc.edu
  15 siblings, 0 replies; 17+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2014-11-14 11:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from howarth at bromo dot med.uc.edu ---
(In reply to Francois-Xavier Coudert from comment #17)
> (In reply to Iain Sandoe from comment #16)
> > Hmm the patch for __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ has been
> > applied to 4.9 (AFAICT)
> 
> Yes it has.
> 
> 
> > although not to 4.8
> 
> You're right. Provided that the patches are simple, maybe it's good enough
> to document them (as I have in the
> __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ patch for 4.8) and let
> distributors apply them.

There is nothing in the gcc build that *needs* to have MACOSX_DEPLOYMENT_TARGET
set, however some packaging environments, like fink and MacPorts, happen to set
MACOSX_DEPLOYMENT_TARGET by default and thus triggers the configure/libtool.m4
bug...

https://trac.macports.org/ticket/44596#comment:35

The Apple programmers told of the libtool.m4 bug so far all are of the view
that configure/libtool.m4 shouldn't really be defaulting to "-undefined
dynamic_lookup" as that can mask undefined symbols in release code (but should
be default "-undefined error").

https://trac.macports.org/ticket/44596#comment:48

However that is a really libtool bug.


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

end of thread, other threads:[~2014-11-14 11:19 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-21 18:36 [Bug target/63610] New: OSX 10.10 (Yosemite) segfault in MPIR testsuite with -O0 or -O1 vbraun at physics dot upenn.edu
2014-10-21 18:37 ` [Bug target/63610] " vbraun at physics dot upenn.edu
2014-10-21 18:37 ` vbraun at physics dot upenn.edu
2014-10-21 19:15 ` vbraun at physics dot upenn.edu
2014-10-23 13:22 ` vbraun.name at gmail dot com
2014-10-23 13:56 ` vbraun.name at gmail dot com
2014-10-27 12:48 ` howarth at bromo dot med.uc.edu
2014-10-27 13:07 ` howarth at bromo dot med.uc.edu
2014-10-27 13:13 ` vbraun.name at gmail dot com
2014-11-11  9:15 ` [Bug target/63610] Fixing the libtool bug for Yosemite (darwin14) fxcoudert at gcc dot gnu.org
2014-11-11 20:25 ` fxcoudert at gcc dot gnu.org
2014-11-12 22:44 ` fxcoudert at gcc dot gnu.org
2014-11-12 22:59 ` howarth at bromo dot med.uc.edu
2014-11-14  8:37 ` fxcoudert at gcc dot gnu.org
2014-11-14  8:52 ` iains at gcc dot gnu.org
2014-11-14  9:16 ` fxcoudert at gcc dot gnu.org
2014-11-14 11:19 ` howarth at bromo dot med.uc.edu

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