From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id hHrBBXxD9mpm6AYAWB0awg (envelope-from ) for ; Thu, 12 Nov 2026 17:53:48 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=DveMhJHo; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E9E1C1E043; Thu, 12 Nov 2026 17:53:47 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 93F011E043 for ; Thu, 12 Nov 2026 17:53:46 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D58B54BC895B for ; Thu, 12 Nov 2026 22:53:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D58B54BC895B Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=DveMhJHo Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) by sourceware.org (Postfix) with ESMTPS id 9B5844BBCD96 for ; Thu, 12 Nov 2026 22:53:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9B5844BBCD96 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9B5844BBCD96 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=209.85.221.182 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794523996; cv=none; b=GeiOHPgBxg07Qk0O8fbvvQk9OfYxSD8mw8UrUeDWG7SbMg08sqOayQIjoFDLv4fYVDSr8EY+hbjK5iXazgKZTpPY4oHxyj0fsTwDPKBIs+wj6AQNwTEn+XNJwsIxc1uFvaO6GptIlF5P0Dpnib/y3W/gRQbt9BkouqeuTNnyMzY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794523996; c=relaxed/simple; bh=vcMxRAOx2EacxlWonmg6DXRlZaWc3LRNbIddZPVje1w=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=qf+Kc1e7R8On5isgr3HYkcKX4XErJIJbzy0IF9G4AICmw1G0rO+8bDs44O7+VOLgwr+yCoQqV08GZECwsTeVtwgpUQXAa1syvT14hTAD6kQg4JgvNZK3GydnDipZX2m9So905c0FhNXSd5GL0MIeUpwpGJkuywk5LCsvY9xCffg= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=DveMhJHo DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B5844BBCD96 Received: by mail-vk1-f182.google.com with SMTP id 71dfb90a1353d-5eac01ff101so164089e0c.2 for ; Thu, 12 Nov 2026 14:53:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1794523996; x=1795128796; darn=sourceware.org; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=RX2MJoSRcbhRZpSCimJ+ZsLwySx4VggUwh8LwUScI1o=; b=DveMhJHoSTiV/+AFU1Krb+ew9wrxbSSDmO7j75XptIkNJebKCrhR7uEs9ow4ZF5w3I 1z3JAHwcalXClNCv/YqTqE2xrlgCzobBfaKSL4uL2eF9BmKXEwXsogUA2GL8NURFE8ug dQcBKm//uUg4Ajyi0nKe7/WX0ku8o0Fone8XE61u6PxZELgnmOgrUc123lc71C7CWzgV VDSndwvT891b4t2wpY5BiqF5UFYv6Jy24y0O2b0tRJ0N9J4EUoRUjmFFxH7pS78iBfZW QdMKi1oX3ycQJ9FTZIjQH5FddJg7VTExx8u6+ZKB/nHHwgmg4UVXL3KN4FBA6sx1IMrl 54sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794523996; x=1795128796; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=RX2MJoSRcbhRZpSCimJ+ZsLwySx4VggUwh8LwUScI1o=; b=ZkxROQmK/o1Fy182GPm6Bb7BL7Iu+8pcyH3NBMj0+XljqiA8cm1I1J8HEq9ufY8Nvx W1MImJak6qOJ8G8oRD5NFckD/DCgyPANEE82dWKDBAfdwIFWNgZJLnT5oONgk37cis7H 9GNMF4zDXkhgEWBmVTZQ83/wgupsTZuQvpGoRUAc6Me8wNWj8rrWiZ4CJ+7C3pD6EkD2 3JYqSWEBVpMF9aKaRHWcNa+iW9TO25uM1TK4Pf7J91Z6GvYqYb7429t8dLHOBA8FQUSq mILBE8Iy884lcK+g+h6PQft2/yPbksId4QIBJCqfkD/V5i9tnZIyA6dQF/dDU8tEUQRk vjHw== X-Gm-Message-State: APuU4Z/uPfhAL6Gxpi7Pf6Kj+kfwXEMxIK5T4UJ+feAOmxYj+Idt+FzN PnaVs/76jVLhFMlrr/kdbCW9lbQsV6pHpQpxb/+cz095/53oJrUXoeBNDNE90q0IBL/WhI0TwmE VefrR X-Gm-Gg: AYBFou2iuxeIDHMAmY9dRbxXub7MwXsHH3gBqz2WgHyyfR42Hl/HwbUVZ/htdT1loYv mXP1WCUf0I25/CEni6fZyv4hZIGdl+MyrApNrTxANIROrifFb6yuCzhSejrWOiHSKqiDzMdfRQe VBDoiR0VCzELsr14OB1fYuj8VGd8eaYYJOtcsUUqT6yhYkY5jWM3FYAQ5Ydjcldy9F2ZtdhvCUl ZhGRIUsfaZ+YndwzYWhCn2M3o2kwX56g+yIAXrspxPdWkbZ7HeseqxXBrHEv5kYe6LfnmFLbD/p WQPOP1ZBcs6l9BonHrBDQxFIisvnDKVHPWQ4IEw8wnp7gb5cM8fnE4hGl+lIX8WZMPS2/Wh5ywh wy/X1zPlMA/mROEzdrOZK6iD32mo7CvGh5/lUfjyQEzrQAL09D+bUBwObz7xdRsIMwEPIHy9QPN LJMsQfMKmt7Nd80etJ9XCxZYEyE8Y9/lM00Aaaf1LhdcHB/wcbq1MxvlZIXDL2XeKQaaTzRe5NK 5Gc83yEDMh6N+A0+vulhrAo8mOFGCUOfn1mbZmnL5zK/rV1HAvOrP1BFJvV6eAkput6yYolqUqC f+YfazgrpJxPbrLVklpA29BgQzVWbiN6XvjqdIE= X-Received: by 2002:a05:6122:793:b0:5ea:a173:6607 with SMTP id 71dfb90a1353d-5ee34a76e90mr200393e0c.10.1794523995852; Thu, 12 Nov 2026 14:53:15 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5ee34e5b6b8sm289541e0c.8.2026.11.12.14.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2026 14:53:15 -0800 (PST) From: Thiago Jung Bauermann To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] [gdb/build] Use gnulib fnmatch In-Reply-To: <20261109192655.32551-1-tdevries@suse.de> References: <20261109192655.32551-1-tdevries@suse.de> User-Agent: mu4e 1.14.4; emacs 31.1 Date: Thu, 12 Nov 2026 22:53:13 +0000 Message-ID: <87qzgpbr1i.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hello Tom, Tom de Vries writes: > and the root cause is that we use libiberty's fnmatch, which is rather old > (based on some glibc v1 version). > > This happens as follows: > - because system libc is not glibc, the !__GNU_LIBRARY__ test in > libiberty/fnmatch.c succeeds and fnmatch.o contains an fnmatch function > - because system libc is not glibc, gnulib also compiles an fnmatch function > - because of the inclusion order in INTERNAL_CFLAGS of libiberty vs gnulib, > the libiberty copy gets used > > For contrast, on x86_64-linux: > - because system libc is glibc, the !__GNU_LIBRARY__ test in > libiberty/fnmatch.c fails and fnmatch.o is empty > - because system libc is glibc, gnulib doesn't compile an fnmatch function > - fnmatch binds to fnmatch from the system glibc > > Fix this by changing the inclusion order in INTERNAL_CFLAGS. This is somewhat subtle. Can it be fixed instead by removing libiberty/fnmatch.c from the repo? -- Thiago (he/him)