From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 6E9AE3858D39 for ; Wed, 8 Feb 2023 12:32:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E9AE3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x62d.google.com with SMTP id sa10so20424682ejc.9 for ; Wed, 08 Feb 2023 04:32:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FTa2bgM2I33MTyFFotGAgs9RAecnS2a4F3s4jsSmdEg=; b=BzHIcx7PlLlrU+wozKiOjrwhLMZFN69F3mwdzXwz9ndqw97zP6fNdhXr+gD7nKeVdg RgIW6fUjFpgpAIGAzePrRm0Bq+b++Djmlj3a6Xu2fYeAxOY9lgYQLk9AoguW9nm4wh4H LUuWoXuooROojnXm7LluUuDTt0wcY0zp4wuBdkWlpwz63D8SjrjJC2Fh0Vacl+TxaK6g FS0I7XV5vQHW1ev5mQDsYYb8AVlcHN5xx902ffvLSLwlZrLDO++EFKLL6rWsI1Sba9ih aFiZuZMUYWOn1XQVn7JQYENpjUsYWFMRIRIsIwb9I/+qRcXh5wStt7ima0n9Is4LZJ4c 0wGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FTa2bgM2I33MTyFFotGAgs9RAecnS2a4F3s4jsSmdEg=; b=YeTsx0Sfb9NQRJifk63cTYsJlHb9WJaXuc1SJNnGbSRAhGYaCTkCWUHjFJkWVrjtlf 3Q6NDh2r29vWqKm+244lxqwDA0b/nt3fJQi8c3bFAIBpgu7XdtJdhg9+ll5nIV0ELq8H Nb8li4q0OV16mB/Iv41fmE/hJm8lfr5OpP8SxlE+6rQpTA4b/Uz9Qc563Dr0Lib6qEIQ v6pOiEMW8R2326eKLo7en5Vg+g4Rk4T4ArTPCeISXbNnzoulqeQrJkuofZdKXWcYAuFj 3tIs/RhJH+jQRLAw7wQn7HiZWWkXc5xuFUb25LfReBNfvV0D7SojbftAFE8sVVmLigdd xeBQ== X-Gm-Message-State: AO0yUKX84RCbQn9S9jYhiTMT+IjTI9jiY1AxAzustCcZn5fCM6n7EyBY bH1FoI3D9bAOCR/9fUnF2dynZcrmO03j1D+ks+4= X-Google-Smtp-Source: AK7set9XCTMbq4df8oBlbzU1aZay1BFpoyTfkHixryW/Xi0ZwWC9hua1UuA7gJzJ/yOzw/Eh5QUxRXjl14J6U8k/vVM= X-Received: by 2002:a17:906:90c1:b0:88f:9c9a:828 with SMTP id v1-20020a17090690c100b0088f9c9a0828mr1549890ejw.190.1675859576167; Wed, 08 Feb 2023 04:32:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Wed, 8 Feb 2023 12:32:44 +0000 Message-ID: Subject: Re: Errors when trying to use C++ modules with cmake and GCC To: HHN Cc: gcc-help Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 8 Feb 2023 at 12:27, Jonathan Wakely wrote: > > On Wed, 8 Feb 2023 at 12:14, HHN wrote: > > > > I apologise for not providing the complete context, after compiling I h= ad tried to build the test suite and faced errors. I have attached the logs= of this failure. ninja fails with > > ninja: build stopped: subcommand failed. > > > > No such issues had occurred with g++-11. Only changes made to was chang= ing the compiler in CMake > > error: =E2=80=98intmax_t=E2=80=99 is not a member of =E2=80=98std=E2=80= =99; did you mean =E2=80=98intmax_t=E2=80=99? > > This is clearly a bug in the software. If you want to use > std::intmax_t you need to include not . If you > want to include then you need to use ::intmax_t not > std::intmax_t. It looks like HPX doesn't include either or and just happens to have a transitive include of via : In file included from /home/hhn/makes/gcc-modules-install/usr/local/lib/gcc/x86_64-pc-linux-gnu/1= 3.0.0/include/stdint.h:9, from /home/hhn/makes/gcc-modules-install/usr/local/include/c++/13.0.0/bits/align= .h:36, from /home/hhn/makes/gcc-modules-install/usr/local/include/c++/13.0.0/memory:72, from /home/hhn/makes/hpx/libs/core/iterator_support/include/hpx/iterator_support= /iterator_facade.hpp:21, from /home/hhn/makes/hpx/libs/core/iterator_support/include/hpx/iterator_support= /iterator_adaptor.hpp:15, from /home/hhn/makes/hpx/libs/core/iterator_support/include/hpx/iterator_support= /counting_iterator.hpp:13: That's a bug. Here's the fix: https://github.com/STEllAR-GROUP/hpx/pull/6166 > > The C++ library headers are cleaner than in previous releases and so > buggy code that used to compile is now rejected. > https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes