From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: LLVM: "FileCheck" is missing Date: Fri, 25 Mar 2016 18:45:40 +0100 Message-ID: <20160325184540.4e02cb2d@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajVnx-0006sf-SA for guix-devel@gnu.org; Fri, 25 Mar 2016 13:45:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajVnu-00009m-Ku for guix-devel@gnu.org; Fri, 25 Mar 2016 13:45:49 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:36324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajVnu-00009i-An for guix-devel@gnu.org; Fri, 25 Mar 2016 13:45:46 -0400 Received: from localhost (91.141.2.109.wireless.dyn.drei.com [91.141.2.109]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 435851CA1A78 for ; Fri, 25 Mar 2016 18:45:44 +0100 (CET) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Hi, is anyone familiar with our LLVM packages?=20 I'm trying to package rust and run into /gnu/store/pmiw7p7a6hwl6k2kblsk3zwhxh3gln21-llvm-3.6.2/bin/FileCheck is m= issing=20 when configuring rust. Indeed, it is missing in the entire tree /gnu/store/pmiw7p7a6hwl6k2kblsk3zwhxh3gln21-llvm-3.6.2 . It seems to be a tool for unit testing. The rusts I'm trying to use are: ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2012, 2013, 2014, 2015 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2014, 2015 Mark H Weaver ;;; Copyright =C2=A9 2014, 2015, 2016 Ricardo Wurmus ;;; Copyright =C2=A9 2015 Andreas Enge ;;; Copyright =C2=A9 2015 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages rust) #:use-module ((guix licenses) #:select (asl2.0)) #:use-module (gnu packages) #:use-module (gnu packages curl) #:use-module (gnu packages python) #:use-module (gnu packages llvm) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (guix utils) ) (define-public rust (package (name "rust") (version "1.9.0") (home-page "http://www.rust-lang.org/") (synopsis "Rust Programming Language") (description "Safe, Concurrent Programming Language") (license (list asl2.0)) ; FIXME and which MIT (build-system gnu-build-system) ; FIXME rust-build-system (inputs `( ; TODO llvm python jemalloc nacl musl ("llvm" ,llvm) )) (native-inputs `( ("curl" ,curl) ; FIXME remove ("python-2" ,python-2) ("llvm" ,llvm) ; 3.6 ?? ; TODO ? )) (source (origin (method url-fetch) (uri "https://static.rust-lang.org/dist/2016-03-25/rustc-nightly-s= rc.tar.gz") (sha256 (base32 "01sxhssllwqckmmzck6b17kaqqx622mwslwhjdrrkwjwa5qy7= v54")) ;(uri (string-append "https://github.com/rust-lang/rust/archive/" = version ".tar.gz")) ;(sha256 (base32 "1m2d1dc243s7ym8fq2yag3fr5jvki0q9c39llfwgcpq1gc8j= vcn8")) )) (arguments `(#:configure-flags `( ;"-DCFG_BUILD=3Dx86_64-unknown-linux-gnu" ;"-disable-codegen-tests" ; because FileCheck= is not built in llvm. https://github.com/alexcrichton/rust/commit/295a70f4= b92d961c2e74cc750e47083e118ee10a ) ; FIXME don't hard-code #:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key inputs outputs configure-flags #:allow= -other-keys) (let ((out (assoc-ref outputs "out"))) (zero? (apply system* `("./configure" ,(string-append "--prefix=3D" out) ,(string-append "--llvm-root=3D" (a= ssoc-ref inputs "llvm")) ; FIXME (string-append "--extra-ldf= lags=3D-Wl,-rpath-=3D" out "/lib") ,@configure-flags))))))))) ; FIXME remove src/llvm ;configure: CFG_LLVM_ROOT :=3D =20 ;configure: CFG_PYTHON :=3D =20 ;configure: CFG_JEMALLOC_ROOT :=3D =20 ;configure: CFG_NACL_CROSS_PATH :=3D =20 ;configure: CFG_MUSL_ROOT :=3D /usr/local=20 ))