OpenBLAS fixed in Xcode 11.2

Jack Howarth howarth.at.macports at gmail.com
Fri Nov 8 23:28:01 UTC 2019


I just noticed a really bizarre aspect to this Xcode 11 bug. If you build
gmp manually from source with the default compiler flags in use...

./configure
make
make check

the t-powm test case fails. However if you add -fstack-check explicitly on
CFLAGS and CXXFLAGS, the t-powm test case failure is suppressed.

./configure  CFLAGS='-O2 -fcheck-stack' CXXFLAGS='-O2 -fcheck-stack'
make
make check

       Jack

On Fri, Nov 8, 2019 at 7:57 AM Chris Jones <jonesc at hep.phy.cam.ac.uk> wrote:

> Hi,
>
> GCC has the same -fstack-check option, just not enabled by default.
> Maybe if we can show the same happens with gcc if that is enabled that
> would help...
>
> Chris
>
> On 08/11/2019 12:53 pm, Jack Howarth wrote:
> > FYI, I got this back on my radar about gmp still being broken in Xcode
> > 11.2...
> >
> > Engineering has provided the following information regarding this issue:
> > It sounds like gmp has a memory corruption issue which -fstack-check has
> > uncovered.  We suggest filing a bug with the developers of gmp.
> >
> > For course, the upstream gmp developer constantly rants about how broken
> > clang is so he will probably just blame the llvm developers for the
> > breakage.
> >      Jack
> >
> > On Fri, Nov 1, 2019 at 5:09 AM Jack Howarth
> > <howarth.at.macports at gmail.com <mailto:howarth.at.macports at gmail.com>>
> > wrote:
> >
> >     The issues in gmp might not be fixed in Xcode 11.2. The exact issue
> >     isn't listed in the current gmp Portfile but 'sudo port test gmp'
> >     shows...
> >
> >     PASS: bit
> >
> >     ../../test-driver: line 107: 63647 Segmentation fault: 11  "$@" >
> >     $log_file 2>&1
> >
> >     FAIL: t-powm
> >
> >
> >               Jack
> >
> >     On Thu, Oct 31, 2019 at 10:51 PM Ryan Schmidt
> >     <ryandesign at macports.org <mailto:ryandesign at macports.org>> wrote:
> >
> >
> >
> >         On Oct 31, 2019, at 20:34, Joshua Root wrote:
> >
> >          > On 2019-11-1 11:49 , Jack Howarth wrote:
> >          >>      Although it wasn't fixed in Xcode 11.2 beta 2, the
> >         -fcheck-stack
> >          >> issues with OpenBLAS's test suite are fixed in the final
> >         Xcode 11.2
> >          >> released today.
> >          >>          Jack
> >          >
> >          > Good to hear. Ryan, could you please update Xcode on the
> Catalina
> >          > buildslave ASAP?
> >
> >         Got it. It will be easier to wait until the portbuilder queue is
> >         empty. I'll try to pause it and update it before it goes on to
> >         the next batch.
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191108/5cffdf39/attachment.html>


More information about the macports-dev mailing list