From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 16 02:41:57 2023 Received: (at submit) by debbugs.gnu.org; 16 Aug 2023 06:41:57 +0000 Received: from localhost ([127.0.0.1]:38681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWAE8-0001ac-Mt for submit@debbugs.gnu.org; Wed, 16 Aug 2023 02:41:56 -0400 Received: from lists.gnu.org ([2001:470:142::17]:35714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWAE3-0001aO-TQ for submit@debbugs.gnu.org; Wed, 16 Aug 2023 02:41:55 -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 1qWADy-0007e5-Kj for bug-guile@gnu.org; Wed, 16 Aug 2023 02:41:46 -0400 Received: from smtp-out1.suse.de ([2001:67c:2178:6::1c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWADw-0007Jo-66 for bug-guile@gnu.org; Wed, 16 Aug 2023 02:41:46 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B0151210E0 for ; Wed, 16 Aug 2023 06:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1692168101; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0kzILiJkKzJ0fHB4x1Xlt+qgt4GwalrHqK9LkGM0huU=; b=NFIbwVRbIV8nJ7YuosIj6fSpeY3k7eNTqZducP+S/c4B3Z8P2+hg/YldlXJWM0T7sVs4nn T8mOQkNSgd0BL9Eari1uVuvJeEM5+1yFOtuHq8AlnO+q6w1cOw/Jaw125dXJHOBYoBBgLH vJGLDM3ECTlQlqPHompEz1d3HUcGj/I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1692168101; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0kzILiJkKzJ0fHB4x1Xlt+qgt4GwalrHqK9LkGM0huU=; b=oFpK/2xp+vsWcUy6CR06sX6jUYtBtX03qZgcOHJzt1L94LpeeAy1/cXGu16dQtb4d6WFVN JDtXVyGbvWrrWmBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A179B133F2 for ; Wed, 16 Aug 2023 06:41:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id RG9GJqVv3GQHeAAAMHmgww (envelope-from ) for ; Wed, 16 Aug 2023 06:41:41 +0000 Message-ID: <0ab72e1c-ab7b-2d48-7fd2-2dc9cb404a50@suse.de> Date: Wed, 16 Aug 2023 08:41:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: bug-guile@gnu.org From: Tom de Vries Subject: SCM_UNPACK triggers Werror=volatile in c++20 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:67c:2178:6::1c; envelope-from=tdevries@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi, I tried to build gdb with guile support with -std=c++20 and ran into: ... In file included from /usr/include/guile/2.0/libguile/__scm.h:479, from /usr/include/guile/2.0/libguile.h:31, from /data/vries/gdb/src/gdb/guile/guile-internal.h:30, from /data/vries/gdb/src/gdb/guile/guile.c:37: /usr/include/guile/2.0/libguile/gc.h: In function ‘scm_unused_struct* scm_cell(scm_t_bits, scm_t_bits)’: /usr/include/guile/2.0/libguile/tags.h:98:63: error: using value of assignment with ‘volatile’-qualified left operand is deprecated [-Werror=volatile] 98 | # define SCM_UNPACK(x) ((scm_t_bits) (0? (*(volatile SCM *)0=(x)): x)) | ~~~~~~~~~~~~~~~~~~~^~~~~ ... FWIW, I ran into the same with guile 3.0.x. Thanks, - Tom GDB PR: https://sourceware.org/bugzilla/show_bug.cgi?id=30767