unikraft / lib-musl

musl: A C standard library
Other
8 stars 27 forks source link

Missing implementation for `stdatomic` #36

Open craciunoiuc opened 1 year ago

craciunoiuc commented 1 year ago

Musl currently does not support the C11 standard for atomic variables, and as far as I know, it will never support it.

Unfortunately, plenty of applications depend on the respective header files to compile successfully.

As such, to avoid problems, one thing we could do is to implement stdatomic ourselves using gcc calls, as Unikraft is currently compiled with mostly gcc.

TechScribe-Deaf commented 5 months ago

I'm honestly confused, is there any technical reason why this can't be supported? It doesn't make sense to go about making a standard libc implementation and not support C standard.

craciunoiuc commented 5 months ago

As far as I remember, it heavily depends on the compiler used.

They decided to be compiler agnostic so no implementation for it.

That's why I still think we should add an option to make it available if needed as we use gcc and sometimes clang