From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 55F5B394443F for ; Tue, 13 Apr 2021 19:33:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 55F5B394443F 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-x535.google.com with SMTP id e7so20708019edu.10 for ; Tue, 13 Apr 2021 12:33: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=QuX/I0TH+P0q7JDt0Zl1DMvLm7C/k0mo5/R6pwGHoVo=; b=GMV2j9sCyi1GcYLdy38hVzy/EAhXa/BnwhJJ7XkSgjy4AZe9qpk56AXsB7Pd8t24EG AoUJhRmTNrSeFZ1ppQeaPCPU6LxZSvYfOhLsZHiIIR4cIzxGZrOTEZlsxMhESZPsRanS rpMVo0k84yQRQUUp2tWYe7kZGxQP49DiijNfOhjYvUy+JmMGhhgfzGAHwvZZOvqraU7J oUiy32hLSgjobF7xLr6NKb3ygL1jifBCsnslDrDkO+sRYsSUg3Wzs5l7039QmlNRUsCV fYUEF5HOYjYEKa7/xxF0M3vvNNyLLN1NfCddTmSuBUNSh17WDADUsc0itAETz5y0ubcN tLDw== 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=QuX/I0TH+P0q7JDt0Zl1DMvLm7C/k0mo5/R6pwGHoVo=; b=LTSFTwlSfc6CnPBd2AItcKQ4LeEpQFqTwyBw0SUe5YKP3JG5Y7PXSpGD0qZOgzSaiQ M5HvsVqgCGv18yl9AeJvsGr4LcZJVDhsfI+nqLVtUFxqp95aMC0MKbMvIM7hq4Zdy2et zTTrrdIGh9q/CKX0cK9DuB7Y0FrU2Fk4OG1nqkXdlVfbeVwN/U/QApUPe2d+Bx3UTEnH 7sW/B4/6RqDiLibN4dv0+9NA3bNHBJL/oPmaLe5vhUT7pynyfwhDxV17oeyYdELc1Azp SQ2iuc5kwDQszrzNuHB8Erm8TDCBBRPiQgWa/oA2R1zqms3sWO+adRCnMDpMSY99D81+ sOnw== X-Gm-Message-State: AOAM531REqLnSA3vKYFauZU9jNp7tqESdAKj3JjaSOFcezH52vNTEJYu aXnLZY5GaPCkq5/zw1HRD1nRCW2aD62zi2N5jnwgyw== X-Google-Smtp-Source: ABdhPJyvnJDiPGYR3U6jrLfoBSB8YkKMh2gXcZkNj7CbebLDMPQnB7H6pEIt2HOPfLLS7/eJRPNJFnHhEvvkh1bHgXM= X-Received: by 2002:a05:6402:361:: with SMTP id s1mr22708210edw.188.1618342409426; Tue, 13 Apr 2021 12:33:29 -0700 (PDT) MIME-Version: 1.0 References: <20210412211608.0406b3c6421ab9996318d5e6@bigpond.com> In-Reply-To: From: Jim Wilson Date: Tue, 13 Apr 2021 12:33: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.5 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: Tue, 13 Apr 2021 19:33:31 -0000 On Mon, Apr 12, 2021 at 1:34 PM Jonathan Wakely wrote: > On Mon, 12 Apr 2021, 21:29 Jim Wilson, wrote: > >> 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. >>> >> > Thanks, Jim. Shouldn't #include "cpuid.h" mean it prefers the one in the > same directory though? > Normally. GCC is so complicated that I wouldn't be surprised if there is a way to accidentally break that. However, in this case, I think we are looking at the wrong file. The error is apparently from libgcc/config/i386/cpuinfo.c which is including gcc/config/i386/cpuid.h and in this case you definitely need to get the -I options right or the build can fail. Looks like the header file gets copied into gcc/include in the build dir, and is supposed to be found there. There is a -B option pointing at the gcc build tree, which then generates a -I option pointing to the gcc/include build dir, which is the seventh dir in the include list I see with the -v option. If someone has an environment variable or shell alias adding a -I option pointing to the system compiler's header file, then it might accidentally include the wrong cpuid.h file. Jim