From patchwork Wed Sep 2 13:05:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Lepiller X-Patchwork-Id: 23868 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B3A3127BBE8; Wed, 2 Sep 2020 14:13:50 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id F0BA527BBE7 for ; Wed, 2 Sep 2020 14:13:49 +0100 (BST) Received: from localhost ([::1]:59552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDSaD-0001TI-58 for patchwork@mira.cbaines.net; Wed, 02 Sep 2020 09:13:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDSSg-00015E-Hc for guix-patches@gnu.org; Wed, 02 Sep 2020 09:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47100) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDSSg-000848-6w for guix-patches@gnu.org; Wed, 02 Sep 2020 09:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDSSg-0005ug-27 for guix-patches@gnu.org; Wed, 02 Sep 2020 09:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#38635] [WIP PATCH v2] Add why3 and frama-c References: <20191216124626.048f0e43@sybil.lepiller.eu> In-Reply-To: <20191216124626.048f0e43@sybil.lepiller.eu> Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Sep 2020 13:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38635 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38635@debbugs.gnu.org Received: via spool by 38635-submit@debbugs.gnu.org id=B38635.159905194922710 (code B ref 38635); Wed, 02 Sep 2020 13:06:02 +0000 Received: (at 38635) by debbugs.gnu.org; 2 Sep 2020 13:05:49 +0000 Received: from localhost ([127.0.0.1]:58646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDSSM-0005u7-MW for submit@debbugs.gnu.org; Wed, 02 Sep 2020 09:05:49 -0400 Received: from lepiller.eu ([89.234.186.109]:49738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDSSJ-0005tx-IX for 38635@debbugs.gnu.org; Wed, 02 Sep 2020 09:05:42 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id b667dbfb for <38635@debbugs.gnu.org>; Wed, 2 Sep 2020 13:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=xRd A5Ofu3qUS7cBm8Y5/jVuzUOLQY8zEwvMJt7q14HM=; b=bFXQetr1CMxstF0w3WP 1sJaak3W6L9g3KQ1tseIOXFIv389kX+7waMzsao5eZYR3vnwopeB6ULVqa44Dk/1 E5E4duKQIOd/Q9fc9ARTcO/3AWzbWlllx0IlAROm2jqT6oB3aoLl31cH1gWHuzRE 4VjREIa1nV/otp9qUGsfWzIw+3/hWONwItsOIPbQiymVyjrE/T5+tJQ0ZgVHRi1y JROxCisd+uBDLyRgHlMGXT4dIFNg8q/kVlUgt/mgAjRYAIgZbczSSyLAempp1scF XhvTrwV7dvOuV61peg3Q+t4fmI1X5JeAgI4uHJl/ed1sqa5c3FpGPbY4OyrrVVWA rhQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 61c742bd (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <38635@debbugs.gnu.org>; Wed, 2 Sep 2020 13:05:37 +0000 (UTC) Date: Wed, 2 Sep 2020 15:05:30 +0200 From: Julien Lepiller Message-ID: <20200902150508.5c4a45e8@tachikoma.lepiller.eu> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi Guix! I've updated my patches to the newest versions of why3 and frama-c. The issue is still present as before: $ frama-c --help [kernel] User Error: cannot load plug-in 'zip': cannot load module Details: error loading shared library: Dynlink.Error (Dynlink.Cannot_open_dll "Failure(\"/gnu/store/jrbkl0ls1vqnr1w7gcbg8jlxcd1jp71m-profile/lib/ocaml/site-lib/zip/zip.cmxa: invalid ELF header\")") [kernel] User Error: cannot load plug-in 'why3': cannot load module Details: error loading shared library: Dynlink.Error (Dynlink.Cannot_open_dll "Failure(\"/gnu/store/jrbkl0ls1vqnr1w7gcbg8jlxcd1jp71m-profile/lib/ocaml/site-lib/why3/why3.cmxs: undefined symbol: camlGzip\")") [kernel] User Error: cannot load plug-in 'frama-c-wp': cannot load module Details: error loading shared library: Dynlink.Error (Dynlink.Cannot_open_dll "Failure(\"/gnu/store/bicyz7li6bvrxh4kh2h1dc5398bx5xsm-frama-c-21.1/lib/frama-c/plugins/top/Wp.cmxs: undefined symbol: camlWhy3__Theory\")") [kernel] User Error: Deferred error message was emitted during execution. See above messages for more information. [kernel] Frama-C aborted: invalid user input. From 408f2a6feffc8d86d0e3ff31b891614b160ed142 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Mon, 16 Dec 2019 12:40:18 +0100 Subject: [PATCH 2/2] gnu: Add frama-c. * gnu/packages/maths.scm (frama-c): New variable. --- gnu/packages/maths.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index aa3d0da77c..a18d35504c 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -6035,3 +6035,41 @@ correct-by-construction OCaml programs through an automated extraction mechanism. WhyML is also used as an intermediate language for the verification of C, Java, or Ada programs.") (license license:lgpl2.1))) + +(define-public frama-c + (package + (name "frama-c") + (version "21.1") + (source (origin + (method url-fetch) + (uri (string-append "http://frama-c.com/download/frama-c-" + version "-Scandium.tar.gz")) + (sha256 + (base32 + "0qq0d08dzr0dmdjysiimdqmwlzgnn932vp5kf8lfn3nl45ai09dy")))) + (build-system ocaml-build-system) + (arguments + `(#:tests? #f; no test target in Makefile + #:phases + (modify-phases %standard-phases + (add-before 'configure 'export-shell + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash") + "/bin/sh")) + #t))))) + (inputs + `(("gmp" ,gmp))) + (propagated-inputs + `(("ocaml-biniou" ,ocaml-biniou) + ("ocaml-easy-format" ,ocaml-easy-format) + ("ocaml-graph" ,ocaml-graph) + ("ocaml-yojson" ,ocaml-yojson) + ("ocaml-zarith" ,ocaml-zarith) + ("why3" ,why3))) + (home-page "http://frama-c.com") + (synopsis "C source code analysis platform") + (description "Frama-C is an extensible and collaborative platform dedicated +to source-code analysis of C software. The Frama-C analyzers assist you in +various source-code-related activities, from the navigation through unfamiliar +projects up to the certification of critical software.") + (license license:lgpl2.1+))) -- 2.28.0