From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by sourceware.org (Postfix) with ESMTPS id E49EA3858C42 for ; Thu, 16 Nov 2023 21:41:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E49EA3858C42 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 E49EA3858C42 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::232 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700170864; cv=none; b=rdFYDGig2KMPSqWSPUrTE8vfV/wOiPb9ipoFKGwLCvjXBabrUWI/bdSzPtqrQjeXqTfMSSGrvy8XgvoDHtKsIqbNR3i/nMVAoIhX2jgQ4iYTE3Oh5iw4bmRjoUTXneQjmtmrukiGxEOxJc24CuNnyaIZ2xi7oqnPJUICbe1akGg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700170864; c=relaxed/simple; bh=MdUfG1K8TOw2TgBwMA2kDggGhnGsemTI+sqj0VyEPnQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=kghJCqTUEqwOZjar4Hc3HGYuQD/AkVwYzyBwUxqe1ExTxhvufyStiksN2s3WY0qCo6wqDe1uSOuQaRyheq6BxZgUUSpG4U8hNx4XSqPCaCKf9yQmcIdHP94vmGfV1m6/bD1K5S8KqN3I5FI5/hZTgTji5I8EOsrxFRS2w+izHBw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c83ffcdbe3so16400171fa.1 for ; Thu, 16 Nov 2023 13:41:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700170860; x=1700775660; 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=NvTUENv8qD3oFuDC3i40q/X5a8+xWGsux9oBUKfxSJg=; b=LxFFz7n3vw9Jn05kFocH/lPcFMlojmvd83FupSZa7+jeX73UkWHpbRYILfrZscM6pE R8zy9yYgXrUdN9Eb6HSdXQQiqVmKPUZT4qPV14Gl/N6VzjvPHELPyo2GehV3SD1c0f0A I4XOICQYQNEsYxipH6DCwFkCUhOhnMfRX+WgQY2EnZ9saCzG9MMDcjZO5G9TWIt1uAH9 q3HnJ+MagvEXKvwXBrsrvnsE+YgiTIvGgL58C5KuYgiryOsHkellUxtZEHO3lo4CvoZU Rp/q02VaIcl8ga2MQ/pBk1hB16fMGoGpeDPIY3LyvSnB83lfPnjOLFnxs+bKrAVD9OiN M63Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700170860; x=1700775660; 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=NvTUENv8qD3oFuDC3i40q/X5a8+xWGsux9oBUKfxSJg=; b=mFIEavsVUk17ORBUJUf35+M/Twe7K7HyekIVpWrahwvTjJjZmNwsuGdw1HLb24QZni 3yoHcqidh5LQITnPl/1HYzZCm7/u3HWM8BbTZn2dXIyHx0RpNlWyNMB00dV74NoiEwfp KInNGNvPNXisly/EC5O43CknLOubd6+oTBcACfEFvztKeemdps8N1IaK/gfSMiLLt+z2 wGz87lKuMWMXm2eXuHCTX6/Zt3pUjY23YHqi7Q4JVQWJ8ij+1TSP9ewi1NcZu/kOMu3J ++WaCGG6WcHv8YBUbqohhGLoLfQ+o+j1xeiQT0yGR/sFRofk3oSK2p/AnWai3aE/DMmO RTyw== X-Gm-Message-State: AOJu0YyPP6NsNscB3FRjJDv+RCqzBhgqPYCsWMmilvfBbA2nS2TcXk1i ioI1zgUODyoujSTjVy4eZDPbIYDrVeYgp9InDwez3S6n X-Google-Smtp-Source: AGHT+IE4g95liK5EthYxYhSbFqfU+WokBmvQXMTjUXqszivMeevSmby82FClM7wJ7V1T4vsRRl377iwtn6rqPcbX7Xc= X-Received: by 2002:a05:651c:2126:b0:2c5:1bd9:f946 with SMTP id a38-20020a05651c212600b002c51bd9f946mr9422083ljq.9.1700170860035; Thu, 16 Nov 2023 13:41:00 -0800 (PST) MIME-Version: 1.0 References: <86o7fwhr03.fsf@aarsen.me> <8634x7hza7.fsf@aarsen.me> <86il61fscr.fsf@aarsen.me> <861qcpbdt2.fsf@aarsen.me> In-Reply-To: <861qcpbdt2.fsf@aarsen.me> From: David Edelsohn Date: Thu, 16 Nov 2023 16:40:48 -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: Richard Biener , Bruno Haible , gcc-patches@gcc.gnu.org Content-Type: multipart/alternative; boundary="0000000000002b84f7060a4be059" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,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: --0000000000002b84f7060a4be059 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Don't build with the dependent libraries in tree. Don't build the dependent libraries as shared libraries. The libraries are already built and in /opt/cfarm, as mentioned in the Compile Farm wiki. AIX is not Solaris and not Linux. It doesn't use ELF. AIX shared libraries *ARE* shared object files in archives. Shared object versioning is handled by multiple objects in the same archive. Thanks, David On Thu, Nov 16, 2023 at 4:15=E2=80=AFPM Arsen Arsenovi=C4=87 wrote: > > Arsen Arsenovi=C4=87 writes: > > > [[PGP Signed Part:Good signature from 52C294301EA2C493 Arsen Arsenovi= =C4=87 > (Gentoo Developer UID) (trust ultimate) created at > 2023-11-16T19:47:16+0100 using EDDSA]] > > > > David Edelsohn writes: > > > >> On Wed, Nov 15, 2023 at 9:22=E2=80=AFAM Arsen Arsenovi=C4=87 > wrote: > >> > >>> > >>> David Edelsohn writes: > >>> > >>> > GCC had been working on AIX with NLS, using > "--with-included-gettext". > >>> > --disable-nls gets past the breakage, but GCC does not build for me > on > >>> AIX > >>> > with NLS enabled. > >>> > >>> That should still work with gettext 0.22+ extracted in-tree (it should > >>> be fetched by download_prerequisites). > >>> > >>> > A change in dependencies for GCC should have been announced and more > >>> widely > >>> > socialized in the GCC development mailing list, not just GCC patches > >>> > mailing list. > >>> > > >>> > I have tried both the AIX Open Source libiconv and libgettext > package, > >>> and > >>> > the ones that I previously built. Both fail because GCC configure > >>> decides > >>> > to disable NLS, despite being requested, while libcpp is satisfied, > so > >>> > tools in the gcc subdirectory don't link against libiconv and the > build > >>> > fails. With the included gettext, I was able to rely on a > >>> self-consistent > >>> > solution. > >>> > >>> That is interesting. They should be using the same checks. I've > >>> checked trunk and regenerated files on it, and saw no significant diff > >>> (some whitespace changes only). Could you post the config.log of bot= h? > >>> > >>> I've never used AIX. Can I reproduce this on one of the cfarm machin= es > >>> to poke around? I've tried cfarm119, but that one lacked git, and I > >>> haven't poked around much further due to time constraints. > >>> > >> > >> The AIX system in the Compile Farm has a complete complement of Open > Source > >> software installed. > >> > >> Please ensure that /opt/freeware/bin is in your path. Also, the GCC > Wiki > >> Compile Farm page has build tips that include AIX > >> > >> > https://gcc.gnu.org/wiki/CompileFarm#Services_and_software_installed_on_f= arm_machines > > > > Thanks, that got me further. > > > >> that recommended --with-included-gettext configuration option. > > > > This flag should still exist and operate the same if gettext is present > > in tree. I've cloned gcc and downloaded prerequisites (via > > contrib/download_prerequisites) and I am trying to configure it now. > > The build failed. After gettext/gmp/... (in-tree hostlibs) get built > and added to library paths, further GCC processes fail to run: > > configure:3305: gcc -g -static-libstdc++ -static-libgcc -Wl,-bbigtoc > conftest.c >&5 > Could not load program > /opt/freeware/libexec/gcc/powerpc-ibm-aix7.3.0.0/10/cc1: > Dependent module > /home/arsen/build/./gmp/.libs/libgmp.a(libgmp.so.10) could not be loaded. > Member libgmp.so.10 is not found in archive > > This seems odd. I am not sure what compels the RTDL (?) to look up .sos > in archives, or how it knows about these archives.. I suspect it's > getting tripped by something in HOST_EXPORTS. > > >> Thanks, David > >> > >> > >>> > >>> TIA, sorry about the inconvenience. Have a lovely day. > >>> > >>> > The current gettext-0.22.3 fails to build for me on AIX. > >>> > > >>> > libcpp configure believes that NLS functions on AIX, but gcc > configure > >>> > fails in its tests of gettext functionality, which leads to an > >>> inconsistent > >>> > configuration and build breakage. > >>> > > >>> > Thanks, David > >>> > >>> > >>> -- > >>> Arsen Arsenovi=C4=87 > >>> > > > -- > Arsen Arsenovi=C4=87 > --0000000000002b84f7060a4be059--