libffi: requires explicit linux-headers
==> Installing libffi-3.4.4-fpvvpkeptghcv5nhzul2pitqvckratjz [19/37]
==> Using cached archive: /home/user/.spack/cache/_source-cache/archive/d6/d66c56ad259a82cf2a9dfc408b32bf5da52371500b84745f7fb8b645712df676.tar.gz
==> No patches needed for libffi
==> libffi: Executing phase: 'autoreconf'
==> libffi: Executing phase: 'configure'
==> libffi: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
'make' '-j4' 'V=1'
7 errors found in build log:
>> 4 ==> [2023-11-11-19:29:21.266297] PermissionError: [Errno 13] Permission denied: '/tmp/user/spack-
stage/spack-stage-libffi-3.4.4-fpvvpkeptghcv5nhzul2pitqvckratjz/spack-src/config.sub'
>> 5 ==> [2023-11-11-19:29:21.268700] PermissionError: [Errno 13] Permission denied: '/tmp/user/spack-
stage/spack-stage-libffi-3.4.4-fpvvpkeptghcv5nhzul2pitqvckratjz/spack-src/config.guess'
6 ==> [2023-11-11-19:29:21.269221] Find (not recursive): /home/user/.spack/linux-adelie1-aarch64/gc
c-8.5.0/gnuconfig-2022-09-17-wt4bwv435rxpqozfw52nczyqs6h6sdt7 ['config.sub', 'config.guess']
7 ==> [2023-11-11-19:29:21.269376] Find complete: /home/user/.spack/linux-adelie1-aarch64/gcc-8.5.0
/gnuconfig-2022-09-17-wt4bwv435rxpqozfw52nczyqs6h6sdt7 ['config.sub', 'config.guess']
8 ==> [2023-11-11-19:29:21.287015] Copying /home/user/.spack/linux-adelie1-aarch64/gcc-8.5.0/gnucon
fig-2022-09-17-wt4bwv435rxpqozfw52nczyqs6h6sdt7/config.sub to /tmp/user/spack-stage/spack-stage-l
ibffi-3.4.4-fpvvpkeptghcv5nhzul2pitqvckratjz/spack-src/config.sub
9 ==> [2023-11-11-19:29:21.287258] Copying /home/user/.spack/linux-adelie1-aarch64/gcc-8.5.0/gnucon
fig-2022-09-17-wt4bwv435rxpqozfw52nczyqs6h6sdt7/config.guess to /tmp/user/spack-stage/spack-stage
-libffi-3.4.4-fpvvpkeptghcv5nhzul2pitqvckratjz/spack-src/config.guess
10 ==> libffi: Executing phase: 'configure'
11 ==> [2023-11-11-19:29:21.292127] Find (recursive): /tmp/user/spack-stage/spack-stage-libffi-3.4.4
-fpvvpkeptghcv5nhzul2pitqvckratjz/spack-src ['configure']
...
259 /bin/sh ./libtool --tag=CC --mode=compile /opt/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I.
-I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -f
fast-math -fexceptions -MT src/aarch64/ffi.lo -MD -MP -MF $depbase.Tpo -c -o src/aarch64/ffi.lo .
./src/aarch64/ffi.c &&\
260 mv -f $depbase.Tpo $depbase.Plo
261 libtool: compile: /opt/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Ii
nclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -fexceptions -MT src
/tramp.lo -MD -MP -MF src/.deps/tramp.Tpo -c ../src/tramp.c -fPIC -DPIC -o src/.libs/tramp.o
262 depbase=`echo src/aarch64/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
263 /bin/sh ./libtool --tag=CC --mode=compile /opt/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I.
-I.. -I. -I../include -Iinclude -I../src -I. -I../include -Iinclude -I../src -MT src/aarch64/
sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/aarch64/sysv.lo ../src/aarch64/sysv.S &&\
264 mv -f $depbase.Tpo $depbase.Plo
>> 265 ../src/tramp.c:51:10: fatal error: linux/limits.h: No such file or directory
266 #include <linux/limits.h>
267 ^~~~~~~~~~~~~~~~
268 compilation terminated.
>> 269 make[3]: *** [Makefile:1320: src/tramp.lo] Error 1
270 make[3]: *** Waiting for unfinished jobs....
271 libtool: compile: /opt/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Ii
nclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -fexceptions -MT src
/aarch64/ffi.lo -MD -MP -MF src/aarch64/.deps/ffi.Tpo -c ../src/aarch64/ffi.c -fPIC -DPIC -o src
/aarch64/.libs/ffi.o
272 libtool: compile: /opt/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Ii
nclude -I../src -I. -I../include -Iinclude -I../src -MT src/aarch64/sysv.lo -MD -MP -MF src/aarch
64/.deps/sysv.Tpo -c ../src/aarch64/sysv.S -fPIC -DPIC -o src/aarch64/.libs/sysv.o
273 libtool: compile: /opt/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Ii
nclude -I../src -I. -I../include -Iinclude -I../src -MT src/aarch64/sysv.lo -MD -MP -MF src/aarch
64/.deps/sysv.Tpo -c ../src/aarch64/sysv.S -o src/aarch64/sysv.o >/dev/null 2>&1
274 libtool: compile: /opt/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Ii
nclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -fexceptions -MT src
/aarch64/ffi.lo -MD -MP -MF src/aarch64/.deps/ffi.Tpo -c ../src/aarch64/ffi.c -o src/aarch64/ffi.
o >/dev/null 2>&1
275 libtool: compile: /opt/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Ii
nclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -fexceptions -MT src
/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c ../src/closures.c -o src/closures.o >/dev/null
2>&1
276 make[3]: Leaving directory '/tmp/user/spack-stage/spack-stage-libffi-3.4.4-fpvvpkeptghcv5nhzul2pi
tqvckratjz/spack-src/aarch64-unknown-linux-musl'
>> 277 make[2]: *** [Makefile:1397: all-recursive] Error 1
278 make[2]: Leaving directory '/tmp/user/spack-stage/spack-stage-libffi-3.4.4-fpvvpkeptghcv5nhzul2pi
tqvckratjz/spack-src/aarch64-unknown-linux-musl'
>> 279 make[1]: *** [Makefile:625: all] Error 2
280 make[1]: Leaving directory '/tmp/user/spack-stage/spack-stage-libffi-3.4.4-fpvvpkeptghcv5nhzul2pi
tqvckratjz/spack-src/aarch64-unknown-linux-musl'
>> 281 make: *** [Makefile:594: all-all] Error 2
See build log for details:
/tmp/user/spack-stage/spack-stage-libffi-3.4.4-fpvvpkeptghcv5nhzul2pitqvckratjz/spack-build-out.txt