From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by sourceware.org (Postfix) with ESMTPS id A3DFF3858D1E for ; Mon, 10 Apr 2023 11:33:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A3DFF3858D1E 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-lf1-x12d.google.com with SMTP id m4so5850247lfj.13 for ; Mon, 10 Apr 2023 04:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681126416; x=1683718416; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VoK1uU+P2/GJzKqvPi8853RDYxIYt0ChM27bjLRxFeg=; b=aRcTIv+Q4r5z0pd53EK7gWocHe8xu04Y6YJ/rQFpZx3R6dFSbqXQjWS/QPcivpgTpC 82Zn9iVtGzrNT3Z8SUJ4Dqh04vWhU2nbBQgy/LOoliKkbWU7weCsXVOAtqaC5rSQWNaD EgC77lmDagqVceo2rmM7E9QmaAHdsKiaN13qUim0RvSA4ryr84sDiqpymnNb/0WvMczQ D7d+QKQYXgBBqyQF1nPtmqDdfzntuZJNlegoyZh1L3DbwPsUh93f+uORztSCLd3bkcIZ 4tkFFh9uM95cdQIJpIuO9YSZb3YcYPfA1Uvx8EuPoe0oSNI0KRT0hq6wb8ek7yBkzS4z ghMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681126416; x=1683718416; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VoK1uU+P2/GJzKqvPi8853RDYxIYt0ChM27bjLRxFeg=; b=AUYCXhoU2PV7XYQ8sh9zHtNk3/vT4G/AQDOCuBisn0Nl2hJv1rJHOKMIT2MTv9vSF5 4XZNS7sfdqi0pUK0TjqiEjCfayJPod5T+cqWvpCHjtW6I3FnO003Yyj1yX1OKsxqL+KA 85B/NFDwzySnQJ5fqjEr8W0Mf06CX8BKmmWQtx/OG0BLRxH+0W3IyMQg7v9syj+pvQK6 Yva0p9CboMYIYx5ZilOSplaXZbbHcqSj//XloO1rW2zsUYZs3g9DFUSANcp44qsyX0C8 UUZUFGVE+r1qmwPK48YIodGz32IlH2SXnfZ+hbGAlGAnhsYLqkoAq+Q+VZngulFtHY1z rOMg== X-Gm-Message-State: AAQBX9cZYOSVg5QAigTnYDf2Qt14UC3C8FGK7d5aykmaQ2kEOp5LkJUo ki9ysIU9WC51nDAFYGrtPeVW4QBVxoDVUp214IHWeBUhGmA= X-Google-Smtp-Source: AKy350bzUCAmB8BD3b3mvc6vjeRcj5Lhe8psybQ7WHmggbxg++d2h/qlN8wsRYJNaiZgN8Dq++eiDofjebb/ia58NVQ= X-Received: by 2002:ac2:5476:0:b0:4db:266c:4337 with SMTP id e22-20020ac25476000000b004db266c4337mr2944216lfn.1.1681126415877; Mon, 10 Apr 2023 04:33:35 -0700 (PDT) MIME-Version: 1.0 From: Kalamatee Date: Mon, 10 Apr 2023 12:33:15 +0100 Message-ID: Subject: Problem porting gcc 12 To: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000d749ce05f8f9be8e" X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000d749ce05f8f9be8e Content-Type: text/plain; charset="UTF-8" Hi, When im trying to build gcc12, I get the following error -: /bin/bash ../../libtool --tag CXX --tag disable-shared --mode=compile /home/test/gcc12/./gcc/xgcc -shared-libgcc -B/home/test/gcc12/./gcc -nostdinc++ -L/home/test/gcc12/x86_64-aros/libstdc++-v3/src -L/home/test/gcc12/x86_64-aros/libstdc++-v3/src/.libs -L/home/test/gcc12/x86_64-aros/libstdc++-v3/libsupc++/.libs -B/home/kalam/builds/pc-x86_64-gcc12-clean/bin/linux-x86_64/tools/crosstools/x86_64-aros/bin/ -B/home/kalam/builds/pc-x86_64-gcc12-clean/bin/linux-x86_64/tools/crosstools/x86_64-aros/lib/ -isystem /home/kalam/builds/pc-x86_64-gcc12-clean/bin/linux-x86_64/tools/crosstools/x86_64-aros/include -isystem /home/kalam/builds/pc-x86_64-gcc12-clean/bin/linux-x86_64/tools/crosstools/x86_64-aros/sys-include -I/home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/../libgcc -I/home/test/gcc12/x86_64-aros/libstdc++-v3/include/x86_64-aros -I/home/test/gcc12/x86_64-aros/libstdc++-v3/include -I/home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/libsupc++ -std=gnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=floating_from_chars.lo -fimplicit-templates -g -O2 -c -o floating_from_chars.lo /home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc libtool: compile: /home/test/gcc12/./gcc/xgcc -shared-libgcc -B/home/test/gcc12/./gcc -nostdinc++ -L/home/test/gcc12/x86_64-aros/libstdc++-v3/src -L/home/test/gcc12/x86_64-aros/libstdc++-v3/src/.libs -L/home/test/gcc12/x86_64-aros/libstdc++-v3/libsupc++/.libs -B/home/kalam/builds/pc-x86_64-gcc12-clean/bin/linux-x86_64/tools/crosstools/x86_64-aros/bin/ -B/home/kalam/builds/pc-x86_64-gcc12-clean/bin/linux-x86_64/tools/crosstools/x86_64-aros/lib/ -isystem /home/kalam/builds/pc-x86_64-gcc12-clean/bin/linux-x86_64/tools/crosstools/x86_64-aros/include -isystem /home/kalam/builds/pc-x86_64-gcc12-clean/bin/linux-x86_64/tools/crosstools/x86_64-aros/sys-include -I/home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/../libgcc -I/home/test/gcc12/x86_64-aros/libstdc++-v3/include/x86_64-aros -I/home/test/gcc12/x86_64-aros/libstdc++-v3/include -I/home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/libsupc++ -std=gnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=floating_from_chars.lo -fimplicit-templates -g -O2 -c /home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc -o floating_from_chars.o In file included from /home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc:77: /home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/src/c++17/fast_float/fast_float.h: In function 'void {anonymous}::fast_float::round_nearest_tie_even(adjusted_mantissa&, int32_t, callback)': /home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/src/c++17/fast_float/fast_float.h:2500:12: error: 'UINT64_MAX' was not declared in this scope 2500 | mask = UINT64_MAX; | ^~~~~~~~~~ /home/test/gcc12/src/gcc-12.2.0/libstdc++-v3/src/c++17/fast_float/fast_float.h:1:1: note: 'UINT64_MAX' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | // fast_float by Daniel Lemire make[7]: *** [Makefile:585: floating_from_chars.lo] Error 1 I can see from the preprocessor output, the necessary header is included - but is protected with #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) #endif And since the compiler doesn't define __STDC_LIMIT_MACROS on the command line, or in the source file - it is resolved. I'm not sure though, where is the correct place to fix this? --000000000000d749ce05f8f9be8e--