Description of problem: boost headers (and web page) support up to 3.4. When compiling a simple C++ file with clang++-3.5 that includes boost/thread.hpp and uses the -march compilation options the compilation fails Version-Release number of selected component (if applicable): boost-1.55 from frdora 21 clang 3.5.0 from fedora 21 How reproducible: Always (see simple source code below) == source == #include <iostream> #include <boost/thread.hpp> #include <boost/date_time.hpp> using namespace std; void workerFunc() { boost::posix_time::seconds workTime(3); cout << "Worker: running" << endl; boost::this_thread::sleep(workTime); cout << "Worker: finished" << endl; } int main(int argc, char* argv[]) { cout << "main: startup" << endl; boost::thread workerThread(workerFunc); cout << "main: waiting for thread" << endl; workerThread.join(); cout << "main: done" << endl; return 0; } === compilation === clang++ thr1.cpp -o thr -lboost_thread ==> OK clang++ -march=core2 thr1.cpp -o thr -lboost_thread ==> FAIL clang++ -march=native thr1.cpp -o thr -lboost_thread ==> FAIL == workaround == Add -DBOOST_HAS_INT128 since clang 3.5.0 actually has it clang++ -march=native -DBOOST_HAS_INT128 thr1.cpp -o thr1 -lboost_thread ==> OK == Note == compilation with clang 3.4 (before upgrade) was OK compilation with gcc is of course OK
See more here (+ patch) https://trac.macports.org/ticket/42282
Arguably this is a clang problem (lack of full support for 128-bit integers), but since there are patches, we might as well backport them. Per the macports ticket, 6bb71fdd8f7cc and e4bde20f2eec0 contain the fixes. I don't see more commits upstream for the same issue.
Ah, now I see. The problem is that Boost does not realize that 128-bit integers are actually supported.
boost-1.55.0-6.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/boost-1.55.0-6.fc21
Package boost-1.55.0-6.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing boost-1.55.0-6.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-0063/boost-1.55.0-6.fc21 then log in and leave karma (feedback).
boost-1.55.0-6.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.