-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
build(bugfix):pac sim elf ONLY in Linux platform #14800
Conversation
avoid SIM compilation post build issues on other platforms Signed-off-by: xuxin19 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry it doesn't compile on macOS Arm64:
$ git clone https://github.com/xuxin930/nuttx --branch bugfix-1115
$ cd nuttx ; tools/configure.sh sim/nsh
$ make
LD: nuttx
Undefined symbols for architecture arm64:
"_accept4", referenced from:
_main in nuttx.rel
_main in nuttx.rel
"_dns_add_nameserver", referenced from:
_main in nuttx.rel
"_inet_ntoa_r", referenced from:
_main in nuttx.rel
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [nuttx] Error 1
make: *** [nuttx] Error 2
https://gist.github.com/lupyuen/4a635b0b88c9bfd2715a280f5551ac10
Update: sim:nsh was working OK on macOS Arm64 some days ago: https://gist.github.com/lupyuen/ae40bef4147eabcc4c8f7d5eab9eb6f3
Now it's broken on master branch. Strange...
$ git clone https://github.com/apache/nuttx
...
LD: nuttx
Undefined symbols for architecture arm64:
"_accept4", referenced from:
_main in nuttx.rel
_main in nuttx.rel
"_dns_add_nameserver", referenced from:
_main in nuttx.rel
"_inet_ntoa_r", referenced from:
_main in nuttx.rel
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements. While it addresses a specific issue and provides some testing information, it lacks crucial details. Here's a breakdown of what's missing:
Example of Improved Information: Summary: This PR fixes a post-build issue with the SIM target that prevented compilation on other platforms. The problem stemmed from [explain the root cause of the issue, e.g., incorrect dependency ordering, missing library path, etc.]. This change addresses the issue by [explain the solution, e.g., modifying the Makefile to include the correct dependency, adding the missing library path to the linker script, etc.]. This resolves issue #14773. Impact:
Testing: Build Host: Linux (Ubuntu 22.04), x86_64, GCC 11.3.0 Target 1: sim:nsh Before:
After:
Target 2: [e.g., stm32f4discovery:nsh] Before:
After:
By providing this level of detail, reviewers can easily understand the change, its impact, and verify its effectiveness. This greatly increases the chances of the PR being accepted. |
Yes @lupyuen I only limit the actions of PAC. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry my apps folder was messed up, sim:nsh runs OK on macOS Arm64 now. Thanks!
https://gist.github.com/lupyuen/3ac496a3bf95c29c94dbbab932b424a1
sim:lua builds OK now, no LDD errors. But it's still giving seg fault:
|
could you attach gdb? so we can see the panic callstack. |
Lua seems to be crashing due to a stack problem?
|
look like the postpone c++ initialization stop work? arch/sim/src/sim/posix/sim_macho_init.c. |
Let's ignore ci error which is fixed by: #14802 |
Summary
avoid SIM compilation post build issues on other platforms
this should fix issue #14773 (comment)
Impact
bugfix
Testing