[ITK] [ITK-users] ITK 4.12 build issues with cmake 2.8.12

Anchit Dhar Anchit.Dhar at mathworks.com
Fri Sep 29 16:50:18 EDT 2017


Hello,

I am trying to build ITK 4.12 with cmake 2.8.12 on a linux machine with GCC 6.3. My build fails at the configuration sets with the error snippets added below.

I was wondering if there are any known/open build issues with this combination on cmake and ITK? Does anyone have any pointers on resolving these configuration issues?

Thanks in advance.

Regards,
Anchit.

Error Snippet

Performing C SOURCE FILE Test C_HAS_WARNING-Wno-long-double failed with the following output:
Change Dir: /home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp

Run Build Command:"/internal/2106168/glnxa64/gmake/bin/gmake" "cmTC_91c4b/fast"
gmake[2]: Entering directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
/internal/2106168/glnxa64/gmake/bin/gmake -f CMakeFiles/cmTC_91c4b.dir/build.make CMakeFiles/cmTC_91c4b.dir/build
gmake[3]: Entering directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_91c4b.dir/src.c.o
/internal/2501977/glnxa64/gcc-6.3.0/bin/gcc    -O2 -pipe -pthread -fPIC -DC_HAS_WARNING-Wno-long-double   -Wno-long-double -o CMakeFiles/cmTC_91c4b.dir/src.c.o   -c /home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp/src.c
<command-line>:0:14: warning: ISO C99 requires whitespace after the macro name
cc1: warning: unrecognized command line option ‘-Wno-long-double’
Linking C executable cmTC_91c4b
/home/adhar/3p-tmw/3p/private/unknown/glnxa64/cmake-bin/glnx86/cmake -E cmake_link_script CMakeFiles/cmTC_91c4b.dir/link.txt --verbose=1
/internal/2501977/glnxa64/gcc-6.3.0/bin/gcc  -O2 -pipe -pthread -fPIC -DC_HAS_WARNING-Wno-long-double  -pthread -Wl,--hash-style=both -L/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/lib -Wl,-rpath-link,/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/lib  CMakeFiles/cmTC_91c4b.dir/src.c.o  -o cmTC_91c4b -rdynamic
gmake[3]: Leaving directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
gmake[2]: Leaving directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'

Source file was:
int main(void) { return 0; }
Performing C++ SOURCE FILE Test CXX_HAS_WARNING-Wno-long-double failed with the following output:
Change Dir: /home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp

Run Build Command:"/internal/2106168/glnxa64/gmake/bin/gmake" "cmTC_82695/fast"
gmake[2]: Entering directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
/internal/2106168/glnxa64/gmake/bin/gmake -f CMakeFiles/cmTC_82695.dir/build.make CMakeFiles/cmTC_82695.dir/build
gmake[3]: Entering directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_82695.dir/src.cxx.o
/internal/2501977/glnxa64/gcc-6.3.0/bin/g++     -O2 -pipe -pthread -fPIC  -std=c++11 -DCXX_HAS_WARNING-Wno-long-double   -Wno-long-double -o CMakeFiles/cmTC_82695.dir/src.cxx.o -c /home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp/src.cxx
<command-line>:0:16: warning: ISO C++11 requires whitespace after the macro name
cc1plus: warning: unrecognized command line option ‘-Wno-long-double’
Linking CXX executable cmTC_82695
/home/adhar/3p-tmw/3p/private/unknown/glnxa64/cmake-bin/glnx86/cmake -E cmake_link_script CMakeFiles/cmTC_82695.dir/link.txt --verbose=1
/internal/2501977/glnxa64/gcc-6.3.0/bin/g++   -O2 -pipe -pthread -fPIC  -std=c++11 -DCXX_HAS_WARNING-Wno-long-double  -pthread -Wl,--hash-style=both -L/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/lib -Wl,-rpath-link,/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/lib  CMakeFiles/cmTC_82695.dir/src.cxx.o  -o cmTC_82695 -rdynamic
gmake[3]: Leaving directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
gmake[2]: Leaving directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0;}
Performing C++ SOURCE FILE Test have_gold failed with the following output:
Change Dir: /home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp

