Skip to content

Clang: no member named 'allocate_tempblock' in 'bvector<A>' #76

Description

@willdealtry

Hi there,

I'm a big fan of BitMagic and we use it in our database for a variety of things. I'm trying to build with Clang for the first time and I'm getting the error 'no member named 'allocate_tempblock' in 'bvector', same goes for 'free_tempblock'. I might be missing something stupid, but I can't actually see those methods being defined directly on the bvector, is there something I need to #define?

Activity

  1. willdealtry commented on Jun 20, 2024

    @willdealtry
    Author

    It's related to the move constructor and move assignment in bulk_insert_iterator, if I comment those out everything works fine. Weirdly I can't work out why they were being moved anyway, I think Clang is doing something odd with lambda captures

  2. tlk00 commented on Jul 7, 2024

    @tlk00
    Owner

    Do you have a small code snippet for me to try? (I have clang on Mac).
    Or maybe even a patch?

  3. yoshiF7d commented on Sep 3, 2024

    @yoshiF7d

    I encountered the same problem. I tried to build ncbl blast from source with clang. this error occurred. google search lead me here. grep search tells that free_temblock is not defined anywhere. I don't know why it occures only with clang.
    $grep free_tempblock -R src
    src/bm.h: bvect_->free_tempblock(buf_);

  4. tlk00 commented on Sep 3, 2024

    @tlk00
    Owner

    I (think) I fixed the issue in the latest master branch.
    Please pick the new version and try.
    Master is supposed to be reasonable production grade at this point.

  5. yoshiF7d commented on Sep 6, 2024

    @yoshiF7d

    Thank you very much. I dodged the problem by commenting out the move method. I hope the issue is now fixed.

  6. willdealtry commented on Oct 29, 2024

    @willdealtry
    Author

    Excellent, thanks very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions