Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message in include/linker/kobject-text.ld is unclear #34387

Closed
nashif opened this issue Apr 19, 2021 · 0 comments · Fixed by #34398
Closed

Error message in include/linker/kobject-text.ld is unclear #34387

nashif opened this issue Apr 19, 2021 · 0 comments · Fixed by #34398
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@nashif
Copy link
Member

nashif commented Apr 19, 2021

Describe the bug
getting this:

[100%] Linking C executable zephyr.elf
/usr/bin/ld: The configuration system has incorrectly set 'CONFIG_KOBJECT_TEXT_AREA' to CONFIG_KOBJECT_TEXT_AREA, which is not big enough. You must through Kconfig either disable 'CONFIG_USERSPACE', or set 'CONFIG_KOBJECT_TEXT_AREA' to a value larger than CONFIG_KOBJECT_TEXT_AREA.

when building samples/subsys/debug/gdbstub/sample.debug.gdbstub with llvm.

"The configuration system has incorrectly set \

To Reproduce
Use LLVM for building

Expected behavior
The message is unclear and seem to be wrong, set 'CONFIG_KOBJECT_TEXT_AREA' to a value larger than CONFIG_KOBJECT_TEXT_AREA

Impact
Confused about what need to be done...

@nashif nashif added the bug The issue is a bug, or the PR is fixing a bug label Apr 19, 2021
dcpleung added a commit to dcpleung/zephyr that referenced this issue Apr 19, 2021
The assert error message when CONFIG_KOBJECT_TEXT_AREA is
too small is confusing. Probably the original idea is for
the linker to substitue CONFIG_KOBJECT_TEXT_AREA with
the actual value. However, linker does not do that.
So change the message to say that the kconfig value needs
to be increased.

Fixes zephyrproject-rtos#34387

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
@galak galak added the priority: low Low impact/importance bug label Apr 20, 2021
nashif pushed a commit that referenced this issue Apr 20, 2021
The assert error message when CONFIG_KOBJECT_TEXT_AREA is
too small is confusing. Probably the original idea is for
the linker to substitue CONFIG_KOBJECT_TEXT_AREA with
the actual value. However, linker does not do that.
So change the message to say that the kconfig value needs
to be increased.

Fixes #34387

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants