From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id 823F538A28BF for ; Mon, 12 Apr 2021 20:29:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 823F538A28BF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jimw@sifive.com Received: by mail-ed1-x529.google.com with SMTP id z1so16641178edb.8 for ; Mon, 12 Apr 2021 13:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wnWvLO8NyQuicCPknGnydzL+3FqF4PkADiLqb8zNx9o=; b=RM1YR1NfZ4z3MG/x94EcJ6T0qNTwmqIoGSatDfR4dQhc/h9LuX8iTvijQC92pJpPyt u4buaeHY53WOZjd68DTnuq689flrmOmqughWmC0YJ91JzMPaR3Srp8+Ze7iib1+vMDv9 v3288IXGeVNDFVJh6iTZY6pvvCMOx8/Zg+InoJyogom56Pou6zQqd6vgU9QpqbTcJ3Ld +65I/xdyWv1EWmsX+pTPhS9ChMJG/azVsO1fZvC3FJ/9t1t5UoEBkfgIpxCiJU9sHk9c 68ZdPfppmh9VJ6/touOgCTi1PZv+iQjVS2kg3m1C++CqRrW2grgfFZsbtqZjNoULwFT2 Wxcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wnWvLO8NyQuicCPknGnydzL+3FqF4PkADiLqb8zNx9o=; b=ij7yHgB/YnrU4FV/qU2P/RavQMPY6c8HaaxapjPTznGEw6rYVBiUc5IEULi97C7W3v Fqc4kHoo1EkREglXv5E/Dny8xydZ6PJTBmx4/+tD0YRpo9LosxncdhnAcVK+OignvpYP D/xeUHYJ7lvwVXU5lEv787lkv9ZZwwFYEo+K3Kb34n4fd4zrdvLm8ku4IA0VBpL+npKn WTxEOv7gS1MHnmxMWFntD6ntEO5kLwIx0IYu8LzrfMjE1QS3xeDBFHq2R2oAVuXwiajX zXTcYq/RFqkSIFPt2DnRh4oUAC081CvA6A+MYqqW5MCl6h5gTbO0FStmi6BJB4SXw6w+ 1uvA== X-Gm-Message-State: AOAM533AlEZsCjn7uc15BQ7yWb0DU3wmg+OLbtslgO5Cm8TnXVavyUIn uB9CCt9oae3Yx/+DBoMY1Epccwt9oE0XX5fJhhOLzA== X-Google-Smtp-Source: ABdhPJw3Deeta2AfGJqET80v0FgV1ccDmcgDpNDr8kxQbvTbzgwG3C+6gj5qRRE0uFNAOydnxPdlSwEKUA2av3+k1B8= X-Received: by 2002:aa7:c9d1:: with SMTP id i17mr29915735edt.46.1618259369443; Mon, 12 Apr 2021 13:29:29 -0700 (PDT) MIME-Version: 1.0 References: <20210412211608.0406b3c6421ab9996318d5e6@bigpond.com> In-Reply-To: From: Jim Wilson Date: Mon, 12 Apr 2021 13:29:18 -0700 Message-ID: Subject: Re: Patch for gcc-10.3.0 To: Jonathan Wakely Cc: John Hendry , gcc-help X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 20:29:32 -0000 On Mon, Apr 12, 2021 at 5:30 AM Jonathan Wakely via Gcc-help < gcc-help@gcc.gnu.org> wrote: > On Mon, 12 Apr 2021 at 13:10, John Hendry wrote: > > I'm trying to install gcc-10.3.0 on a 64-bit PC running > Crux Linux 3.5. Make gives the error "bit_AVX512VPTINTERSECT not declared" > in cpuinfo.c, line 392 or so, and then AVX512BF16 is not declared 4 lines > later. > > The bit_AVX512VP2INTERSECT constant is defined in the cpuid.h header > in the same directory. > But note that there is more than one cpuid.h file on the system, as there is also one provided by the OS and/or system compiler, and possibly also by cross compilers. I've seen this problem happen for people that have environment variables set that they forgot about, which are causing the wrong cpuid.h file to be used. Or maybe you are using a compiler with a modified specs file, or maybe something else is going wrong. The system compiler one is probably older than the gcc version you are trying to compile, and hence is missing all of the new entries in the file. This macro is new in gcc-10, and thus would not be present in a gcc-9 or earlier cpuid.h file. So you need to look at the compiler command for the cpuid.c file and figure out why it is using the wrong cpuid.h file. You can use --save-temps to generate a .i file that will show which cpuid.h file is being used. You can add -v to see what header file paths are being used during the compilation. You can use --print-search-dirs to see what the default search paths are. printenv will show you what environment variables are set. Jim