Skip to content

Update libe3 to 0.6.1 - #22

Open
Thecave3 wants to merge 1 commit into
mainfrom
feat/libe3-0.6.1
Open

Thecave3 wants to merge 1 commit into
mainfrom
feat/libe3-0.6.1

Conversation

@Thecave3

Copy link
Copy Markdown
Collaborator

Summary

Moves the controller to libe3 0.6.1. That release builds its ASN.1 runtime with asn1c 1.5.1-44 or newer and
installs it under /opt/libe3/asn1c (./build_libe3 -I), so the controller's generated types have to come
from the same compiler: the CMake comment in src/e3sm/asn already says the types and the runtime must match.

  • libe3 submodule: 0.4.0 -> 0.6.1.
  • e3sm_spect_wrapper.cpp, e3sm_layer1_wrapper.cpp: with asn1c 1.5 a CHOICE alternative
    (controlPayload, delivery.sharedMemory, delivery.protocolData) is a pointer of its own. The encoders
    allocate it, the decoders dereference it, and the runtime frees it with the envelope.
  • tests/test_spectrum_sm.cpp, tests/test_l1_kpm_sm.cpp: the same change in the hand-built envelopes.
  • build.sh, src/e3sm/asn/CMakeLists.txt, docs/build.md, CI cache path: asn1c is looked up under
    /opt/libe3/asn1c first (libe3 0.4 used /opt/asn1c), and configure stops with a message when it finds
    one older than 1.5. Before this, an old asn1c on PATH would have compiled and produced types whose layout
    differs from the runtime headers.

Testing

On Ubuntu 22.04, amd64, in a pod with no asn1c and no git installed beforehand:

  • ./build.sh --install-deps builds libe3 0.6.1 with asn1c 1.5.3-124 (installed under /opt/libe3/asn1c) and
    the controller.
  • test_l1_kpm_sm (59 checks) and test_spectrum_sm (47 checks) pass.
  • e3_verifier_cli and the codelets build and verify.
  • Configuring the e3 branch of ocudu-e3 next to this tree reports no difference in the shared E3 headers.

Not run: a leak checker on the new allocations, and a gNB with the controller.

asn1c 1.5 generates a CHOICE alternative as a pointer, so the Spectrum and
L1-KPM wrappers and their tests allocate it. build.sh and the ASN.1 CMake
look for asn1c under /opt/libe3/asn1c and refuse one older than 1.5.

Assisted-by: Claude:claude-sonnet-5-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant