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

compile error for tag-0.9.0, may be a code bug #52

Open
LiuBuHe opened this issue Jun 6, 2023 · 2 comments
Open

compile error for tag-0.9.0, may be a code bug #52

LiuBuHe opened this issue Jun 6, 2023 · 2 comments

Comments

@LiuBuHe
Copy link

LiuBuHe commented Jun 6, 2023

In file osd_primary_subops.cpp, its function submit_primary_stab_subops maybe lost a couple of brace for member "len" of struct blockstore_op_t
void osd_t::submit_primary_stab_subops(osd_op_t *cur_op)
{
……
subops[i].bs_op = new blockstore_op_t((blockstore_op_t){
.opcode = BS_OP_STABLE,
.callback = [subop = &subops[i], this](blockstore_op_t bs_subop)
{
handle_primary_bs_subop(subop);
},
{
.len = (uint32_t)stab_osd.len,
},
.buf = (void
)(op_data->unstable_writes + stab_osd.start),
});
bs->enqueue_op(subops[i].bs_op);
}
……
}

@vitalif
Copy link
Owner

vitalif commented Jun 6, 2023

Hi. Which compiler did you use? There's an anonymous union which doesn't work really well with all compilers, but for debian buster-bullseye-sid and for centos 7-8-9 gcc and llvm it works fine.

@LiuBuHe
Copy link
Author

LiuBuHe commented Jun 7, 2023

I compiled it on Euler with gcc 10.3.1, and just use command "cmake .. && make" to get executable binary files

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

No branches or pull requests

2 participants