Fix nativeBuildInputs and add cross compilation target #10
@ -88,11 +88,19 @@ in
|
||||
dontStrip = enableDebug;
|
||||
separateDebugInfo = true;
|
||||
|
||||
buildInputs = [
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
pkg-config
|
||||
|
||||
# TODO: papi_version is needed for configure:
|
||||
# ./configure: line 27378: papi_version: command not found
|
||||
# This probably breaks cross-compilation
|
||||
papi
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
|
rarias marked this conversation as resolved
Outdated
|
||||
numactl
|
||||
hwloc
|
||||
@ -104,7 +112,7 @@ in
|
||||
postInstall = ''
|
||||
mkdir -p $out/nix-support
|
||||
echo "export NANOS6_HOME=$out" >> $out/nix-support/setup-hook
|
||||
'';
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/bsc-pm/nanos6";
|
||||
|
||||
Reference in New Issue
Block a user
Just a comment so I don't forget, it may be doable to fix nanos6 so that it takes the PAPI version from the .pc file:
https://github.com/bsc-pm/nanos6/blob/master/m4/papi.m4#L25
https://github.com/icl-utk-edu/papi/blob/master/src/papi.pc.in#L8
Even if we fix this, papi does not cross-compile to risc-v.
I tried to fix it, adding the needed configuration flags for cross compilation, but it still fails because it misses some instructions:
It seems they recently added support for RISC-V, but we use 7.1.0 which is too old:
b464420f3aI'll prefer waiting until the next release of nixos, unless we need to backport it.