Compile error if i use rwlock or rcu into debug mode

Sysprogs forums Forums VisualKernel Compile error if i use rwlock or rcu into debug mode

This topic contains 1 reply, has 2 voices, and was last updated by  support 5 days, 17 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11498

    vemax78
    Participant

    Hi, I have a problem using rwlock or rcu (read-copy-update) if compile con visualkernel in debug mode. The compile failed with error “error : call to ‘__compiletime_assert_142’ declared with attribute error: Need native word sized stores/loads for atomicity.” The cause is to be attributed to disable all optimizations during compilation (rightly) by the -O0 parameter.

    Do you have any suggestions on how to use rwlock and rcu in debug mode without enabling optimizations ?

     

    Thanks

    Massimo

     

     

    #11500

    support
    Keymaster

    Hi,

    This looks like a bug of the Linux kernel itself. The easiest workaround would be to manually override the optimization level for the function that is causing the problem:

    • This reply was modified 5 days, 17 hours ago by  support.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.