You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello adsnaider,
Thank you so much for the tool! When I install this on Gradescope Autograder, it shows the following errors. Do you know what I should do to solve it? Thank you!
bazel run :install_starrun -- -s /usr/local/bin/ bazel run :install_stargrade_gtest -- -s /usr/local/lib/ bazel run :install_stargrade_gtest_headers -- -s /usr/local/include/stargrade/
Use --sandbox_debug to see verbose messages from the sandbox gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 33 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
In file included from stargrade/gradescope/gradescope_test_results.cc:1:0:
./stargrade/gradescope/gradescope_test_results.h: In member function 'void stargrade::GradescopeTestResults::Output(absl::string_view)':
./stargrade/gradescope/gradescope_test_results.h:40:57: error: no match for 'operator=' (operand types are 'std::__cxx11::string {aka std::_cxx11::basic_string}' and 'absl::string_view')
inline void Output(absl::string_view str) { output = str; }
^~~
In file included from /usr/include/c++/7/string:52:0,
from ./stargrade/gradescope/gradescope_test_results.h:5,
from stargrade/gradescope/gradescope_test_results.cc:1:
/usr/include/c++/7/bits/basic_string.h:654:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(const basic_string& __str)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:654:7: note: no known conversion for argument 1 from 'absl::string_view' to 'const std::__cxx11::basic_string&'
/usr/include/c++/7/bits/basic_string.h:693:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(const _CharT* __s)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:693:7: note: no known conversion for argument 1 from 'absl::string_view' to 'const char*'
/usr/include/c++/7/bits/basic_string.h:704:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(_CharT __c)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:704:7: note: no known conversion for argument 1 from 'absl::string_view' to 'char'
/usr/include/c++/7/bits/basic_string.h:722:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(basic_string&& __str)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:722:7: note: no known conversion for argument 1 from 'absl::string_view' to 'std::__cxx11::basic_string&&'
/usr/include/c++/7/bits/basic_string.h:785:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(initializer_list<_CharT> __l)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:785:7: note: no known conversion for argument 1 from 'absl::string_view' to 'std::initializer_list'
Target //:install_starrun failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.990s, Critical Path: 1.91s
INFO: 17 processes: 10 internal, 7 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
The text was updated successfully, but these errors were encountered:
Hello adsnaider,
Thank you so much for the tool! When I install this on Gradescope Autograder, it shows the following errors. Do you know what I should do to solve it? Thank you!
bazel run :install_starrun -- -s /usr/local/bin/ bazel run :install_stargrade_gtest -- -s /usr/local/lib/ bazel run :install_stargrade_gtest_headers -- -s /usr/local/include/stargrade/
INFO: Analyzed target //:install_starrun (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /autograder/download/StarGrade/stargrade/gradescope/BUILD:65:11: C++ compilation of rule '//stargrade/gradescope:gradescope_test_results' failed (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 33 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 33 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
In file included from stargrade/gradescope/gradescope_test_results.cc:1:0:
./stargrade/gradescope/gradescope_test_results.h: In member function 'void stargrade::GradescopeTestResults::Output(absl::string_view)':
./stargrade/gradescope/gradescope_test_results.h:40:57: error: no match for 'operator=' (operand types are 'std::__cxx11::string {aka std::_cxx11::basic_string}' and 'absl::string_view')
inline void Output(absl::string_view str) { output = str; }
^~~
In file included from /usr/include/c++/7/string:52:0,
from ./stargrade/gradescope/gradescope_test_results.h:5,
from stargrade/gradescope/gradescope_test_results.cc:1:
/usr/include/c++/7/bits/basic_string.h:654:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(const basic_string& __str)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:654:7: note: no known conversion for argument 1 from 'absl::string_view' to 'const std::__cxx11::basic_string&'
/usr/include/c++/7/bits/basic_string.h:693:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(const _CharT* __s)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:693:7: note: no known conversion for argument 1 from 'absl::string_view' to 'const char*'
/usr/include/c++/7/bits/basic_string.h:704:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(_CharT __c)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:704:7: note: no known conversion for argument 1 from 'absl::string_view' to 'char'
/usr/include/c++/7/bits/basic_string.h:722:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(basic_string&& __str)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:722:7: note: no known conversion for argument 1 from 'absl::string_view' to 'std::__cxx11::basic_string&&'
/usr/include/c++/7/bits/basic_string.h:785:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]
operator=(initializer_list<_CharT> __l)
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:785:7: note: no known conversion for argument 1 from 'absl::string_view' to 'std::initializer_list'
Target //:install_starrun failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.990s, Critical Path: 1.91s
INFO: 17 processes: 10 internal, 7 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
The text was updated successfully, but these errors were encountered: