banditcpp / bandit

Human-friendly unit testing for C++11
https://banditcpp.github.io/bandit/
Other
259 stars 37 forks source link

Possibly broken CMake? #137

Closed IngwiePhoenix closed 5 years ago

IngwiePhoenix commented 5 years ago

I tried to build Bandit, but this happened. Beware, very long output.

Ingwie@Ingwies-Macbook-Pro.local ~/W/G/b/out $ cmake -G Ninja ..
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Ingwie/Work/Git/bandit/out
Ingwie@Ingwies-Macbook-Pro.local ~/W/G/b/out $ ninja
[1/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/failure_formatters/posix.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/failure_formatters/posix.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/failure_formatters/posix.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/failure_formatters/posix.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/failure_formatters/posix.cpp.o -c ../specs/failure_formatters/posix.cpp
In file included from ../specs/failure_formatters/posix.cpp:1:
In file included from ../specs/specs.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[2/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/fuzzbox.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/fuzzbox.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/fuzzbox.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/fuzzbox.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/fuzzbox.cpp.o -c ../specs/fuzzbox.cpp
In file included from ../specs/fuzzbox.cpp:1:
In file included from ../specs/specs.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[3/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/main.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/main.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/main.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/main.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/main.cpp.o -c ../specs/main.cpp
In file included from ../specs/main.cpp:1:
In file included from ../specs/specs.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[4/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/context.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/context.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/context.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/context.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/context.cpp.o -c ../specs/context.cpp
In file included from ../specs/context.cpp:1:
In file included from ../specs/specs.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[5/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/failure_formatters/visual_studio.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/failure_formatters/visual_studio.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/failure_formatters/visual_studio.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/failure_formatters/visual_studio.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/failure_formatters/visual_studio.cpp.o -c ../specs/failure_formatters/visual_studio.cpp
In file included from ../specs/failure_formatters/visual_studio.cpp:1:
In file included from ../specs/specs.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[6/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/it.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/it.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/it.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/it.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/it.cpp.o -c ../specs/it.cpp
In file included from ../specs/it.cpp:1:
In file included from ../specs/fakes/fake_context.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[7/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/before_each_after_each.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/before_each_after_each.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/before_each_after_each.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/before_each_after_each.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/before_each_after_each.cpp.o -c ../specs/before_each_after_each.cpp
In file included from ../specs/before_each_after_each.cpp:1:
In file included from ../specs/fakes/fake_context.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[8/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/describe.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/describe.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/describe.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/describe.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/describe.cpp.o -c ../specs/describe.cpp
In file included from ../specs/describe.cpp:1:
In file included from ../specs/fakes/fake_context.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[9/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/colorizer.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/colorizer.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/colorizer.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/colorizer.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/colorizer.cpp.o -c ../specs/colorizer.cpp
In file included from ../specs/colorizer.cpp:1:
In file included from ../specs/specs.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[10/20] Building CXX object CMakeFiles/bandit-specs.dir/specs/options.cpp.o
FAILED: CMakeFiles/bandit-specs.dir/specs/options.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -I../ -Wdeprecated -Wdeprecated-declarations -Wshadow -Wall -W -Werror     -Wno-error=unknown-pragmas -Wfloat-equal -Wundef -Wendif-labels -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/bandit-specs.dir/specs/options.cpp.o -MF CMakeFiles/bandit-specs.dir/specs/options.cpp.o.d -o CMakeFiles/bandit-specs.dir/specs/options.cpp.o -c ../specs/options.cpp
In file included from ../specs/options.cpp:2:
In file included from ../specs/specs.h:4:
In file included from ../bandit/bandit.h:12:
In file included from ../bandit/grammar.h:4:
In file included from ../bandit/controller.h:5:
In file included from ../bandit/adapters.h:4:
../bandit/adapters/snowhouse.h:6:10: fatal error: 'bandit/assertion_frameworks/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.

Is there a way I can fix this?

sbeyer commented 5 years ago

For me it looks like you have not cloned the snowhouse submodule. Please see the "Download" section of the documentation.

IngwiePhoenix commented 5 years ago

Oops, that was indeed what I missed! Sorry for that blooper ^^;