Run Build Command:"/internal/2106168/glnxa64/gmake/bin/gmake" "cmTC_93f61/fast"
gmake[2]: Entering directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
/internal/2106168/glnxa64/gmake/bin/gmake -f CMakeFiles/cmTC_93f61.dir/build.make CMakeFiles/cmTC_93f61.dir/build
gmake[3]: Entering directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_93f61.dir/src.cxx.o
/internal/2501977/glnxa64/gcc-6.3.0/bin/g++     -O2 -pipe -pthread -fPIC  -std=c++11  -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel -Dhave_gold  -fuse-ld=gold   -o CMakeFiles/cmTC_93f61.dir/src.cxx.o -c /home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_93f61
/home/adhar/3p-tmw/3p/private/unknown/glnxa64/cmake-bin/glnx86/cmake -E cmake_link_script CMakeFiles/cmTC_93f61.dir/link.txt --verbose=1
/internal/2501977/glnxa64/gcc-6.3.0/bin/g++   -O2 -pipe -pthread -fPIC  -std=c++11  -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel -Dhave_gold  -fuse-ld=gold  -pthread -Wl,--hash-style=both -L/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/lib -Wl,-rpath-link,/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/lib  CMakeFiles/cmTC_93f61.dir/src.cxx.o  -o cmTC_93f61 -rdynamic
/internal/2501977/glnxa64/gcc-6.3.0/bin/ld.gold: -plugin: unknown option
/internal/2501977/glnxa64/gcc-6.3.0/bin/ld.gold: use the --help option for usage information
collect2: error: ld returned 1 exit status
gmake[3]: Leaving directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
gmake[3]: *** [CMakeFiles/cmTC_93f61.dir/build.make:98: cmTC_93f61] Error 1
gmake[2]: *** [Makefile:126: cmTC_93f61/fast] Error 2
gmake[2]: Leaving directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/CMakeFiles/CMakeTmp'
.
.
.
.
.
.
.

/home/adhar/3p-tmw/3p/sources/ITK/Modules/ThirdParty/KWSys/src/KWSys/kwsysPlatformTestsCXX.cxx:24:1: error: ‘__int64’ does not name a type
__int64 f(__int64 n)
^~~~~~~
/home/adhar/3p-tmw/3p/sources/ITK/Modules/ThirdParty/KWSys/src/KWSys/kwsysPlatformTestsCXX.cxx: In function ‘int main()’:
/home/adhar/3p-tmw/3p/sources/ITK/Modules/ThirdParty/KWSys/src/KWSys/kwsysPlatformTestsCXX.cxx:30:3: error: ‘__int64’ was not declared in this scope
   __int64 n = 0;
   ^~~~~~~
/home/adhar/3p-tmw/3p/sources/ITK/Modules/ThirdParty/KWSys/src/KWSys/kwsysPlatformTestsCXX.cxx:31:29: error: ‘n’ was not declared in this scope
   return static_cast<int>(f(n));
                             ^
/home/adhar/3p-tmw/3p/sources/ITK/Modules/ThirdParty/KWSys/src/KWSys/kwsysPlatformTestsCXX.cxx:31:30: error: ‘f’ was not declared in this scope
   return static_cast<int>(f(n));
                              ^
gmake[3]: *** [CMakeFiles/cmTC_797a6.dir/build.make:66: CMakeFiles/cmTC_797a6.dir/kwsysPlatformTestsCXX.cxx.o] Error 1
.
.
.
.
.
.
.
Checking whether CXX compiler has _atoi64 failed to compile with the following output:
Change Dir: /home/adhar/3p-tmw/3p/derived/glnxa64/ITK/Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/CMakeTmp

Run Build Command:"/internal/2106168/glnxa64/gmake/bin/gmake" "cmTC_82d35/fast"
gmake[2]: Entering directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/CMakeTmp'
/internal/2106168/glnxa64/gmake/bin/gmake -f CMakeFiles/cmTC_82d35.dir/build.make CMakeFiles/cmTC_82d35.dir/build
gmake[3]: Entering directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_82d35.dir/kwsysPlatformTestsCXX.cxx.o
/internal/2501977/glnxa64/gcc-6.3.0/bin/g++   -DTEST_KWSYS_CXX_HAS__ATOI64  -O2 -pipe -pthread -fPIC  -std=c++11  -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel  -w  -fPIE   -o CMakeFiles/cmTC_82d35.dir/kwsysPlatformTestsCXX.cxx.o -c /home/adhar/3p-tmw/3p/sources/ITK/Modules/ThirdParty/KWSys/src/KWSys/kwsysPlatformTestsCXX.cxx
/home/adhar/3p-tmw/3p/sources/ITK/Modules/ThirdParty/KWSys/src/KWSys/kwsysPlatformTestsCXX.cxx: In function ‘int main()’:
/home/adhar/3p-tmw/3p/sources/ITK/Modules/ThirdParty/KWSys/src/KWSys/kwsysPlatformTestsCXX.cxx:252:38: error: ‘_atoi64’ was not declared in this scope
   return static_cast<int>(_atoi64(str));
                                      ^
gmake[3]: *** [CMakeFiles/cmTC_82d35.dir/build.make:66: CMakeFiles/cmTC_82d35.dir/kwsysPlatformTestsCXX.cxx.o] Error 1
gmake[3]: Leaving directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/CMakeTmp'
gmake[2]: *** [Makefile:126: cmTC_82d35/fast] Error 2
gmake[2]: Leaving directory '/home/adhar/3p-tmw/3p/derived/glnxa64/ITK/Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/CMakeTmp'




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170929/79b3e359/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list