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

Unable to build ydb with debug symbols #62

Closed
oleg68 opened this issue May 24, 2022 · 3 comments
Closed

Unable to build ydb with debug symbols #62

oleg68 opened this issue May 24, 2022 · 3 comments
Labels
area/blobstorage BlobStorage issues bug Something isn't working

Comments

@oleg68
Copy link

oleg68 commented May 24, 2022

I can build ydb with successfully in several hours.

cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/oleg/work/ydb/Ydb/clang.toolchain /home/oleg/work/ydb/Ydb /home/oleg/work/ydb/Ydb
ninja

But when I change -DCMAKE_BUILD_TYPE=Release to -DCMAKE_BUILD_TYPE=Debug, I receive an error at the linkinng stage:

cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=/home/oleg/work/ydb/Ydb/clang.toolchain /home/oleg/work/ydb/Ydb /home/oleg/work/ydb/Ydb
ninja
...
ld.lld: error: undefined symbol: NKikimr::NPDisk::YdbDefaultPDiskSequence

referenced by node_warden.h:52 (/home/oleg/work/ydb/Ydb/ydb/core/blobstorage/nodewarden/node_warden.h:52)
node_warden_pdisk.cpp.o:(NKikimr::TNodeWardenConfig::CreatePDiskKey() const) in archive ydb/core/blobstorage/nodewarden/libcore-blobstorage-nodewarden.a

ld.lld: error: undefined symbol: NKikimr::CreateBlobStorageGroupProxyMockActor()

referenced by node_warden_proxy.cpp:21 (/home/oleg/work/ydb/Ydb/ydb/core/blobstorage/nodewarden/node_warden_proxy.cpp:21)
node_warden_proxy.cpp.o:(NKikimr::NStorage::TNodeWarden::StartLocalProxy(unsigned int)) in archive ydb/core/blobstorage/nodewarden/libcore-blobstorage-nodewarden.a
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.


The full listing is attached [linkerr.txt](https://github.com/ydb-platform/ydb/files/8764504/linkerr.txt)
@fomichev3000 fomichev3000 added bug Something isn't working area/blobstorage BlobStorage issues labels May 27, 2022
@fomichev3000
Copy link
Member

Thanks for reporting an issue. Internal ticket is YDBOPS-5338, hope to fix it.

@fomichev3000
Copy link
Member

fomichev3000 commented May 28, 2022

I've found that the issue is about tests only, you can build server binary using ninja ydb/apps/ydbd/ydbd as a workaround in Debug mode.
Still working on the problem (KIKIMR-14996).

@fomichev3000
Copy link
Member

Fixed. Debug build also works for tests from now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/blobstorage BlobStorage issues bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants