Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2019 04:25:25 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        "Mikhail T." <mi+thun@aldan.algebra.com>
Cc:        gecko@freebsd.org
Subject:   Re: Firefox and llvm
Message-ID:  <y321-osmi-wny@FreeBSD.org>
In-Reply-To: <64325580-58fa-be6a-6045-58c5409ddb20@aldan.algebra.com> (Mikhail T.'s message of "Sun, 16 Jun 2019 21:46:17 -0400")
References:  <96bcddaf-f310-34b3-70c6-6a223f5f8b6c@aldan.algebra.com> <5zp5-yp43-wny@FreeBSD.org> <64325580-58fa-be6a-6045-58c5409ddb20@aldan.algebra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Mikhail T." <mi+thun@aldan.algebra.com> writes:

> On 16.06.19 21:31, Jan Beich wrote:
>
>> "Mikhail T." <mi+thun@aldan.algebra.com> writes:
>>
>>> Gentlemen, do you realize, building Firefox on FreeBSD today one has
>>> to wait for the entire LLVM to be recompiled -- /twice/: once because
>>> gecko, inexplicably, wants LLVM itself, and also because rust builds
>>> its own bundled version...
>>>
>>> What's wrong with the binaries provided by the base OS?.. Yours,
>> See https://wiki.freebsd.org/WhyDoIHaveToBuildLLVMWhenIAlreadyHaveClangInstalled
>
> Don't know about the video-drivers, but Firefox will happily build
> with llvm60, llvm70, and llvm80 -- for all the alleged "instability",
> evidently, the version is not a problem.

clang-sys didn't support llvm80 when gecko@ switched to it. I'm not sure
myself why but maybe bindgen uses a subset of bindings that're stable.

>> Maybe add "www/firefox needs libclang.so since 56.0
> Looking at my currently running firefox with lsof, I do not see
> libclang being used. Indeed, the library is not used at all on my
> machine: "lsof | grep libclang" yields nothing...

firefox only uses bindgen (depends on clang-sys) during build.

>> and llvm-objdump since 67.0" if you have wiki account.
>
> I suspect, it is possible to remove this requirement with a small
> patch -- 

Good luck. Make sure to test in a clean environment e.g., via poudriere.

> I can't see, what good llvm-objdump could do to the vast majority of
> users.

See https://hg.mozilla.org/mozilla-central/rev/53d93ee3ad84
While the commit was backed out the configure check wasn't, so maybe
the intent is to reland in future.

> And if it does something good, llvm-objdump is already part of base
> (at least, on this 12.0-STABLE laptop I'm trying to dress up)...

llvm-objdump is only installed when src.conf(5) has WITH_CLANG_EXTRAS.
Ports have to build against default base configuration.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y321-osmi-wny>