diff options
| author | Teddy Wing | 2021-02-14 23:30:32 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2021-02-14 23:30:32 +0100 | 
| commit | 8b0cde317fc3f151bd390b3bca9250deaded784c (patch) | |
| tree | 640a70d0b3b67171c86fb8677f595aa957e1b2f4 /l | |
| parent | f7998e9d8aad62bdee106e186460063d40192887 (diff) | |
| download | extreload-8b0cde317fc3f151bd390b3bca9250deaded784c.tar.bz2 | |
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/OS package>) (UIOP/PATHNAME . #<UIOP/PATHNAME package>))
    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: #<process TOP-LEVEL 0x1045acf80>.
Diffstat (limited to 'l')
| -rw-r--r-- | l/Makefile | 18 | 
1 files changed, 18 insertions, 0 deletions
| @@ -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)' | 
