From owner-freebsd-hackers@freebsd.org Sat Feb 15 22:10:47 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0B2F324A634 for ; Sat, 15 Feb 2020 22:10:47 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from mail.pingpong.net (mail.pingpong.net [109.228.164.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48Kkw657hqz4fyk for ; Sat, 15 Feb 2020 22:10:46 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from [10.0.1.11] (c188-149-188-210.bredband.comhem.se [188.149.188.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.pingpong.net (Postfix) with ESMTPSA id C161042613; Sat, 15 Feb 2020 23:10:44 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Why is not llvm-config executable included? From: Palle Girgensohn In-Reply-To: <20200215185821.GV4808@kib.kiev.ua> Date: Sat, 15 Feb 2020 23:10:44 +0100 Cc: freebsd-hackers@freebsd.org, Kirill Ponomarev Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200215185821.GV4808@kib.kiev.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 48Kkw657hqz4fyk X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.91 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.91)[-0.912,0]; ASN(0.00)[asn:8473, ipnet:109.228.128.0/18, country:SE]; NEURAL_HAM_LONG(-1.00)[-0.997,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Feb 2020 22:10:47 -0000 > 15 feb. 2020 kl. 19:58 skrev Konstantin Belousov = : >=20 > On Sat, Feb 15, 2020 at 07:35:29PM +0100, Palle Girgensohn wrote: >> Hi! >>=20 >> I try to build postgresql with llvm from base in 13.0-CURRENT, but = although it seems to me that llvm is indeed included in base, the = executable `llvm-config` is not. PostgreSQL's build process expects to = be able to use this to configure itself when building with llvm. >>=20 >> Any ideas how to deal with this, apart from installing devel/llbm90 = which seems a bit bonkers? >=20 > If you need llvm you must install it from ports. The fact that = /usr/bin/cc > is clang with llvm behind it is somewhat accidental. >=20 > One of the reason why llvm in base should not be used as llvm = infrastructure > is because llvm API and ABI is not stable across llvm releases, and = exposing > that would make compiler updates in stable impossible due to the = stable > branches guarantee of ABI stability. >=20 > Another reason is that we generally do not want to make base depended = on > specific on llvm or any other compiler' internals. It should stay as > (reasonably portable) C+gnu ext project. Ah, OK, makes sense. So if postgresql depends on llvm, it simply has to = depend on the port, right? Palle