cmake(bugfix):fix libcxx build error cause by layout changed#14780
Merged
Conversation
/home/data/vela/github/nuttx/libs/libxx/libcxxabi/libcxxabi/src/cxa_exception.h:47:10: error: 'unexpected_handler' in namespace 'std' does not name a type
47 | std::unexpected_handler unexpectedHandler;
| ^~~~~~~~~~~~~~~~~~
/home/data/vela/github/nuttx/libs/libxx/libcxxabi/libcxxabi/src/cxa_exception.h:85:10: error: 'unexpected_handler' in namespace 'std' does not name a type
85 | std::unexpected_handler unexpectedHandler;
| ^~~~~~~~~~~~~~~~~~
/home/data/vela/github/nuttx/libs/libxx/libcxxabi/libcxxabi/src/cxa_exception.h:121:65: error: static assertion failed: propagationCount has wrong negative offset
121 | sizeof(_Unwind_Exception) + sizeof(void*) ==
| ^
/home/data/vela/github/nuttx/libs/libxx/libcxxabi/libcxxabi/src/cxa_exception.h:121:65: note: the comparison reduces to '(124 == 128)'
/home/data/vela/github/nuttx/libs/libxx/libcxxabi/libcxxabi/src/cxa_exception.h:125:65: error: static assertion failed: propagationCount has wrong negative offset
125 | sizeof(_Unwind_Exception) + sizeof(void*) ==
|
/home/data/vela/github/nuttx/libs/libxx/libcxxabi/libcxxabi/src/cxa_default_handlers.cpp:20:10: fatal error: include/atomic_support.h: No such file or directory
20 | #include "include/atomic_support.h" // from libc++
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
|
[Experimental Bot, please feedback here] Yes, this PR appears to meet the NuttX requirements, although some sections could be expanded for clarity. Here's a breakdown: Strengths:
Areas for Improvement (While Minor, they enhance clarity):
Conclusion: The PR substantially meets the requirements. The suggested improvements would make it even stronger by providing more comprehensive information and clarity for reviewers. |
xiaoxiang781216
approved these changes
Nov 14, 2024
xiaoxiang781216
approved these changes
Nov 14, 2024
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.
Summary
PR #14668 caused a build error after adjusting the layout.
This commit fixes this problem
Impact
bugfix
Testing
enable CONFIG_LIBCXX
enable CONFIG_LIBCXXABI
build pass