From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 4D0413858D20 for ; Wed, 15 Nov 2023 19:59:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D0413858D20 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 4D0413858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::631 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700078347; cv=none; b=nvI2NEyXabT91rFyL7QPsRYEPXR6IN8wyapltkc3KDAsIRd6t5XL+qz03t04VixD0UDT42n4P9+2Op8Tfej3feTOPsW3YouG7NzwSLeMX/j7pkHoAix60+J5qpksr/tKQqE5B//nwHLa+6TXw9NmW+Au/OgrzvEv3SSmZZJDrwI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700078347; c=relaxed/simple; bh=3/18X6thLNcBhrAWM1dChxamE1Gw1x/YvpXsVRzP4oY=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=lcm9k9lFUrZh3qt/xFwdLwQx8VBNFmemrvME/WKehzZpunvmdoVrLqo8bY+Ct0tz9kAaNvjOojX544+1dlua3lNEFu3iCYRpo7euG4hPETS19kt1BEPd4Y0bE/UUF8obhlcPfIrLExoL678bkAwwoMFoSv7L4yzvIim+y1EeGqo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9dd3f4a0f5aso11307066b.1 for ; Wed, 15 Nov 2023 11:59:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700078344; x=1700683144; 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=Yvn4e68avWDyvnYnZyxUfjc4mRpT2hLPZXFGLE0ocWU=; b=GDf2tVU+Sbtt/pS53fJ4+wycIO/+6eGT4kE+YQ2DNjfZt643UtpgTuEaNZhR679Nrs UgNd0N1fQhK0P+nqmQewgt2IKaipuGvjHm+aJL0b6c/hnRkE2jix36xkP/FW81lyy15/ 7OqxOknJrwHIlHaTn9y19BBWmX7WVFuCODdmYi3g8WrkRYGuupUo2z44Vug4HO3vG5U5 mkEqa5Pg1xqSJGJSmbCyxgpZMOJzIKGtLJWVdqFY5YFKfIxwXP2W+sWBXFw403JDQZ97 k6DDKL4QpYOuGzxbKgvJtwmgUYCRynnilWB3/hdI2ZtxJtr4jBLjT4cDIoqApBJMQWOg J0Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700078344; x=1700683144; 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=Yvn4e68avWDyvnYnZyxUfjc4mRpT2hLPZXFGLE0ocWU=; b=oKYW4e0pTmQuH55VwN2RJ1oZCHE+CSdLDLdXq1QD0JhRAislzRLF1/7NIrnfrbrbYv 2dLNFLjUNPe3eUP9JEA0Xqz4oofHjkIfQpuSn4CfOanR79Yp+gmcW3TTR7zcFjACkVS3 rLdN0l0xoZjBl3CatfeIrmSDRoAytLdjXPlnu50OrDeNepDYuYRx8YyPRVXRqKvR44zl hVxJSz2M1ycV4w5gB2EuRY9OBgN+lcD7IzfGVvPjMIq3kuA3bqiUWLTjP69zWX4DRwvz 1u7sySIKEytSX2Bb/ExgYfudEWS/RLgNO0dJPwpvcC2bG9xVvNDwkytU3kF8Ecfa0nCb nLBQ== X-Gm-Message-State: AOJu0YwH00dEAOmD2le+3+NNFWFv5F6t7/9RA24P8CiaWeUZ4zKxw/q4 9c6qwtLpmeRFYVzv2PGPxqdWc+3hWB6SBjNwtQs= X-Google-Smtp-Source: AGHT+IGU5XpLUrReeD9cPflWJ1ajG3etDp1olPfmbWnqtS/GszT9qsIicILL1q9hNtxMO2ATzzn+hG/gtmMBVqfDDOQ= X-Received: by 2002:a17:906:f898:b0:9cc:450c:b0d5 with SMTP id lg24-20020a170906f89800b009cc450cb0d5mr9523127ejb.4.1700078343815; Wed, 15 Nov 2023 11:59:03 -0800 (PST) MIME-Version: 1.0 References: <86o7fwhr03.fsf@aarsen.me> <8634x7hza7.fsf@aarsen.me> In-Reply-To: <8634x7hza7.fsf@aarsen.me> From: David Edelsohn Date: Wed, 15 Nov 2023 14:58:52 -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: GCC Patches , Bruno Haible Content-Type: multipart/alternative; boundary="000000000000c605e9060a365599" X-Spam-Status: No, score=-1.2 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: --000000000000c605e9060a365599 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 both? > GCC configured with --with-libintl-prefix and --with-libiconv-prefix libcpp/config.log: configure:7610: checking for GNU gettext in libc configure:7639: /nasfarm/edelsohn/install/GCC12/bin/gcc -std=3Dgnu99 -o conftest -g -static-libstdc++ -static-libgcc -Wl,-bbigtoc conftest.c >&5 conftest.c:71:10: fatal error: libintl.h: No such file or directory 71 | #include | ^~~~~~~~~~~ configure:8318: checking for GNU gettext in libintl configure:8355: /nasfarm/edelsohn/install/GCC12/bin/gcc -std=3Dgnu99 -o conftest -g -I/nasfarm/edelsohn/install/include -static-libstdc++ -static-libgcc -Wl,-bbigtoc conftest.c /nasfarm/edelsohn/install/lib/ libintl.a >&5 ld: 0711-317 ERROR: Undefined symbol: .libiconv_open ld: 0711-317 ERROR: Undefined symbol: .libiconv_set_relocation_prefix ld: 0711-317 ERROR: Undefined symbol: .libiconv_close ld: 0711-317 ERROR: Undefined symbol: .libiconv ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: error: ld returned 8 exit status configure:8355: $? =3D 1 configure:8392: /nasfarm/edelsohn/install/GCC12/bin/gcc -std=3Dgnu99 -o conftest -g -I/nasfarm/edelsohn/install/include -static-libstdc++ -static-libgcc -Wl,-bbigtoc conftest.c /nasfarm/edelsohn/install/lib/ libintl.a /nasfarm/edelsohn/install/lib/libiconv.a >&5 configure:8392: $? =3D 0 configure:8405: result: yes configure:8440: checking whether to use NLS configure:8442: result: yes configure:8445: checking where the gettext function comes from configure:8456: result: external libintl configure:8464: checking how to link with libintl configure:8466: result: /nasfarm/edelsohn/install/lib/libintl.a /nasfarm/edelsohn/install/lib/libiconv.a configure:8525: checking whether NLS is requested configure:8531: result: yes gcc/config.log: configure:14002: checking for GNU gettext in libc configure:14031: /nasfarm/edelsohn/install/GCC12/bin/g++ -std=3Dc++11 -o conftest -g -static-libstdc++ -static-libgcc -Wl,-bbigtoc conftest.cpp >&5 conftest.cpp:196:10: fatal error: libintl.h: No such file or directory 196 | #include | ^~~~~~~~~~~ configure:14710: checking for GNU gettext in libintl configure:14747: /nasfarm/edelsohn/install/GCC12/bin/g++ -std=3Dc++11 -o conftest -g -I/nasfarm/edelsohn/install/include -static-libstdc++ -static-libgcc -Wl,-bbigtoc conftest.cpp /nasfarm/edelsohn/install/lib/ libintl.a >&5 ld: 0711-317 ERROR: Undefined symbol: .libiconv_open ld: 0711-317 ERROR: Undefined symbol: .libiconv_set_relocation_prefix ld: 0711-317 ERROR: Undefined symbol: .libiconv_close ld: 0711-317 ERROR: Undefined symbol: .libiconv ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: error: ld returned 8 exit status configure:14747: $? =3D 1 configure:14797: result: no configure:14832: checking whether to use NLS configure:14834: result: no configure:14917: checking whether NLS is requested configure:14920: result: no > I've never used AIX. Can I reproduce this on one of the cfarm machines > to poke around? I've tried cfarm119, but that one lacked git, and I > haven't poked around much further due to time constraints. > > 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 > --000000000000c605e9060a365599--