From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C6B631F670 for ; Sun, 17 Oct 2021 19:27:38 +0000 (UTC) Received: from localhost ([::1]:57066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcBom-0004CM-Di for normalperson@yhbt.net; Sun, 17 Oct 2021 15:27:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcBoe-0004C7-8K for bug-gnulib@gnu.org; Sun, 17 Oct 2021 15:27:28 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]:21676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcBoa-0004x0-5K for bug-gnulib@gnu.org; Sun, 17 Oct 2021 15:27:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1634498840; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:To:From:Cc:Date:From: Subject:Sender; bh=Og6ThyqVpL6M+ni2C0qa9XkoYFrgj0NPPyL8oAinXJw=; b=rTsoCq9zohKiOY9dOrTWz/rjcWE1J71+2lEZPRgv0wHEfFv+nD1tVMilvNH/gdJ2lT wH97+EyuA/60rH5eiYqy4jQkKrIaTXrwAyHXfPNg71dEQoD7FliJQkOy+JHnDqCfMJmY 1vXuRopoOLaJU3B4LRigzTTtNFDPxL8mlDu49Wgw8PUR3ZqIQ6dpewtxfIyaQPE5XqIc xxQGYzXAAPJXx0Nndgo/SVKp3NXZq75xDHcj+etwOoH0p2RiPlTVcJiXfCcGydkSou4U syQBIh+aceh4el5HseIebLDcwQB5NG0B1ncHV/v+D0rcT1W1nllAicdGTatI708S1CVR CbHw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94z26ll5ip69kxhSDoInAEk9gCFzKAR92l+AA2w==" X-RZG-CLASS-ID: mo00 Received: from omega.localnet by smtp.strato.de (RZmta 47.34.1 AUTH) with ESMTPSA id 501352x9HJRKVpq (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 17 Oct 2021 21:27:20 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org, Sergei Trofimovich Subject: Re: gnulib does not always detect need for iconv() hack on musl Date: Sun, 17 Oct 2021 21:27:19 +0200 Message-ID: <7178054.Whz1cUOskA@omega> In-Reply-To: References: <3670291.xsyPL9o34G@omega> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.161; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Sergei Trofimovich wrote: > Aha, 'config.guess' clearly detects wrong libc here: > > checking build system type... x86_64-pc-linux-gnu > checking host system type... x86_64-pc-linux-gnu Yes, for a musl system, that's wrong. The problem may come from your environment. Which of the environment variables CC_FOR_BUILD, HOST_CC, CC, CONFIG_SITE did you have defined, and to which values? > I did not realize 'config.guess' has the code to detect libc but it > clearly does. I'll dig from there and complain elsewhere. The mailing list is https://lists.gnu.org/mailman/listinfo/config-patches . The current code in config.guess is a heuristic (that has been working on Alpine Linux up to 3.13), because the musl libc people refuse to have their libc identify itself. [1] Bruno [1] https://wiki.musl-libc.org/faq.html#Q:-Why-is-there-no-%3Ccode%3E__MUSL__%3C/code%3E-macro?