xiaoxiang781216 commented on issue #8580: URL: https://github.com/apache/nuttx/issues/8580#issuecomment-1435823446
But, gsed isn't installed by default. It's better to finish the job with only POSIX defined features. BTW, it's also better to use the same approach to postpone the calling of C++ constructor in the simulator from before main to in the first user task(init). Linux rename __init_array_start/__init_array_end to _sinit/_einit in the link phase: https://github.com/apache/nuttx/blob/master/arch/sim/src/Makefile#L313-L325 https://github.com/apache/nuttx/blob/master/arch/sim/src/Makefile#L353-L359 macOS move the init section to the private array by a special constructor: https://github.com/apache/nuttx/blob/master/arch/sim/src/sim/posix/sim_macho_init.c On Sun, Feb 19, 2023 at 9:52 AM Tomasz CEDRO ***@***.***> wrote: > This one above is caused by: > > > https://github.com/apache/nuttx/blob/333707e1011ee6f17d85b455885b7b6787929b17/arch/sim/src/Makefile#L354-L358 > > Replacing sed with gsed fixes the issue :-) > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/nuttx/issues/8580#issuecomment-1435813237>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AEJ24FA2VLW5PMZ5CD6MXPLWYF4FZANCNFSM6AAAAAAVATTCEI> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> > -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org