From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by sourceware.org (Postfix) with ESMTPS id 3BD9038618BE for ; Thu, 15 Feb 2024 15:19:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3BD9038618BE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=foss.st.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3BD9038618BE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=185.132.182.106 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708010376; cv=none; b=lGSTf2Zw+77N6WJP2IUgnhodEvFqJ44raVC1XWG8bDTeTzn/oAwU92fmjIIxEtEdEx0V6eYYZp/QGU96tAEAyDm5JhcTybxBA2lWkwS4vVAdvHoX8v99R/5dVjNrQ24l9ugppoYdS7xDC/kzRl2FR05ZB+87OIo3yX9PQidLt4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708010376; c=relaxed/simple; bh=szpbKd0yN8IBt5GALu5sup+KxAF+CH50jpp5S7Hmr2I=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:From:To; b=sgE/wHB/ahxQM9i89861mzMsS2yz3fbonSET+S/WTZmChy6qs/pRiZMACu22BuR0OcB2/hAimG8V9Q/aTgsO4VOsPG9JKKPbjZDgA7Bni1rY1pmJL7YAR3s9ebzcdJ3dYQx8xCVecXtBO49t3ww3F2iwOTb0qEpnVxC/Y7gc7WI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41FCx77V012195 for ; Thu, 15 Feb 2024 16:19:24 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:from:to:references :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=3mXx/0tjBw/uR8WreDKTvpecZXOVBNof5HppkNkBKek=; b=gL HrQjWiroJ4a+94cDQxYpD72VOs2DL7MUTH9siqqzmpLuA7DVU3AW5IJ8ZCqKvlCA ydd8Z3uSAxXPVmdxpNEuDS5M0Iz1fuobHoE3ZSd6CLQoO3ryA4kyuEfg3Nj5PgpK Vz/obcaiinI2CB2D0Nk/GwHzJeAnTcFcpn/U52hE7Ci2Jva75FOrLVKhXxtEo62W CvEReYdxNwkLTfiL9aVYKnSGHN+5vLZq3JRLtQXPjObb68oBPYKcI2s8Cd/p0iuu J3PDyXBRFbB42k3sZDUPn7w+xSy0JC/3wSoq4KBFaoJw6emM3vClZLycByKMpGsz kVorlsg4jZg1+riqGwPg== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3w62h143q6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 15 Feb 2024 16:19:24 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id EB3F240044 for ; Thu, 15 Feb 2024 16:19:19 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A1A3627FD39 for ; Thu, 15 Feb 2024 16:19:14 +0100 (CET) Received: from [10.74.18.1] (10.74.18.1) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 15 Feb 2024 16:19:14 +0100 Message-ID: Date: Thu, 15 Feb 2024 16:19:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: undefined reference to __ssputws_r with --specs=nano.specs Content-Language: en-US From: Torbjorn SVENSSON To: Newlib References: <15f5e1aa-e9a7-4a67-8eaa-b42f17f5a158@foss.st.com> In-Reply-To: <15f5e1aa-e9a7-4a67-8eaa-b42f17f5a158@foss.st.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.74.18.1] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-15_14,2024-02-14_01,2023-05-22_02 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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: Hi again, Anyone having some insights on the below question? Kind regards, Torbjörn On 2024-02-06 18:40, Torbjorn SVENSSON wrote: > Hi, > > I noticed that a lot of testcases fails when running the GCC testsuite > with --specs=nano.specs. > Below is an example that fails with --specs=nano.specs: > > $ /build/13-head-bin/bin/arm-none-eabi-g++ > /build/gcc13_src/gcc/testsuite/g++.dg/coroutines/pr100611.C -std=c++20 > --specs=nosys.specs -o /dev/null --specs=nano.specs > /build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: /build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/lib/libc_nano.a(libc_a-svfwprintf.o): in function `_svfwprintf_r': > (.text._svfwprintf_r+0xd8): undefined reference to `__ssputws_r' > /build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: (.text._svfwprintf_r+0x834): undefined reference to `__ssputws_r' > /build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: (.text._svfwprintf_r+0x85c): undefined reference to `__ssputws_r' > /build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: (.text._svfwprintf_r+0x8a8): undefined reference to `__ssputws_r' > /build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: (.text._svfwprintf_r+0x8dc): undefined reference to `__ssputws_r' > /build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: /build/13-head-bin/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/lib/libc_nano.a(libc_a-svfwprintf.o):(.text._svfwprintf_r+0x900): more undefined references to `__ssputws_r' follow > collect2: error: ld returned 1 exit status > > > The newlib nano is configured with: > > --disable-newlib-supplied-syscalls > --enable-newlib-reent-check-verify > --enable-newlib-reent-small > --enable-newlib-retargetable-locking > --disable-newlib-fvwrite-in-streamio > --disable-newlib-fseek-optimization > --disable-newlib-wide-orient > --enable-newlib-nano-malloc > --disable-newlib-unbuf-stream-opt > --enable-lite-exit > --enable-newlib-global-atexit > --enable-newlib-nano-formatted-io > --disable-nls > > > Is it expected that the symbol __ssputws_r is referenced but not > provided when (I presume this is the reason) > --enable-newlib-nano-formatted-io and --disable-newlib-wide-orient is used? > > Kind regards, > Torbjörn