Skip to content

Instantly share code, notes, and snippets.

@emmanuel-nwogu
Created April 10, 2023 10:48
Show Gist options
  • Save emmanuel-nwogu/ac359702b674c945dea7fe1608401371 to your computer and use it in GitHub Desktop.
Save emmanuel-nwogu/ac359702b674c945dea7fe1608401371 to your computer and use it in GitHub Desktop.
ITK CMakeError 5.3.0
Performing C SOURCE FILE Test C_HAS_WARNING-Wno-long-double failed with the following output:
Change Dir: /c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make.exe -f Makefile cmTC_ab219/fast && /usr/bin/make -f CMakeFiles/cmTC_ab219.dir/build.make CMakeFiles/cmTC_ab219.dir/build
make[1]: Entering directory '/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ab219.dir/src.c.o
/usr/bin/cc.exe -DC_HAS_WARNING-Wno-long-double -Wno-long-double -o CMakeFiles/cmTC_ab219.dir/src.c.o -c /c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp/src.c
<command-line>: warning: ISO C99 requires whitespace after the macro name
cc1: note: unrecognized command-line option '-Wno-long-double' may have been intended to silence earlier diagnostics
Linking C executable cmTC_ab219.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_ab219.dir/link.txt --verbose=1
/usr/bin/cc.exe -Wl,--enable-auto-import CMakeFiles/cmTC_ab219.dir/src.c.o -o cmTC_ab219.exe -Wl,--out-implib,libcmTC_ab219.dll.a -Wl,--major-image-version,0,--minor-image-version,0
make[1]: Leaving directory '/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/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: /c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make.exe -f Makefile cmTC_78fe9/fast && /usr/bin/make -f CMakeFiles/cmTC_78fe9.dir/build.make CMakeFiles/cmTC_78fe9.dir/build
make[1]: Entering directory '/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_78fe9.dir/src.cxx.o
/usr/bin/c++.exe -DCXX_HAS_WARNING-Wno-long-double -Wno-long-double -std=c++14 -o CMakeFiles/cmTC_78fe9.dir/src.cxx.o -c /c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp/src.cxx
<command-line>: warning: ISO C++11 requires whitespace after the macro name
cc1plus: note: unrecognized command-line option '-Wno-long-double' may have been intended to silence earlier diagnostics
Linking CXX executable cmTC_78fe9.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_78fe9.dir/link.txt --verbose=1
/usr/bin/c++.exe -Wl,--enable-auto-import CMakeFiles/cmTC_78fe9.dir/src.cxx.o -o cmTC_78fe9.exe -Wl,--out-implib,libcmTC_78fe9.dll.a -Wl,--major-image-version,0,--minor-image-version,0
make[1]: Leaving directory '/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp'
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test CXX_HAS_WARNING-Wno-undefined-var-template failed with the following output:
Change Dir: /c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make.exe -f Makefile cmTC_ffa7d/fast && /usr/bin/make -f CMakeFiles/cmTC_ffa7d.dir/build.make CMakeFiles/cmTC_ffa7d.dir/build
make[1]: Entering directory '/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_ffa7d.dir/src.cxx.o
/usr/bin/c++.exe -DCXX_HAS_WARNING-Wno-undefined-var-template -Wno-undefined-var-template -std=c++14 -o CMakeFiles/cmTC_ffa7d.dir/src.cxx.o -c /c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp/src.cxx
<command-line>: warning: ISO C++11 requires whitespace after the macro name
cc1plus: note: unrecognized command-line option '-Wno-undefined-var-template' may have been intended to silence earlier diagnostics
Linking CXX executable cmTC_ffa7d.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_ffa7d.dir/link.txt --verbose=1
/usr/bin/c++.exe -Wl,--enable-auto-import CMakeFiles/cmTC_ffa7d.dir/src.cxx.o -o cmTC_ffa7d.exe -Wl,--out-implib,libcmTC_ffa7d.dll.a -Wl,--major-image-version,0,--minor-image-version,0
make[1]: Leaving directory '/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp'
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test CXX_HAS_DISABLE_OPTIMIZATION_FLAG failed with the following output:
Change Dir: /c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make.exe -f Makefile cmTC_09587/fast && /usr/bin/make -f CMakeFiles/cmTC_09587.dir/build.make CMakeFiles/cmTC_09587.dir/build
make[1]: Entering directory '/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_09587.dir/src.cxx.o
/usr/bin/c++.exe -DCXX_HAS_DISABLE_OPTIMIZATION_FLAG -std=c++14 -o CMakeFiles/cmTC_09587.dir/src.cxx.o -c /c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp/src.cxx
/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp/src.cxx:1:1: error: expected unqualified-id before '-' token
1 | -O0
| ^
make[1]: *** [CMakeFiles/cmTC_09587.dir/build.make:78: CMakeFiles/cmTC_09587.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/c/Users/nwogu/OneDrive/Documents/4mLab/ITK-build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_09587/fast] Error 2
Source file was:
-O0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment