-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lumo: init #33691
lumo: init #33691
Conversation
|
||
buildInputs = [ unzip ]; | ||
|
||
phases = [ "unpackPhase" "installPhase" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not set phases explicitly, rather disable phases that are causing problems, if any.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
sha256 = "0p06994w48pbgy8xwc1sz3gg609ardsdhmjafdf7qk4gclyiqs5i"; | ||
}; | ||
|
||
buildInputs = [ unzip ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unzip
makes more sense as a nativeBuildInputs
, as it is presumably used only during the build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@GrahamcOfBorg build lumo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success for system: aarch64-linux
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/34vm9hgqs6icsqjh2rfxs2z7fyvrkm0f-lumo-1.8.0-beta
shrinking /nix/store/34vm9hgqs6icsqjh2rfxs2z7fyvrkm0f-lumo-1.8.0-beta/bin/lumo
strip is /nix/store/c6qj0j45xizkrx58i65j75a5ysmqhgrs-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/34vm9hgqs6icsqjh2rfxs2z7fyvrkm0f-lumo-1.8.0-beta/bin
patching script interpreter paths in /nix/store/34vm9hgqs6icsqjh2rfxs2z7fyvrkm0f-lumo-1.8.0-beta
checking for references to /build in /nix/store/34vm9hgqs6icsqjh2rfxs2z7fyvrkm0f-lumo-1.8.0-beta...
/nix/store/34vm9hgqs6icsqjh2rfxs2z7fyvrkm0f-lumo-1.8.0-beta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: x86_64-darwin
inflating: lumo
patching sources
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing
/nix/store/zsn4rc9p48hsq6a53357fmk314b0ahg4-stdenv-darwin/setup: line 1239: patchelf: command not found
builder for '/nix/store/nkjgijz1i5wsvs2gg22gg87ydfa67ndx-lumo-1.8.0-beta.drv' failed with exit code 127
error: build of '/nix/store/nkjgijz1i5wsvs2gg22gg87ydfa67ndx-lumo-1.8.0-beta.drv' failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success for system: x86_64-linux
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/5x7zw99vyf9fpp89s0nq6cdf7zbpyjkv-lumo-1.8.0-beta
shrinking /nix/store/5x7zw99vyf9fpp89s0nq6cdf7zbpyjkv-lumo-1.8.0-beta/bin/lumo
strip is /nix/store/wxn5gn8amxm1w0ikcx4gbs8a17wvss4j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/5x7zw99vyf9fpp89s0nq6cdf7zbpyjkv-lumo-1.8.0-beta/bin
patching script interpreter paths in /nix/store/5x7zw99vyf9fpp89s0nq6cdf7zbpyjkv-lumo-1.8.0-beta
checking for references to /tmp/nix-build-lumo-1.8.0-beta.drv-0 in /nix/store/5x7zw99vyf9fpp89s0nq6cdf7zbpyjkv-lumo-1.8.0-beta...
/nix/store/5x7zw99vyf9fpp89s0nq6cdf7zbpyjkv-lumo-1.8.0-beta
Just discovered this: > lumo
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: lumo: no version information available (required by lumo)
lumo: symbol lookup error: lumo: undefined symbol: after removing Let's hold off on merging this. Any input is thoroughly appreciated though. |
@jgertm I'm getting the same error and I do have |
@jgertm and @andreivolt like I mentioned in andreivolt's PR, that lumo 1.8.0 was built and released with node 9.2.0, the 1.8.0-beta was probably in 8_x. But I don't think it should matter. After trying to build lumo with boot, I can't see a way to prevent those http calls that boot wants to make before starting the build, not to mention the yarn calls and nexe's call to V8 snapshots. So it would probably mean a long list of sha256/url tuplest to download all the classpath dependencies for boot and lumo's dependencies. To me the patchelf sounds good, in that if it works it would be the cleanest way to solve this. Let me see if it makes sense to use npm2nix and use the entrypoint file lumo.js, it could solve the problems for some distros, as well as seeing if you're useing patchelf correctly aiming at the right libc/libc ++ for the build-id in the nix store. If success, I'll make a PR to your branch. added: it makes no sense to use the npm2nix as we wouldn't have control which zip file it decides to download :) but at least what won't work is to allow this on all platforms, we could support |
Thinking out loud: I explicily replaced the path to libstdc++.so.6 (which ldd did not found) and changed the intepreted like was in the PR. It's becoming clear that we are dealing with stripped binary, there's to some, some part is ELF and other part is dynamic, meaning the binary looses its runtime dependencies declerations, so we just have to provide them, guessing we need to provide the same libs as nodejs needs. But that's not my problem at hand tough it will be. The segfault I'm currently receiving idicates that part of the binary was compiled useing really old glibc
This undefined investigateing further... |
Closing in favor of #44076. |
Motivation for this change
lumo
is a cool project that gives you an instant ClojureScript REPL.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)