From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id A66843858D20 for ; Thu, 16 Nov 2023 17:44:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A66843858D20 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 A66843858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700156674; cv=none; b=U7e0GBSyAA2JFQhQl1YPa93iyrxqJpdZAihlYybU+PaC9IDHZK+WG0Xx8B+zGt9YA8GDt4ZD5/1hz0ut91HzjsXQDWSpfM46sqpJGj0F2a73JLIx/Xk1AHnAydI7kXRpWNgeKAHzm1uKJiaccbRiOsPNZXbbaShmLYpxrDA1qc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700156674; c=relaxed/simple; bh=td8Obrv7vGPttoe6FgT6UF8mY7Pw2+JYiWDxkyMm2BM=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=ta822WEwYkgDxoh5PJkKAW4HH7Ht52oduJsEUGjCpTyMZ01C0BSogZ73pWyBUI39NSCDiF20mdEJLRLMHANX4PY4t7AVTokuyoKwprEx0gL1IvAONlY5EbfX/164IX8qdQ8WuNAARWMv3Soxt68/a41LM3hLRpbm2YhfyHbZkY8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9f26ee4a6e5so158423466b.2 for ; Thu, 16 Nov 2023 09:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700156671; x=1700761471; 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=lsrAPg6oHmY3Z+sJ0dlxgwCPpyqwUXeOUTAx2sQs1PA=; b=Ic09sRbVXDPsHprcsrtkaeqLewZ1ku9dgH8G9YcNdEAkRno2DDeb0BFmSXdiXMWnau GAaeAz7IGesCqey9BhVJtlvNy7Ie2MKttBaWi4WxPlHaMh1hEPgEiAmj0ahvnzezc9+L lJcp8dgJWbGxmLTtPp8ZpJq+Wm44Iw4Qk9HyBigr4dBOiQf2ib27/H6B3RrkU4GxyyLs Xft/AiWmCOI/Ogm3Ux9KmuQUUuZAKXX93nWJvaf+54rCdVzqhCw4BHMXMtO9bx2EpQuY tVaCfbW4RcJYViCyky1d01GrWzffGc94DTma71LeSz5KmEySHkW8RlHoPKgCuP41cvT1 +bsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700156671; x=1700761471; 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=lsrAPg6oHmY3Z+sJ0dlxgwCPpyqwUXeOUTAx2sQs1PA=; b=JoeYQDoOobHo8bNyruTLS0vwFx4FGeUGBxIIA0YoxRV0o2ovsPHfSi/Evjbh3gBvMd tcDpK8R5cUVG8KpziJ5PZRu9uE64vLaudwcathVtyYZW6Hg+MfMULOvySFQiThEq65lT msI1QhFl4FXEjZI4cvpIKMSdzbFLaOyw1iRUUapnnXvEsBPkSrv0/tWOfRtitnwPCbFg wtaUk93ykHvjCQ76BpaHNyebhybYMzU1oZjSPJz3xCRCrLB/BhEnModIpw1308avLKMf U/Bh6DutXV0cdamYf8b9YOjLMd9hzgfox3lV2IVcXC8lGdA97L74LLfWEgpJbSoDOeT6 kXeQ== X-Gm-Message-State: AOJu0YzVpWeLfW7hGvxQ9XFQRlxktjfpczRnB6r/8p/87ruyGqYAZ30J oY//rU5pBXrHqwse+Uvy7kzSoGcvNzBT1wMpUZA= X-Google-Smtp-Source: AGHT+IEIZTTKfopwJW/726Id3S0J8VAz2lcTWLc3cUtN3ko4SMKp+MQ1QA1od0wPUELzMWU6qhjIRz/L4nn2Z37hiEg= X-Received: by 2002:a17:906:ae91:b0:9a2:28dc:4166 with SMTP id md17-20020a170906ae9100b009a228dc4166mr12632314ejb.75.1700156670961; Thu, 16 Nov 2023 09:44:30 -0800 (PST) MIME-Version: 1.0 References: <84B39BF1-33D5-488E-8CF5-D08B09417568@gmail.com> In-Reply-To: <84B39BF1-33D5-488E-8CF5-D08B09417568@gmail.com> From: David Edelsohn Date: Thu, 16 Nov 2023 12:44:19 -0500 Message-ID: Subject: Re: building GNU gettext on AIX To: Richard Biener Cc: Bruno Haible , =?UTF-8?Q?Arsen_Arsenovi=C4=87?= , GCC Patches , bug-gettext@gnu.org Content-Type: multipart/alternative; boundary="0000000000006f6c51060a48927b" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: --0000000000006f6c51060a48927b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 16, 2023 at 11:58=E2=80=AFAM Richard Biener wrote: > > > Am 16.11.2023 um 17:00 schrieb David Edelsohn : > > =EF=BB=BF > Bruno, > > I have been able to tweak the environment and build gettext and libintl. > With the updated libintl and environment, GCC reliably does not use NLS. > > The issue is that libintl utilizes pthreads. AIX does not provide no-op > pthread stubs in libc. pthreads is an explicit multilib on AIX. > > It is great that gettext and libintl can be built thread-safe, but GCC > (cc1, gcov, etc.) are not pthreads applications and are not built with > pthreads. Because libintl defaults to pthreads enabled, NLS cannot > function in GCC on AIX by default. The GCC included gettext was built in > the default for GCC libraries, which was not pthreads enabled. > > I can rebuild libintl with --disable-pthreads and I will see if that > works, but the default, distributed libintl library will not allow GCC to > be built with NLS enabled. And, no, GCC on AIX should not be forced to > build with pthreads. > > This is a regression in NLS support in GCC. > > > If that=E2=80=99s for the in-tree libintl we can arrange configure to pas= s down > =E2=80=94disable-pthreads like we adjust configure args for gmp and frien= ds as well. > The latest issue is that a few files in gettext ignore --disable-pthreads and creates a dependency on pthread_mutex. David > > Richard > > Thanks, David > > > On Wed, Nov 15, 2023 at 5:39=E2=80=AFPM Bruno Haible wr= ote: > >> David Edelsohn wrote: >> > I am using my own install of GCC for a reason. >> >> I have built GNU gettext 0.22.3 in various configurations on the AIX 7.1 >> and 7.3 machines in the compilefarm, and haven't encountered issues with >> 'max_align_t' nor with 'getpeername'. So, from my point of view, GNU >> gettext >> works fine on AIX with gcc and xlc (but not ibm-clang, which I haven't >> tested). >> >> You will surely understand that I cannot test a release against a compil= er >> that exists only on your hard disk. >> >> The hint I gave you, based on the partial logs that you provided, is to >> look at the configure test for intmax_t first. >> >> Bruno >> >> >> >> --0000000000006f6c51060a48927b--