-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: update gn build flags for deps #50930
Conversation
/cc @nodejs/gyp @anonrig |
cc @lemire maybe we can fix it upstream |
We can try to fix them upstream, but it will not just be a few lines changes. Some of the errors are from machine generated code:
simdutf_warn_unused result implementation::convert_utf32_to_latin1_with_errors(const char32_t* buf, size_t len, char* latin1_output) const noexcept {
return scalar::utf32_to_latin1::convert_with_errors(buf,len,latin1_output);
std::pair<result, char*> ret = avx2_convert_utf32_to_latin1_with_errors(buf, len, latin1_output); And some are intentional:
/* can't be reached */
return nullptr;
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This touches code from our deps, it should land there first otherwise it's going to be overwritten by the next update.
These |
@anonrig Correct. Let us fix these issues upstream. |
@anonrig Bumping simdjson to 3.6.1 should help https://github.com/simdjson/simdjson/releases/tag/v3.6.1 |
Thanks @lemire, I'll trigger the update script. |
@anonrig Bumping simdutf to 4.0.6 should help as well https://github.com/simdutf/simdutf/releases/tag/v4.0.6 |
@lemire Thank you so much! I confirm the warnings have been fixed with simdutf 4.0.6 and simdjson 3.6.1. |
@lemire There are actually a few other warnings disabled when compiling -Wc++98-compat-extra-semi../../node/deps/simdutf/simdutf.cpp:5698:83: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] 5698 | simdutf_really_inline result::result() : error{error_code::SUCCESS}, count{0} {}; | ^ ../../node/deps/simdutf/simdutf.cpp:5700:99: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] 5700 | simdutf_really_inline result::result(error_code _err, size_t _pos) : error{_err}, count{_pos} {}; | ^ ../../node/deps/simdutf/simdutf.cpp:26136:4: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] 26136 | }; | ^ ../../node/deps/simdutf/simdutf.cpp:28472:2: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] 28472 | }; | ^ ../../node/deps/simdutf/simdutf.cpp:28486:2: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] 28486 | }; | ^ ../../node/deps/simdutf/simdutf.cpp:29047:2: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] 29047 | }; | ^ ../../node/deps/simdutf/simdutf.cpp:32513:4: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi] 32513 | }; | ^ 7 errors generated. -Wunreachable-code-break../../node/deps/simdutf/simdutf.cpp:20732:9: error: 'break' will never be executed [-Werror,-Wunreachable-code-break] 20732 | break; | ^~~~~ |
There will be another simdutf patch release. |
@anonrig New patch release with a few more fixes https://github.com/simdutf/simdutf/releases/tag/v4.0.7 |
V8 recently updated node-ci to use a newer version of clang, which requires us to disable a few warnings in deps.