- changed status to resolved
Fail to build with tcl8.6. Tcl_Interp doesn't have any member named errorLine
From Sebastian Kaluzka
I am trying to compile latest vera++ sources without success :( I am having some errors related to Interpreter.cpp file.
I use arch linux with cmake version 2.8.10.2 and boost 1.53.0.
I have also tcl 8.6.0 installed (don't know is it important here). below pasted some details:
[skaluzka@archbang build]$ cmake ..
-- The C compiler identification is GNU 4.8.0
-- The CXX compiler identification is GNU 4.8.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Tclsh: /usr/bin/tclsh (found version "8.6")
-- Found TCL: /usr/lib/libtcl8.6.so
-- Found TCLTK: /usr/lib/libtcl8.6.so
-- Found TK: /usr/lib/libtk8.6.so
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- program_options
-- system
-- wave CMake Warning at doc/CMakeLists.txt:4 (message):
The documentation won't be built because pandoc was not found.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/skaluzka/tmp/vera_latest/vera/build
[skaluzka@archbang build]$ make -j
Scanning dependencies of target vera [ 5%] [ 10%] [ 15%] [ 20%] [ 25%] [ 45%] [ 40%] [ 30%] [ 45%] [ 50%] [ 60%] [ 65%] [ 70%] [ 70%] [ 75%] Building CXX object src/CMakeFiles/vera.dir/plugins/Exclusions.cpp.o
Building CXX object src/CMakeFiles/vera.dir/plugins/RootDirectory.cpp.o
Building CXX object src/CMakeFiles/vera.dir/boost_main.cpp.o Building CXX object src/CMakeFiles/vera.dir/plugins/Rules.cpp.o
Building CXX object src/CMakeFiles/vera.dir/plugins/Profiles.cpp.o
Building CXX object src/CMakeFiles/vera.dir/plugins/Reports.cpp.o
Building CXX object src/CMakeFiles/vera.dir/plugins/Parameters.cpp.o
Building CXX object src/CMakeFiles/vera.dir/legacy_main.cpp.o
Building CXX object src/CMakeFiles/vera.dir/plugins/cpptcl-1.1.4/cpptcl.cpp.o
Building CXX object src/CMakeFiles/vera.dir/plugins/Transformations.cpp.o
Building CXX object src/CMakeFiles/vera.dir/plugins/Interpreter.cpp.o
Building CXX object src/CMakeFiles/vera.dir/structures/SourceFiles.cpp.o
Building CXX object src/CMakeFiles/vera.dir/structures/SourceLines.cpp.o
Building CXX object src/CMakeFiles/vera.dir/structures/Tokens.cpp.o
Building CXX object src/CMakeFiles/vera.dir/main.cpp.o /home/skaluzka/tmp/vera_latest/vera/src/plugins/Interpreter.cpp: In static member function ‘static void Vera::Plugins::Interpreter::execute(const DirectoryName&, Vera::Plugins::Interpreter::ScriptType, const ScriptName&)’:
/home/skaluzka/tmp/vera_latest/vera/src/plugins/Interpreter.cpp:180:59: error: ‘Tcl_Interp’ has no member named ‘errorLine’
boost::lexical_cast<std::string>(inter.get()->errorLine) + ")");
^
make[2]: *** [src/CMakeFiles/vera.dir/plugins/Interpreter.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/vera.dir/all] Error 2
make: *** [all] Error 2
[skaluzka@archbang build]$
do you have any idea what's wrong here? thanks in advance for any suggestions -- BR, skaluzka
Vincent: This is quite weird because Tcl_Interp still has a member named errorLine in 8.6 (cf. http://www.tcl.tk/man/tcl8.6/TclLib/Interp.htm ) Maybe in 8.6 we have to provide the USE_INTERP_ERRORLINE compiler directive as stated in the documentation.
Comments (5)
-
-
hi,
thanks a lot for this fix! I am able to build it now
BR, skaluzka
-
Thanks for your feedback!
-
btw, is it possible to add this fix to python branch as well?
-
Done!
Are you using python rules already? We welcome any positive or negative feedback :-)
Note: The python API is experimental and likely to change in the future - that's why it is in a separate branch.
2013/5/14 Gaetan Lehmann gaetan.lehmann@gmail.com
[image: skaluzka] Sebastian Kaluzka commented on issue
#22: Fail to build with tcl8.6. Tcl_Interp doesn't have any member named errorLinehttps://bitbucket.org/ThArGos/vera/issue/22/fail-to-build-with-tcl86-tcl_interp-doesnthi,
thanks a lot for this fix! I am able to build it now
BR, skaluzka View this issuehttps://bitbucket.org/ThArGos/vera/issue/22/fail-to-build-with-tcl86-tcl_interp-doesntor add a comment by replying to this email. Unwatch this issuehttps://bitbucket.org/ThArGos/vera/issue/22/unwatch/gleh/797611684eaaecc746fb6f2b60fc71efe047420f/to stop receiving email updates. [image: Bitbucket] https://bitbucket.org
- Log in to comment
fix build with tcl 8.6 - fix
#22→ <<cset 479b9f21101f>>