From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id C5A583858D1E for ; Fri, 20 Jan 2023 17:27:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C5A583858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.97,232,1669104000"; d="scan'208";a="97812687" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 20 Jan 2023 09:27:30 -0800 IronPort-SDR: INHdq7hFow+sFYfSzX4vA9n2eqAy9xKUAGSKEa6VjP01RTXZv7AKt+DpXVV32fiNgSlTym+XTB z8TpO1tYFqy6gR8qYfXeG/lYPJDtxkUUUDZvpQ/IItSvLKyvib9S0iYKlXg5CGtH8SRvthhMxF 1lA6L7aMctaqmzpXShrbKW4IeZGPfBX30sQaMpglHnuz0UVgaBA07SzN/sGuT7hLbswzT0irqk joi8a5CJgfii1/5PslJ64M1uhye0E9HCO3cm1VrvWvuv24/dZ9x/QTuD0uYx0d/yejSbN82scm nrw= Date: Fri, 20 Jan 2023 17:27:26 +0000 From: Joseph Myers To: Xianmiao Qu CC: Subject: Re: [committed] C-SKY: Define SYSROOT_SUFFIX_SPEC. In-Reply-To: <20230113124319.75544-1-cooper.qu@linux.alibaba.com> Message-ID: <22262a2-6de-923b-c4d7-5e1a855934a1@codesourcery.com> References: <20230113124319.75544-1-cooper.qu@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-13.mgc.mentorg.com (139.181.222.13) To svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) X-Spam-Status: No, score=-3108.8 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 13 Jan 2023, Xianmiao Qu via Gcc-patches wrote: > The earlier patch > https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575418.html > refine the way to generate sysroot suffix, but it can't find the > right path for all CPUs. The SYSROOT_SUFFIX_SPEC should be defined > to fix it. I think this caused the build failures with build-many-glibcs.py shown by my bot. SYSROOT_SUFFIX_SPEC should not be defined for a --disable-multilib build; in such a build you can expect a single sysroot without a suffix involved. Thus, you should put the SYSROOT_SUFFIX_SPEC definition in a separate header only used if test "x${enable_multilib}" = xyes (as in the config.gcc code removed in the older patch you refer to above), or something similar. https://sourceware.org/pipermail/libc-testresults/2023q1/010706.html The error is: /scratch/jmyers/glibc-bot/install/compilers/csky-linux-gnuabiv2/csky-glibc-linux-gnuabiv2/bin/ld: cannot find -lc: No such file or directory (linking shared libgcc). -- Joseph S. Myers joseph@codesourcery.com