From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id V+t+CKja5Gqp/RgAWB0awg (envelope-from ) for ; Fri, 30 Oct 2026 13:58:00 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Yzalksbo; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 009E6378002; Fri, 30 Oct 2026 13:57:59 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.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 autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 103F6378002 for ; Fri, 30 Oct 2026 13:57:59 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 384634BAE7F1 for ; Fri, 30 Oct 2026 17:57:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 384634BAE7F1 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Yzalksbo Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 18DD84BA23F5 for ; Fri, 30 Oct 2026 17:57:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 18DD84BA23F5 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 18DD84BA23F5 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::335 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793383054; cv=none; b=vfn0qdMT0Pxa3+083St04yU1hpYL+2cv2Lys4CTLw7iMnOhs4ShWlfLjVXbl4xQiNcbQIw4EXhB1b5ePaxTOaxpqJBXGPHh/K1UdHYNuDWsj+2hHt0qN0wgBkedV8Ig6Gq4p5lY3SVui3Bhb4UdfxifPyMsT4sgoI+uYO/cRyyo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793383054; c=relaxed/simple; bh=Xp0BtMbuVWlExi8iQU5VPbkr6uMVZnlQT95qPUzYRP8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=TVRpc6jTdnZNcy2nUm/Ixb4AA9qmVGavjtbD+B7WPKJk7Vt+bx540So5YL45tqdybku74hTg8QeMOthFJIcgOwLaEnkxZJqQvrvhhaLUmSMG3m2HD9hgoFTb+yybtlte3OOn26GQ8ttlpthqDDf5qakbolPeKkg2aGeat743fHU= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Yzalksbo DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18DD84BA23F5 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-82380b0f55dso484496a34.1 for ; Fri, 30 Oct 2026 10:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1793383053; x=1793987853; darn=sourceware.org; h=content-type:mime-version:user-agent:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=mJFQ7mEabVtqWxFmkAuGccO0ScCpqz5aw0qw8qPuRag=; b=YzalksboAR/WBolIZ8xZFcHF7zDLo06Tnx8GfgwD954ptg0ZPrZV2y+Y52Aqo4ClaD KS0akBKW70Va0Bj5YdjE0oFwQM+CLfYxqlirfxzDq75Rl29nYv6GpL2Vnze4lVhM0zoi wPsQXfeQ8REJxslJ+P+1JD2sbUodAzfNbyi5A+uNwDM5j93rT/wczUDpkiIhxn6nDSky Tmp2tF3kTIJN3zAx0vHn/cd0WPvrp+L1JzJGzzEQt8DybSLtk1n+E1PHRk7tkjVyH5gu 1XPO/5Nu/fvsB70ceBPkWaPjWowZWrb3ebK0bkDBBwxT5JyxlTT0JjytOWcwQfuVmBJd jT+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383053; x=1793987853; h=content-type:mime-version:user-agent:message-id:date: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=mJFQ7mEabVtqWxFmkAuGccO0ScCpqz5aw0qw8qPuRag=; b=oY/J4H8zgjGn4fwF1pQ5GS25CqFxt0vmY6TWvbc65xVMZmBD7N9WmqByWjrn/ZaA0o iu0wA6KbStK/Ix7devWmrml7zJrKkpCFO4GGn9WvGM3u7zswR53AKk4+o/bjdHkeEAKr EnR56220za4XrrzoELYEgiMPFaywDOJ3gq1frJQ04OIffFNpOxwgTCiwteRBKiBskukN DBpa2znlPK5Gy6bsQ6paG6fmhHe+QDtznF9zrzPt8URHpnf1azjd+cAwxdNBLCC75PRP Si74a63ixOHrYcy0Z8OqHQMRO9P7P4Ju3nRvSq4P1uy3lTkJthl5Mdtp4TiH858fft2L 0fDA== X-Forwarded-Encrypted: i=1; AKwUvBzwVMbkFh4hJpz0Nb3NiwCHHHR0EINkSVREA2j2V5BdSgaitzLtPXR7I+tGrI9879YjmRWkeTDEcclwlw==@sourceware.org X-Gm-Message-State: AFq9FYIoHeYD1jHurWgqCWsQm30/hV+J2C8EJT4qGLxkJK9iP6pxzPgC UgpMV1cYptQD5cE8j0KFWveybRUWdGcVB8Sopr/Hyl37bvi/Kh/HThFGeWfz3aQgSA== X-Gm-Gg: AYBFou0TZ01Iq4iVAPvoulDvzp4yUBpbvr/gf3lfplX/yYnvVbrEsIzRwDalTwm113V K9ak2Q/7Dx+FEQdY4/0lHG8urJ3Ti8UhHb082BXNXpL2XEaXrPQmkbKijc2QppsrwBTnbsMvJRO 0hfid6F9sU0IVJQy2dAI/73qgVPYLqbBp3qHwmUIr/rqAfU4i907WR5aY/Gmqt8OkQOYCVLUBLj JBoIJtwdsQCF3eykvXfmE8ouBPKI4AOii6UN9hcf33a0zXSb84TZwT+e58AjUZSGBVcbRjjnAn/ QJ1o6lWyhjYaYfDezprJJgnyChVue93hMOYecmXy5dAsNf26fs0h79zYCMa0q2sqwY90x6Bs2Ez LELU9eeRsSpLb68hJLr9fRqiK51ZIF6tH2D0+W2Jn2a1FP9WixY92ff3oo4GTKdbimhfmTP4h0X a5ZkxF/GKV3KrgXn+PBcI0o0N7yomdWFuG0fxt9uQNGa/bYABuHbKCzJbg/GGt8AQtbX3IWCW+u 1aJvS8Jd2yQ+eFWjlGXRVAnbpjKupp9d4Fr08H4B4zzXl7lqggv85K3/ksBvqTIBtBOKFjlDBPD VOZajBv+DhdV58xwZcrOd0csPjBXGieKGVTWQsHfYsCkimDP+vQ= X-Received: by 2002:a05:6830:349b:b0:83f:492a:91e0 with SMTP id 46e09a7af769-85d365289e2mr2293042a34.15.1793383053381; Fri, 30 Oct 2026 10:57:33 -0700 (PDT) Received: from bapiya (97-122-110-129.hlrn.qwest.net. [97.122.110.129]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-85d354cd9bbsm2421893a34.16.2026.10.30.10.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Oct 2026 10:57:33 -0700 (PDT) From: Tom Tromey To: trcrsired Cc: binutils@sourceware.org, gdb-patches@sourceware.org Subject: Re: [PATCH 1/1] Support building binutils-gdb for an Android (bionic) host In-Reply-To: <20261029124117.13519-2-oyzawqgcfc@gmail.com> (trcrsired's message of "Thu, 29 Oct 2026 20:41:17 +0800") References: <20261029124117.13519-1-oyzawqgcfc@gmail.com> <20261029124117.13519-2-oyzawqgcfc@gmail.com> X-Attribution: Tom Date: Fri, 30 Oct 2026 11:57:32 -0600 Message-ID: <877biznkab.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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 >>>>> 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