On a Lenovo ThinkPad with an up to date Manjaro Linux OS and Sage 9.2 successfully compiled from source I failed to install gap_packages-4.10.2.p1, while many other optional packages (like the huge cbc) installed perfectly. Below I append the (hopefully) relevant piece of the log file.
gcc -c -O -fno-builtin nqmfns.c
gcc -O -fno-builtin -o ..//..//bin/x86_64-pc-linux-gnu-default64-kv3/nqmrun nqmd.o nqmp.o nqmfns.o
/usr/bin/ld: nqmfns.o:(.bss+0x8): multiple definition of `ip'; nqmp.o:(.bss+0x8): first defined here
/usr/bin/ld: nqmfns.o:(.bss+0x0): multiple definition of `op'; nqmp.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [makefile:49: ..//..//bin/x86_64-pc-linux-gnu-default64-kv3/nqmrun] Error 1
make[3]: *** [Makefile:9: all] Error 2
********************************************************************************
Error building gap_packages-4.10.2.p1
(I don't know if that matters, but the log also contains 201 warnings, all about implicit declarations of functions.)