Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails on debian with clang #396

Open
pieper opened this issue Feb 9, 2020 · 0 comments
Open

build fails on debian with clang #396

pieper opened this issue Feb 9, 2020 · 0 comments
Labels

Comments

@pieper
Copy link
Member

pieper commented Feb 9, 2020

Related to #394 and #395, I tried building with clang but got yet a third kind of build error.

Command:

cmake -DCMAKE_CXX_COMPILER=clang ../dcmqi

Error

[ 78%] Building CXX object Modules/ThirdParty/DICOMParser/src/DICOMParser/CMakeFiles/ITKDICOMParser.dir/DICOMFile.cxx.o
In file included from /home/pieper/dcmqi-superbuild/ITK/Modules/ThirdParty/DICOMParser/src/DICOMParser/DICOMFile.cxx:29:
/home/pieper/dcmqi-superbuild/ITK/Modules/ThirdParty/DICOMParser/src/DICOMParser/DICOMFile.h:51:28: error: no type named 'string' in the global namespace; did you mean 'std::string'?
  bool Open(const dicom_stl::string& filename);
                           ^~~~~~~~
                           std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
  typedef basic_string<char>    string;   
                                ^
/home/pieper/dcmqi-superbuild/ITK/Modules/ThirdParty/DICOMParser/src/DICOMParser/DICOMFile.cxx:61:37: error: no type named 'string' in the global namespace; did you mean 'std::string'?
bool DICOMFile::Open(const dicom_stl::string& filename)
                                    ^~~~~~~~
                                    std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
  typedef basic_string<char>    string;   
                                ^
2 errors generated.
Modules/ThirdParty/DICOMParser/src/DICOMParser/CMakeFiles/ITKDICOMParser.dir/build.make:110: recipe for target 'Modules/ThirdParty/DICOMParser/src/DICOMParser/CMakeFiles/ITKDICOMParser.dir/DICOM
File.cxx.o' failed
make[5]: *** [Modules/ThirdParty/DICOMParser/src/DICOMParser/CMakeFiles/ITKDICOMParser.dir/DICOMFile.cxx.o] Error 1
CMakeFiles/Makefile2:4791: recipe for target 'Modules/ThirdParty/DICOMParser/src/DICOMParser/CMakeFiles/ITKDICOMParser.dir/all' failed
make[4]: *** [Modules/ThirdParty/DICOMParser/src/DICOMParser/CMakeFiles/ITKDICOMParser.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/ITK.dir/build.make:113: recipe for target 'ITK-prefix/src/ITK-stamp/ITK-build' failed
make[2]: *** [ITK-prefix/src/ITK-stamp/ITK-build] Error 2
CMakeFiles/Makefile2:146: recipe for target 'CMakeFiles/ITK.dir/all' failed
make[1]: *** [CMakeFiles/ITK.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants