vinayvenu / orthanc

Automatically exported from code.google.com/p/orthanc
GNU General Public License v3.0
1 stars 3 forks source link

Building error while LinuxCompilation #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
2.make

What do you see instead?
[  2%] Building CXX object 
CMakeFiles/CoreLibrary.dir/boost_1_54_0/libs/thread/src/pthread/once.cpp.o
In file included from 
/home/kostya/downloads/Orthanc-0.7.3/OrthancBuild/boost_1_54_0/boost/atomic.hpp:
12:0,
                 from /home/kostya/downloads/Orthanc-0.7.3/OrthancBuild/boost_1_54_0/boost/thread/pthread/once_atomic.hpp:20,
                 from /home/kostya/downloads/Orthanc-0.7.3/OrthancBuild/boost_1_54_0/boost/thread/once.hpp:20,
                 from /home/kostya/downloads/Orthanc-0.7.3/OrthancBuild/boost_1_54_0/libs/thread/src/pthread/./once_atomic.cpp:9,
                 from /home/kostya/downloads/Orthanc-0.7.3/OrthancBuild/boost_1_54_0/libs/thread/src/pthread/once.cpp:8:
/home/kostya/downloads/Orthanc-0.7.3/OrthancBuild/boost_1_54_0/boost/atomic/atom
ic.hpp:202:16: error: 'uintptr_t' was not declared in this scope
 typedef atomic<uintptr_t> atomic_uintptr_t;
                ^
/home/kostya/downloads/Orthanc-0.7.3/OrthancBuild/boost_1_54_0/boost/atomic/atom
ic.hpp:202:25: error: template argument 1 is invalid
 typedef atomic<uintptr_t> atomic_uintptr_t;
                         ^
/home/kostya/downloads/Orthanc-0.7.3/OrthancBuild/boost_1_54_0/boost/atomic/atom
ic.hpp:202:43: error: invalid type in declaration before ';' token
 typedef atomic<uintptr_t> atomic_uintptr_t;
                                           ^
CMakeFiles/CoreLibrary.dir/build.make:141: recipe for target 
'CMakeFiles/CoreLibrary.dir/boost_1_54_0/libs/thread/src/pthread/once.cpp.o' 
failed
make[2]: *** 
[CMakeFiles/CoreLibrary.dir/boost_1_54_0/libs/thread/src/pthread/once.cpp.o] 
Error 1
CMakeFiles/Makefile2:64: recipe for target 'CMakeFiles/CoreLibrary.dir/all' 
failed
make[1]: *** [CMakeFiles/CoreLibrary.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

What version of the product are you using? On what operating system?
cmake version 2.8.12.2
GNU Make 4.0
Archlinux 64bit

Original issue reported on code.google.com by skaar...@gmail.com on 3 Apr 2014 at 3:54

GoogleCodeExporter commented 9 years ago
Hello,

This is a problem that is linked to Boost 1.54.0, as reported as:
https://svn.boost.org/trac/boost/ticket/8973

Could you can try and manually patch the file "cstdint.hpp", located somewhere 
inside the directory "OrthancBuild/boost_1_54_0", as follows:
https://svn.boost.org/trac/boost/changeset/84950

Thanks for your report,
Sébastien-

Original comment by s.jodo...@gmail.com on 3 Apr 2014 at 4:02

GoogleCodeExporter commented 9 years ago
Versions of Orthanc above 0.7.4 use Boost >= 1.55.0, that ships a fix for this 
bug. I close the issue. Do not hesitate to reactivate it if the problem still 
occurs.

Original comment by s.jodo...@gmail.com on 4 Aug 2014 at 12:10