Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upBuild a Linux binary with asdf:make #89
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vindarel
Apr 3, 2018
Contributor
I was able to create a binary on Gitlab CI for Debian Jessie: https://gitlab.com/vindarel/next-browser/blob/linux-binary/.gitlab-ci.yml (https://github.com/vindarel/next/blob/linux-binary/.gitlab-ci.yml)
We can download it in the job artficats here: https://gitlab.com/vindarel/next-browser/-/jobs/60954982 (100MB)
The user still needs to install libwebkit2gtk-4.0-dev.
|
I was able to create a binary on Gitlab CI for Debian Jessie: https://gitlab.com/vindarel/next-browser/blob/linux-binary/.gitlab-ci.yml (https://github.com/vindarel/next/blob/linux-binary/.gitlab-ci.yml) We can download it in the job artficats here: https://gitlab.com/vindarel/next-browser/-/jobs/60954982 (100MB) The user still needs to install |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Ambrevar
Apr 15, 2018
Contributor
@vindarel: Thank you very much for this effort, this will certainly be very useful to me.
@jmercouris: Anything preventing a merge?
|
@vindarel: Thank you very much for this effort, this will certainly be very useful to me. @jmercouris: Anything preventing a merge? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jmercouris
merged commit 0dbac44
into
atlas-engineer:master
Apr 15, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
My pleasure, thank you. If anything can be improved let me know ! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Ambrevar
May 10, 2018
Contributor
@vindarel: I'm testing your image at the moment. I'm not too familiar with Common Lisp yet, so correct me if I'm wrong, but I understand that the generated image won't load without the proper version of scbl.core installed on the filesystem (in this case SBCL 1.4.5 must be installed). Right?
|
@vindarel: I'm testing your image at the moment. I'm not too familiar with Common Lisp yet, so correct me if I'm wrong, but I understand that the generated image won't load without the proper version of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vindarel
May 10, 2018
Contributor
No :) the goal is to provide an executable without the need to install a Lisp. SBCL compiles to machine code, here on Linux x64, so if you're on the same platform, and you havelibwebkit2gtk-4.0-dev (I don't know how to include it, if possible), you should be able to run it as is.
(And btw, we can even compile web apps with their production server, a debugger, an interpreter… what a relief compared to deploying a Python app !)
|
No :) the goal is to provide an executable without the need to install a Lisp. SBCL compiles to machine code, here on Linux x64, so if you're on the same platform, and you have (And btw, we can even compile web apps with their production server, a debugger, an interpreter… what a relief compared to deploying a Python app !) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Ambrevar
May 10, 2018
Contributor
But I get this:
> ./next-gtk
fatal error encountered in SBCL pid 9107(tid 0x7ffff7fef740):
can't find core file at /usr/local/lib/sbcl//sbcl.core
|
But I get this:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Ambrevar
May 10, 2018
Contributor
I can specify a core file, but my local version is wrong:
> ./next-gtk --core /gnu/store/lw9sjgxzzvflhqzyx3aylq4srnxf0v6x-sbcl-1.4.4/lib/sbcl/sbcl.core
This is SBCL 1.4.5, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
core was built for runtime "localhost-nixbld-2018-04-26-08-06-36" but this is "9784197ff616-root-2018-03-14-23-14-27"
fatal error encountered in SBCL pid 9654(tid 0x7ffff7fef740):
can't load .core for different runtime, sorry
|
I can specify a core file, but my local version is wrong:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Ambrevar
May 10, 2018
Contributor
Actually, it fails even with the right version (1.4.5):
./next-gtk --core /gnu/store/rflql1v3sppwxichzpwlbpmjvhvm1sva-sbcl-1.4.5/lib/sbcl/sbcl.core
This is SBCL 1.4.5, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
core was built for runtime "localhost-nixbld-2018-05-10-15-14-30" but this is "9784197ff616-root-2018-03-14-23-14-27"
fatal error encountered in SBCL pid 13063(tid 0x7ffff7fef740):
can't load .core for different runtime, sorry
|
Actually, it fails even with the right version (1.4.5):
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vindarel
May 13, 2018
Contributor
(edited) after further discussion, it appears you have specific GuixSD difficulties.
|
(edited) after further discussion, it appears you have specific GuixSD difficulties. |
vindarel commentedMar 26, 2018
Hello,
I've been able to build a linux binary (following the awesome Cookbook ;) https://lispcookbook.github.io/cl-cookbook/scripting.html#with-asdf)
Things to note/discuss:
make.lispfor MacOS, shall we harmonize the process somehow ?source/next-gtk, should be trivial to change (also, what binary name ?)killit.The next easy step is to build it on CI, and I can do it on Gitlab CI if you wish (it's a powerful CI platform, I can't compare it to Circle and co, Gitlab recently added the possibility to have a Github repo and use their CI (which only needed to mirror the sources on Gitlab anyway) https://about.gitlab.com/features/github/).
Hope this helps for #76 & #78 .