From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 241C83858D39 for ; Mon, 20 Nov 2023 21:38:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 241C83858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 241C83858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700516299; cv=none; b=sgAZE9et9gQevDqQPmGn2FLQ1jXlQ3wOq7EwnRirJnE1gehGinO+jc/75ZZCI3YAobPcu00nU4C2c9tgfeCrmDhisWOlU4sr2FrUh3p462xAnYRfX5nKCBwKCeRlXymnaKlh+BGIwIJ6AzFTVsMQHoOwHEE2JM8Ii55TynxDrak= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700516299; c=relaxed/simple; bh=K61MV/KgAvAQc10xdfY9SMXdU+5jb+RcXKo9C5jPum8=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=G7Gbg/29Z/95Ml2PhXwJUMl/tSQ4W8nCL64yquyV/93vpzCxobcZf293rct5HjkbkQWtA/n3fY9RDV65QFWzzrMnSlif0PZYnAwa7oMl+5rjwHx8Uqa6agtwBTYJwJcX3yMAOlJuLGdMvBlR5oVVIibWsTgqyiYG5tl//p4mVxw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-548f35e6a4bso466610a12.0 for ; Mon, 20 Nov 2023 13:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700516296; x=1701121096; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0w5OhCMFpR/2b8BWRj5h4tEwonUhJMG4T3wsH7ffyV8=; b=I77YACbwzPJv3DfTTrif6aU0kg1DFC8njUEbUCGeRuwymNgwhjJM9IpInkvpWyrpOb JvLAaqnPomrKvVjcHpMzOPGI5bYX0vO0cxmajc2E6UQICP2We0GjENRLWPVoLV9fvzsf E9Uo0WS/uYZo4bBwGix3MwPZZ7qXKkxd45RGyPsY6s8jEDcBs4pF7G7dVynUUQDpp34Q IOnCcK6hegJyvdpTUkYtzgQm+nYIR7WNlVWlIUBBrLCYnA4tyJSiRdAFVrMTdHpn8qIO NRFV3Ld1HqvoDtSJ7ZlGNWCVwtcXA3N7QYlwWb6iTMxEOfqonZjWvKdPEijSSFtDvPIR AczA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700516296; x=1701121096; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0w5OhCMFpR/2b8BWRj5h4tEwonUhJMG4T3wsH7ffyV8=; b=FVIBGvmpAD/uoRh7ycFN42Kok3bqnoc4KFsZ0tA42u3q/ajc1k/dtTz8XkDrzBTn+Y vbrBtDWXDSr3TgJaOq+F/ZFfRWfTIdcf5UCcq9GbUV0bT50D48SbYRUVeMiMUfakAsTg pud9Z4Jk/KBRaB1gHQlRhvPBPSSDjtN5Lun8jTVYTCCUz3bCnb5yXriJ43nSlAuvtea3 e/pT17KeC71MEmNjwA4tXQgOAIgx8YE+LF6t3lxLvm4Xpk8ua3F5P5tCqHYfJjUP3v8K JGxeizQThfgPJjC+weqrEQzrgXNDLgKA3qwL2Ggz/tiERTWaSYgkylo2udKBphVA1iuq f1bA== X-Gm-Message-State: AOJu0YzeUp5T7GtiWTqv0GiSeliQHIfz3cAECzLzIH8665YNUR1NNi28 HLzsCrUZ++uu5MLEQ3oSkpmkU4jvZGvaOsDMaD0= X-Google-Smtp-Source: AGHT+IHLiPK2AjzuXPQ+giUy2NI9ckIjpzPmUWSX8GsR5a5VaayLNFqZ7SIzNCwwaPr+yxbryy8EMfxrJ2v9kUIj0mg= X-Received: by 2002:a17:906:3399:b0:9ff:6ae6:9fea with SMTP id v25-20020a170906339900b009ff6ae69feamr2428629eja.55.1700516295472; Mon, 20 Nov 2023 13:38:15 -0800 (PST) MIME-Version: 1.0 References: <87a5rc2yuv.fsf@aarsen.me> <9214284.kj8aouNDkQ@nimes> <86msv8p1aj.fsf@aarsen.me> In-Reply-To: <86msv8p1aj.fsf@aarsen.me> From: David Edelsohn Date: Mon, 20 Nov 2023 16:38:04 -0500 Message-ID: Subject: Re: [PATCH v3 0/2] Replace intl/ with out-of-tree GNU gettext To: =?UTF-8?Q?Arsen_Arsenovi=C4=87?= Cc: Bruno Haible , Richard Biener , gcc-patches@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000b9f8fe060a9c4dd1" X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000b9f8fe060a9c4dd1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable _GLOBAL__F_xxx is the EH frame data. It's using the filename with full path for the unique name, which is why it includes .._.._.. . Apparently it is adding a random number as well for uniqueness. I guess that this is the downside of building in tree, and apparently it is rebuilding gettext itself with the different stages of the compiler, so the appended random number changes. Thanks, David On Mon, Nov 20, 2023 at 4:23=E2=80=AFPM Arsen Arsenovi=C4=87 wrote: > > David Edelsohn writes: > > > On Sun, Nov 19, 2023 at 5:15=E2=80=AFPM Bruno Haible = wrote: > > > >> David Edelsohn wrote: > >> > --disable-threads currently does not completely disable threads. > Bruno > >> is > >> > suggesting --enable-threads=3Disoc that relies on mtx mutex function= s in > >> libc. > >> > >> Unfortunately, as said in the other mail today, relying only on mtx_* > >> functions > >> did not drop the dependency towards libpthreads. > >> > >> So, I've made a new release gettext-0.22.4, that includes only these > >> changes: > >> > >> - AM_GNU_GETTEXT now recognizes a statically built libintl on macOS > and > >> AIX. > >> > >> - Passing --disable-threads now builds a libintl that, on AIX, does > not > >> need -lpthread. > >> > >> - Other build fixes on AIX. > >> > >> > Yes, GCC should configure the in tree gettext with --disable-threads, > but > >> > that configure option is not completely effective and does not > produce a > >> > build without threads references. > >> > >> Now it is effective. But you (Arsen) should state in the documentation > >> (gcc/doc/install.texi) that for --disable-threads to have this effect, > >> one needs gettext version 0.22.4 or newer. > >> > > > > So the question is do we want to change GCC on AIX to always link again= st > > pthreads so that GCC can build with default, external builds of gettext > > libintl. I don't see a path for i18n support to work for GCC on AIX > > without that unfortunate change. > > Well, if detectable by the build system for, I imagine we could avoid > pthread if gettext is built without them. With the 'private' gettext > build, we should never need threads anyway. > > P.S: Building on AIX is nearly successful. gettext-0.22.4 builds, twice > or even thrice, but ends up producing a bootstrap comparison fail: > > make[3]: Leaving directory '/home/arsen/build' > Comparing stages 2 and 3 > Bootstrap comparison failure! > gettext/libasprintf/autosprintf.o differs > make[2]: *** [Makefile:23435: compare] Error 1 > > Upon inspecting these files, I see the following diff: > > ~ 1 $ git diff <(objdump --all-headers autosprintf.o2) <(objdump > --all-headers autosprintf.o3) > diff --git a/dev/fd/63 b/dev/fd/62 > --- a/dev/fd/63 > +++ b/dev/fd/62 > ... > @@ -92,7 +92,7 @@ AUX indx 30 prmhsh 0 snhsh 0 typ 2 algn 0 clss 0 stb 0 > snstb 0 > AUX val 23 prmhsh 0 snhsh 0 typ 1 algn 4 clss 1 stb 0 snstb 0 > [ 58](sec 1)(fl 0x00)(ty 0)(scl 107) (nx 1) 0x00000460 > _autosprintf.ro_ > AUX val 312 prmhsh 0 snhsh 0 typ 1 algn 4 clss 1 stb 0 snstb 0 > -[ 60](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 1) 0x00000460 > _GLOBAL__F_.._.._.._gcc_gettext_gettext_runtime_libasprintf_autosprintf.c= c_DFF67DD7_0xa20d51b1d7a1772f > +[ 60](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 1) 0x00000460 > _GLOBAL__F_.._.._.._gcc_gettext_gettext_runtime_libasprintf_autosprintf.c= c_DFF67DD7_0x9c04058e89d7a7a4 > AUX indx 58 prmhsh 0 snhsh 0 typ 2 algn 0 clss 1 stb 0 snstb 0 > [ 62](sec 2)(fl 0x00)(ty 0)(scl 107) (nx 1) 0x000005a0 > _autosprintf.rw_ > AUX val 0 prmhsh 0 snhsh 0 typ 1 algn 4 clss 5 stb 0 snstb 0 > > I am unsure what this symbol is. It does not appear in the stripped > binary. > -- > Arsen Arsenovi=C4=87 > --000000000000b9f8fe060a9c4dd1--