Hi, On Mon, 7 Nov 2016 09:23:59 +0200 Kalle Raiskila <[email protected]> wrote:
> unrecognized command line option '-Wcovered-switch-default' This is a common error and is coming from the fact that the downloads from llvm.org are built using LLVM. Therefore `llvm-config -cxxflags` will return some flags ONLY recognized by LLVM, and when pocl build launches: gcc `llvm-config flags` pocl-llvm-source.cc, the whole thing blows up because gcc has no idea wtf you want. If you use LLVM built by LLVM, you must build pocl with LLVM as system compiler too. Same thing applies for GCC, if your LLVM was built with GCC, build pocl with GCC, otherwise it'll blow up the same way (on some other flag). cmake -DCMAKE_C_COMPILER=<path> -DCMAKE_CXX_COMPILER=<path> is your friend. This is one common reason the link test fails; another common reason is, the libLLVM libraries were linked on some other system, and the link test then can't find the required symbols (which is actually why i added this test). Cheers, -- mb ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
