From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AAkfBfd3zGBoIQEAgWs5BA (envelope-from ) for ; Fri, 18 Jun 2021 12:39:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uP6TAPd3zGA7LQAA1q6Kng (envelope-from ) for ; Fri, 18 Jun 2021 10:39:51 +0000 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 3BF57B191 for ; Fri, 18 Jun 2021 12:39:50 +0200 (CEST) Received: from localhost ([::1]:46810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luBue-0004Kt-4h for larch@yhetil.org; Fri, 18 Jun 2021 06:39:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luBtA-00024j-21 for help-guix@gnu.org; Fri, 18 Jun 2021 06:38:16 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luBt5-00006r-Mf for help-guix@gnu.org; Fri, 18 Jun 2021 06:38:15 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 98A94240027 for ; Fri, 18 Jun 2021 12:38:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1624012687; bh=+2ieP72cv1RfSJMt34ukgZsPlQSByh4QLt03qzXjdFw=; h=To:From:Subject:Date:From; b=O0v9Q4MwRBB3SB5bfu0J2pYn6IrbEL4vUZCy6ZPfGo/BU5LnKqPM6qjidyGPENymb uv6cPy4qBniRaBVBTVmLfvfV0n1TT4kCEXCdlLMu011d+vXDY6ZwWFzGNX86DBW+wV QzaY+L9fFrDXrED22+ENqIjTCDIUA5V5YFUZgtrDtgZNyLR0z9nEeSuKdBbC/7S/i/ 2m7s1Fw1KZDktNqi4+M1lOXGDpG7id5nJNkgDQQDpHHuRyBLgd3JbDPUCYDqVoBbgr 2zHyNoxq52lw1Zbgi1vHfplzQBRnKl6lWZQU82DQ/ieX+1isrbM16tibuGiv9cYsLF YM1UzjCDjm4yA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G5wPB4XYFz6tmD for ; Fri, 18 Jun 2021 12:38:06 +0200 (CEST) To: help-guix From: Zelphir Kaltstahl Subject: Erlang development in GNU Guix environment Message-ID: <18015cdc-f470-c5ed-e886-04e2f12900e5@posteo.de> Date: Fri, 18 Jun 2021 10:38:05 +0000 MIME-Version: 1.0 Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624012790; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YoImNj52UbBjT3LFS8sgtwZOB8Be9M7QC2IiMRnZ4CQ=; b=dkpArH3yIM/c7TwP9CVvyfy6T2+AQGEW2Vb59tmzcfGO3h8cyxywMbVG83E5xbrWoSrcDx vHWi6OST4jNR+K1U/0CIo5OgLorIw9yQmH7wwBv8Stsu2RuxhkTMTjkq6uqEIRJ6QC08wG bFWOvuqGz41wN6QLoAEn/XUlKL1kWFXWuJ/4dY/PKqcIAJuIzUY2tePlxY4ndn/Vr1J44k G4xKdgbKOJetT2GF9v+2dRVkh0khN+p/nx0HzGTW8u5QtEPivugAcsP5pkcYXDo+1osiip a0tSZp5hoX8XQFo8foE7TskI0HaQ0T7jqXkZ27esrplEVaQeGvFn2veUl89Vpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624012790; a=rsa-sha256; cv=none; b=j2vQ/zb8CYQ0Bx8GTZxOgXbJZn2M3NrBdDPZaeHlq+rLeKsVeQMb39UAInnY52Z0kHQXb+ 7ERZI112lIOn9keG3RJFwtm92dZp+gi8bz6GiTWR7Gy6pZskQFaXpGO782+9mKVpLKzG7M 0jeXN8MxTV748nFBAgRPlH2hNYwMj3jI2weRQCvMOIqdu08+4KyFyexjIHc7Rf71zF+k0w JTEb7T08T0vV/+NKxPryRjqRLQnmD44xy2yFh36AR618GBDDpSpFYVsoXF4mPYEwnnPA9r wzLIuo0qZrIeAdkI/lN9IFw/ULtehoJyFu5LhPD/Iy+UnEsducIyIyak+mho/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.de header.s=2017 header.b=O0v9Q4Mw; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.de header.s=2017 header.b=O0v9Q4Mw; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 3BF57B191 X-Spam-Score: -1.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: YTbv3Xbxdeso Hello Guix User! Today I decided to start a second attempt at getting Erlang and Emacs to work in a GNU Guix environment. I hit an error installing the emacs-erlang package. In the following I protocol the steps I took and the resulting error. In my project directory I have the following files: ~~~~ . ├── guix-env │   ├── channels.scm │   ├── env.sh │   ├── manifest.scm │   └── start-emacs.sh ~~~~ The content of the files is: channels.scm, which was created as follows using a guix pulled just a few minutes ago: ~~~~ guix pull guix describe --format=channels > channels.scm ~~~~ channels.scm looks as follows: ~~~~ (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "d4b86bac974fe133af629f5de25955339173f9ab") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))) ~~~~ Next we have manifest.scm: ~~~~ (specifications->manifest '("erlang" "emacs" "emacs-org" "emacs-erlang" "emacs-ob-erlang")) ~~~~ There is org babel erlang (ob-erlang) in there, because I intend to make use of org mode and source blocks of erlang code, if possible. Next is env.sh, a simple script that allows me to use guix time machine from anywhere to spawn the guix environment's shell: ~~~~ #!/usr/bin/env bash set -Eeuxo pipefail DIR=$(dirname "$(readlink -f "${0}")") guix time-machine \ --channels="${DIR}/channels.scm" -- \ environment \ --manifest="${DIR}/manifest.scm" ~~~~ I also have another, not yet used file there, start-emacs.sh: ~~~~ #!/usr/bin/env bash set -Eeuxo pipefail emacs --no-init-file --no-desktop --maximized ~~~~ With all this in place, I run the command: ~~~~ bash guix-env/env.sh ~~~~ Which will start creating the guix environment, which shall be used in the spawned shell. However, I get an error: ~~~~ (lots of output above) building /gnu/store/x0kjb6h125x75biz1fgwfskvwarrb789-emacs-erlang-23.2.1.drv... / 'install' phasebuilder for `/gnu/store/x0kjb6h125x75biz1fgwfskvwarrb789-emacs-erlang-23.2.1.drv' failed with exit code 1 build of /gnu/store/x0kjb6h125x75biz1fgwfskvwarrb789-emacs-erlang-23.2.1.drv failed View build log at '/var/log/guix/drvs/x0/kjb6h125x75biz1fgwfskvwarrb789-emacs-erlang-23.2.1.drv.bz2'. cannot build derivation `/gnu/store/q8986a2hjxv8bnvin1kq9p3mls2anggv-profile.drv': 1 dependencies couldn't be built guix environment: error: build of `/gnu/store/q8986a2hjxv8bnvin1kq9p3mls2anggv-profile.drv' failed ~~~~ I copy the log file to my current directory and decompress it: ~~~~ cp /var/log/guix/drvs/x0/kjb6h125x75biz1fgwfskvwarrb789-emacs-erlang-23.2.1.drv.bz2 . bzip2 --decompress kjb6h125x75biz1fgwfskvwarrb789-emacs-erlang-23.2.1.drv.bz2 ~~~~ It contains as an error at the bottom of the file: ~~~~ ## WARNING: phase `install' returned `#f'. Return values other than #t ## are deprecated. Please migrate this package so that its phase ## procedures report errors by raising an exception, and otherwise ## always return #t. ~~~~ Above that there are loooads of lines looking like the following: ~~~~ info: considering installing ............. ~~~~ Where there are many things and files listed in place of the dots. The last few of those lines are: ~~~~ info: considering installing bin/.gitignore info: considering installing HOWTO/BENCHMARKS.md info: considering installing HOWTO/BOOTSTRAP.md info: considering installing HOWTO/DEPRECATE.md info: considering installing HOWTO/DTRACE.md info: considering installing HOWTO/INSTALL-ANDROID.md info: considering installing HOWTO/INSTALL-CROSS.md info: considering installing HOWTO/INSTALL-RASPBERRYPI3.md info: considering installing HOWTO/INSTALL-WIN32-OLD.md info: considering installing HOWTO/INSTALL-WIN32.md info: considering installing HOWTO/INSTALL.md info: considering installing HOWTO/MARKDOWN.md info: considering installing HOWTO/OTP-PATCH-APPLY.md info: considering installing HOWTO/SYSTEMTAP.md info: considering installing HOWTO/TESTING.md info: considering installing .github/workflows/main.yaml info: considering installing .github/workflows/update-base.yaml info: considering installing .github/dockerfiles/Dockerfile.32-bit info: considering installing .github/dockerfiles/Dockerfile.64-bit info: considering installing .github/dockerfiles/Dockerfile.cross-compile info: considering installing .github/dockerfiles/Dockerfile.debian-base info: considering installing .github/dockerfiles/Dockerfile.documentation info: considering installing .github/dockerfiles/Dockerfile.ubuntu-base phase `install' failed after 3.3 seconds ## WARNING: phase `install' returned `#f'. Return values other than #t ## are deprecated. Please migrate this package so that its phase ## procedures report errors by raising an exception, and otherwise ## always return #t. ~~~~ When I scroll very far upwards in that file, holding page up down for 5s or so, I get to lines, which do not start with "info: ..." and there seems to be something going on: ~~~~ phase `patch-source-shebangs' succeeded after 0.6 seconds starting phase `patch-generated-file-shebangs' patch-shebang: ./erts/emulator/utils/beam_emu_vars: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/emulator/utils/beam_makeops: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/emulator/utils/beam_strip: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/emulator/utils/find_cross_ycf: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./erts/emulator/utils/make_alloc_types: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/emulator/utils/make_compiler_flags: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/emulator/utils/make_driver_tab: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/emulator/utils/make_preload: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/emulator/utils/make_tables: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/emulator/utils/make_version: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/etc/unix/gcov-gen-html: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./erts/lib_src/utils/make_atomics_api: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/compiler/scripts/smoke: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/diameter/bin/diameterc: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/erl_docgen/priv/bin/codeline_preprocessing.escript: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/erl_docgen/priv/bin/github_link.escript: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/erl_docgen/priv/bin/validate_links.escript: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/erl_docgen/priv/bin/xml_from_edoc.escript: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/erl_docgen/priv/bin/xref_mod_app.escript: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/kernel/test/esock_ttest/esock-ttest: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/public_key/priv/convert.escript: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/reltool/bin/reltool.escript: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/reltool/examples/mnesia_core_dump_viewer: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/scripts/update_deprecations: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/arg_overflow: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/bad_io_server: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/compile_error: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/emulator_flags: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/factorial: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/factorial_compile: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/factorial_compile_main: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/factorial_epp: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/factorial_warning: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/filesize: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/linebuf_overflow: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/lint_error: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/strange.name: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/tail_rec: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/test_script_name: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/trap_exit: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/two_lines: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/unicode1: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/unicode2: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/unicode3: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/unicode4: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/unicode5: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./lib/stdlib/test/escript_SUITE_data/unicode6: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./make/fixup_development_runtime_dependencies: warning: no binary for interpreter `perl' found in $PATH patch-shebang: ./make/make_emakefile.in: warning: no binary for interpreter `@PERL@' found in $PATH patch-shebang: ./make/verify_runtime_dependencies: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./scripts/diffable: warning: no binary for interpreter `escript' found in $PATH patch-shebang: ./scripts/otp_html_check: warning: no binary for interpreter `perl' found in $PATH patch-makefile-SHELL: ./lib/hipe/Makefile: changing `SHELL' from `/bin/sh' to `/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh' patch-makefile-SHELL: ./lib/hipe/doc/Makefile: changing `SHELL' from `/bin/sh' to `/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh' phase `patch-generated-file-shebangs' succeeded after 0.2 seconds starting phase `check' test suite not run phase `check' succeeded after 0.0 seconds starting phase `install' error: No files found to install. info: considering installing .dir-locals.el info: .dir-locals.el included as it matches "^[^/]*\.el$" info: .dir-locals.el excluded as it matches "^\.dir-locals\.el$" info: considering installing .gitattributes ~~~~ Could that be something about some emacs lisp script or about some erlang script? Not sure that has anything to do with the final error I get, but it does say: ~~~~ starting phase `install' error: No files found to install. ~~~~ Then after that it "considers" a lot of things to install but probably does not. And then it fails. How can I fix the issues or work around it? Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl