From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by sourceware.org (Postfix) with ESMTPS id D03B2385841F for ; Mon, 19 Sep 2022 16:07:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D03B2385841F 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 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28JFdHYr032263; Mon, 19 Sep 2022 18:07:36 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=oOQp36wgScH4kp7CuQHQhzslvc8i9bZgUYgcA0ygc7w=; b=WooQYl/+LrHc3VrgBmTgqXSFAYdy/zt5Qsj7Mt9AGt//SdTYo2kWPR0p+j1snlXjzjpX z/UxIyaBPEGiI881NksPzLTJ98QSZ3K226Zv90STp7N2wIoN4IRg1AqZd1sLZhI13K18 URW/apSRIAbraVUHCuosMqQUqLD5Oqiyr/H8j6z0n1lzD4bPdxVYnWtLp3KZW3go5yYr HQA+xXc9ko92aUwR3F1ZrWNGkCSEaFyAqGuCSzcbeWS2ZGOYBuoaMmHvXtN9UOcXfrIY ebWP0J5T4ydb+hfvcfyey0xBvnjlP27NYeWYJfo+9jm3KYlsDcLqW/S1cAQLVgj22VeD 8Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3jn6a0n4x4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Sep 2022 18:07:36 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 981B310002A; Mon, 19 Sep 2022 18:07:35 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7FEB1245505; Mon, 19 Sep 2022 18:07:35 +0200 (CEST) Received: from [10.210.55.83] (10.75.127.123) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 18:07:32 +0200 Message-ID: Date: Mon, 19 Sep 2022 18:07:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: Unable to link C++ application with libstdc++ when newlib is used (gcc 13 and perhaps also 12) Content-Language: en-US To: Sebastian Huber , Newlib References: <9e4e280c-6c29-1b70-45a6-02988c6823ae@embedded-brains.de> From: Torbjorn SVENSSON In-Reply-To: <9e4e280c-6c29-1b70-45a6-02988c6823ae@embedded-brains.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.123] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-19_05,2022-09-16_01,2022-06-22_01 X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP 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: On 2022-09-19 17:28, Sebastian Huber wrote: > On 17/09/2022 19:45, Torbjorn SVENSSON wrote: >> I suppose the origin of the problem is the definition of the >> getentropy function in the newlib provided unistd.h, but what is the >> appropriate fix for it? >> - Create a stub function that just returns -1 and sets errno=ENOSYS? > > This should be fine. > What library should contain this? libnosys.a?