Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref
FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref [message #1789918] Thu, 31 May 2018 19:23 Go to next message
Harald Welte is currently offline Harald WelteFriend
Messages: 48
Registered: July 2017
Location: Berlin, Germany
Member

I'm encountering the following problem (compiler bug) in ECLIPSE Titan:

FATAL ERROR: /usr/bin/ttcn3_compiler: In line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref


I'm trying to compile the laforge/lcls branch of the "bsc" test suite in https://git.osmocom.org/osmo-ttcn3-hacks/tree/?h=laforge/lcls

To reproduce, you will need to do something like this:

* git clone git://git.osmocom.org/osmo-ttcn3-hacks/
* cd osmo-ttcn3-hacks
* git checkout laforge/lcls
* make bsc/compile

The above compiler error was observed with

TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Product number: CRL 113 200/6 R3B
Build date: May  4 2018 17:09:28
Compiled with: GCC 7.3.0
Using OpenSSL 1.1.0h  27 Mar 2018


from debian unstable (package 6.3.1-1+b2)

It seems to be related to the calls to f_connect_handler() from f_lcls_test_init(). If I comment those calls out, the compilation passes (but of course the code doesn't execute those important functions....)

Any help is greatly appreciated.
Re: FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref [message #1789924 is a reply to message #1789918] Thu, 31 May 2018 20:54 Go to previous messageGo to next message
Vadim Yanitskiy is currently offline Vadim YanitskiyFriend
Messages: 1
Registered: May 2018
Junior Member
Hi Harald,

I have a bit older custom build of TITAN:

TTCN-3 and ASN.1 Compiler for the TTCN-3 Test Executor
Product number: CRL 113 200/6 R3B
Build date: Apr  8 2018 01:29:19
Compiled with: clang 3.8.0
Using OpenSSL 1.0.1f 6 Jan 2014


and this is what I am getting:

...
Notify: Parsing TTCN-3 module `TELNETasp_PortType.ttcn'...
Notify: Parsing TTCN-3 module `IPA_Emulation.ttcn'...
Notify: Parsing TTCN-3 module `SCCP_Mapping.ttcn'...
Notify: Checking modules...
...
BSSAP_Adapter.ttcn: In TTCN-3 module `BSSAP_Adapter':
 BSSAP_Adapter.ttcn:94.1-168.1: In function definition `f_bssap_init':
  BSSAP_Adapter.ttcn:105.2-149.2: In select case statement:
   BSSAP_Adapter.ttcn:113.2-127.3: In select case statement:
    BSSAP_Adapter.ttcn:117.3-60: In connect statement:
     BSSAP_Adapter.ttcn:117.11-19: In first endpoint:
      BSSAP_Adapter.ttcn:117.21-32: error: Component type `@IPA_Emulation.IPA_Emulation_CT' does not have port with name `MTP3_SP_PORT'
   BSSAP_Adapter.ttcn:128.2-144.3: In select case statement:
    BSSAP_Adapter.ttcn:132.3-60: In connect statement:
     BSSAP_Adapter.ttcn:132.11-19: In first endpoint:
      BSSAP_Adapter.ttcn:132.21-32: error: Component type `@IPA_Emulation.IPA_Emulation_CT' does not have port with name `MTP3_SP_PORT'
L3_Templates.ttcn: In TTCN-3 module `L3_Templates':
 L3_Templates.ttcn:727.1-736.1: In template definition `ts_ML3_MO_CC':
  L3_Templates.ttcn:727.53-736.1: warning: Field `msgs' is missing from template for record type `@MobileL3_Types.PDU_ML3_MS_NW'
Notify: Errors found in the input modules. Code will not be generated.
make: *** [compile] Error 1
Re: FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref [message #1789928 is a reply to message #1789918] Thu, 31 May 2018 21:30 Go to previous messageGo to next message
Harald Welte is currently offline Harald WelteFriend
Messages: 48
Registered: July 2017
Location: Berlin, Germany
Member

Wtih 6.4.0 the problem seems to persist, just the line number changed:
FATAL ERROR: /usr/bin/ttcn3_compiler: In line 8852 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref

Re: FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref [message #1789949 is a reply to message #1789928] Fri, 01 June 2018 07:01 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
Hi Harald,

we are looking into it.


We'll come back to you soonest.

Best regards
Elemer
Re: FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref [message #1789963 is a reply to message #1789949] Fri, 01 June 2018 09:30 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
Hi Harald,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=535441


unfortunately the fix will not make it into 6.4.0, but probably will be committed next week ( and I can tag it with 6.4.1 if you wish :) )


BR

Elemer

Re: FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref [message #1789965 is a reply to message #1789963] Fri, 01 June 2018 09:54 Go to previous messageGo to next message
Harald Welte is currently offline Harald WelteFriend
Messages: 48
Registered: July 2017
Location: Berlin, Germany
Member

thanks for confirming the issue and looking into it. no need to tag a version just for me.

as a work-around, I've now copied the f_connect_handler() function and modified the argument type to LCLS_MSC_ConnHdlr (the "extended" type). Works, but is of course rather ugly code duplication that I originally wanted to avoid by simply calling/re-using the existing function of the base type. But anyway, using that work-around I can continue my work for now.
Re: FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref [message #1790104 is a reply to message #1789965] Tue, 05 June 2018 06:44 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
Hi Harald,

the fix is committed ,

see https://github.com/eclipse/titan.core/commit/292724b959063077de0550009951171f7c7e4e4d


Best regards
Elemer
Re: FATAL ERROR in line 8821 of AST_ttcn3.cc: FormalPar::chk_actual_par_by_ref [message #1790105 is a reply to message #1790104] Tue, 05 June 2018 06:55 Go to previous message
Harald Welte is currently offline Harald WelteFriend
Messages: 48
Registered: July 2017
Location: Berlin, Germany
Member

Thanks a lot for your thorough and swift response,

Harald
Previous Topic:Eclipse Titan project page doesn't list 6.3.1 and 6.4.0 releases
Next Topic:OPC-UA Module compilation Error
Goto Forum:
  


Current Time: Wed Sep 26 08:21:32 GMT 2018

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

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

Back to the top