From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 97D903858D28 for ; Thu, 16 Nov 2023 16:36:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 97D903858D28 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 97D903858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700152565; cv=none; b=g1EP/E/X5qDQC3H4/nQ0vFhirh6suqDZatckcFhiCDILl1AMEAl+opOEGFYuoKPXuxJVTkHcPskCXGGLLoi9uGPJ5cYkSkAeJVYkiq3FUvPa+K3a+yeeg4zNeTNx4vnArY5lPpi4qQdCYh1OjigiJrLiNtsH+aBbI39oVX2sm3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700152565; c=relaxed/simple; bh=PWwHIbM5UO49yUen2eoHR5WJ3GXNojbds0pQW8xLgrc=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=LPPFtqqYv35g9mfgqp49rmqmyWvKdBkWfM4KYITZri1D4nrrk4M60YrhoD8Wu4t0fFy2U3yGTSV0Ho0A6B2kR2IPQKwbPWyuSuoT3MpduI7z0lJCwKJcn4aRu8Pthon1lMXwEh4COqwB0Rht2mo38BqME3UqM5qzuJMd7FtpW80= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9e5dd91b0acso144973966b.1 for ; Thu, 16 Nov 2023 08:36:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700152562; x=1700757362; 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=m2yK1BmcpJm4vkK/jPXueUnUBPw1xmrwiZMIuY2o6a8=; b=CKkhLbqEuQ2qmkrOGwDx17Mm2AfpRbZFeEwEJXMMCeSgUgJoSc63fC06PGwZDk6L7k Y/R0IP5cmjIBqGjJK1xQjXxmHscTKMEYy/nouEZiBCVkcTyHkiiwh6/8fYPib7XxsFrD nRcWWMGEEp9P6M273MscjkqzVZfGc6TQuxckGWKSkHldc4hQG6WiofwpmcAwbS6NE2KU 1qG+3ivIYCjPFloK5IQ4mObBJNCf9bfWw1/T43w9BUy4o7PedKGZiM7+q5tN5ZW+rs3+ x9pK2CUIgEPD4GxEhb6/gRDXfrR6iz+Ns1Pm7lGk6v4/SK0FwmF/cY3/sRNWl/dxe3wf 9FNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700152562; x=1700757362; 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=m2yK1BmcpJm4vkK/jPXueUnUBPw1xmrwiZMIuY2o6a8=; b=TAimNWOlXU9/6EM59Dwk5VEdvBgvczZtfpZY3mMGoMP0xxj1IMXiokKd1qx1W7e1FY IeUV6wcgU2qxD/sc5ZCPj6yYrkE706pmvS1HF27WyWxQb/GFC3EmCYBuMjkDe+Q+Y7cR IQaM9eiaf1kgiIVpLSeDR1f1+AeTFoPSlm04ua0568bSdVBeBxf5mxBh44MAuvIiShzL eekXXeIIUdDqENqnaV5NGEocGgkJ7FEUj0osTGFdAL1KLIpFz5IN9lb6089C9L2PLvy0 Q4LlYY+TDjpPZieZ72nOtzHO++cEH++ceADuYPsSa4RASuGYTpGm4MDXhf3u5dZFN6MF Cy4w== X-Gm-Message-State: AOJu0Yw+a+IHfTjRqV1cVGXpCLZQ1JGZ6ZEsfmszu2y/yEGR4XfdZAl5 mluPz8kld5Tab5h6BCJyzSJ+mV4LVvjoafqQhNJp93iqWUE= X-Google-Smtp-Source: AGHT+IHkHD1KzCg5k8PW5yxwB2T9WNEU55ZMAtzGoiSCdAYNB0txuRBa+HViC6fldPeubUwAibBmcwg7iewlJPvfT90= X-Received: by 2002:a17:906:6d06:b0:9bf:20e0:bfe9 with SMTP id m6-20020a1709066d0600b009bf20e0bfe9mr12777623ejr.15.1700152561953; Thu, 16 Nov 2023 08:36:01 -0800 (PST) MIME-Version: 1.0 References: <4277517.TpOvJl0BfU@nimes> <4734331.o0Uec3RiDg@nimes> In-Reply-To: From: David Edelsohn Date: Thu, 16 Nov 2023 11:35:50 -0500 Message-ID: Subject: Re: building GNU gettext on AIX To: Bruno Haible , =?UTF-8?Q?Arsen_Arsenovi=C4=87?= Cc: GCC Patches , bug-gettext@gnu.org Content-Type: multipart/alternative; boundary="00000000000084f26e060a479d05" X-Spam-Status: No, score=-1.5 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: --00000000000084f26e060a479d05 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I configured gettext with --disable-pthreads and libintl.a still contains references to pthread_mutex_lock and pthread_mutex_unlock, which causes NLS configure to fail on AIX. How can this be corrected? Thanks, David libintl.a[libgnu_la-mbrtowc.o]: - U __lc_charmap - U errno - U .locale_encoding_classification - U .gl_get_mbtowc_lock - U .pthread_mutex_lock - U .mbtowc - U .pthread_mutex_unlock - U .abort 0 T ._libintl_mbrtowc 1952 D _libintl_mbrtowc libintl.a[libgnu_la-setlocale_null.o]: - U .gl_get_setlocale_null_lock - U .pthread_mutex_lock - U .setlocale - U .strlen - U .memcpy - U .pthread_mutex_unlock - U .abort - U .strcpy 336 T ._libintl_setlocale_null_r 400 T ._libintl_setlocale_null 812 D _libintl_setlocale_null_r 824 D _libintl_setlocale_null On Thu, Nov 16, 2023 at 11:00=E2=80=AFAM David Edelsohn = wrote: > 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. > > 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 >> >> >> >> --00000000000084f26e060a479d05--