From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by sourceware.org (Postfix) with ESMTPS id 4FC663858D33 for ; Mon, 20 Nov 2023 21:23:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4FC663858D33 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=aarsen.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aarsen.me ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4FC663858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=80.241.56.152 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700515386; cv=none; b=NcekWREyKXZvgvjDQn3bBUVHJz0o3IfZmAYkELud4T/C0xR6HDs3Vp1FQ03NQOpnUxaQj1PGjtxuC3wqVRxWSisGITqr7M0fqxTDJQ8AJGplCP5sA4svE52dUCUGGWc4R1S35LmeYc5eW4yzcDOdxBS0OxgQq1fkRGuBO8Ye7mQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700515386; c=relaxed/simple; bh=v9AjR07NMPNQH1ffyVTyHWtYcEwpFLLY3XytmX7qAyc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ovSaqVDucyprRJtOxaDtXBQZkjuSeL4Lp0kcviOmgw+YElF2fifzO8+OLhYYRjMwft2toYXvn5q72oEBsjrXy3sco25yF3kqzRnuarlCKigArjSEBkQOHjzhHbq/p4e4CgK5mB8G9RPuy9LhRqCEjkT7qwt1k66dmYc9dt7xgRU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4SZ0pt33G4z9slv; Mon, 20 Nov 2023 22:23:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1700515382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I4Ix+26lfqJgKDf2Uc9JgOwW8jCDaXmyV45VIWub+00=; b=BJZfIKtkQfGb7T1SM3oYTpawa4tycTkco9bNhF5rcKLTlk1KDURhA3UFVOUmIfiA/d57x8 o0bvROnKlOnYNNylpmeWk34Wty1Vxv0LmYqqOOFYi/LayO3hcWBfjLCTCeurUdBj531iOH InH8fOkgm5ytJ/iOex7QvPiDi+IBwwBn1ZuttQY3eugXQkw3DW62eR3Da3C3SwpcIMV2CB i9x4wgwRYWxnbW7Yvm5m/2BO8VM5fgAUl684yPp01aLvyZOvTpxJboZQD1cS0v+gIOPzbK lUzo5rMhquuw5jT5WvGJx2iiyZPRnhKfMr62CVJR1qpgXKiYHlF661mU8lQbOg== References: <87a5rc2yuv.fsf@aarsen.me> <9214284.kj8aouNDkQ@nimes> From: Arsen =?utf-8?Q?Arsenovi=C4=87?= To: David Edelsohn Cc: Bruno Haible , Richard Biener , gcc-patches@gcc.gnu.org Subject: Re: [PATCH v3 0/2] Replace intl/ with out-of-tree GNU gettext Date: Mon, 20 Nov 2023 22:18:17 +0100 In-reply-to: Message-ID: <86msv8p1aj.fsf@aarsen.me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 4SZ0pt33G4z9slv X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_LOW,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: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable David Edelsohn writes: > On Sun, Nov 19, 2023 at 5:15=E2=80=AFPM Bruno Haible wr= ote: > >> David Edelsohn wrote: >> > --disable-threads currently does not completely disable threads. Bruno >> is >> > suggesting --enable-threads=3Disoc that relies on mtx mutex functions = 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 against > 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-head= ers autosprintf.o3) diff --git a/dev/fd/63 b/dev/fd/62 =2D-- 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 =2D[ 60](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 1) 0x00000460 _GLOBAL__F_..= _.._.._gcc_gettext_gettext_runtime_libasprintf_autosprintf.cc_DFF67DD7_0xa2= 0d51b1d7a1772f +[ 60](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 1) 0x00000460 _GLOBAL__F_.._.= ._.._gcc_gettext_gettext_runtime_libasprintf_autosprintf.cc_DFF67DD7_0x9c04= 058e89d7a7a4 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. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZVvONF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTeoYA/R2AyeghZV9QyeKZ6rA7BT3L667dM99zfWSd WXv2+xDcAP97E7nvm5g9gYw7YLIfGlGqwuHaSBv3FT/eFwAdoJ6oBg== =K8ak -----END PGP SIGNATURE----- --=-=-=--