From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mOVKI6JcDGaudgAA62LTzQ:P1 (envelope-from ) for ; Tue, 02 Apr 2024 21:29:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mOVKI6JcDGaudgAA62LTzQ (envelope-from ) for ; Tue, 02 Apr 2024 21:29:38 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inventati.org header.s=stigmate header.b=ua58wBK6; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712086178; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZWW86cbs69omZjI9Cl6HrxnoQVge8yaCb3UV+95uJXw=; b=UR37phX8plILhLAr64N4yxdExBW8yqvYLOrc/mCJvZXMVDcuoY6ZSAFJsQXG2SinOcW8GQ ddLAB4G2FdvRzdCMWk/zOyA1hDvNPGnarBnOyxLkY8aA6oQp+eH0xlT7dBCSA6J1+mfziN IZuS9ezxOVXAWeT7DBeDxMn+Oz/Dh6m0nJSOcfRZlZwJh3Af904xUCRxXudKaX2uB7PVym 2ouVbCn3X0DHgZBdMLt+D8he+3+hHOB0GxYbCHBDuEVXxjFOJFvNT6q2m0z2cQ74V9Beyc XjAqZPOeQkFsgBi5Av2EhcX9qXK0HGGPxtvCTse3rrewIf8MzYO8Sxz2zvqQVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inventati.org header.s=stigmate header.b=ua58wBK6; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712086178; a=rsa-sha256; cv=none; b=VCziNEgirpkkBCLyF8Lz0MEOs6G/pnp83K8Tr4elrceyqLVzjNuJfJtGP3S+0OQ1qmFzQH jSb3XVolgFe+86sRPK6ZTAEYeZFw4Ui6FoJ8Pg3jL3BWEUt2v2Z78sPqCY7+tA6nqGKlrt ILj/jiADf5uG8SvFWDFRaH3AIbLwOR0Ic9GImGQdS68UrEkVqHPsBR1nBNR/TRUwRDKxQn LYQapmCSdK6gnjYJsv9bDylbdNsjqSEoCver0A4fS6fz4TIjsloZMfE2w1xbIPfbXwx1so YZzDsCmaMwFC5gbrSsxuHDtNXcBRpiPtKidFHzuMJCLulzNiLZDNeh/CbDRzJw== 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 37ACB3B0D8 for ; Tue, 2 Apr 2024 21:29:38 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrjp5-0002Ka-Gy; Tue, 02 Apr 2024 15:29:31 -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 1rrjp3-0002KA-7L for guix-science@gnu.org; Tue, 02 Apr 2024 15:29:29 -0400 Received: from confino.investici.org ([2a11:7980:1::2:0]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrjp0-0004Id-UN for guix-science@gnu.org; Tue, 02 Apr 2024 15:29:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1712086161; bh=ZWW86cbs69omZjI9Cl6HrxnoQVge8yaCb3UV+95uJXw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ua58wBK6ZtUOet406BmXIq2xvdl7iNjEQGYCXa/PHisiOOjrv/nE2NqA+yNawdTZZ ug74q192vJWbjjqWJHWJyeL/kd0Bi5QyIZF3z4x9GKYBdKN6ZyOgiF5w/e7AV5fdqU NwuHTNrDUI83k89OOr87dwh+BJekwL7qUfKlCv0I= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4V8Hxs50tWz10y4; Tue, 2 Apr 2024 19:29:21 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4V8Hxs2Hpdz10xh; Tue, 2 Apr 2024 19:29:21 +0000 (UTC) To: Hugo Buddelmeijer Cc: guix-science Subject: Re: Julia and Flux In-Reply-To: (Hugo Buddelmeijer's message of "Sun, 31 Mar 2024 15:48:41 +0200") References: <87v859s3ub.fsf@inventati.org> <87o7axt47s.fsf@inventati.org> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Tue, 02 Apr 2024 21:29:15 +0200 Message-ID: <87v84zbm2c.fsf@inventati.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a11:7980:1::2:0; envelope-from=csantosb@inventati.org; helo=confino.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cayetano Santos via Guix-Science Reply-To: Cayetano Santos Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: guix-science-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.05 X-Migadu-Queue-Id: 37ACB3B0D8 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.05 X-TUID: FkvNTJSXH26N (reply to full mail list) >dim. 31 mars 2024 at 15:48, Hugo Buddelmeijer wrote: > Hi Cayetano, > > Disclaimer, I'm still learning Guix as well, and I'm not (yet) a Julia > user. So here are my 2 cents, which might not be that useful. > > Thanks for the channel description. It is indeed possible to reproduce > your error with those channels. It seems to be the Julia 1.9.3 in the > guix-hpc channel that is the cause of the differences. Removing that > channel will give you Julia 1.8 from the main guix channel, where Flux > does seem to import. Sure, there is no issue with main guix channel. The issue arises only with guix-hpc channel. > The main error message seems to be this: > >> Illegal inttoptr >> %magicptr =3D ptrtoint {} addrspace(10)* %242 to i64, !dbg !26 > > And there are various issues (e.g. [1]) on github saying that this > problem occurs because an incorrect version of LLVM is used, and that > a specific "patched" version of LLVM is needed. This is about how far > my investigation went. > > However, I've learned that using both Guix and a language's own > package manager, can lead to problems. It might be better to create > Guix packages for Flux and its dependencies. At least that is my plan, > for my (Python) projects. I see. Julia 1.8 uses llvm-julia, whereas julia 1.9 uses llvm-14-julia in guix-hpc. A. Out of a guix shell, when I compile something, I=E2=80=99m using my syst= em llvm, whatever it is, and this probably produces some mess. If you=E2=80=99re right, to fix the problem, it would be necessary to creat= e a different guix package to all my julia dependencies (and also to its dependencies), using julia 1.9 instead of 1.8, as they currently do in main channel. At this point, I think it might be easier for all if julia 1.9 (and 1.10 at= some point), was merged into main guix repo, given that this problem will arise with other packages too. That being said, if you=E2=80=99re right, one will need to install a julia package not in the guix repositories soon or later. B. Coming back to my original issue, I=E2=80=99m doing guix shell -C --network --emulate-fhs --link-profile julia nss-certs --= julia -e 'using Pkg; Pkg.add("Flux"); using Flux' meaning that I=E2=80=99m using only guix provided packages and environment.= This implies julia itself, along with llvm-14-julia. The problem remains the same, regardless of the system I=E2=80=99m using outside of the container e= nvironment. > There is already a julia-zygote package in Guix itself. So perhaps you > could already achieve what you need by using the julia from the main > Guix channel, instead of the one from guix-hpc, because then you can > use the packaged zygote. > > [1] "Zygote and Flux Illegal inttoptr" > https://github.com/JuliaLang/julia/issues/50153 > > Hope this was useful Cayetano; I doubt I can contribute more. > > Hugo I=E2=80=99d prefer to use recent version of julia, so main channel is not = an option for me. Thanks anyway, C.