Skip to content

[libyang1] Adding LFS support for arm32#6346

Merged
lguohan merged 1 commit intosonic-net:masterfrom
Sabareesh-Kumar-Anandan:libyang
Jan 4, 2021
Merged

[libyang1] Adding LFS support for arm32#6346
lguohan merged 1 commit intosonic-net:masterfrom
Sabareesh-Kumar-Anandan:libyang

Conversation

@Sabareesh-Kumar-Anandan
Copy link
Contributor

@Sabareesh-Kumar-Anandan Sabareesh-Kumar-Anandan commented Jan 4, 2021

Signed-off-by: Sabareesh Kumar Anandan sanandan@marvell.com

  • Why I did it
    In the emulated armhf environment, the function readdir()returns NULL on a ext4 file system directory. When running the libyang1 test cases, it will require to load the plugins from the files (such as metadata.so), because the readdir() is failing, the plugins can’t be loaded in the emulated armhf environment, so it causes libyang1 test error. This error is a combination of the following reasons.
    • Emulation of a 32-bit target from a 64-bit host –> qemu from x86_64 to armhf
    • Glibc version > 2.27 – Debian buster is using glibc 2.28
  • How I did it
    Enabled large file support by setting _FILE_OFFSET_BITS=64 for libyang1.
  • How to verify it
    Compiled and verified libyang1 unit tests in arm32

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

Signed-off-by: Sabareesh Kumar Anandan <sanandan@marvell.com>
@lguohan lguohan merged commit d6b92da into sonic-net:master Jan 4, 2021
lguohan pushed a commit that referenced this pull request Jan 5, 2021
In the emulated armhf environment, the function readdir()returns NULL on a ext4 file system directory. When running the libyang1 test cases, it will require to load the plugins from the files (such as metadata.so), because the readdir() is failing, the plugins can’t be loaded in the emulated armhf environment, so it causes libyang1 test error. This error is a combination of the following reasons.
• Emulation of a 32-bit target from a 64-bit host –> qemu from x86_64 to armhf
• Glibc version > 2.27 – Debian buster is using glibc 2.28

- How I did it
Enabled large file support by setting _FILE_OFFSET_BITS=64 for libyang1.

Signed-off-by: Sabareesh Kumar Anandan <sanandan@marvell.com>
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.

2 participants