Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Version mismatch between TTCN-3 Compiler and the base library(Compile Error )
Version mismatch between TTCN-3 Compiler and the base library [message #1750358] Tue, 20 December 2016 10:43 Go to next message
MinBum Kim is currently offline MinBum KimFriend
Messages: 5
Registered: December 2016
Junior Member
This is the log:
sh -c make dep
/home/minbum.kim/titan/Install/bin/compiler -lL ../src/MyExample.ttcn - ../src/MyExample.ttcn
Notify: Parsing TTCN-3 module `../src/MyExample.ttcn'...
Notify: Checking modules...
Notify: Generating code...
Notify: File `MyExample.hh' was generated.
Notify: File `MyExample.cc' was generated.
Notify: 2 files were updated.
touch compile
Creating dependency file for MyExample.cc
In file included from MyExample.cc:11:0:
MyExample.hh:22:2: error: #error Version mismatch detected. Please check the version of the TTCN-3 compiler and the base library. Run make clean and rebuild the project if the version of the compiler changed recently.
#error Version mismatch detected.\
^
Creating dependency file for ../src/PCOType.cc
In file included from ../src/PCOType.hh:13:0,
from ../src/PCOType.cc:9:
./MyExample.hh:22:2: error: #error Version mismatch detected. Please check the version of the TTCN-3 compiler and the base library. Run make clean and rebuild the project if the version of the compiler changed recently.
#error Version mismatch detected.\
^
make: Nothing to be done for 'dep'.
Operation finished successfully.
sh -c make all -j 4
Creating dependency file for ../src/PCOType.cc
Creating dependency file for MyExample.cc
In file included from ../src/PCOType.hh:13:0,
from ../src/PCOType.cc:9:
./MyExample.hh:22:2: error: #error Version mismatch detected. Please check the version of the TTCN-3 compiler and the base library. Run make clean and rebuild the project if the version of the compiler changed recently.
#error Version mismatch detected.\
^
In file included from MyExample.cc:11:0:
MyExample.hh:22:2: error: #error Version mismatch detected. Please check the version of the TTCN-3 compiler and the base library. Run make clean and rebuild the project if the version of the compiler changed recently.
#error Version mismatch detected.\
^
g++ -c -DWIN32 -I. -I/home/minbum.kim/titan/Install/include -I. -I../src -Wall -O2 -o MyExample.o MyExample.cc
g++ -c -DWIN32 -I. -I/home/minbum.kim/titan/Install/include -I. -I../src -Wall -O2 -o PCOType.o ../src/PCOType.cc
In file included from MyExample.cc:11:0:
MyExample.hh:19:20: fatal error: TTCN3.hh: No such file or directory
compilation terminated.
In file included from ../src/PCOType.hh:13:0,
from ../src/PCOType.cc:9:
./MyExample.hh:19:20: fatal error: TTCN3.hh: No such file or directory
compilation terminated.
make: *** [Makefile:157: MyExample.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:154: PCOType.o] Error 1
Operation failed with return value: 2
Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750389 is a reply to message #1750358] Tue, 20 December 2016 15:43 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
Hi MinBum,

thank you for your interest.

possibly something went wrong when installing Titan or the environment was not set properly.

the first thing you should do is what Titan suggests:
run a "make clean" In the directory where you compile.

If it does not help, pls. send me the result of the following commands:

printenv | grep TTCN
printenv | grep PATH
compiler -v
which compiler 


(there are a few environment variables to be set , see ch. 3.1
Environmental Variables of the Titan installation guide)

and also your settings in Eclipse related to the Titan path(Titan installation path in Titan preferences).
(for details here, see Eclipse_installation_guide)

Best regards

Elemer


Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750430 is a reply to message #1750389] Wed, 21 December 2016 04:41 Go to previous messageGo to next message
MinBum Kim is currently offline MinBum KimFriend
Messages: 5
Registered: December 2016
Junior Member
Hello Elemer,

Thank you for your guide.

But I couldn't resolve it . ( I've checked the enviromnent variables and path also again.)

So I've attached the result of the commands of evironment and compiler information (cygwin cli):
------------------------------------------------------------------------------------------------------------------------------
CORP+minbum.kim@NO-MINBUM-KIM05 ~/titan
$ printenv | grep TTCN
TTCN3_DIR=/home/minbum.kim/titan/Install

CORP+minbum.kim@NO-MINBUM-KIM05 ~/titan
$ printenv | grep PATH
HOMEPATH=\Users\User
MANPATH=/home/minbum.kim/titan/Install/man:
ORIGINAL_PATH=/cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Windows/s ystem32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Window s/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft SQL Server /120/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/110/DTS/Binn:/cyg drive/c/Program Files/Microsoft SQL Server/120/DTS/Binn:/cygdrive/c/Program File s/Microsoft SQL Server/130/DTS/Binn:/cygdrive/c/MinGW/bin:/cygdrive/c/Program Fi les/Microsoft SQL Server/110/Tools/Binn:/usr/bin:/usr/bin:/cygdrive/c/Program Fi les/Perforce:/cygdrive/c/Program Files/Perforce/DVCS
LD_LIBRARY_PATH=/home/minbum.kim/titan/Install/lib:
PATH=/home/minbum.kim/titan/Install/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Prog ramData/Oracle/Java/javapath:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/c ygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v 1.0:/cygdrive/c/Program Files/Microsoft SQL Server/120/Tools/Binn:/cygdrive/c/Pr ogram Files/Microsoft SQL Server/110/DTS/Binn:/cygdrive/c/Program Files/Microsof t SQL Server/120/DTS/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/130/DTS /Binn:/cygdrive/c/MinGW/bin:/cygdrive/c/Program Files/Microsoft SQL Server/110/T ools/Binn:/usr/bin:/usr/bin:/cygdrive/c/Program Files/Perforce:/cygdrive/c/Progr am Files/Perforce/DVCS
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
INFOPATH=/usr/local/info:/usr/share/info:/usr/info

CORP+minbum.kim@NO-MINBUM-KIM05 ~/titan
$ compiler -v
TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Product number: CRL 113 200/6 R1A
Build date: Dec 21 2016 11:11:32
Compiled with: GCC 5.4.0

Copyright (c) 2000-2016 Ericsson Telecom AB


CORP+minbum.kim@NO-MINBUM-KIM05 ~/titan
$ which compiler
/home/minbum.kim/titan/Install/bin/compiler
------------------------------------------------------------------------------------------------------------------------------
P.S.
I am using the Eclipse + cygwin in Window7 32bit OS.
This is the result of " HelloWorld" sample in Eclipse.

Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750463 is a reply to message #1750430] Wed, 21 December 2016 10:20 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
Hi MinBum,


Hmm, the settings look good.


OK let's try the following from the command line (let's forget about the Eclipse IDE for the moment):

cd /home/minbum.kim/titan/hello
make clean
mv Makefile Makefile.bak  // this saves the Makefile
makefilegen *.ttcn *.cc *.hh //this generates a new Makefile
make
ttcn3_start hello_world MyExample.cfg



and see what happens.

BR

Elemer

[Updated on: Wed, 21 December 2016 12:14]

Report message to a moderator

Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750511 is a reply to message #1750463] Wed, 21 December 2016 21:49 Go to previous messageGo to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 53
Registered: September 2013
Location: Budapest, Hungary
Member

Hi MinBum,

Hopefully rebuild the "hello" was successful. If not:
as I see, You built your own titan and something confusing happened. I would suggest to start again and execute these steps:
cd /home/minbum.kim/titan/
make distclean
make
make install
Hopefully it is finished with lines like these ones:

-L/cygdrive/c/Users/ETHBAAT/git/titan.core/Install/lib -lxml2; \
then : ; else /cygdrive/c/Users/ETHBAAT/git/titan.core/Install/bin/titanver MyExample.o hello_world.o PCOType.o; exit 1; fi
make[2]: Leaving directory '/cygdrive/c/Users/ETHBAAT/git/titan.core/Install/demo'
ttcn3_start: Starting the test suite
spawn /cygdrive/c/Users/ETHBAAT/git/titan.core/Install/bin/mctr_cli MyExample.cfg

*************************************************************************
* TTCN-3 Test Executor - Main Controller 2 *
* Version: CRL 113 200/6 R1A *
* Copyright (c) 2000-2016 Ericsson Telecom AB *
* All rights reserved. This program and the accompanying materials *
* are made available under the terms of the Eclipse Public License v1.0 *
* which accompanies this distribution, and is available at *
* http://www.eclipse.org/legal/epl-v10.html *
*************************************************************************

Using configuration file: MyExample.cfg
MC@HU00078244: Listening on TCP port 55515.
MC2> HU00078244.ericsson.se is the default
spawn ./MyExample HU00078244.ericsson.se 55515
TTCN-3 Host Controller (parallel mode), version CRL 113 200/6 R1A
MC@HU00078244: New HC connected from HU00078244.ericsson.se [192.168.0.4]. HU00078244: CYGWIN_NT-6.1 2.5.1(0.297/5/3) on x86_64.
cmtc
MC@HU00078244: Downloading configuration file to all HCs.
MC@HU00078244: Configuration file was processed on all HCs.
MC@HU00078244: Creating MTC on host HU00078244.ericsson.se.
MC@HU00078244: MTC is created.
MC2> smtc
Executing all items of [EXECUTE] section.
MC2> MTC@HU00078244: Execution of control part in module MyExample started.
MTC@HU00078244: Test case HelloW started.
Hello, world!
MTC@HU00078244: Test case HelloW finished. Verdict: pass
MTC@HU00078244: Test case HelloW2 started.
Hello, world!
MTC@HU00078244: Test case HelloW2 finished. Verdict: inconc
MTC@HU00078244: Execution of control part in module MyExample finished.
MC@HU00078244: Test execution finished.
MTC@HU00078244: Execution of control part in module hello_world started.
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: pass reason: expected message received: "HELLO WORLD!"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: pass reason: expected message received: "hello world"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: pass reason: expected message received: "Hello World!"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: fail reason: Unexpected message received: "hello WORLD!"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: fail reason: Unexpected message received: "hELLO wORLD!"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: fail reason: Unexpected message received: "helloworld!"
MTC@HU00078244: Execution of control part in module hello_world finished.
MC@HU00078244: Test execution finished.
Execution of [EXECUTE] section finished.
emtc
MC@HU00078244: Terminating MTC.
MTC@HU00078244: Verdict statistics: 0 none (0.00 %), 4 pass (50.00 %), 1 inconc (12.50 %), 3 fail (37.50 %), 0 error (0.00 %).
MTC@HU00078244: Test execution summary: 8 test cases were executed. Overall verdict: fail
MC@HU00078244: MTC terminated.
MC2> exit
MC@HU00078244: Shutting down session.
MC@HU00078244: Shutdown complete.

BR
Jeno
Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750518 is a reply to message #1750463] Thu, 22 December 2016 01:55 Go to previous messageGo to next message
MinBum Kim is currently offline MinBum KimFriend
Messages: 5
Registered: December 2016
Junior Member
Hello, Elemer and Jeno Attila BalaskoFriend,

Thank you for your comment.

I followed your guide and the result was successful.

I think the problem is not cygwin's own environment.
I feel that the Eclipse plugin and the cygwin environment are in conflict.

[Updated on: Thu, 22 December 2016 02:08]

Report message to a moderator

Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750581 is a reply to message #1750518] Fri, 23 December 2016 02:13 Go to previous messageGo to next message
MinBum Kim is currently offline MinBum KimFriend
Messages: 5
Registered: December 2016
Junior Member
I found the problem of my own environment.
long long time ago, I installed mingw... so I had the path of mingw/bin before cygwin/bin in system enviroment variable 'PATH'.
I deleted the mingw and the path.. build is OK now.

Thank you for your help again.

BR
min
Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750605 is a reply to message #1750581] Fri, 23 December 2016 08:41 Go to previous message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
Hi MinBum,

this is good news indeed. Enjoy Titan.

Best regards

Elemer
Previous Topic:Versio mismatch between TTCN-3 Compiler and the base library
Next Topic:Architecture and speed
Goto Forum:
  


Current Time: Wed Sep 19 14:51:42 GMT 2018

Powered by FUDForum. Page generated in 0.01715 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top