Closed tdiesler closed 1 year ago
Can you try the v0.10.0-beta or the top-of-tree? Can you also attach the config.log from the build directory, that should give more information about the failure.
config-head.log config-0.10.0-beta1.log
It seems to fail like this ...
configure:6314: checking whether the C compiler works
configure:6336: aarch64-unknown-linux-gnu-gcc -g -O2 conftest.c >&5
/nix/store/ca148jcwpzjqyasyaqf9l81sndxwgbqn-binutils-2.35.1/bin/ld: cannot find crt1.o: No such file or directory
/nix/store/ca148jcwpzjqyasyaqf9l81sndxwgbqn-binutils-2.35.1/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
in both cases.
Here is the shell.nix that I use. I tried several versions of gcc from here
{
pkgs ? import <nixpkgs> {}
}:
let
version = "0.10.0-beta1";
in
pkgs.mkShell {
buildInputs = [
pkgs.autoconf
pkgs.automake
pkgs.curl
pkgs.gccStdenv
pkgs.libarchive
pkgs.libzip
pkgs.ncurses
pkgs.pcre-cpp
pkgs.readline
pkgs.sqlite
];
shellHook = ''
TARGET_DIR="$(pwd)/target"
rm -rf $TARGET_DIR
if [ ! -d $TARGET_DIR/gitsrc ]; then
mkdir -p $TARGET_DIR
git clone --depth 1 --branch "v${version}" https://github.com/tstack/lnav $TARGET_DIR/gitsrc
fi
cd $TARGET_DIR/gitsrc
./autogen.sh
./configure --prefix=$TARGET_DIR
make
make install
sudo rm -f /usr/local/bin/lnav
sudo cp $TARGET_DIR/bin/lnav /usr/local/bin
'';
}
Any news ? Currently getting this issue on Nixos 21.11
out-of-date
lnav version v0.9.0 is the latest
Describe the bug
I'm trying to integrate lnav with a Cardano node Docker image. The build is based on Nix and it works just fine on x86_64. On aarch64 I have no luck ...
To Reproduce