Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2013 20:28:43 +0100
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        Tijl Coosemans <tijl@freebsd.org>
Cc:        Jan Henrik Sylvester <me@janh.de>, Baptiste Daroussin <bapt@freebsd.org>, stephen@freebsd.org, Maho Nakata <maho@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>, Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject:   Re: libc++ vs. libstdc++ usage in the ports tree
Message-ID:  <CAALwa8kSTqyEo6dOBVAEpXJU=-YcuVSamRa=Er7DFo9hahmdUg@mail.gmail.com>
In-Reply-To: <20131201150640.12ea18c8@kalimero.tijl.coosemans.org>
References:  <77CB2B92-216A-4C80-B033-7E582B5F0DFC@FreeBSD.org> <20131112165422.GA2939@troutmask.apl.washington.edu> <E0FE40D9-726C-4501-B31A-3622510C1C68@FreeBSD.org> <20131112175556.GA3319@troutmask.apl.washington.edu> <20131112201922.GA4330@troutmask.apl.washington.edu> <20131113173143.Horde.a-9M7JQ_vHo3tpDIMsGK6g1@webmail.df.eu> <CAFMmRNxk25AJ3TMuceSG=EmL3qSE9Xhk_wpL5pAD8YvZrA6gkg@mail.gmail.com> <5283CA3C.3080201@FreeBSD.org> <352D9465-9840-43F0-A3A9-327DC12B0967@FreeBSD.org> <B2F7EDA4-DF34-4D5D-B995-5ADA1A9898D8@FreeBSD.org> <20131114144555.GA22093@troutmask.apl.washington.edu> <52963A90.4000201@janh.de> <20131127204556.2974a3f5@kalimero.tijl.coosemans.org> <20131201150640.12ea18c8@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 1, 2013 at 3:06 PM, Tijl Coosemans <tijl@freebsd.org> wrote:
> On Wed, 27 Nov 2013 20:45:56 +0100 Tijl Coosemans wrote:
>> On Wed, 27 Nov 2013 19:31:44 +0100 Jan Henrik Sylvester wrote:
>>> Trying to migrate to 10, I would like to keep octave. Have you found
>>> anything new? Having build the port and all dependencies with standard
>>> options, octave is segfaulting for me, too. Anyhow, I can run octave with:
>>>
>>> env LD_PRELOAD=/usr/lib/libc++.so.1 octave
>>>
>>> Some very light testing indicates that it is working. Of course, this is
>>> not ideal.
>>>
>>> Maybe this gives a clue how to fix the octave port properly.
>>
>> I have a preliminary patch for math/octave that I wanted to test on
>> redports first, but it is down at the moment so here it is.
>
> The tests were successful:
> https://redports.org/buildarchive/20131201105316-94935/ (octave)
> https://redports.org/buildarchive/20131201115701-22333/ (octave-forge-base)
> The octave logs also contain the results of running the regression-test
> target.  The output is the same on all FreeBSD versions.
>
> The problem is that USE_FORTRAN=yes implies USE_GCC=yes.  This means
> the C++ code in math/octave is compiled with gcc46/libstdc++ which
> does not work if dependencies have been built with clang/libc++.
>
> The patch copies the USE_FORTRAN=yes logic from Mk/bsd.gcc.mk into a
> new file Mk/Uses/fortran.mk.  It allows ports to use a Fortran compiler
> together with the base system C/C++ compiler.

This is nice!

Cheers,

Antoine



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAALwa8kSTqyEo6dOBVAEpXJU=-YcuVSamRa=Er7DFo9hahmdUg>