From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id eCqsLhsYVGZIUgEAqHPOHw:P1 (envelope-from ) for ; Mon, 27 May 2024 07:20:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eCqsLhsYVGZIUgEAqHPOHw (envelope-from ) for ; Mon, 27 May 2024 07:20:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JysxLu89; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716787227; a=rsa-sha256; cv=none; b=DFFSZwOGlT1X/wirLIwdMjUPb+p+dllVhtLfYWvkE+PIOfzPnXqjOOcjbZJr1kFF5GTAui ZJp7nRQTaUxsfyK84IEIIbGovOtTtDCHBcqP91KCRPOPZG9ufVYi24AAGAXO1WFNIpS78A heLtblhsmYFqWrwrpEgS20RTBzJqIN1Z2omnY79qI9+OLXMYQxMPc8kMM2qfEQ5eLSHHvE Z0XQ82ogkEYZTozYh8gMM8CJrxnHHs5pJELCQqLyqz0mvd7ywbs7nDXbZ/y6XEGrj0RaSQ voXHvqbhA0EG5ioCEeQ4lTyuZ4GcwMbsoPNEKxQRVMpNfFVj1VfN5AIC8W3KZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JysxLu89; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716787227; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=jDmHd3wNGuAWDhnB+T4p8w7gQdzUD8n4kT+0N3t+JAQ=; b=NiLD4/nQcbYZDeWzq5JDJcWfj2OjA+ZPhTfKgA0auGkKlC50RQ0ank1m5kNgv/MrOcD84a 7lfQp7Ob3/wuNu6N2D9GsDfrmPQvCp+Zddv/PrR5xTvFZ+rZg20taVl6/WF1/9hW6DSCWm +MchdmhLs7q4Mo+6ghxlOfE7PskpnHlPM46lBc0kNgaZTzdPyVB2yg1xw8LJo8TIiioXcI gHzb8rbq14wF4FE0uw2xfstHEkvVwgFndHDqBcEFXLWoJQBnEYaGx0JkGeICHlilvw4L0A 9guHNLDmm6eaRUozvsCbVut+SdrVZjsr9azwF3EDiJfJIJCwgRZg6HuPaabV0w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6E96713AF1 for ; Mon, 27 May 2024 07:20:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBSm5-0000VE-RX; Mon, 27 May 2024 01:19:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBSm2-0000UM-IM for guix-patches@gnu.org; Mon, 27 May 2024 01:19:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBSm2-00016H-6g for guix-patches@gnu.org; Mon, 27 May 2024 01:19:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBSmA-0005Ue-Gw for guix-patches@gnu.org; Mon, 27 May 2024 01:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71219] [PATCH] gnu: llama-cpp: Update configure flags for shared library build. Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 May 2024 05:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71219 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71219@debbugs.gnu.org Cc: Andy Tai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171678717921043 (code B ref -1); Mon, 27 May 2024 05:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 May 2024 05:19:39 +0000 Received: from localhost ([127.0.0.1]:42884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBSlm-0005TK-Os for submit@debbugs.gnu.org; Mon, 27 May 2024 01:19:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:53598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBSlb-0005St-1b for submit@debbugs.gnu.org; Mon, 27 May 2024 01:19:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBSjB-000748-74 for guix-patches@gnu.org; Mon, 27 May 2024 01:17:01 -0400 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBSj7-0000dc-Rv for guix-patches@gnu.org; Mon, 27 May 2024 01:16:56 -0400 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-68195b58daeso2119797a12.2 for ; Sun, 26 May 2024 22:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716787012; x=1717391812; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=jDmHd3wNGuAWDhnB+T4p8w7gQdzUD8n4kT+0N3t+JAQ=; b=JysxLu89FRwZWEA0lSsXcKkPsH9Sl+lt5ru3HatRuWhZZnZym1I9TdA4nWv3TlXdqn dPE2MKp8xwuS9xetye+8sTnzpLYrBJRn9tmVHvbD1s0MWeleeC+JPGROe8KnS7lm6txz 9CCkofRsaFuzfWIQNnE9DdIxRQKN1SqCgcMEybLWKa7YRev6sgpS6c23W0vgYXTaSOjc 4wDk6kzSb0zpqQZYH1lITja7cEebD9rLXX9IGp8JpK9ECHGH4WwchTqntkue7dRLx3Kg MELyfKElL9wioQ+v4grM5LX96i9c8dofi/afoomcECt8EovG31Qg4PG75nMlOKmfsKMd 0S9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716787012; x=1717391812; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jDmHd3wNGuAWDhnB+T4p8w7gQdzUD8n4kT+0N3t+JAQ=; b=hF91q+O2/k3VnoK/xRcsWx1bN0OhEWhxvOuw+EN1O5c4Yyz0SnI63w8Q08X0ZLp3Lm 74q+g3LzOzjSOAGvJqF+nRqHMMU9yTDKMP6b2iy5kzxpa91V4L+2Nzy7P08pcA0rMcyx jNHW9kHXTy53xhUtDZAWydc3zDLuAwyMmLqA3vbk+NetB3PudTeTvDJ6QTPAfqIXzWxe LDhrGXvdycav5bf+Up6JMxiBQhVjc2vRTIrDmPnIL4Q73NR/kOnEDaMdm7QEjOGyGC8K kIE/MGfiX03EiK3yI2aJ/1/NfyPP0xCXcg8Nt2j0iFGdAjawZiyCn2yqyF7cEBQVTszC 1tbw== X-Gm-Message-State: AOJu0Yxcmd5r7tsBSRWv8H3dnBud9GP1gHAVIu2k8IjkIlogT7BnT7Lz ejVFdwBYPCQ1ycnV0JXFbmerGqgr76yxe0zOVtR+CAmm4+hCXpmE+MteEA== X-Google-Smtp-Source: AGHT+IEl/oj8Z7j+FLFwWh/sZl6+pVI+d0Jtkeqx/e3jDFlsk+34UjPn8q5Pr9vGhca8hogStelE1g== X-Received: by 2002:a05:6a20:de16:b0:1af:597f:4970 with SMTP id adf61e73a8af0-1b212d2d0a4mr8507370637.24.1716787011938; Sun, 26 May 2024 22:16:51 -0700 (PDT) Received: from DEskMiniX300.. (c-98-37-226-154.hsd1.ca.comcast.net. [98.37.226.154]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fc36c547sm4263519b3a.90.2024.05.26.22.16.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 22:16:51 -0700 (PDT) From: Andy Tai Date: Sun, 26 May 2024 22:16:48 -0700 Message-Id: <6c6fc91b2febb791d50aac5e9a16a220090eb31d.1716786995.git.atai@atai.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=lichengtai@gmail.com; helo=mail-pg1-x52d.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 6E96713AF1 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -1.04 X-Spam-Score: -1.04 X-TUID: Kg74COlvqJNR * gnu/packages/machine-learning.scm (lama-cpp): [arguments](configure-flags): add cmake configure flag to force position independent code generation from C compiler for shared library build. Change-Id: I7c4bc219a22aa9a949e811b340c7cf745b176d14 --- gnu/packages/machine-learning.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index a385ddc18c..398b42f203 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -541,7 +541,8 @@ (define-public llama-cpp (build-system cmake-build-system) (arguments (list - #:configure-flags #~'("-DLLAMA_BLAS=ON" + #:configure-flags #~'("-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE" + "-DLLAMA_BLAS=ON" "-DLLAMA_BLAS_VENDOR=OpenBLAS" "-DLLAMA_NATIVE=OFF" ;no '-march=native' base-commit: 0f3a25a25e212bfa8ab9db37d267fb260a087e5d -- 2.34.1