Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2016 23:24:11 +0000
From:      "Montgomery-Smith, Stephen" <stephen@missouri.edu>
To:        Don Lewis <truckman@FreeBSD.org>
Cc:        "stephen@FreeBSD.org" <stephen@FreeBSD.org>, "ports-committers@freebsd.org" <ports-committers@freebsd.org>, "svn-ports-all@freebsd.org" <svn-ports-all@freebsd.org>, "svn-ports-head@freebsd.org" <svn-ports-head@freebsd.org>, "you.akira.noda@gmail.com" <you.akira.noda@gmail.com>, Maho NAKATA <chat95@mac.com>
Subject:   Re: svn commit: r405907 - head/Mk
Message-ID:  <56958B1A.8000602@missouri.edu>
In-Reply-To: <5695862E.5000209@missouri.edu>
References:  <201601122253.u0CMqwxo087657@gw.catspoiler.org> <5695862E.5000209@missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/12/2016 05:03 PM, Montgomery-Smith, Stephen wrote:
> On 01/12/2016 04:52 PM, Don Lewis wrote:
>> On 12 Jan, Montgomery-Smith, Stephen wrote:
>>> On 01/12/2016 03:48 PM, Don Lewis wrote:
>>>> On 12 Jan, Stephen Montgomery-Smith wrote:
>>>>> Author: stephen
>>>>> Date: Tue Jan 12 19:56:13 2016
>>>>> New Revision: 405907
>>>>> URL: https://svnweb.freebsd.org/changeset/ports/405907
>>>>>
>>>>> Log:
>>>>>   - Svn revision 405533 upgraded /math/octave to version 4.0.0.  This=
 version
>>>>>     of octave segfaults with FreeBSD.  Many of the octave-forge-* por=
ts don't
>>>>>     build, and those that build don't work.  So they are all being ma=
rked
>>>>>     broken until it is fixed.
>>>>
>>>> It's actually octave-gui that is segfaulting.  The cause is that the
>>>> executable is bringing in both libstdc++ and libc++, and the reason fo=
r
>>>> that is likely the addition of USE_GCC=3Dyes to the port Makefile that=
 was
>>>> done at the same time as the version upgrade.
>>>>
>>>> I have no idea what happens if USE_GCC=3Dyes is removed from the Makef=
ile.
>>>> there may be problems with compiling the source with the combination o=
f
>>>> clang and gfortran.  I'll give it a try, though.
>>>>
>>>> Another possibility would be do disable the gui.  Looking at configure=
,
>>>> there is a --disable-gui option that we don't expose as a port option.=
 I
>>>> don't know what libraries are needed by the gui, but of all the
>>>> libraries in LIB_DEPENDS, libfltk.so, libftgl.so, and libqscintilla2.s=
o
>>>> are the ones that are linked to libc++.so.
>>>>
>>>> Unfortunately, "octave --no-gui" doesn't work.  It still tries to run
>>>> octave-gui and dies.
>>>>
>>>>
>>>>
>>>
>>>
>>> I had a different experience.  The octave-cli command segfaulted for me=
.
>>>  I run it through gdb (version 7.10) and valgrind after building octave
>>> with the "-g" option set.  It looks like the error takes place before
>>> any code is actually run, indicating that probably global data
>>> allocation may be the problem.  The error is freeing the NULL pointer.
>>
>> I can confirm that octave-cli also segfaults in the same wat.  It looks
>> like a call to a NULL function pointer, though.
>=20
> I got this email from Noda Akira, who submitted the original PR.  (I
> added his email address to the receipients.)  I just tried it, and it
> didn't fix it.  But now I am trying it using clang instead of gcc to
> build it.
>=20
> Hi
> I think some patch file is missed.
>=20
> patch-libinterp-octave-value-ov-classdef.cc
> patch-libinterp-octave-value-ov-classdef.h
> #
> #Please see this attachment of the PR site
> #https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201737
> #
>=20
> Without this, you will always have core dump (with gcc)
> I think clang can not build this source with out patch.
>=20


I tried building with clang, and it worked!!!!!  Yeah.  I'm adding maho@
to the list if recipients.

I'll send a patch for maho@ in a bit.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56958B1A.8000602>