Open thiagomacieira opened 5 years ago
Seems your environment sets CFLAGS as a global environment and it would take all history setting to build an object. But I think we can fix this failure by a slight modification in Makefiles.
Yes, I have a few CFLAGS more set. But enabling -Werror
for regular users of a project is inadviseable for exactly these reasons: your users will upgrade compilers, use different compilers and enable more optimisation options, ones you did not check. Just think of it this way: you can't test today with a compiler that will only exist in 2021.
It's fine for developers of a given project to enable -Werror
during development. Recommended, even.
But that option should not be enabled by default for users of that project. Please remove it from the releases.
SGX is a security centric project and we'd like to have high criteria for compiler options to avoid potential coding issues. -Werror option has been tested on all the OS version we currently support. For other distros we don't support currently and there may be issue in compiling with -Werror, it would be better to fix the compiling issue instead of disabling -Werror flag.
Let me be clear of what I am asking: you should have -Wall -Wextra -Werror
for your own developers, to increase code quality. I am just saying you shouldn't have -Werror
for your users, the fact that your code is security-sensitive nothwithstanding.
Unless you want to say that your software should never be used in any Linux distribution version that you didn't specifically test, including future versions of the versions you have tested.
If this is the position of the maintainers, I'll just stop trying to make Clear Linux support this SDK.
Unless you're testing with ALL compiler versions, including the unreleased ones. You're not testing the GCC version released one year ago.