Git Product home page Git Product logo

Comments (8)

fiesh avatar fiesh commented on May 19, 2024 10

With boost 1.67 and clang-7, I can reproduce the issue with this:

echo '#include <boost/log/utility/setup.hpp>' > /tmp/a.cpp && clang++ -c -march=haswell /tmp/a.cpp
In file included from /tmp/a.cpp:1:
In file included from /usr/include/boost/log/utility/setup.hpp:20:
In file included from /usr/include/boost/log/utility/setup/common_attributes.hpp:22:
In file included from /usr/include/boost/log/attributes/counter.hpp:26:
In file included from /usr/include/boost/atomic/atomic.hpp:20:
In file included from /usr/include/boost/atomic/fences.hpp:21:
In file included from /usr/include/boost/atomic/detail/operations.hpp:17:
In file included from /usr/include/boost/atomic/detail/operations_lockfree.hpp:21:
In file included from /usr/include/boost/atomic/detail/ops_gcc_atomic.hpp:24:
/usr/include/boost/atomic/detail/ops_gcc_x86_dcas.hpp:408:16: error: address argument to atomic builtin cannot be const-qualified ('const volatile boost::atomics::detail::gcc_dcas_x86_64::storage_type *'
      (aka 'const volatile unsigned __int128 *') invalid)
        return __sync_val_compare_and_swap(&storage, value, value);
               ^                           ~~~~~~~~
1 error generated.

from atomic.

timgivois avatar timgivois commented on May 19, 2024 6

So basically, this is fixed in 1.69 which is incompatible with MacOS and that means you won't fix 1.67....

from atomic.

fiesh avatar fiesh commented on May 19, 2024 1

6e14ca2 indeed fixes the issue -- boost 1.69 works! Thanks!

from atomic.

Lastique avatar Lastique commented on May 19, 2024

I can't reproduce this. What clang version do you use?

from atomic.

Lastique avatar Lastique commented on May 19, 2024

from atomic.

Lastique avatar Lastique commented on May 19, 2024

from atomic.

fiesh avatar fiesh commented on May 19, 2024

On 12/18/18 3:18 PM, fiesh wrote: @Lastique Any chance this can be re-opened?
No, the problem has been fixed already.

Yeah that's why I had removed the comment before your answer and replaced it with the other one.

from atomic.

bilalebi avatar bilalebi commented on May 19, 2024

I had the same issue but upgrading to boost 1.72 solved it.

I'm on Mac Catalina

from atomic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.