Opened 13 months ago
Closed 13 months ago
#68475 closed defect (fixed)
thrift @0.18.1 fails to build on Sonoma: error: variable 'j' set but not used [-Werror,-Wunused-but-set-variable]
Reported by: | barracuda156 | Owned by: | Sergey Fedorov <svacchanda@…> |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma | Cc: | |
Port: | thrift |
Description
/usr/bin/clang++ -std=c++11 -DHAVE_CONFIG_H -I./src -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -DBOOST_TEST_DYN_LINK -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -Wall -Wextra -pedantic -Werror -pipe -I/opt/local/libexec/boost/1.76/include -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -MT src/thrift/generate/thrift-t_javame_generator.o -MD -MP -MF src/thrift/generate/.deps/thrift-t_javame_generator.Tpo -c -o src/thrift/generate/thrift-t_javame_generator.o `test -f 'src/thrift/generate/t_javame_generator.cc' || echo './'`src/thrift/generate/t_javame_generator.cc src/thrift/generate/t_java_generator.cc:5754:9: error: variable 'j' set but not used [-Werror,-Wunused-but-set-variable] int j = 0; ^ mv -f src/thrift/generate/.deps/thrift-t_haxe_generator.Tpo src/thrift/generate/.deps/thrift-t_haxe_generator.Po /usr/bin/clang++ -std=c++11 -DHAVE_CONFIG_H -I./src -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -DBOOST_TEST_DYN_LINK -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -Wall -Wextra -pedantic -Werror -pipe -I/opt/local/libexec/boost/1.76/include -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -MT src/thrift/generate/thrift-t_js_generator.o -MD -MP -MF src/thrift/generate/.deps/thrift-t_js_generator.Tpo -c -o src/thrift/generate/thrift-t_js_generator.o `test -f 'src/thrift/generate/t_js_generator.cc' || echo './'`src/thrift/generate/t_js_generator.cc mv -f src/thrift/generate/.deps/thrift-t_html_generator.Tpo src/thrift/generate/.deps/thrift-t_html_generator.Po /usr/bin/clang++ -std=c++11 -DHAVE_CONFIG_H -I./src -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -DBOOST_TEST_DYN_LINK -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -Wall -Wextra -pedantic -Werror -pipe -I/opt/local/libexec/boost/1.76/include -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -MT src/thrift/generate/thrift-t_json_generator.o -MD -MP -MF src/thrift/generate/.deps/thrift-t_json_generator.Tpo -c -o src/thrift/generate/thrift-t_json_generator.o `test -f 'src/thrift/generate/t_json_generator.cc' || echo './'`src/thrift/generate/t_json_generator.cc 1 error generated. make[3]: *** [src/thrift/generate/thrift-t_java_generator.o] Error 1 make[3]: *** Waiting for unfinished jobs....
Change History (3)
comment:1 Changed 13 months ago by barracuda156
comment:2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
A good example for why we don't like to use -Werror
in MacPorts.
The problem was already reported upstream:
https://github.com/apache/thrift/pull/2855
And the unused variable was removed:
https://github.com/apache/thrift/commit/bc9c04d8049d7d5f5cf4e63a25226c1fb8c930bf
We could apply this patch to the port.
comment:3 Changed 13 months ago by Sergey Fedorov <svacchanda@…>
Owner: | set to Sergey Fedorov <svacchanda@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
0.19.0 fails identically.