From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 674983851C05; Fri, 8 May 2020 10:42:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 674983851C05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588934554; bh=XILBWmD2/5D+Q2k0sWoTDFxADCwZCazRVpk6fkMNoTk=; h=From:To:Subject:Date:From; b=lTMbXHHX61reSIpPR5MbKjL+NBWYDnGRLODPV5i2pkt16EJTCD+Cpqv7d1ntgb6Ne 4eDAWNVu9sSZeH+c63bIoC7qtp1YzHO/sYqg2jEEIZvFPdOF2hyljhgQWKyR4Eg4aU iwskvcrLVQ/ReCfWwsKMF+DyevM9sa4+BGnXwUoA= From: "gcc at ikkoku dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/95005] New: zstd.h not found if installed in non-system prefix Date: Fri, 08 May 2020 10:42:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc at ikkoku dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2020 10:42:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95005 Bug ID: 95005 Summary: zstd.h not found if installed in non-system prefix Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: gcc at ikkoku dot de Target Milestone: --- Created attachment 48482 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48482&action=3Dedit Add zstd include directory While adding GCC 10.1.0 to Spack, I ran into a problem with zstd: When specifying a non-system prefix with --with-zstd (Spack installs each packag= e in its own prefix), the build of lto-compress.o failed because it could not fi= nd the zstd.h header. The attached patch fixes the problem. It should probably be changed to expo= rt the appropriate compiler flag from configure.ac to avoid the ifeq in the Makefile. However, I wanted to avoid touching configure.ac so we do not hav= e to regenerate configure.=