Re: [PATCH v2] libstdc++: Fix build for AVR [PR115481, PR111639]

2024-06-18 Thread Detlef Vollmann
On 6/14/24 19:59, Jonathan Wakely wrote: On Fri, 14 Jun 2024 at 18:45, Xi Ruoyao wrote: On Fri, 2024-06-14 at 19:37 +0200, Detlef Vollmann wrote: diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 5645e991af7..17dbae7bd87 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3

Re: [PATCH] libstdc++: Fix build for AVR [PR115481, PR111639]

2024-06-15 Thread Detlef Vollmann
On 6/15/24 10:30, Georg-Johann Lay wrote: Am 14.06.24 um 21:11 schrieb Detlef Vollmann: I actually plan anyway to run a test with the built libstdc++ on simulavr. As an aside, simulavr tries to simulate an exact match of the hardware including internal I/O like timers, IRQs, etc. For GCC

Re: [PATCH] libstdc++: Fix build for AVR [PR115481, PR111639]

2024-06-14 Thread Detlef Vollmann
On 6/14/24 19:45, Xi Ruoyao wrote: On Fri, 2024-06-14 at 19:37 +0200, Detlef Vollmann wrote: diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 5645e991af7..17dbae7bd87 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -5080,7 +5080,7 @@ else  We can&#

[PATCH] libstdc++: Fix build for AVR [PR115481, PR111639]

2024-06-14 Thread Detlef Vollmann
9112ae579f73b249e9515d5ac9ddc3a76b067c39 Author: Detlef Vollmann Date: Fri Jun 14 14:34:31 2024 +0200 libstdc++-v3: detect math functions when using avr-libc and handle macros Different versions of avr-libc have different definitions of math functions: - 2.0.0 and earlier have

Re: [committed] libstdc++: Move closing brace outside #endif [PR104866]

2022-03-14 Thread Detlef Vollmann
On 3/11/22 20:24, Detlef Vollmann wrote: On 3/11/22 18:59, Jonathan Wakely wrote: Thanks. Now I'm getting a build failure because libtol wasn't created in the avr/libstdc++-v3 directory of the build tree, but I'll have to look into that next week. /bin/sh: ../libtool:

Re: [committed] libstdc++: Move closing brace outside #endif [PR104866]

2022-03-11 Thread Detlef Vollmann
On 3/11/22 18:59, Jonathan Wakely wrote: Thanks. Now I'm getting a build failure because libtol wasn't created in the avr/libstdc++-v3 directory of the build tree, but I'll have to look into that next week. /bin/sh: ../libtool: No such file or directory Here's my configure call: $REPO_DIR/co

Re: [committed] libstdc++: Move closing brace outside #endif [PR104866]

2022-03-11 Thread Detlef Vollmann
On 3/11/22 16:12, Jonathan Wakely wrote: On Fri, 11 Mar 2022 at 14:28, Detlef Vollmann wrote: With this and the other fix I was able to build the complete libstdc++ for AVR based on AVR Libc 2.0 (plus some ad hoc AVR header fixes) from git master 5e28be89. Nice. I finally figure out that I

Re: [committed] libstdc++: Move closing brace outside #endif [PR104866]

2022-03-11 Thread Detlef Vollmann
Hi Jonathan, On 3/10/22 22:11, Jonathan Wakely wrote: Tested x86_64-linux, pushed to trunk. Thanks. With this and the other fix I was able to build the complete libstdc++ for AVR based on AVR Libc 2.0 (plus some ad hoc AVR header fixes) from git master 5e28be89. And a small example with pmr: