From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id k2mXDWn15GrHNxkAWB0awg (envelope-from ) for ; Fri, 30 Oct 2026 15:52:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1793389929; bh=hUCpIiBhf4eq9v3mcmJ4k4LJ21i0ZifIedTRgKpWGlE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Xx/v/1NblFY6XIc97jORbwG3/PjTiAoX6vKYxTNCAjonn/caIDG1XjxSoRxZKy4Gk oJMEcqt38CtQDqXG/4Wnl0e2tPjQODYsT0pwySwIiSta4gPTlK+1vmTl1D7h3YQJz2 WQ5M9rGMvnZEJyCiXCrgqyJyd8v45Ot4vTlgQ5E8= Received: by simark.ca (Postfix, from userid 112) id 152B0378006; Fri, 30 Oct 2026 15:52:09 -0400 (EDT) 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_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=VM1qWvoU; dkim-atps=neutral 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 781F2378002 for ; Fri, 30 Oct 2026 15:52:07 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 031C64BAE7F5 for ; Fri, 30 Oct 2026 19:52:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 031C64BAE7F5 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=VM1qWvoU Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id DDB8C4BAE7CC; Fri, 30 Oct 2026 19:51:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDB8C4BAE7CC Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DDB8C4BAE7CC Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793389902; cv=none; b=nUGvODEJdGIr4hcNyWzuevCuTNwAVdDKohEvAhf/KqqnSpu7x2wk4VF0/uYsdBCigv/cZnL62oAd0zx2u6S4OUbr+VCJ2pWpY8LpeeaM8+TPAo+YpWArV3k507OL2bXcFUgIBrLc7kMxzYWsQNZV992YRO4uZj03R+ib1snwTzk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793389902; c=relaxed/simple; bh=hUCpIiBhf4eq9v3mcmJ4k4LJ21i0ZifIedTRgKpWGlE=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=cEz575V0qwPct//upwvgf3QE4/Deana6/Sn54L6gPalcSGWYhNMWtVtG6Y510Q2N4WHNJoZSBzmHer6YTRvgfsk5qCaKCvooNe1HRCNwjLveNNlvLH3jQDI/4nkwxfJgExFEyc8W3CUflUOA7c0eaZ4BL5RWwT3O/F44fx4qHzw= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=VM1qWvoU DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDB8C4BAE7CC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1793389901; bh=hUCpIiBhf4eq9v3mcmJ4k4LJ21i0ZifIedTRgKpWGlE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VM1qWvoU++iYj1VooMLeZMWvfaqHMR160nvItThuyhCDenhonsygkSYLv/vGCBlic gamgOx+AAqUfcqhbnTUJpee6qHJM+lmeQ2HsnIcMZj45E+PTc1/2W/FmPHyX6JNGNh UXc63MzTDJU4yYkN05kB81U82zPk5iIYmOwFtOjY= Received: by simark.ca (Postfix) id ADFD7378002; Fri, 30 Oct 2026 15:51:40 -0400 (EDT) Message-ID: <7786435a-26d8-48e9-a833-1dd800e53f9e@simark.ca> Date: Fri, 30 Oct 2026 15:51:40 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] Support building binutils-gdb for an Android (bionic) host To: Tom Tromey , trcrsired Cc: binutils@sourceware.org, gdb-patches@sourceware.org References: <20261029124117.13519-1-oyzawqgcfc@gmail.com> <20261029124117.13519-2-oyzawqgcfc@gmail.com> <877biznkab.fsf@tromey.com> Content-Language: fr From: Simon Marchi In-Reply-To: <877biznkab.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 Hi, Could we determine (and ideally document) a baseline Android that we need to support? The other day when removing ancient hacks there were some made for old Bionic verisons, and I had to guess whether they were still needed or not. If we had a clear policy (and I wish we had that for other platforms), it would make it much easier. Simon On 10/30/26 1:57 PM, Tom Tromey wrote: >>>>>> trcrsired writes: > >> Building with --host=aarch64-linux-android30 failed because bionic is not >> glibc: > > Thanks for the patch. > > In addition to what Jan said, I have a few minor comments. > >> - The compiler's does not expose PATH_MAX (bionic defines it in >> ), while defines MAXPATHLEN as PATH_MAX. >> Make PATH_MAX available from libiberty.h and gnulib's pathmax.h for >> __ANDROID__. > > I'm curious why this is needed in libiberty.h specifically. > > I somewhat thought gdb didn't need PATH_MAX. > >> diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac >> index 16a2520baf4..cc73c22a580 100644 >> --- a/gdbserver/configure.ac >> +++ b/gdbserver/configure.ac > [...] > > Here at AdaCore we have essentially this same patch in place. > If you sent this separately I would approve it. > >> diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h >> index 1c0ae0ad9d1..b29a81ada40 100644 >> --- a/gdbsupport/common-defs.h >> +++ b/gdbsupport/common-defs.h > > This one also seems fine to me. > >> diff --git a/gnulib/import/rawmemchr.c b/gnulib/import/rawmemchr.c >> index ea68c1bfc6a..50d5918ba07 100644 >> --- a/gnulib/import/rawmemchr.c >> +++ b/gnulib/import/rawmemchr.c > > gnulib changes are a pain I'm afraid. > > In addition to patching the tree, you have to add the patch itself to > gnulib/patches so they can potentially be reapplied by update-gnulib.sh. > > Last time I tried to update gnulib, it was a total failure, though. > I recommend not trying this. > > However what you could do is put the patch in patches, then run > update-gnulib.sh (using the existing hash) to verify that the patch > application works as intended. > > I looked at upstream gnulib and it doesn't seem to have any relevant > change here. So you might consider submitting this change to gnulib as > well. > > thanks, > Tom