From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0HtWJn5riWXwDgAAkFu2QA (envelope-from ) for ; Mon, 25 Dec 2023 12:46:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sDvXHn5riWUGGAEAe85BDQ (envelope-from ) for ; Mon, 25 Dec 2023 12:46:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=h-brs.de (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703504766; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=t4U2VlQX56W9FOny/4tymZbc1fn6Yd6V+Ahfoud8JXY=; b=f+HQgiBaGVVY9pdclO8NcCJtTKxGLxkGpGONWPInvQPYt7mYVxWKZRmeUB4IfimQjEcYJ/ VP85+EHhyBwglXtW+7LBhiernOjXnl2OTOHUrqGSgizN+oeaRjg49tOTxLO7BfgdrDcNRp z59RGpcRa6xM5xbcI4LmKFfrZ8KCXUlmkfbfquE7tJIoTiBLmbE8l8q044kKekdGuVk6Wj 188TPzfmg4YdHL1pjTDJZPUhC9EHY/jAsj3pMu3GxKP+sJQgVnW3mFeJ+AjFOx6/xQJxL2 U63CNVnGDUwTL58XQNpdbcB+VOBFo0pkVSgpgq6DvzUT9oua3jKMNxk9LsMNrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703504766; a=rsa-sha256; cv=none; b=Uu9fJ0g/N4sb/1opimF2MC/vWFWVZT+aQ96JcUVgMGNOt5Y4dPkauSf6tQuad/zVkk69rm fiTk/u6y7MKpJJGVrfYeS3kVhNbn2QFwrgyEoiCajinOc/iY4jpdxQpTM/yXIN/Fp4QXRh A6qpBqMCq35FH3tMS/nmeTD3DCPq7jCgHJWId6YV3tBKyO8Q7LpnbcmMpaeSxSDSd4x5f3 s1jUT3eb9R72IBvkms0g/Uj+b4bsaPLO7lhLReA+GAPHNkjZeYfx2/oEoyIJ8Rq4TeXSfA ULhrjobIOjcljytr7TCdaEirMo1Ju2PGKU4Uoxm6muPvHJWomTzEHib+5Rxk/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=h-brs.de (policy=none) 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 34C5E3F578 for ; Mon, 25 Dec 2023 12:46:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHjOo-0006Bw-7a; Mon, 25 Dec 2023 06:45:34 -0500 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 1rHjOk-0006Bg-KM for help-guix@gnu.org; Mon, 25 Dec 2023 06:45:30 -0500 Received: from sv-2s11.infcs.de ([194.95.66.48] helo=ux-2s-mailproxy.inf.h-brs.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rHjOf-000055-8q for help-guix@gnu.org; Mon, 25 Dec 2023 06:45:29 -0500 Received: from gyps.h-brs.de (i5C7516F9.versanet.de [92.117.22.249]) (authenticated bits=0) by ux-2s-mailproxy.inf.h-brs.de (8.15.2/8.15.2/Debian-8ska0) with ESMTPSA id 3BPBjGfh019866 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 25 Dec 2023 12:45:17 +0100 User-agent: mu4e 1.10.8; emacs 29.1 From: Alexander Asteroth To: help-guix@gnu.org Subject: LD_LIBRARY_PATH issues when compiling package Date: Mon, 25 Dec 2023 12:24:12 +0100 Message-ID: <871qbajyk6.fsf@h-brs.de> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Auth: by SMTP AUTH @ ux-2s11 X-MIMEDefang-Info-ge: Gescannt in Inf@FH-BRS, Regeln s. MiniFAQ E-Mail/Mailscanner X-Scanned-By: MIMEDefang @ FB02 @ H-BRS Received-SPF: pass client-ip=194.95.66.48; envelope-from=alexander.asteroth@h-brs.de; helo=ux-2s-mailproxy.inf.h-brs.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.11 X-Spam-Score: -6.11 X-Migadu-Queue-Id: 34C5E3F578 X-Migadu-Scanner: mx11.migadu.com X-TUID: 1xIagTtgDOUw Dear all, I've had an installation of python3.{11,12} on my guix system that worked for a few months now, installed using a minimalistic package description (see [0] at the end of this post). After updating my guix installation two days ago it stopped working whith weird `pip3` errors concerning `module '_ctypes' not found`. Rolling back to the old environment didn't help. Trying to find out what caused the error I compiled python3.11.7 in my home environment and noticed a warning that in fact the `_ctypes` module was disabled after compilation because the `libffi` library wasn't found (even thought it was installed). Changing the configuration to: ``` $ ./configure --enable-optimizations --prefix="$HOME/.local/" LDFLAGS="-L$HOME/.guix-profile/lib" ``` did resolve the issue resulting in a working local installation. Now I have basically three questions: 1. how can I advice the package build process (see [0]) to set the LDFLAGS correctly? (shouldn't this be done by adding `(input [...] libffi [...] )` to the package description?) 2. how do programs in a guix system find the libraries (which reside in $HOME/.guix-profile/lib and in the store directories) anyway? 3. does anybody have an idea what could have caused the library not to be found anymore after an update of the packages? (that even could not be resolved by rolling back to the old environment of before the change) Cheers and Merry Christmas Alex ---- [0] python.scm: ``` (define-module (gyps packages python) [...] ;; cut out for brevity ) (define-public python (package (name "python") (version "3.11.7") (source (origin (method url-fetch) (uri (string-append "https://www.python.org/ftp/python/" version "/Python-" version ".tgz")) (sha256 (base32 "02cjn89mplkglgbsm5s9by7qaa1ii3x8sickpm0pdrb24bw0b306")))) (build-system gnu-build-system) (arguments '(#:tests? #f)) (inputs (list bzip2 expat gdbm libffi sqlite openssl readline zlib tcl tk)) (native-inputs `(("pkg-config" ,pkg-config) ("sitecustomize.py" ,(local-file (search-auxiliary-file "python/sitecustomize.py"))) )) (home-page "https://www.python.org") (synopsis "High-level, dynamically-typed programming language") (description "[...]") (properties '((cpe-name . "python"))) (license license:psfl))) ```