Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 comefrom the same compiler: the CMake comment in
src/e3sm/asnalready says the types and the runtime must match.libe3submodule: 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 encodersallocate 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/asn1cfirst (libe3 0.4 used/opt/asn1c), and configure stops with a message when it findsone older than 1.5. Before this, an old asn1c on
PATHwould have compiled and produced types whose layoutdiffers from the runtime headers.
Testing
On Ubuntu 22.04, amd64, in a pod with no asn1c and no git installed beforehand:
./build.sh --install-depsbuilds libe3 0.6.1 with asn1c 1.5.3-124 (installed under/opt/libe3/asn1c) andthe controller.
test_l1_kpm_sm(59 checks) andtest_spectrum_sm(47 checks) pass.e3_verifier_cliand the codelets build and verify.e3branch ofocudu-e3next 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.