Skip to content
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

Gcc 11: error: 'this' pointer is null [-Werror=nonnull] #18

Closed
hushanxue opened this issue Sep 11, 2022 · 2 comments
Closed

Gcc 11: error: 'this' pointer is null [-Werror=nonnull] #18

hushanxue opened this issue Sep 11, 2022 · 2 comments
Labels
question Further information is requested

Comments

@hushanxue
Copy link

hushanxue commented Sep 11, 2022

When I use command: bazel test //...

I got this error:


ERROR: /root/work/secretflow/secretflow_lib/third_party/spu/spu/hal/BUILD.bazel:279:12: Compiling spu/hal/permute_util_test.cc 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 '-std=c++0x' -MD -MF ... (remaining 124 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
spu/hal/permute_util_test.cc: In static member function 'static spu::hal::Value spu::hal::{anonymous}::PermuteTest_1d_Test::TestBody()::<lambda(spu::HalContext*, const spu::hal::Value&)>::_FUN(spu::HalContext*, const spu::hal::Value&)':
spu/hal/permute_util_test.cc:42:3: error: 'this' pointer is null [-Werror=nonnull]
42 | };
| ^
spu/hal/permute_util_test.cc:40:28: note: in a call to non-static member function 'spu::hal::{anonymous}::PermuteTest_1d_Test::TestBody()::<lambda(spu::HalContext*, const spu::hal::Value&)>'
40 | auto permute_wrapper_3 = [](HalContext* ctx, const Value& input) {
| ^
spu/hal/permute_util_test.cc: In static member function 'static spu::hal::Value spu::hal::{anonymous}::PermuteTest_1d_Test::TestBody()::<lambda(spu::HalContext*, const spu::hal::Value&)>::_FUN(spu::HalContext*, const spu::hal::Value&)':
spu/hal/permute_util_test.cc:39:3: error: 'this' pointer is null [-Werror=nonnull]
39 | };
| ^
spu/hal/permute_util_test.cc:37:28: note: in a call to non-static member function 'spu::hal::{anonymous}::PermuteTest_1d_Test::TestBody()::<lambda(spu::HalContext*, const spu::hal::Value&)>'
37 | auto permute_wrapper_2 = [](HalContext* ctx, const Value& input) {
| ^
spu/hal/permute_util_test.cc: In static member function 'static spu::hal::Value spu::hal::{anonymous}::PermuteTest_1d_Test::TestBody()::<lambda(spu::HalContext*, const spu::hal::Value&)>::_FUN(spu::HalContext*, const spu::hal::Value&)':
spu/hal/permute_util_test.cc:35:3: error: 'this' pointer is null [-Werror=nonnull]
35 | };
..........
..........

@anakinxc
Copy link
Contributor

spu should not occur under secretflow_lib/third_party

Can you provide a detailed repro steps, include which docker image you are using, how you cloned repos and where you invoke this build?

Thanks

@6fj 6fj added the question Further information is requested label Sep 29, 2022
@anakinxc
Copy link
Contributor

Inactive, closing....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants