From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ABA8O3npFV/GNAAA0tVLHw (envelope-from ) for ; Mon, 20 Jul 2020 18:59:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KEEoN3npFV9dfQAA1q6Kng (envelope-from ) for ; Mon, 20 Jul 2020 18:59:05 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 92D47940220 for ; Mon, 20 Jul 2020 18:59:05 +0000 (UTC) Received: from localhost ([::1]:49116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxb0C-0001Vg-Fm for larch@yhetil.org; Mon, 20 Jul 2020 14:59:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxazL-0000l1-Oi for guix-devel@gnu.org; Mon, 20 Jul 2020 14:58:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39131) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxazL-0000JL-FU for guix-devel@gnu.org; Mon, 20 Jul 2020 14:58:11 -0400 Received: from [2605:6000:1a0d:48fb::e9] (port=55068 helo=lenovo-t430) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jxazK-00032r-Hb for guix-devel@gnu.org; Mon, 20 Jul 2020 14:58:11 -0400 From: Brett Gilio To: guix-devel@gnu.org Subject: qemu-binfmt-service failing to identify compilers Date: Mon, 20 Jul 2020 13:57:43 -0500 Message-ID: <871rl69fq0.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: qxYeN1r9wYL+ Hi all, When I try to test guix builds for other architectures using the qemu-binfmt-service and the --system flag, the configuration step is failing to identify the compiler with the CMake build system. I did some investigating, and it appears this is a failing test in CMake itself but it causes packages to fail on build. This seems to only be the case when compiling for foreign architectures, as building on the true architecture seems to work (as in the Guix CI). --8<---------------cut here---------------start------------->8--- CMake Error at /gnu/store/8aamffn0azz4jx4m18pzw4k14sr437ly-cmake-minimal-3.= 16.5/share/cmake-3.16/Modules/CMakeCompilerIdDetection.cmake:26 (list): list sub-command REMOVE_ITEM requires two or more arguments. Call Stack (most recent call first): /gnu/store/8aamffn0azz4jx4m18pzw4k14sr437ly-cmake-minimal-3.16.5/share/cm= ake-3.16/Modules/CMakeDetermineCompilerId.cmake:211 (compiler_id_detection) /gnu/store/8aamffn0azz4jx4m18pzw4k14sr437ly-cmake-minimal-3.16.5/share/cm= ake-3.16/Modules/CMakeDetermineCompilerId.cmake:230 (CMAKE_DETERMINE_COMPIL= ER_ID_WRITE) /gnu/store/8aamffn0azz4jx4m18pzw4k14sr437ly-cmake-minimal-3.16.5/share/cm= ake-3.16/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILE= R_ID_BUILD) /gnu/store/8aamffn0azz4jx4m18pzw4k14sr437ly-cmake-minimal-3.16.5/share/cm= ake-3.16/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPI= LER_ID) CMakeLists.txt:5 (project) -- The CXX compiler identification is unknown -- Check for working C compiler: /gnu/store/z8954h4nvgxwcyy2in8c1l11g199m2y= b-gcc-7.5.0/bin/gcc -- Check for working C compiler: /gnu/store/z8954h4nvgxwcyy2in8c1l11g199m2y= b-gcc-7.5.0/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /gnu/store/z8954h4nvgxwcyy2in8c1l11g199m= 2yb-gcc-7.5.0/bin/c++ -- Check for working CXX compiler: /gnu/store/z8954h4nvgxwcyy2in8c1l11g199m= 2yb-gcc-7.5.0/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done Unknown C compiler.=20=20 --8<---------------cut here---------------end--------------->8--- when keeping the failing build, this is what I find in the CMakeError.log. --8<---------------cut here---------------start------------->8--- Compiling the C compiler identification source file "CMakeCCompilerId.c" fa= iled. Compiler: /gnu/store/z8954h4nvgxwcyy2in8c1l11g199m2yb-gcc-7.5.0/bin/gcc=20 Build flags:=20 Id flags:=20=20 The output was: 1 CMakeCCompilerId.c:20:52: error: expected =E2=80=98,=E2=80=99 or =E2=80=98;= =E2=80=99 before =E2=80=98COMPILER_ID=E2=80=99 char const* info_compiler =3D "INFO" ":" "compiler[" COMPILER_ID "]"; ^~~~~~~~~~~ --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- Compiling the C compiler identification source file "CMakeCCompilerId.c" fa= iled. Compiler: /gnu/store/z8954h4nvgxwcyy2in8c1l11g199m2yb-gcc-7.5.0/bin/gcc=20 Build flags:=20 Id flags: --target=3Darm-arm-none-eabi;-mcpu=3Dcortex-m3=20 The output was: 1 gcc: error: unrecognized command line option =E2=80=98--target=3Darm-arm-no= ne-eabi=E2=80=99 --8<---------------cut here---------------end--------------->8--- I am getting this error on both SWI-Prolog and Lean packages, both of which I have needed to investigate on armhf and i686 because of failures on those architectures. I am not entirely sure how to proceed with these issues. Any help? Thanks. Brett Gilio