From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 6E3C43858D20 for ; Thu, 16 Nov 2023 18:01:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E3C43858D20 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 6E3C43858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700157705; cv=none; b=Sm6cjM1hCs7+yrrjbagrYjB3a3rwF94lSWG0RRYjN17ABHhsShQc9CZ9XUSmAVOL0PQLSn2ir35Tr9E1G/S9IUWN+mrz3p3INFTkO+26n8vijwVf2HM5BHO4E9ikxf4RONmp+hMWtqW9FxX5Ce9fHM60yjFkW6ukL1kJKfUDuBs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700157705; c=relaxed/simple; bh=WAYUEsb4QaaTTafkjlsm7ldnJa8bTMqj21bGjmkP4H0=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=a0mtdJLkLMIQDzxDtCbafSm4cou3WJbwmJ3QdlulQN+0bHvgpN9kXwe3Z6tni0c9swqUN81WH2/D+C6qp/p2vq5uFUSZCSvtY81IuYRJE5CdSS4Jx8ZQX7s6dG1hoe6JhCXX1mzD8rB23r1O2XO0rLOyYcJINhmkqglZqTFui4A= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9e28724ac88so155558766b.2 for ; Thu, 16 Nov 2023 10:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700157702; x=1700762502; 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=Fd7crwoj++l81j9p0GWT1RbAtiqYs1hzznbvkbfLMAw=; b=KYqsTDkB/Y+58Brl8AIzRZk/H6T4xznODruqK7zExwLeTZM94QjcMlwVEunZWqm2nD jMjdrOB74XWw4MYtO6Ql1hnFKi/riQfwqs084dotvt5pYjWD8NWn92zriS9PgEL7eeep yhKsPJa5MhzrzGftXpVdEpS+wJxPAH4R8WG+OmzSixxFKIw+CDKjqvMdv2Lz98w4tR23 v7hWPur3sszuMcizTJ6dzEeAvUvPaCIuOtRIAwUs+gIrCqvf1MKmgn7Sk6vA+XI2lqR6 1u0DDqc2X008Kdw0FzOU4RXVpD3cyDnrWDOIaZSHdTskTYiOKTv17eJnwDypulyJZLsT aYNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700157702; x=1700762502; 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=Fd7crwoj++l81j9p0GWT1RbAtiqYs1hzznbvkbfLMAw=; b=aJzwiVnJiJsT0Iu6rxk53Yot0BBXLRkWXakVOvPEt6CTjuLfYV1QCIQrDbH29iTF1p E46TSAm8mjFtXi45oqswcRpf5+h8YNQI7/78V/DUdb240kxFnsWNnQjWyVmUix/m8b95 8VY/4mzu2zoaWift+8LUXVbPgUOdDvq7DcX2qqMKnQE602J/BIYT8s1i8WB8HzEoBA3b voegoRkjyzdbZXPj3WDt3IU6gbPElmtb13KWNJnYIzRiAXT6qCnYWCVe2dFlUgXT9/h+ FZsaj07t3VaA4+wlQfWtpvawT+ohaaU6faLDU+oks+XQvkEqwjKR0eeiVNSxEDNNWvSx mLOA== X-Gm-Message-State: AOJu0YzByWNwhEwGW7BZE878c0PO3GDEaHMCdCiFZ77dNfhTLOBj9HO5 i5WeWNw9epZppBVQlf+lAizrrFLQ0e+F5onOQzQ= X-Google-Smtp-Source: AGHT+IFdYZBXkQ2sAfsQK5KIWP73M0ms0xkOqnEUjlTW9lW8sjzmIw/aFt4gNOcT4LluCM8pf+JnKMKEdhY/mDcof00= X-Received: by 2002:a17:906:f898:b0:9cc:450c:b0d5 with SMTP id lg24-20020a170906f89800b009cc450cb0d5mr11263525ejb.4.1700157701582; Thu, 16 Nov 2023 10:01:41 -0800 (PST) MIME-Version: 1.0 References: <4277517.TpOvJl0BfU@nimes> <4734331.o0Uec3RiDg@nimes> In-Reply-To: From: David Edelsohn Date: Thu, 16 Nov 2023 13:01:30 -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="000000000000dd7945060a48cf9d" 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: --000000000000dd7945060a48cf9d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Bruno, The issue appears to be that intl/gnulib-lib/{mbrtowc.c,setlocale_null.c} include pthread.h based on HAVE_PTHREAD_API, which is defined as 1 in intl/config.h build directory despite requesting --disable-pthreads. Thanks, David On Thu, Nov 16, 2023 at 11:35=E2=80=AFAM David Edelsohn = wrote: > I configured gettext with --disable-pthreads and libintl.a still contains > references to pthread_mutex_lock and pthread_mutex_unlock, which causes N= LS > 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 w= rote: >> >>> 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 >>> compiler >>> 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 >>> >>> >>> >>> --000000000000dd7945060a48cf9d--