Project

General

Profile

Bug #5252

eclipse-titan fails to build for Debian_Unstable on OBS

Added by osmith 16 days ago. Updated 15 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/11/2021
Due date:
% Done:

100%

Spec Reference:

Description

Apparently gcc has been upgraded in debian unstable, and now eclipse-titan fails to build:
https://build.opensuse.org/package/live_build_log/network:osmocom:latest/eclipse-titan/Debian_Unstable/x86_64

[  161s] g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -DYY_NO_INPUT -DNDEBUG  -DLINUX -DUSE_EPOLL -DYY_NO_INPUT -DNDEBUG  -DLINUX -DUSE_EPOLL -D_REENTRANT -g -O2 -ffile-prefix-map=/usr/src/packages/BUILD=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-long-long -O2 -fPIC -Wall -Wno-long-long -O2 -fPIC new.cc -o new.o
[  161s] new.cc:21:33: error: ISO C++17 does not allow dynamic exception specifications
[  161s]    21 | void *operator new(size_t size) throw (std::bad_alloc)
[  161s]       |                                 ^~~~~

We are building eclipse-titan 6.6.1, which was released in November 2019. The last version upstream tagged is 8.0.0 from June 2021.

The build failure has been fixed in newer releases:
https://gitlab.eclipse.org/eclipse/titan/titan.core/-/commit/05c39aa45cf1cc89f16c5566d87da9dc79ba838c

laforge: do you want me to upgrade to a new version (8.0.0?) or backport the patch?

Associated revisions

Revision 1cdbf1b5 (diff)
Added by osmith 16 days ago

regen-makefile.sh: remove titan < 6.5.1 code path

Prepare to make osmo-ttcn3-hacks.git work with eclipse-titan 8.0.0,
where "ttcn3_makefilegen -v" does not have a "Product number" anymore.

Fix for:
../regen-makefile.sh: 54: ../regen-makefile.sh: arithmetic expression: expecting primary: " >= 65"

Related: OS#5252
Related: If9fef29ce243be112d3735f0236335197f8f140f
Change-Id: Iec26eafc1ddfa19bc1224f6f2abb7fb35cfc188d

Revision 2e0e6240 (diff)
Added by osmith 15 days ago

regen_makefile.sh: files/flags in separate lines

Make all regen_makefile.sh more readable and diff friendly by moving
each entry in FILES and CPPFLAGS_TTCN3 into separate lines. Order
entries alphabetically.

Related: OS#5252
Change-Id: I6b6866eb9f6ec6232e4ae434517457a4c8c1c050

Revision efe62449 (diff)
Added by osmith 15 days ago

selftest: add missing Native_FunctionDefs.cc

Fix for:
/usr/bin/ld: Native_Functions.so: undefined reference to `Native__Functions::f__str__tolower(CHARSTRING const&)'
/usr/bin/ld: Native_Functions.so: undefined reference to `Native__Functions::f__inet__hntoa(OCTETSTRING const&)'
/usr/bin/ld: Native_Functions.so: undefined reference to `Native__Functions::f__inet__haddr(CHARSTRING const&)'
/usr/bin/ld: BSSMAP_Templates.so: undefined reference to `Native__Functions::f__inet6__addr(CHARSTRING const&)'
/usr/bin/ld: BSSMAP_Templates.so: undefined reference to `Native__Functions::f__inet__addr(CHARSTRING const&)'
/usr/bin/ld: Native_Functions.so: undefined reference to `Native__Functions::f__str__toupper(CHARSTRING const&)'
/usr/bin/ld: Native_Functions.so: undefined reference to `Native__Functions::f__inet__ntoa(OCTETSTRING const&)'

Related: OS#5252
Change-Id: I73c225f6699cd272b3eeffb249f3dddd2048bc01

Revision bd78b61d (diff)
Added by osmith 15 days ago

pgw: add missing BSSGP_EncDec.cc

Fix for:
/usr/bin/ld: BSSGP_Types_part_4.so: undefined reference to `BSSGP__Types::dec__PDU__BSSGP(OCTETSTRING const&)'
/usr/bin/ld: Osmocom_Gb_Types.so: undefined reference to `BSSGP__Types::enc__PDU__BSSGP(BSSGP__Types::PDU__BSSGP const&)'

Related: OS#5252
Change-Id: I010df10396d264e67bd8c712daafcfb79262ece2

Revision f92ccad1 (diff)
Added by osmith 15 days ago

mme: link against gnutls

Fix for:
/usr/bin/ld: key_derivation.so: undefined reference to `gnutls_hmac_fast'

Related: OS#5252
Change-Id: Iacddc22ecda187e250db9cfb1ca1d1d341ce78f4

Revision f8fe1329 (diff)
Added by osmith 14 days ago

regen_makefile.sh: set executable name explicitly

Set the executable name in each regen_makefile.sh explicitly with -e,
instead of having it set indirectly from the first .ttcn file. Make it
consistent by placing the name on top of each of these files.

Fix for warning:
ttcn3_makefilegen: warning: File `BSC_Tests.ttcn' was given more than once for the Makefile.

Related: OS#5252
Change-Id: I5ed03f8f3ed905483620dc7bae33b617bbb8507f

History

#1 Updated by laforge 16 days ago

  • Status changed from Feedback to New
  • Assignee changed from laforge to osmith

I think there is no reason we should stay on ancient versions. Let's upgrade to latest upstream. In the past, the amount of fall-out was relatively minor during upgrades. Of course it makes sense to first at least test if osmo-ttcn3-tests at least still builds with 8.0.0.

Maybe fixeria knows, in the past he had been tracking upstream Titan relatively closely?

#2 Updated by Hoernchen 16 days ago

Just upgrade it, I don't think carrying compiler flag patches is worth the effort since we are bound to upgrade titan at some point anyway so we might as well just do it now, but just explicitly defaulting to c++14 or removing all the throws would also fix it.

#3 Updated by osmith 16 days ago

  • Status changed from New to In Progress

#4 Updated by fixeria 16 days ago

laforge wrote:

Maybe fixeria knows, in the past he had been tracking upstream Titan relatively closely?

I am currently using 7.2.2. Will give 8.0.0 a try and report back if I experience any issues.

#5 Updated by osmith 16 days ago

  • % Done changed from 0 to 50

This patch for regen-makefile.sh is needed: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25745

Otherwise "make compile" ran through (ttcn3 -> C++). I'm running "make all" right now (building all C++ sources).

As expected, 8.0.0 builds on debian unstable:
https://build.opensuse.org/package/show/home:osmith42:latest/eclipse-titan

#6 Updated by osmith 15 days ago

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100
With "make all", the following projects were slightly broken:
  • pgw
  • mme
  • selftest

We don't build these projects in jenkins, so they have probably been broken for some time.
Fixes submitted: https://gerrit.osmocom.org/q/topic:ttcn3-fix-make-all

Everything else built fine with 8.0.0 so I rolled it out to network:osmocom:latest:
https://build.opensuse.org/package/show/network:osmocom:latest/eclipse-titan

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)