From owner-freebsd-hackers@freebsd.org Sat Feb 15 22:27:48 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 79DD524ADCB for ; Sat, 15 Feb 2020 22:27:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48KlHm11Xdz3NJc; Sat, 15 Feb 2020 22:27:47 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id 01FMReWs000254 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 16 Feb 2020 00:27:43 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 01FMReWs000254 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id 01FMRe6J000253; Sun, 16 Feb 2020 00:27:40 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 16 Feb 2020 00:27:40 +0200 From: Konstantin Belousov To: Palle Girgensohn Cc: freebsd-hackers@freebsd.org, Kirill Ponomarev Subject: Re: Why is not llvm-config executable included? Message-ID: <20200215222740.GW4808@kib.kiev.ua> References: <20200215185821.GV4808@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on tom.home X-Rspamd-Queue-Id: 48KlHm11Xdz3NJc X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,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:27:48 -0000 On Sat, Feb 15, 2020 at 11:10:44PM +0100, Palle Girgensohn wrote: > > > > 15 feb. 2020 kl. 19:58 skrev Konstantin Belousov : > > > > On Sat, Feb 15, 2020 at 07:35:29PM +0100, Palle Girgensohn wrote: > >> Hi! > >> > >> 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. > >> > >> Any ideas how to deal with this, apart from installing devel/llbm90 which seems a bit bonkers? > > > > 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. > > > > 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. > > > > 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? Same as any other consumer of llvm, for instance mesa-drm.