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

fix macos sim nsh break, fix missing ops in psedofile_ops, fix no -mcmodel=medium in clang. #14606

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jasonbu
Copy link
Contributor

@jasonbu jasonbu commented Nov 2, 2024

Summary

after this patch #13498, we add new

  CODE ssize_t (*readv)(FAR struct file *filep, FAR const struct uio *uio);
  CODE ssize_t (*writev)(FAR struct file *filep, FAR const struct uio *uio);

in struct file_operations.
but
static const struct file_operations g_pseudofile_ops
did not update, as there is a pseudofile_unlink in last ops.
case sim:nsh break.

after #14466, add -mcmodel=medium witch is not supported in clang.
-mcmodel=large, should both support gcc & clang.
case sim:nsh break in makefile.

Impact

change from -mcmodel=medium to -mcmodel=large maybe cause larger codesize? not sure if it's a critical index.
sim:nsh in macos will ready to work with both make and cmake after fix.

Testing

ci-test, local macos with cmake sim:nsh & makefile sim:nsh.

@github-actions github-actions bot added Area: File System File System issues Board: simulator Size: XS The size of the change in this PR is very small labels Nov 2, 2024
@github-actions github-actions bot added Size: S The size of the change in this PR is small and removed Size: XS The size of the change in this PR is very small labels Nov 2, 2024
Will cause sim:nsh break in macos environment, the fs_psedofile missing ops update

Signed-off-by: buxiasen <[email protected]>
Will report clang: error: invalid argument 'medium' to -mcmodel=
-mcmodel=large will both support clang and gcc.

Signed-off-by: buxiasen <[email protected]>
@github-actions github-actions bot added Size: XS The size of the change in this PR is very small and removed Size: S The size of the change in this PR is small labels Nov 2, 2024
@jasonbu jasonbu marked this pull request as draft November 2, 2024 17:54
@simbit18
Copy link
Contributor

simbit18 commented Nov 6, 2024

Hi @jasonbu are there any updates on this PR ?

macos workflow is broken

====================================================================================
Configuration/Tool: sim/configdata
2024-11-06 09:58:37
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Building NuttX...
clang: error: invalid argument 'medium' to -mcmodel=
ERROR: cc failed: 1

@jasonbu
Copy link
Contributor Author

jasonbu commented Nov 6, 2024

Hi @jasonbu are there any updates on this PR ?

macos workflow is broken

====================================================================================
Configuration/Tool: sim/configdata
2024-11-06 09:58:37
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Building NuttX...
clang: error: invalid argument 'medium' to -mcmodel=
ERROR: cc failed: 1

hi, in my patch, msvc failed, and recent days don't have time verfy the mscv CI report issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: File System File System issues Board: simulator Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants