Repository navigation
novatek: loader: do not link libm, which nothing uses - #55
Merged
Merged
Conversation
The vendor link line ends in the toolchain's libm.a, as $(CC) -print-file-name=libm.a finds it. A bare-metal toolchain without newlib (Ubuntu's gcc-arm-none-eabi, what build-novatek.yml installs) has none, and the link failed: "arm-none-eabi-ld: cannot find libm.a". Nothing in the loader calls into libm: without it the NT98562 and NT98566 loaders link with arm-linux-gnueabi as before. Checked: both images build in ubuntu:24.04 with the workflow's packages (arm-none-eabi-gcc 13.2.1 for the loader).
PR Summary by QodoFix Novatek loader builds without libm
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper |
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.
Fixes the build legs of run 39899665339:
arm-none-eabi-ld: cannot find libm.a.The vendor loader's link line ends in the toolchain's
libm.a, whatever$(CC) -print-file-name=libm.afinds. Ubuntu'sgcc-arm-none-eabi, which build-novatek.yml installs for the loader, ships no newlib, so there is none to find. Locally the loader had only been built witharm-linux-gnueabi(which has a libm) and the SDK's Linaro arm-eabi. Nothing in the loader uses libm, so the link line no longer asks for it.Checked:
ubuntu:24.04with exactly the workflow's packages,bash build.shbuilds both images, with the loader compiled by arm-none-eabi-gcc 13.2.1.nt98562,nt98566).