Codelite 10.0.1 fails to compile with: --- sdk/codelite_indexer/CMakeFiles/codelite_indexer.dir/libctags/fortran.c.o --- --- sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/all --- --- sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/cli/cmdlineparser.cpp.o --- In file included from /ram/usr/ports/editors/codelite/work/codelite-10.0/sdk/codelite_cppcheck/cli/cmdlineparser.cpp:26: /usr/local/include/check.h:686:37: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g", \ ^ /usr/local/include/check.h:686:53: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g", \ ^ /usr/local/include/check.h:698:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g", \ ^ /usr/local/include/check.h:709:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g", \ ^ /usr/local/include/check.h:720:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g", \ ^ /usr/local/include/check.h:731:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g", \ ^ /usr/local/include/check.h:744:37: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g, %s == %.*"TM"g", \ ^ /usr/local/include/check.h:744:53: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g, %s == %.*"TM"g", \ ^ /usr/local/include/check.h:744:69: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g, %s == %.*"TM"g", \ ^ /usr/local/include/check.h:760:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g, %s == %.*"TM"g", \ ^ /usr/local/include/check.h:760:55: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] --- sdk/codelite_indexer/CMakeFiles/codelite_indexer.dir/all --- [ 5%] Building C object sdk/codelite_indexer/CMakeFiles/codelite_indexer.dir/libctags/fortran.c.o --- sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/all --- "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g, %s == %.*"TM"g", \ ^ /usr/local/include/check.h:760:71: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g, %s == %.*"TM"g", \ (10.3-amd64)
Works if I removed devel/check (/usr/local/include/check.h).
/usr/local/include/check.h: all appearances of "TM" must changed to " TM ".
So in case you believe the problem is with devel/check, I'll CC sunpoet@ here too.
(In reply to w.schwarzenfeld from comment #1) That means the build process picked up the wrong check.h. You should fix the include path to use check.h in codelite source instead of that in /usr/local/include.
The correct one: % ls -la sdk/codelite_cppcheck/lib/check.h -rw-r--r-- 1 root wheel 4660 Jan 2 16:08 sdk/codelite_cppcheck/lib/check.h
(In reply to Po-Chuan Hsieh from comment #5) Okay, thanks for info, gonna take a deeper look on it.
I don't know if you can repeat the error. Yesterday codelite update was part of a "big" update with gcc5 and four llvm compilers. Yesterday I could repeat the error. Today not, it seems solved. Maybe, it was something during this update. Please, tell me if I should close here.
(In reply to w.schwarzenfeld from comment #7) Thanks for additional info. I'll try to build codelite on latest tree with all combinantion of options. If I could not reproduce the error, I'll close PR as 'not a bug' Regards.
Seems my last statement was wrong. The error still exists.
Found it: Got it to compile if I add to sdk/codelite_cppcheck/CMakeLists.txt set (CMAKE_INCLUDE_DIRECTORIES ON) include_directories(BEFORE "${CL_SRC_ROOT}/sdk/codelite_cppcheck/lib" )
Created attachment 182235 [details] patch-sdk__codelite_cppcheck__CMakeLists_txt
(In reply to w.schwarzenfeld from comment #10) Oh great! I was still more-or-less digging for it. Thanks for speeding up ;-] great job. I'll apply/test the patch tonight :D
ping!
Hello! Forgotten?
A commit references this bug: Author: mmokhi Date: Thu Jan 18 11:16:24 UTC 2018 New revision: 459322 URL: https://svnweb.freebsd.org/changeset/ports/459322 Log: editors/codelite: Fix build when devel/check is installed. Set correct include-path if devel/check is installed for check.h PR: 218297 Submitted by: w.schwarzenfeld@utanet.at Reported by: w.schwarzenfeld@utanet.at Changes: head/editors/codelite/files/ head/editors/codelite/files/patch-sdk_codelite__cppcheck_CMakeLists.txt
Committed. Thanks :)