[Pkg-cmake-team] Problem with ftbfs on armel and mipsel with cmake 3.16.3

John Scott jscott at posteo.net
Wed Jun 3 23:54:15 BST 2020

On Wednesday, June 3, 2020 4:58:08 PM EDT HÃ¥vard Flaget Aasen wrote:
> The beginning of the error message is:
> CMake Error at
> /usr/share/cmake-3.16/Modules/CMakeCompilerIdDetection.cmake:26 (list):
>   list sub-command REMOVE_ITEM requires two or more arguments.

That part of the module says
list(REMOVE_ITEM lang_files ${nonlang_files})
so the error probably has to do with ${nonlang_files} being empty. I reproduced 
on mipsel emulated with qemu-user-static (a wonderful gem [1]), I didn't try 
this on real hardware.

It looks like the part to define nonlang_files immediately preceding is 
file(GLOB nonlang_files

Rolling back to CMake to 3.15.4 was the same, but CMake 3.13.2 worked. So I 
looked as to what the difference would be between those paths and got files.diff.
I've attached the diff on CMakeCompilerIdDetection.cmake. Both of these 
together seem to be ARM and MIPS-specific, so are probably related to the issue 

I'm CC'ing the CMake folks should they have a clue.

[1] https://wiki.debian.org/QemuUserEmulation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: module.diff
Type: text/x-patch
Size: 1554 bytes
Desc: changes in the complaining CMake module
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20200603/dfc6373e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: files.diff
Type: text/x-patch
Size: 928 bytes
Desc: difference of CMake modules installed for compiler detection
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20200603/dfc6373e/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20200603/dfc6373e/attachment.sig>

More information about the Pkg-cmake-team mailing list