From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OKP+KkrPA2XnOgAAauVa8A:P1 (envelope-from ) for ; Fri, 15 Sep 2023 05:28:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OKP+KkrPA2XnOgAAauVa8A (envelope-from ) for ; Fri, 15 Sep 2023 05:28:10 +0200 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 2C2275B2C1 for ; Fri, 15 Sep 2023 05:28:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694748490; 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:resent-cc: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; bh=5HCqoOAcct/KjStfkSo4pFwUGEZFCyQqqz8SHaHSdEU=; b=gzZUwDVhoWIWSABJso/KnC/isMahKVjnEoGBVw5X6QFRRxnCg8cpWxBNZ2RHbca9tCwho4 mVDyGC8oar/QObgondN3dPxBU7sjqmpVSw2+WM2Tb2mCUbUn1uZj6+M0hAhzI+pRsyoQZR JgDTUMCQbN+UkdusgxUQKhmox0JLkiibIJ9x+Ln2JPNCBELRl9tR3AIczcZDaAC+2rbTG6 XBfbrm2ADxTP88pSkWL/NdrQOSiRUa/+U2UIzsv+GtT+f/g1ncZw0bH3fwwzEWTiePjjtv IubJ+f0N+0qFobgJAs8RWs6HK/Vgt7jq5Fh65uMj7XS0vifEOVhSQKJHsb9y/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694748490; a=rsa-sha256; cv=none; b=P5e0XAa81hlh05AJCVs09XVGEn8UqK8XuQG67lwVPEa4dVWVmyMmjpVtYC4Q1zR3nJCafw p5UclUYw5A30zlyG+LY+VveTEa8u6PDTmDYIt3pEUfK/za3ZLDNDrykB8fzx4IujO30mJb jG9+1HS1P88YTGYJb2FI2+pGK9kHRusGztixX+ziic7MY4AiM2wmUG8AdNLajO77tSnoMO QZ+cayNKc/U1dMLjifqjEe0mnt5lHodWwXG8aU5jKOkBqlA7mU/lki16TCpieewhe3H2mw iiklSmKT6glvzmA+7SgnhB8YVJa5uFoXA2HvOOnquUJdTwDOZ/vjuGZfQxuTkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgzUr-0000BZ-VQ; Thu, 14 Sep 2023 23:27:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgzUq-0000BC-1M for guix-patches@gnu.org; Thu, 14 Sep 2023 23:27:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgzUp-0001j9-IX for guix-patches@gnu.org; Thu, 14 Sep 2023 23:27:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgzUv-0005k4-NS for guix-patches@gnu.org; Thu, 14 Sep 2023 23:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62666] [PATCH 0/2] Add aflplusplus Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 15 Sep 2023 03:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62666 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Hilton Chain Cc: 62666@debbugs.gnu.org Received: via spool by 62666-submit@debbugs.gnu.org id=B62666.169474846022037 (code B ref 62666); Fri, 15 Sep 2023 03:28:01 +0000 Received: (at 62666) by debbugs.gnu.org; 15 Sep 2023 03:27:40 +0000 Received: from localhost ([127.0.0.1]:41613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzUW-0005jJ-58 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 23:27:40 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:35064 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzUQ-0005j2-55 for 62666@debbugs.gnu.org; Thu, 14 Sep 2023 23:27:34 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 60954986; Fri, 15 Sep 2023 03:27:20 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 5598af78; Fri, 15 Sep 2023 03:27:20 +0000 (UTC) Date: Fri, 15 Sep 2023 05:25:40 +0200 From: Denis 'GNUtoo' Carikli Message-ID: <20230915052540.7a3029ba@primary_laptop> In-Reply-To: <87a5ui4hbr.wl-hako@ultrarare.space> References: <20230404174449.5297-1-GNUtoo@cyberdimension.org> <87a5ui4hbr.wl-hako@ultrarare.space> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/8DmIEQad5Njdwf2fwcJAmtN"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.87 X-Spam-Score: -4.87 X-Migadu-Queue-Id: 2C2275B2C1 X-Migadu-Scanner: mx0.migadu.com X-TUID: vQlqt+OUaSu8 --Sig_/8DmIEQad5Njdwf2fwcJAmtN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 23 Aug 2023 10:34:48 +0800 Hilton Chain wrote: > > Here's two patches to add aflplusplus. I've also patches (not part > > of this serie) to add support for faster compilers with GCC > > plugins, but when I do that it somehow fails to run: > I think (for the plugin) this is related: > --8<---------------cut here---------------start------------->8--- > [+] All set and ready to build. > g++ -O3 -g -funroll-loops -D_FORTIFY_SOURCE=3D1 -Wall -std=3Dc++11 -fPIC > -fno-rtti > -I"/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86= _64-unknown-linux-gnu/11.3.0/plugin"/include > -I"/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86= _64-unknown-linux-gnu/11.3.0/plugin" > -shared instrumentation/afl-gcc-pass.so.cc -o afl-gcc-pass.so In file > included from > /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64= -unknown-linux-gnu/11.3.0/plugin/include/gcc-plugin.h:28, > from instrumentation/afl-gcc-common.h:46, from > instrumentation/afl-gcc-pass.so.cc:127: > /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64= -unknown-linux-gnu/11.3.0/plugin/include/system.h:698:10: > fatal error: gmp.h: No such file or directory 698 | #include > | ^~~~~~~ compilation terminated. make[1]: *** > [GNUmakefile.gcc_plugin:149: afl-gcc-pass.so] Error 1 make[1]: > Leaving directory '/tmp/guix-build-aflplusplus-4.05c.drv-0/source' > make: [GNUmakefile:790: install] Error 2 (ignored) > --8<---------------cut here---------------end--------------->8--- >=20 > Can you address the issue and send an updated patch? The issue turned out to be that it called "gcc" instead of the gcc available during the build. Qemu is one of the aflplusplus dependencies and it doesn't cross compile: > $ guix build --target=3Daarch64-linux-gnu qemu=20 > guix build: error: gnu/packages/gnome.scm:3501:2: librsvg@2.54.5: > build system `cargo' does not support cross builds So for simplicity I've simply made aflplusplus use the gcc that is in the inputs. I've verified that it took the right gcc by adding '(invoke "gcc" "--version")' to the package and verifying that it was really gcc-11. I've also updated aflplusplus to the latest version along the way. Denis. --Sig_/8DmIEQad5Njdwf2fwcJAmtN Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmUDzrQACgkQX138wUF3 4mP5zg/9HaiFIXw8FNvVOdOSyrCb7EMHMkcahGse4DhsrN8jSk9bQmt+YRZG67hV BOC3LxEt8vruliRbJgPWRdZZjrpPhCVAJSMexi9RCbkiY2rexVMDfR8+PEcMAn8a IKTO+znwEb1UjxSaMoroNQxpumK2J/IU+Zv/uoNZit+uYRhZYX/tV4W4ykfvYGCi LfvaFMFV90yxHSacnC+UB6Lt++n5oZctEltpuTMHmKtk5VSMevHT0tOM3Z+gdJ4T 331w0rIS2VM0HrPx8Wm0QX5JUVk6BY3UkpcXS6nsahxLpokLLxpyMf5vyi9cu59q DRnGJC/7QSR/vJWwWWoWIasrug5lq5rG2DXBphzSLGcTWLNnsW/78mkG+YYECoba 7siHj5qOKHA3FU9aPYw6KzqNncm4RU00CfduX6L62vmATLPcUEkvUeL7x70jSs5d /LlcLX3Sv79lCfetd9D4gaMk+BixcGrLNCXi/j8k00CEQDKDYK4KyhaBonfBCFH/ DGEJWmuqIE16qbIk0+oLCL453uHR8s+MucJg8tPq6h3HqrAqyhSikYY0jNbJOQ5d RsbuTSc3uQnBV6iibR8tXOBiM/D6nvesNCKGR9IANPVWFCM3nnyui5Zj9i0N8esP IprA6Dbqn8SOgCZ3Bplzp36Cqovpillph5u5NI8b5iKR+LPzleE= =CAhj -----END PGP SIGNATURE----- --Sig_/8DmIEQad5Njdwf2fwcJAmtN--