NetworkGradeLinux / meta-mion-bsp

MIT License
3 stars 1 forks source link

Relink Error `libm` (onlpd) #58

Open CommitThis opened 3 years ago

CommitThis commented 3 years ago

When running onlpd on the BF6064X-T, the following error is observed:

root@stordis-bf6064x-t:~# onlpd -h
onlpd: Relink `/usr/lib/libonlp-platform-defaults.so.1' with `/lib/libm.so.6' for IFUNC symbol `floor'
Segmentation fault
kprosise commented 3 years ago

The onlpv1 recipe may have some role? This is mostly a hunch. When I was working on the mion-qemu bsp, I recall running into some issues regarding how links for various onlp libs was handled.

May not be related at all.

CommitThis commented 3 years ago

More clues, does not affect onlps, although that has it's own problems 😅

CommitThis commented 3 years ago

ONLP has been compiled manually on the switch using the development image, and it works. There must be something strange going on with the linker settings.

The gcc version on device is 9.3.0.

Impact of this is not yet known, and this is partly down to our lack of understanding of the differences between onlps and onlpd. When the -h flag is supplied to (working) copies of these executables, they provide the same output.

Compile script is available here: https://gist.github.com/CommitThis/bdbc852532115f6ac85e157be793e1f2