<p dir="ltr"><br>
El 2/9/2015 5:28, "Sebastian Huber" <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> escribió:<br>
><br>
><br>
><br>
> On 02/09/15 02:50, Chris Johns wrote:<br>
>><br>
>> On 1/09/2015 8:52 pm, Daniel Gutson wrote:<br>
>>><br>
>>> ><br>
>>> >El 31/7/2015 3:28, "Chris Johns" <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a><br>
>>> ><mailto:<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>>> escribió:<br>
>>>><br>
>>>> >><br>
>>>> >>On 31/07/2015 4:11 pm, Sebastian Huber wrote:<br>
>>>>><br>
>>>>> >> >For synchronization objects use the self-contained objects available via<br>
>>>>> >> >Newlib <sys/lock.h>.<br>
>>>>> >> ><br>
>>>>> >> ><br>
>>><br>
>>> ><a href="https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=ecaef05f6601f1e8acb78fb65b411a258f39988a">https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=ecaef05f6601f1e8acb78fb65b411a258f39988a</a><br>
>>>>><br>
>>>>> >> ><br>
>>>>> >> >Enable the C++11 threads using <pthread.h>. So, the threads are only<br>
>>>>> >> >supported in case the POSIX API is enabled in RTEMS. In the long run<br>
>>>>> >> >support for thread join and detach should be added to the API<br>
>>>>> >> >independent RTEMS services.<br>
>>>>> >> ><br>
>>>><br>
>>>> >><br>
>>>> >>Is this for 4.12 ?<br>
>>>> >><br>
>>>> >>What happens if I build RTEMS with --disable-posix ? If I use locale in<br>
>>>> >>C++ it pulls in the 'once' support which pulls in this file which would<br>
>>>> >>give unresolved externals. There is a PR against me for libstdc++ not<br>
>>>> >>checking the return code. Is it time for the --enable-posix option to go<br>
>>>> >>and to always nave it enabled ?<br>
>>><br>
>>> ><br>
>>> >Please don't. The POSIX layer takes valuable resurces and it is not<br>
>>> >always needed.<br>
>>> ><br>
>><br>
>> Maybe we should look into this and fix the reasons. Any code not<br>
>> required should not be included. This is an on going effort in RTEMS and<br>
>> it requires we expose the cases.<br>
><br>
><br>
> We have all the infrastructure to fix this. One part is<br>
><br>
> CFLAGS += -ffunction-sections -fdata-sections<br>
> LDFLAGS += -Wl,--gc-sections<br>
><br>
> The other part a linker set based initialization (fully implemented in libbsd). One issue is that we have to add support for this in all linker command files. So we need just someone who has time to do this.</p>
<p dir="ltr">Could you please create a ticket for this dumping all the useful informatiom you have in your head there :) since we are interested so we'll likely do it, and any further question can be discussed in the ticket.</p>
<p dir="ltr">><br>
><br>
> -- <br>
> Sebastian Huber, embedded brains GmbH<br>
><br>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
> Phone : +49 89 189 47 41-16<br>
> Fax : +49 89 189 47 41-09<br>
> E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a><br>
> PGP : Public key available on request.<br>
><br>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
><br>
</p>