From owner-freebsd-hackers@freebsd.org Sat Feb 15 18:58:29 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 2995024479E for ; Sat, 15 Feb 2020 18:58:29 +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 48KffD6W7rz4c0B; Sat, 15 Feb 2020 18:58:28 +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 01FIwLMU052404 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 15 Feb 2020 20:58:24 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 01FIwLMU052404 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id 01FIwLOW052403; Sat, 15 Feb 2020 20:58:21 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 15 Feb 2020 20:58:21 +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: <20200215185821.GV4808@kib.kiev.ua> References: 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: 48KffD6W7rz4c0B 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]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] 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 18:58:29 -0000 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.