Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

loader: export symbols for Arduino_JSON library#266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
hajimef wants to merge2 commits intoarduino:main
base:main
Choose a base branch
Loading
fromhajimef:topic_arduino_json

Conversation

@hajimef
Copy link

When running the Arduino_JSON library (https://github.com/arduino-libraries/Arduino_JSON), I encountered the error "llext: Undefined symbol with no entry in symbol table."
So I added the necessary symbols.

@CLAassistant
Copy link

CLAassistant commentedNov 15, 2025
edited
Loading

CLA assistant check
All committers have signed the CLA.

@facchinm
Copy link
Member

Hi@hajimef , thanks for the contribution! I'd movestrtod ansstrtod at the very top of the file in the "strings" section, and the other two underCONFIG_CPP section.

Copy link
Member

@facchinmfacchinm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

As per comment, plus need to fix the commit message before merging

Copy link
Author

@hajimefhajimef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for comment.
I moved the line as you suggested.
I then tried the Adafruit NeoPixel library and found that I also needed to add strtol, so I added that line as well.

@facchinmfacchinm changed the titleModified loader/llext.c for Arduino_JSON libraryloader: export symbols for Arduino_JSON libraryNov 18, 2025
libc shouldn't be linked in dynamic build, while it's needed when thevalidation step is executed.Validated against the previous patch, nigthly arduino-cli and~/Arduino/libraries/Arduino_JSON/examples/JSONArray/ example
build.link_command="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" "-L{build.variant.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} {build.extra_flags} {build.extra_ldflags} {compiler.zephyr.common_ldflags} --specs=picolibc.specs --specs=nosys.specs {compiler.ldflags} {object_files} -Wl,--start-group "{build.path}/{archive_file}" {compiler.zephyr.extra_ldflags} {compiler.libraries.ldflags} -Wl,--end-group {build.link_args.{build.link_mode}}

build.check_command-dynamic={build.link_command} {build.link_args.check-dynamic} -o "{build.path}/{build.project_name}_check.tmp"
build.check_command-dynamic={build.link_command}-lc -lm -lgcc{build.link_args.check-dynamic} -o "{build.path}/{build.project_name}_check.tmp"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Those added libraries are not used in the final link stage, so this change masks actual build errors AFAICS. What am I missing?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I built it with the 0.51.0 tag.
And the target was arduino_uno_q.
This may be the cause.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@pillo79pillo79pillo79 left review comments

@facchinmfacchinmfacchinm approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@hajimef@CLAassistant@facchinm@pillo79

[8]ページ先頭

©2009-2025 Movatter.jp