Skip to content

[Bug]: build with asan error in aarch64 #381

@AeloriaDev

Description

@AeloriaDev

Describe the bug

使能asan构建时,报错,信息如下
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ld.lld: error: relocation refers to a discarded section: .note.GNU-stack

defined in bazel-out/aarch64-fastbuild/bin/external/brpc~/_objs/bthread/context.pic.o
referenced by context.cpp
bazel-out/aarch64-fastbuild/bin/external/brpc~/_objs/bthread/context.pic.o:(.init_array.00099+0x0)
collect2: error: ld returned 1 exit status

Steps To Reproduce

bazel build --config asan //...

Expected behavior

无错

Version

v0.6.0.dev260105

Operating system

devtools aarch64 ubuntu jammy

Hardware Resources

8c 32g

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions