Version mismatch between TTCN-3 Compiler and the base library [message #1750358] |
Tue, 20 December 2016 05:43  |
Eclipse User |
|
|
|
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 #1750511 is a reply to message #1750463] |
Wed, 21 December 2016 16:49   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.38360 seconds