Compiler Issues [message #1798286] |
Wed, 14 November 2018 23:05 |
Mohan Raj Janardhan Messages: 32 Registered: October 2018 |
Member |
|
|
Hi Elemer,
I moved my environment from running a VM with ubuntu 16.04 to a bare-metal server with Ubuntu 18.04. I migrated my workspace to the server environment, but had the eclipse installer installer of 18.04 freshly downloaded. After doing this, i tried compiling the same executable in the old envrionment in the new.
1. I had problem opening the eclipse editor from /opt/ using sudo. When i moved to /home/my_user/, i was able to open up the eclipse. For the time being we can leave this issue as i am able to open the eclipse editor.
2. The problem was, i am able to compile the same executable which compiling successfuly before in 16.04. I came across an issue like below:
sh -c make clean
rm -f l2 DHCP_Ethernet_Mapping.o DHCP_Options.o DHCP_Types.o DHCPv6_Types.o General_Types.o ICMP2ETH.o ICMP_Types.o ICMPv6_Types.o IP_Types.o LANL2asp_PortType.o LANL2asp_Types.o StringLib.o TCCConversion_Functions.o TCCInterface_Functions.o UDP_Types.o UDPasp_PortType.o UDPasp_Types.o UsefulTtcn3Types.o XSD.o externalFunctions.o general_typedefs.o http_www_w3_org_XML_1998_namespace.o tc_DHCP.o MobileDomainDefinitions.o DHCP_EncDec.o DHCP_Ethernet_Mapping.o DHCP_Options.o DHCP_Types.o DHCPv6_Types.o General_Types.o ICMP2ETH.o ICMP_EncDec.o ICMP_Types.o ICMPv6_EncDec.o ICMPv6_Types.o IP_EncDec.o IP_Types.o LANL2asp_PT.o LANL2asp_PortType.o LANL2asp_Types.o MobileDomainDefinitions.o StringLib.o TCCConversion.o TCCConversion_Functions.o TCCInterface.o TCCInterface_Functions.o UDP_EncDec.o UDP_Types.o UDPasp_PT.o UDPasp_PortType.o UDPasp_Types.o UsefulTtcn3Types.o XSD.o externalFunctions.o externalFunctionsC.o general_typedefs.o http_www_w3_org_XML_1998_namespace.o tc_002_ICMP_echo.o tc_002_ICMP_echo_multiple_interface_dual_port.o tc_004_start_iperf3_traffic.o tc_DHCP.o l2.a DHCP_Ethernet_Mapping.hh DHCP_Options.hh DHCP_Types.hh DHCPv6_Types.hh General_Types.hh ICMP2ETH.hh ICMP_Types.hh ICMPv6_Types.hh IP_Types.hh LANL2asp_PortType.hh LANL2asp_Types.hh StringLib.hh TCCConversion_Functions.hh TCCInterface_Functions.hh UDP_Types.hh UDPasp_PortType.hh UDPasp_Types.hh UsefulTtcn3Types.hh XSD.hh externalFunctions.hh general_typedefs.hh http_www_w3_org_XML_1998_namespace.hh tc_DHCP.hh MobileDomainDefinitions.hh DHCP_EncDec.d DHCP_Ethernet_Mapping.d DHCP_Options.d DHCP_Types.d DHCPv6_Types.d General_Types.d ICMP2ETH.d ICMP_EncDec.d ICMP_Types.d ICMPv6_EncDec.d ICMPv6_Types.d IP_EncDec.d IP_Types.d LANL2asp_PT.d LANL2asp_PortType.d LANL2asp_Types.d MobileDomainDefinitions.d StringLib.d TCCConversion.d TCCConversion_Functions.d TCCInterface.d TCCInterface_Functions.d UDP_EncDec.d UDP_Types.d UDPasp_PT.d UDPasp_PortType.d UDPasp_Types.d UsefulTtcn3Types.d XSD.d externalFunctions.d externalFunctionsC.d general_typedefs.d http_www_w3_org_XML_1998_namespace.d tc_002_ICMP_echo.d tc_002_ICMP_echo_multiple_interface_dual_port.d tc_004_start_iperf3_traffic.d tc_DHCP.d DHCP_Ethernet_Mapping.d DHCP_Options.d DHCP_Types.d DHCPv6_Types.d General_Types.d ICMP2ETH.d ICMP_Types.d ICMPv6_Types.d IP_Types.d LANL2asp_PortType.d LANL2asp_Types.d StringLib.d TCCConversion_Functions.d TCCInterface_Functions.d UDP_Types.d UDPasp_PortType.d UDPasp_Types.d UsefulTtcn3Types.d XSD.d externalFunctions.d general_typedefs.d http_www_w3_org_XML_1998_namespace.d tc_DHCP.d MobileDomainDefinitions.d \
DHCP_Ethernet_Mapping.cc DHCP_Options.cc DHCP_Types.cc DHCPv6_Types.cc General_Types.cc ICMP2ETH.cc ICMP_Types.cc ICMPv6_Types.cc IP_Types.cc LANL2asp_PortType.cc LANL2asp_Types.cc StringLib.cc TCCConversion_Functions.cc TCCInterface_Functions.cc UDP_Types.cc UDPasp_PortType.cc UDPasp_Types.cc UsefulTtcn3Types.cc XSD.cc externalFunctions.cc general_typedefs.cc http_www_w3_org_XML_1998_namespace.cc tc_DHCP.cc MobileDomainDefinitions.cc compile \
browserdata.dat tags *.log DHCP_EncDec.d DHCP_Ethernet_Mapping.d DHCP_Options.d DHCP_Types.d DHCPv6_Types.d General_Types.d ICMP2ETH.d ICMP_EncDec.d ICMP_Types.d ICMPv6_EncDec.d ICMPv6_Types.d IP_EncDec.d IP_Types.d LANL2asp_PT.d LANL2asp_PortType.d LANL2asp_Types.d MobileDomainDefinitions.d StringLib.d TCCConversion.d TCCConversion_Functions.d TCCInterface.d TCCInterface_Functions.d UDP_EncDec.d UDP_Types.d UDPasp_PT.d UDPasp_PortType.d UDPasp_Types.d UsefulTtcn3Types.d XSD.d externalFunctions.d externalFunctionsC.d general_typedefs.d http_www_w3_org_XML_1998_namespace.d tc_002_ICMP_echo.d tc_002_ICMP_echo_multiple_interface_dual_port.d tc_004_start_iperf3_traffic.d tc_DHCP.d DHCP_Ethernet_Mapping.d DHCP_Options.d DHCP_Types.d DHCPv6_Types.d General_Types.d ICMP2ETH.d ICMP_Types.d ICMPv6_Types.d IP_Types.d LANL2asp_PortType.d LANL2asp_Types.d StringLib.d TCCConversion_Functions.d TCCInterface_Functions.d UDP_Types.d UDPasp_PortType.d UDPasp_Types.d UsefulTtcn3Types.d XSD.d externalFunctions.d general_typedefs.d http_www_w3_org_XML_1998_namespace.d tc_DHCP.d MobileDomainDefinitions.d
Operation finished successfully.
**************************************************************
2018-11-14_17:28:27: starting to build L2
**************************************************************
sh -c make dep
Creating dependency file for ../build/MobileDomainDefinitions.cc
In file included from ../build/MobileDomainDefinitions.cc:11:0:
../build/MobileDomainDefinitions.hh:22:2: error: #error Version mismatch detected. Please check the version of the ASN.1 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 ../build/tc_DHCP.cc
In file included from ../build/IP_Types.hh:20:0,
from ../build/DHCP_Ethernet_Mapping.hh:20,
from ../build/tc_DHCP.hh:20,
from ../build/tc_DHCP.cc:11:
../build/General_Types.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 ../build/DHCP_Ethernet_Mapping.hh:20:0,
from ../build/tc_DHCP.hh:20,
from ../build/tc_DHCP.cc:11:
../build/IP_Types.hh:23: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.
3. I saw in the forum similar issue being discussed and followed to do a "make clean", "make distclean" etc.
4. I have the output below of certain commands, which you suggested in other discussions
vdc246@vdc246-R620-HMF87Y1:~/eclipse-workspace/ttcn/L2/out$ printenv |grep TTCN
LD_LIBRARY_PATH=:/home/vdc246/TTCN3/lib
TTCN3_BROWSER=firefox
TTCN3_LICENSE_FILE=
TTCN3_DIR=/home/vdc246/TTCN3
MANPATH=:/home/vdc246/TTCN3/man
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/vdc246/TTCN3/bin:/snap/bin
vdc246@vdc246-R620-HMF87Y1:~/eclipse-workspace/ttcn/L2/out$ printenv |grep PATH
LD_LIBRARY_PATH=:/home/vdc246/TTCN3/lib
MANPATH=:/home/vdc246/TTCN3/man
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/vdc246/TTCN3/bin:/snap/bin
vdc246@vdc246-R620-HMF87Y1:~/eclipse-workspace/ttcn/L2/out$ compiler -v
TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Product number: CRL 113 200/6 R4A
Build date: Jun 12 2018 08:36:32
Compiled with: GCC 7.3.0
Using OpenSSL 1.1.0g 2 Nov 2017
Copyright (c) 2000-2018 Ericsson Telecom AB
vdc246@vdc246-R620-HMF87Y1:~/eclipse-workspace/ttcn/L2$ make diag
/home/vdc246/TTCN3/bin/compiler -v 2>&1
TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Product number: CRL 113 200/6 R4A
Build date: Jun 12 2018 08:36:32
Compiled with: GCC 7.3.0
Using OpenSSL 1.1.0g 2 Nov 2017
Copyright (c) 2000-2018 Ericsson Telecom AB
/home/vdc246/TTCN3/bin/mctr_cli -v 2>&1
Main Controller (CLI) for the TTCN-3 Test Executor
Product number: CRL 113 200/6 R4A
Build date: Jun 12 2018 08:37:45
Compiled with: GCC 7.3.0
Using OpenSSL 1.1.0g 2 Nov 2017
Copyright (c) 2000-2018 Ericsson Telecom AB
g++ -v 2>&1
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
ar -V 2>&1
GNU ar (GNU Binutils for Ubuntu) 2.30
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
TTCN3_DIR=/home/vdc246/TTCN3
OPENSSL_DIR=
XMLDIR=/home/vdc246/TTCN3
PLATFORM=LINUX
But so far not successful. Let me know if you have any other suggestions.
|
|
|
|
Re: Compiler Issues [message #1798313 is a reply to message #1798289] |
Thu, 15 November 2018 08:43 |
|
Hi Mohan,
I suggest you first get familiar with the command line and only after that start to use the Eclipse plug-ins.
From what you have sent it's not possible to give you a definite answer.
A project should seamlessly migrate from 16.04 to 18.04 assuming all others are unchanged ( namely Titan , gcc etc. version).
BR
Elemer
|
|
|
Powered by
FUDForum. Page generated in 0.02567 seconds