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
lazarus: Unable to compile any program #48871
Comments
Either I can't figure out how to properly install and setup `lazarus` or it's unable to compile even the default project. Here's the compile log:
Hm, now that I look at it, at some point I started just adding a few packages and never got around to writing a proper wrapper.
I think I add the following:
xorg.libX11 atk cairo gtk2 glib gdk_pixbuf pango
|
@OPNA2608 do you want to file a patch for this? |
I think this is fixed?
but hopefully we'll be fixing that. During my triage I was able to recompile Lazarus itself and the example program, so that suggests to me things should work. |
@7c6f434c @deliciouslytyped Took me some time to get back to this, sorry. I can give it a shot on my NixOS machine later today, but I tested the current situation on my non-NixOS one:
Failed compilation log
Same results with the example "imgviewer" application ( Launching via
Running without the debugger prints this on the terminal.
Adding Setting the |
From a single quick read-through, I'm not sure whats going on, but I think the RPATH might not be set correctly. I might be on a completely wrong track here though. Edit: are you saying lazarus isnt propagating the LD_LIBRARY_PATH to binaries executed from it? |
Retried this on my NixOS system.
This unfortunately still gives me the error from the initial comment. Error log
I'm unsure what's going on here, unless I'm missing something? My |
Can you confirm that the lazarus you are running is indeed the correct version? (Check the wrapper script?) Maybe try with --pure. |
Can't compare with the version on my machine at work but this is what i have/did. I believe I did nothing wrong there? nix-env -e lazarus fpc gdb
nix-collect-garbage -d
nix-channel --update unstable # https://nixos.org/channels/nixos-unstable
rm -rf ~/.lazarus
nix-shell '<unstable>' -p lazarus fpc gdb which --pure
|
I marked this as stale due to inactivity. → More info |
Issue description
Either I can't figure out how to properly install and setup
lazarus
or it's unable to compile even the default project. Here's the compile log:Steps to reproduce
nix-shell -p lazarus -p fpc -p gdb '<nixpkgs>'
startlazarus
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
"x86_64-linux"
Linux 4.18.14, NixOS, 18.09.git.c06f530 (Jellyfish)
yes
yes
nix-env (Nix) 2.1.1
""
"nixos-18.09.892.c06f5302f63"
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: