Skip to content
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

Fix stack --nix build #2037

Merged
merged 1 commit into from
Aug 24, 2020
Merged

Fix stack --nix build #2037

merged 1 commit into from
Aug 24, 2020

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Aug 13, 2020

Overview

Addresses the following errors from stack --nix build which seem to happen with newer versions of nix:

  1. Executable named nix-shell not found on path

  2. Invalid option '--internal-re-exec-version=2.1.3'

Addresses the following errors from stack:

1. Executable named nix-shell not found on path

2. Invalid option '--internal-re-exec-version=2.1.3'
@rvl rvl added the RESOLVING ISSUE Mark a PR as resolving issues, for auto-generated CHANGELOG label Aug 13, 2020
@rvl rvl self-assigned this Aug 13, 2020
Copy link
Member

@jonathanknowles jonathanknowles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When building with stack --nix build on this branch, I encounter the following error:

cardano-wallet > <no location info>: error:
cardano-wallet >     <command line>: can't load .so/.DLL for: /home/jonathan/.stack/snapshots/x86_64-linux/39114b4d1b2947620b59a8803c2d63ab84dbed136609fe44ef27b38ba074c955/8.6.5/lib/x86_64-linux-ghc-8.6.5/libHSlibsystemd-journal-1.4.4-8tyUPpbVTnv5SGCSb8krtm-ghc8.6.5.so (libsystemd.so.0: cannot open shared object file: No such file or directory)
cardano-wallet >                      

Building with stack build (without the --nix part) still works fine.

@hasufell
Copy link
Contributor

I get

Cloning 3f11638847bfc8c457dc4bb080c63e5d6de806ee from https://github.com/input-output-hk/cardano-addresses
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "de_DE.utf8",
	LC_COLLATE = "de_DE.utf8",
	LC_CTYPE = "de_DE.utf8",
	LC_IDENTIFICATION = "de_DE.utf8",
	LC_MEASUREMENT = "de_DE.utf8",
	LC_MESSAGES = "en_US.utf8",
	LC_MONETARY = "de_DE.utf8",
	LC_NAME = "de_DE.utf8",
	LC_NUMERIC = "de_DE.utf8",
	LC_PAPER = "de_DE.utf8",
	LC_TELEPHONE = "de_DE.utf8",
	LC_TIME = "en_US.utf8",
	LANG = "de_DE.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
error: unsupported argument ‘name’ to ‘fetchTarball’, at 0x18c187b8
(use ‘--show-trace’ to show detailed location information)

normal stack build works. But this also happens on master.

@rvl
Copy link
Contributor Author

rvl commented Aug 18, 2020

@jonathanknowles I suspect you have deleted some /nix/store paths after building the stack snapshot. Could you run:

ldd /home/jonathan/.stack/snapshots/x86_64-linux/39114b4d1b2947620b59a8803c2d63ab84dbed136609fe44ef27b38ba074c955/8.6.5/lib/x86_64-linux-ghc-8.6.5/libHSlibsystemd-journal-1.4.4-8tyUPpbVTnv5SGCSb8krtm-ghc8.6.5.so | grep libsystemd.so

and check that the listed file exists?

@hasufell That output appears to be from nix < 1.12, which is a very old version. Here are some instructions for installing and configuring nix for IOHK projects: nix.md.

@rvl rvl added this to In Progress in Adrestia Aug 18, 2020
@rvl rvl merged commit f9288a4 into master Aug 24, 2020
@rvl rvl deleted the rvl/fix-stack-shell branch August 24, 2020 06:48
@rvl rvl moved this from In Progress to Closed in Adrestia Sep 1, 2020
@CharlesMorgan-IOHK CharlesMorgan-IOHK removed this from Closed in Adrestia Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RESOLVING ISSUE Mark a PR as resolving issues, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants