From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OJw/D5JAKWGhUAEAgWs5BA (envelope-from ) for ; Fri, 27 Aug 2021 21:44:18 +0200 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GHjTCpJAKWGJYgAA1q6Kng (envelope-from ) for ; Fri, 27 Aug 2021 19:44:18 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 5EC924C0B for ; Fri, 27 Aug 2021 21:44:14 +0200 (CEST) Received: from localhost ([::1]:43924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJhls-0001oZ-OI for larch@yhetil.org; Fri, 27 Aug 2021 15:44:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJhlk-0001oI-My for bug-guix@gnu.org; Fri, 27 Aug 2021 15:44:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJhli-0002jX-JX for bug-guix@gnu.org; Fri, 27 Aug 2021 15:44:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJhli-0007ul-Hp for bug-guix@gnu.org; Fri, 27 Aug 2021 15:44:02 -0400 Subject: bug#44445: json-c cross-build fails from x86-64 to armhf Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Fri, 27 Aug 2021 19:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44445 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jesse Gibbons Mail-Followup-To: 44445@debbugs.gnu.org, maxim.cournoyer@gmail.com, jgibbons2357@gmail.com Received: via spool by 44445-done@debbugs.gnu.org id=D44445.163009340430357 (code D ref 44445); Fri, 27 Aug 2021 19:44:02 +0000 Received: (at 44445-done) by debbugs.gnu.org; 27 Aug 2021 19:43:24 +0000 Received: from localhost ([127.0.0.1]:53046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJhl6-0007tZ-I7 for submit@debbugs.gnu.org; Fri, 27 Aug 2021 15:43:24 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]:44728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJhl3-0007tK-Ot for 44445-done@debbugs.gnu.org; Fri, 27 Aug 2021 15:43:23 -0400 Received: by mail-qk1-f174.google.com with SMTP id c10so8353838qko.11 for <44445-done@debbugs.gnu.org>; Fri, 27 Aug 2021 12:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=kjUs5ZcyTkxUwR2fbvylWO4zXUvsQEID6t1/w83JaWI=; b=CxLCTrS6EkWYvFSvWpDEanXJIgwj/lrZwibsMnUbTTeSDLjctKHMGdr9txKUSvbiP4 3CRPvxdpnu39NIFUNDIu4nG4qaOBMLrVkvO7zwwBvuHc+JGQbRmZoJXyYyS/0s1KIy0K Tn4mCcwJdGYWWGnpUqWT344yDWtx0XdBqV9yYw6JAjxc0Jdkh+iwG32fpFh4fMfPzJd7 f4k/m3htWwsPR8GJokaQORxob5b/n9TCC22W7G3lJYuII/TAycFyQ6iGHA5PJMA0r39O Zw6SJ04cokjbR94QqFHU0T5S6FRvHE73i15Yy9rKrYbHBHjMyP0AdRLLHiL3YMPLSDxx A7rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=kjUs5ZcyTkxUwR2fbvylWO4zXUvsQEID6t1/w83JaWI=; b=obGXM28xFv8nWbEzG8t4B2Q7W4ApWsD4XDAfWygWrgstucq864kwXe44wQ2TBm0XKz ieR6qxLSnmdMtlCvC7ViFP57U80psFzsq5oTaELVkR6gEiSiWOnhn7P0QZ6ZsdTlqtkc V0X8btdzVjMBoBVLxaK3x5NYVdv3nY0h4ANAcSbR+B5JJeA0MKOpjYtbvgxsIZSXrrHc TgJB/HpIhQIjmQs3cfrb8ywOEO+EU4QdnWfGwCJBgGjsjDewthtxapy6d2yel5US3BMr v79dCFWwGTKTV7uho3BMEOHgVOdaQqmiGSMe0pzhbPdmw/Xr5UcXs79d1Q1TzdYDrDmf njWQ== X-Gm-Message-State: AOAM5318LYWLKVOelrwZ5Ka2noH0Ja6ybgk5zW0aYAGzibNaJ0mPKRYd fQCQ0bs59QP91M/EZObPWR/KKBPo2w0= X-Google-Smtp-Source: ABdhPJzKxpU+/3gHf1Qlm+4/5yr1C1uuLnDtKHnP0wSfUakcvUDVDugH7VkaPqPLGm+v0IgMX967Ow== X-Received: by 2002:a37:b3c6:: with SMTP id c189mr10553902qkf.343.1630093395825; Fri, 27 Aug 2021 12:43:15 -0700 (PDT) Received: from hurd (dsl-205-151-56-126.b2b2c.ca. [205.151.56.126]) by smtp.gmail.com with ESMTPSA id j26sm5416199qki.26.2021.08.27.12.43.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Aug 2021 12:43:15 -0700 (PDT) From: Maxim Cournoyer References: <1a09cdf5-1a47-6013-bbec-0b289992100a@gmail.com> Date: Fri, 27 Aug 2021 15:43:14 -0400 In-Reply-To: <1a09cdf5-1a47-6013-bbec-0b289992100a@gmail.com> (Jesse Gibbons's message of "Wed, 4 Nov 2020 08:44:39 -0700") Message-ID: <87eeaesmgd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44445-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630093457; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kjUs5ZcyTkxUwR2fbvylWO4zXUvsQEID6t1/w83JaWI=; b=ZnrK5gE+JiC7GYiqBX0DJ7AT2onqo2NKIL4JGAYvJjdYlReoff6SKeKPfmXmVrOO7X4p24 nb9vz48UKR6+3pm+sNzASDqIFWxlnQ9BHtk62bIMrfQPAT6A20yIR4hldwGdjLWnVYCylP Lx5LeBTMD5x4GbmxbxEGfgxj2wQGsqm4Zy2IKPrwgnBOkZUxK2XC4qJXomhWb85yPKkark zroXYxakK7u27oQVFeopmAu/GBVwAkDmGCgXqDhmB6Jp7DtBnarOfT/299nFvZMWMa8smX WgD/z56Wfcp5sDPTnZnNVoQKb7g3LKOtSpdbnzG4uW7LxLn5Z/hgvY2hdWf+Tw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630093457; a=rsa-sha256; cv=none; b=L2XNr67urjBbKWy0I98uVh8hH0KWmz/quc9fjPMQXMfTEOH/ZJoSSBRGSnWvuRHnw4ez78 3ZgGcV/MT+frECN7s9YD+8si6aMR87cNq0EaVv+d/1qDlfMc5fHCbnXpzRyhx5zkRGjTUo KAsHSLyOLpaka0I7y7feil73vM+vBW8PIhq3vW/xcfwkdB15r8Ojl3Dqa2SwmDszmViysI hUAucVZTNz9QoVvVyaXcxw1kwW72n00mvfWXQg1NohBEsWyVo3Dxl2zfJ0dqXsWmt7bAIo 1gkuM50yi2O17T5t4e18BKqdjPtx7UOvZLRKMmyUcJJGLyLSA08vryccRZtcEQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=CxLCTrS6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=CxLCTrS6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 5EC924C0B X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZE38xDPMe8XH Hello, Jesse Gibbons writes: > I'm trying to build a guix system for my banana pi m2u, but json-c > fails to cross-build. > > ~$ guix describe > Generation 319=C2=A0=C2=A0 =C2=A0Nov 04 2020 06:41:25=C2=A0=C2=A0 =C2=A0(= current) > =C2=A0 guix 3d67269 > =C2=A0=C2=A0=C2=A0 repository URL: https://git.savannah.gnu.org/git/guix.= git > =C2=A0=C2=A0=C2=A0 branch: master > =C2=A0=C2=A0=C2=A0 commit: 3d67269ee787c8624bafdd68df9fbf7eedd8eb1e > > ~$ guix build --system=3Darmhf-linux json-c > ... > command "cmake" "../json-c-0.14" "-DCMAKE_BUILD_TYPE=3DRelWithDebInfo" > "-DCMAKE_INSTALL_PREFIX=3D/gnu/store/yqaw63n8wmg7f2ncc24019z87m5cwhim-jso= n-c-0.14"=20 > "-DCMAKE_INSTALL_LIBDIR=3Dlib" > "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=3DTRUE" > "-DCMAKE_INSTALL_RPATH=3D/gnu/store/yqaw63n8wmg7f2ncc24019z87m5cwhim-json= -c-0.14/lib"=20 > "-DCMAKE_VERBOSE_MAKEFILE=3DON" failed with status 1 > builder for > `/gnu/store/m3x5hnlp9d9qmg72a0c7rqlz40yc0x0m-json-c-0.14.drv' failed=20 > with exit code 1 > build of /gnu/store/m3x5hnlp9d9qmg72a0c7rqlz40yc0x0m-json-c-0.14.drv fail= ed > View build log at > '/var/log/guix/drvs/m3/x5hnlp9d9qmg72a0c7rqlz40yc0x0m-json-c-0.14.drv.bz2= '. > guix build: error: build of > `/gnu/store/m3x5hnlp9d9qmg72a0c7rqlz40yc0x0m-json-c-0.14.drv' failed > > > Log attached. As others have said, it looks like you used a native system here (via offloading/QEMU user emulation) or both. QEMU has limitations that often causes run time failure, such as during the test suites. There are substitutes for json-c for both the aarch64-linux and arm-linux systems, and cross-compiling tested fine as well too: $ guix build json-c --target=3Darm-linux-gnueabihf /gnu/store/dmcii1kjf7035gfn8rg5xws3an7avffl-json-c-0.14 $ guix build json-c --target=3Daarch64-linux-gnu /gnu/store/7y20nqvp19254picqa0l345lklf4zih1-json-c-0.14 Closing, Maxim