From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QPuGKXWslWTbNgAASxT56A (envelope-from ) for ; Fri, 23 Jun 2023 16:30:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oJGVKXWslWSMpwAA9RJhRA (envelope-from ) for ; Fri, 23 Jun 2023 16:30:13 +0200 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 6119196DF for ; Fri, 23 Jun 2023 16:30:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qChPM-0002GL-Ox; Fri, 23 Jun 2023 10:05:04 -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 1qChPL-0002GA-38 for bug-guix@gnu.org; Fri, 23 Jun 2023 10:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qChPK-0005iF-Ct for bug-guix@gnu.org; Fri, 23 Jun 2023 10:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qChPK-0007zp-6N for bug-guix@gnu.org; Fri, 23 Jun 2023 10:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63986: Julia is very slow Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 23 Jun 2023 14:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63986 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 63986@debbugs.gnu.org, Nicolas Graves , csantosb@inventati.org Received: via spool by 63986-submit@debbugs.gnu.org id=B63986.168752904930668 (code B ref 63986); Fri, 23 Jun 2023 14:05:02 +0000 Received: (at 63986) by debbugs.gnu.org; 23 Jun 2023 14:04:09 +0000 Received: from localhost ([127.0.0.1]:39277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qChOT-0007ya-0X for submit@debbugs.gnu.org; Fri, 23 Jun 2023 10:04:09 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:41080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qChON-0007y3-S8 for 63986@debbugs.gnu.org; Fri, 23 Jun 2023 10:04:07 -0400 Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3110f94915eso179601f8f.0 for <63986@debbugs.gnu.org>; Fri, 23 Jun 2023 07:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687529038; x=1690121038; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=UJM7eyVMjXmQcVLm17SUJxDMZ0uNZg9JQ3rFJSmA2nY=; b=oNIMBqh+3syHF1vtylU9KKFtL2GkBTyoOU/zZ9R8vgF73gfFv1DhiVMTftAOF3WZr8 A8NsaHhY4pp9dJeWQfetg9w7CjB/FGL/j4DA5H93CMDaiyDMa8dJMl1aEekkIVTQbTkA IdhCl59WmTG3baOxRdf9RFDZu/NPAZuU/U2xKUzlQK+A0F3oz0YZtOYcL7U95711oNFP 2o5QCgxY1VExl7ly87u5NplTkEyg++0VQXUTGP4tFN9yjNxaiwVhBz5TzM0GtO6PE96S tZn2WfSaYe8WfZwgW1yqAJsn70/ECKQjpPwIZXYfzeLPA22OlwYeGf2/h0CNX++FsuLm +YVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687529038; x=1690121038; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UJM7eyVMjXmQcVLm17SUJxDMZ0uNZg9JQ3rFJSmA2nY=; b=Y+dsuPcmtybRIHwgKd3nE0QIJ8NPTesCmZn6Sb71yqMv/2g2rqmRcIS9RBH7PwI1TL V7MH+/zGnSmTSOM7uGeuKhpRGinbJw7HoZjlpJ+CQEGxmG3bM83ZMA1K7zog6uDrwEf5 YkPlscNHTBd3lpsWHRSiSk3zz+idGUqlaBRdr+mu3O0mhGspF012VhNAvrQHXXrOK6mJ bOBbLH32QrCCNkWgSBzXE1aUHpSBvAYb/ity9jrjWHufTdo2ZW8yb3oBGCKAEdVwypVR dc3BwdGPXXcvjqtobhtknu1D4ULp0nuypO2DDY35b0hlvLz+Yx4mvO6CmhAy0nRB/Qlk Iq9Q== X-Gm-Message-State: AC+VfDyL7A7Zq0vIrgOqyUF1ITnml1SuNwqphBzwGv0uRQbmVx2rM1qe pHZoT345ywOSBQIPkKIH/Fk= X-Google-Smtp-Source: ACHHUZ7ZWPXzov9RGuBheaxS30cWYc9msQIEjWUnJdK6aN0qVZQA0eoRYz0AJM/uzVa1yX1lpan5Iw== X-Received: by 2002:adf:ec45:0:b0:2c7:1c72:699f with SMTP id w5-20020adfec45000000b002c71c72699fmr18791477wrn.4.1687529037819; Fri, 23 Jun 2023 07:03:57 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id r7-20020adfce87000000b0030af54c5f33sm9638634wrn.113.2023.06.23.07.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 07:03:57 -0700 (PDT) From: Simon Tournier In-Reply-To: References: <87legsl3cm.fsf@inventati.org> <87jzw6rq48.fsf@gnu.org> <871qi7a0qr.fsf@gmail.com> <87pm5o7uh9.fsf@gnu.org> <87ttv0mth3.fsf@inventati.org> <87wmzvmxt8.fsf@inventati.org> <87h6qz8pg0.fsf@gmail.com> <87cz1n8lq3.fsf@gmail.com> <871qi24k9z.fsf@inria.fr> Date: Fri, 23 Jun 2023 15:23:17 +0200 Message-ID: <87h6qy71oa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687530613; h=from:from:sender:sender: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=UJM7eyVMjXmQcVLm17SUJxDMZ0uNZg9JQ3rFJSmA2nY=; b=QP83s3LFV0v/VKcNk8RBzTt2vuhPR7QcUNIarwRwt0tELMxWL+Tgsh2Av05UAddZED8HA0 Iua9ZoSMC3SxA7kFV8Lm1Ng56uZpra+TVZGC0w2ANuF+4qtgz/OTh6QXa32/OWpRHd9u83 9AdiT/U019UTWFoN75aEXWBJwYVcywXhL7xCqWH4NBk7kef1HlW0Hq/FzegxZ1dDe05+h+ HSsEApxFnFSrvMcW4y+GTNEqi/xFdTUWIfnjcpETTnuT4aFrbpGgzfoW+P8G3/GEY6fRVi qHX5EGfN+7SgeKYr9gPtcSRZyfwNTDYaydquGsf7BRDFtjDYd+202tK26rzGmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=oNIMBqh+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687530613; a=rsa-sha256; cv=none; b=JONNpZmUbnu0X5v/h6cAo6zJIO+NW7QgZ1IueTsf0nr059lJo/CJ0ybPyw2mKALg5TLCjN iZybw9F2QOHipKHDpUjZlrSiEi47oOXl/onC0g+WtsvwjD0GABkeYdHPMquAfVmAf9o0OQ XYADoThRzJdgLyw9KtvAouZdKGSOk89fWKUwqS5rgJJ2WC79j72DgBWUmEuV/se8zx9ZMd +r8F2qdw2ScKVhuFQmCBFD66uooeF/1chw2KCsbEHYV22/XqQioZc1TuHI6DqB/ojQV9I7 ANYTrRjBld/mgzUJKxclpU3vD2aLS/7kpoLN9F6t1UfUaLgH3mdciG/p+1++0w== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=oNIMBqh+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6119196DF X-Spam-Score: -0.65 X-TUID: hpKoySChNgCa Hi Efraim, On Fri, 23 Jun 2023 at 12:16, Efraim Flashner wrote: > It should be, but julia fails the precompile stage with openblas-ilp64 > > Precompilation complete. Summary: > Total =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80 100= 6.632176 seconds > Generation =E2=94=80=E2=94=80 690.274180 seconds 68.5726% > Execution =E2=94=80=E2=94=80=E2=94=80 316.357997 seconds 31.4274% > > signal (15): Terminated > in expression starting at none:0 > unknown function (ip: 0xfffff4d81b24) > unknown function (ip: 0xfffff4ed10bb) > unknown function (ip: 0xfffff4eda16f) > _ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE at /gnu/store= /wa28l476c1bfshfiqcqbmk75zr8ml152-llvm-13.0.1/lib/libLLVM-13jl.so (unknown = line) > _ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /gnu/store/wa28l= 476c1bfshfiqcqbmk75zr8ml152-llvm-13.0.1/lib/libLLVM-13jl.so (unknown line) > _ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /gnu/store/wa28l476c= 1bfshfiqcqbmk75zr8ml152-llvm-13.0.1/lib/libLLVM-13jl.so (unknown line) > _ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /gnu/store/wa28l476c= 1bfshfiqcqbmk75zr8ml152-llvm-13.0.1/lib/libLLVM-13jl.so (unknown line) > operator() at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/src/aotcompil= e.cpp:580 [inlined] > jl_dump_native_impl at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/src/= aotcompile.cpp:592 > jl_write_compiler_output at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3= /src/precompile.c:94 > ijl_atexit_hook at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/src/init= .c:207 > jl_repl_entrypoint at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/src/j= lapi.c:720 > main at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/cli/loader_exe.c:59 > __libc_start_call_main at /gnu/store/a19xbynxc3sg25xpkwmx7g0mdl7g31hx-gli= bc-2.35/lib/libc.so.6 (unknown line) > __libc_start_main at /gnu/store/a19xbynxc3sg25xpkwmx7g0mdl7g31hx-glibc-2.= 35/lib/libc.so.6 (unknown line) > _start at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/usr/bin/julia (un= known line) > unknown function (ip: (nil)) > Allocations: 145655328 (Pool: 145582643; Big: 72685); GC: 120 > *** This error is usually fixed by running `make clean`. If the error per= sists, try `make cleanall`. *** > make[1]: *** [sysimage.mk:89: /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8= .3/usr/lib/julia/sys-o.a] Error 1 > make[1]: Leaving directory '/tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3' > make: *** [Makefile:88: julia-sysimg-release] Error 2 Using my patch, it fails with: --8<---------------cut here---------------start------------->8--- Error in testset OpenBLAS_jll: Test Failed at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/usr/share/juli= a/stdlib/v1.8/OpenBLAS_jll/test/runtests.jl:16 Expression: dlsym(OpenBLAS_jll.libopenblas_handle, #=3D /tmp/guix-build-j= ulia-1.8.3.drv-0/julia-1.8.3/usr/share/julia/stdlib/v1.8/OpenBLAS_jll/test/= runtests.jl:16 =3D# @blasfunc(openblas_set_num_threads); throw_error =3D fa= lse) !=3D nothing Evaluated: nothing !=3D nothing ERROR: LoadError: Test run finished with errors in expression starting at /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/tes= t/runtests.jl:93 --8<---------------cut here---------------end--------------->8--- Well, I am still missing why the expression dlsym(OpenBLAS_jll.libopenblas_handle, #=3D /tmp/guix-build-julia-1.8.3.drv-0/julia-1.8.3/usr/share/julia/stdlib= /v1.8/OpenBLAS_jll/test/runtests.jl:16 =3D# @blasfunc(openblas_set_num_threads); throw_error =3D false) is evaluated to nothing. Any idea? Cheers, simon