From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 67777385841D for ; Mon, 4 Mar 2024 22:41:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67777385841D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 67777385841D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=45.83.234.184 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709592078; cv=none; b=PDl7HqEDxLvn+MMCqHCqctrjnqZdWIqbpTmiLBupjK8Rv0xNLKURS9g/CR0OzqekyFoc192zGMgsA8O5fmVo7tNaTULgZM7WXuIdoLH/lcVXZKniwiuqMotvvdLAZSD5IukgNauAuuXOFlpwEwdpovLHVqDYdxybnBfqbZSdm6I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709592078; c=relaxed/simple; bh=z6FGJIRXVz0Tssdai26IjuGoLpFGQJuenSC3A2reZpc=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=Jh2X7pr+ZF6+3GkHI+NuENMhA9qK14sTlJmE3VchrbcHOKDqOVB0RYp4Z1zeQBq6tt09hU+8jgSyugTcmm7Ds2wiWIN3QC/WHTAhCaotZC7uI4vx9n+pldYCNT21RZ+E1nYBW6xK8BdcIA0bFyCQhID33Jv1jAAXIi2eHW2HjsI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by gnu.wildebeest.org (Postfix, from userid 1000) id 320F7300058C; Mon, 4 Mar 2024 23:41:13 +0100 (CET) Date: Mon, 4 Mar 2024 23:41:13 +0100 From: Mark Wielaard To: Nick Clifton Cc: annobin@sourceware.org Subject: Re: =?utf-8?B?4pigIEJ1aWxkYm8=?= =?utf-8?Q?t?= (Sourceware): annobin - failed compile (failure) (master) Message-ID: <20240304224113.GC12540@gnu.wildebeest.org> References: <20240301191158.9D31A3858417@sourceware.org> <20240301224800.GB13156@gnu.wildebeest.org> <7e8ddfe1-4fb1-433b-b610-59f13b456193@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7e8ddfe1-4fb1-433b-b610-59f13b456193@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: Hi Nick, On Mon, Mar 04, 2024 at 10:48:23AM +0000, Nick Clifton wrote: > >This one does have clang++ but fails with: > > > >make[1]: Leaving directory '/home/builder/shared/bb3/worker/annobin-rawhide-x86_64/build/clang-plugin' > >annobin.cpp:15:10: fatal error: 'clang/Frontend/FrontendPluginRegistry.h' file not found > > 15 | #include "clang/Frontend/FrontendPluginRegistry.h" > > >Is there a missing package? > > Yes: clang-devel OK, found it. For Fedora based distros you now need: clang clang-devel llvm-devel And for Debian based distros you need: clang libclang-dev llvm But on Deban based systems the headers and libraries are installed in an llvm version specific location. You can find them using llvm-config. Luckily this also works for the unversioned llvm on Fedora bases systems: (debian) llvm-config --cxxflags -I/usr/lib/llvm-14/include -std=c++14 -fno-exceptions -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS (debian) llvm-config --ldflags --system-libs -L/usr/lib/llvm-14/lib (fedora) llvm-config --cxxflags -I/usr/include -std=c++17 -fno-exceptions -funwind-tables -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS (fedora) llvm-config --ldflags --system-libs -L/usr/lib64 I don't know how hard that is to incorporate in the configure/automake scripts. Cheers, Mark