cabal build cardano-node 1.29 for raspberry pi 4 ubuntu
Hardware: raspberry pi 4 8gb ram arch: aarch64
Failed to build exe:alex from alex-3.2.6.
Build log (
/root/.cabal/logs/ghc-8.10.7/alex-3.2.6-e-alex-838d55093d70a7c6050e230234a6584e9da9744f8aea4177bb18e5634fc907dc.log
):
Configuring executable 'alex' for alex-3.2.6..
Preprocessing executable 'alex' for alex-3.2.6..
Building executable 'alex' for alex-3.2.6..
[ 1 of 22] Compiling Data.Ranged.Boundaries ( src/Data/Ranged/Boundaries.hs, dist/build/alex/alex-tmp/Data/Ranged/Boundaries.o )
[ 2 of 22] Compiling Data.Ranged.Ranges ( src/Data/Ranged/Ranges.hs, dist/build/alex/alex-tmp/Data/Ranged/Ranges.o )
[ 3 of 22] Compiling Data.Ranged.RangedSet ( src/Data/Ranged/RangedSet.hs, dist/build/alex/alex-tmp/Data/Ranged/RangedSet.o )
src/Data/Ranged/RangedSet.hs:31:1: warning: [-Wunused-imports]
The import of ‘Data.Semigroup’ is redundant
except perhaps to import instances from ‘Data.Semigroup’
To import instances alone, use: import Data.Semigroup()
|
31 | import Data.Semigroup
| ^^^^^^^^^^^^^^^^^^^^^
[ 4 of 22] Compiling Data.Ranged ( src/Data/Ranged.hs, dist/build/alex/alex-tmp/Data/Ranged.o )
[ 5 of 22] Compiling Map ( src/Map.hs, dist/build/alex/alex-tmp/Map.o )
[ 6 of 22] Compiling Paths_alex ( dist/build/alex/autogen/Paths_alex.hs, dist/build/alex/alex-tmp/Paths_alex.o )
[ 7 of 22] Compiling Set ( src/Set.hs, dist/build/alex/alex-tmp/Set.o )
[ 8 of 22] Compiling DFS ( src/DFS.hs, dist/build/alex/alex-tmp/DFS.o )
[ 9 of 22] Compiling Sort ( src/Sort.hs, dist/build/alex/alex-tmp/Sort.o )
[10 of 22] Compiling UTF8 ( src/UTF8.hs, dist/build/alex/alex-tmp/UTF8.o )
[11 of 22] Compiling CharSet ( src/CharSet.hs, dist/build/alex/alex-tmp/CharSet.o )
[12 of 22] Compiling Util ( src/Util.hs, dist/build/alex/alex-tmp/Util.o )
[13 of 22] Compiling AbsSyn ( src/AbsSyn.hs, dist/build/alex/alex-tmp/AbsSyn.o )
[14 of 22] Compiling ParseMonad ( src/ParseMonad.hs, dist/build/alex/alex-tmp/ParseMonad.o )
[15 of 22] Compiling Scan ( src/Scan.hs, dist/build/alex/alex-tmp/Scan.o )
[16 of 22] Compiling Parser ( src/Parser.hs, dist/build/alex/alex-tmp/Parser.o )
[17 of 22] Compiling Output ( src/Output.hs, dist/build/alex/alex-tmp/Output.o )
[18 of 22] Compiling NFA ( src/NFA.hs, dist/build/alex/alex-tmp/NFA.o )
[19 of 22] Compiling Info ( src/Info.hs, dist/build/alex/alex-tmp/Info.o )
[20 of 22] Compiling DFAMin ( src/DFAMin.hs, dist/build/alex/alex-tmp/DFAMin.o )
[21 of 22] Compiling DFA ( src/DFA.hs, dist/build/alex/alex-tmp/DFA.o )
[22 of 22] Compiling Main ( src/Main.hs, dist/build/alex/alex-tmp/Main.o )
Linking dist/build/alex/alex ...
/usr/bin/ld.gold: error: cannot find -lnuma
rts/posix/OSMem.c:370:0: error:
error: undefined reference to 'mbind'
rts/posix/OSMem.c:748:0: error:
error: undefined reference to 'numa_num_configured_nodes'
rts/posix/OSMem.c:758:0: error:
error: undefined reference to 'numa_get_mems_allowed'
rts/posix/OSMem.c:748:0: error:
error: undefined reference to 'numa_num_configured_nodes'
rts/posix/OSMem.c:763:0: error:
error: undefined reference to 'numa_bitmask_free'
rts/posix/OSMem.c:748:0: error:
error: undefined reference to 'numa_num_configured_nodes'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
cabal: Failed to build exe:alex from alex-3.2.6 (which is required by
test:cardano-node-test from cardano-node-1.29.0, exe:cardano-node from
cardano-node-1.29.0 and others). See the build log above for details.