Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Building on ClearLinux Fails #52

Open
ldcastell opened this issue Jan 30, 2019 · 3 comments
Open

Building on ClearLinux Fails #52

ldcastell opened this issue Jan 30, 2019 · 3 comments

Comments

@ldcastell
Copy link

Hi,
I'm trying to build the project on ClearLinux OS here are my environment details:
CMake version: 3.13.3
GCC version: gcc (Clear Linux OS for Intel Architecture) 8.2.1 20180502

Errors:

[ 53%] Built target api_test_builds
Scanning dependencies of target clDNN_shlib
[ 53%] Building CXX object src/CMakeFiles/clDNN_shlib.dir/graph_optimizer/add_required_reorders.cpp.o
In file included from /home/daniel/cldnn/src/include/layout_optimizer.h:31,
                 from /home/daniel/cldnn/src/include/pass_manager.h:21,
                 from /home/daniel/cldnn/src/graph_optimizer/add_required_reorders.cpp:21:
/home/daniel/cldnn/src/include/generic_layer.hpp: In constructor ‘cldnn::generic_layer::generic_layer(const dto*)’:
/home/daniel/cldnn/src/include/generic_layer.hpp:64:111: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
         , generic_params(*static_cast<const kernel_selector::generic_kernel_params* const>(dto->generic_params))
                                                                                                               ^
cc1plus: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/clDNN_shlib.dir/build.make:63: src/CMakeFiles/clDNN_shlib.dir/graph_optimizer/add_required_reorders.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:92: src/CMakeFiles/clDNN_shlib.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:215: tests/CMakeFiles/tests.dir/rule] Error 2
make: *** [Makefile:190: tests] Error 2

any help will be deeply appreciated

@janblumenkamp
Copy link

I have the same problem on Manjaro Linux (Arch) with cmake version 3.12.4 and gcc (GCC) 8.2.1 20180831

@janblumenkamp
Copy link

Refer #56

@tripzero
Copy link

I removed the line "TreatWarnAsErrorEnabled" in CmakeLists.txt.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants