From 8b0cde317fc3f151bd390b3bca9250deaded784c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 14 Feb 2021 23:30:32 +0100 Subject: Makefile: Try making a release build with ECL Wanted to try using ECL to build a smaller executable. The commented section is adapted from the SBCL build command in the `build` target. Didn't work, the build errored with the following: An error occurred during initialization: Unable to create pipe C library explanation: Too many open files.. ext::getcwd error: Too many open files Internal or unrecoverable error in: Can't work without CWD [24: Too many open files] The second build command comes from: https://gitlab.com/embeddable-common-lisp/ecl/-/tree/6a5dea52/examples/asdf_with_dependence That one compiled without errors, but resulted in the following runtime error: $ ./extreload Condition of type: SIMPLE-ERROR The packages ((UIOP/OS . #) (UIOP/PATHNAME . #)) were referenced in compiled file NIL but have not been created Available restarts: 1. (IGNORE) Ignore the error, and try the operation again Top level in: #. --- l/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/l/Makefile b/l/Makefile index ce59ba8..8cd0743 100644 --- a/l/Makefile +++ b/l/Makefile @@ -5,3 +5,21 @@ build: --eval '(ql:quickload :extreload)' \ --eval '(asdf:make :extreload)' \ --eval '(quit)' + +release: + # ecl --eval '(require "asdf")' \ + # --load extreload.asd \ + # --eval '(ql:quickload :extreload)' \ + # --eval '(asdf:make :extreload)' \ + # --eval '(quit)' + ecl --eval '(require "asdf")' \ + --eval '(require "uiop")' \ + --load extreload.asd \ + --eval '(ql:quickload :extreload)' \ + --eval '(asdf:make-build :extreload \ + :type :program \ + :move-here #P"./" \ + :epilogue-code '"'"'(progn \ + (extreload:main) \ + (si:exit)))' \ + --eval '(quit)' -- cgit v1.2.3