Skip to content
New issue

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

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Builds failing with error: use of undeclared identifier 'swprintf_s' #77282

Closed
elinor-fung opened this issue Oct 20, 2022 · 9 comments · Fixed by #77284
Closed

Builds failing with error: use of undeclared identifier 'swprintf_s' #77282

elinor-fung opened this issue Oct 20, 2022 · 9 comments · Fixed by #77284
Assignees
Labels
area-VM-coreclr blocking Marks issues that we want to fast track in order to unblock other important work
Milestone

Comments

@elinor-fung
Copy link
Member

Likely from #77228

Example: https://dev.azure.com/dnceng-public/public/_build/results?buildId=58398&view=logs&jobId=c15592f9-a6ec-52c9-e864-c0455e061f15&j=c15592f9-a6ec-52c9-e864-c0455e061f15&t=e6ee899e-01c1-5f09-519b-c43bc88cb55e

[ 84%] Building CXX object dlls/dbgshim/CMakeFiles/dbgshim.dir/dbgshim.cpp.o
  /Users/runner/work/1/s/src/mono/dlls/dbgshim/dbgshim.cpp:64:5: error: use of undeclared identifier 'swprintf_s'
      swprintf_s(w_android_run_adb_command, 2048, W("%ws %ws"), w_android_adb_path, w_command_to_execute);
      ^
  1 error generated.
  make[2]: *** [dlls/dbgshim/CMakeFiles/dbgshim.dir/dbgshim.cpp.o] Error 1
  make[1]: *** [dlls/dbgshim/CMakeFiles/dbgshim.dir/all] Error 2
  make[1]: *** Waiting for unfinished jobs....

@AaronRobinsonMSFT

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Oct 20, 2022
@ghost
Copy link

ghost commented Oct 20, 2022

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

Likely from #77228

Example: https://dev.azure.com/dnceng-public/public/_build/results?buildId=58398&view=logs&jobId=c15592f9-a6ec-52c9-e864-c0455e061f15&j=c15592f9-a6ec-52c9-e864-c0455e061f15&t=e6ee899e-01c1-5f09-519b-c43bc88cb55e

[ 84%] Building CXX object dlls/dbgshim/CMakeFiles/dbgshim.dir/dbgshim.cpp.o
  /Users/runner/work/1/s/src/mono/dlls/dbgshim/dbgshim.cpp:64:5: error: use of undeclared identifier 'swprintf_s'
      swprintf_s(w_android_run_adb_command, 2048, W("%ws %ws"), w_android_adb_path, w_command_to_execute);
      ^
  1 error generated.
  make[2]: *** [dlls/dbgshim/CMakeFiles/dbgshim.dir/dbgshim.cpp.o] Error 1
  make[1]: *** [dlls/dbgshim/CMakeFiles/dbgshim.dir/all] Error 2
  make[1]: *** Waiting for unfinished jobs....

@AaronRobinsonMSFT

Author: elinor-fung
Assignees: -
Labels:

area-Diagnostics-coreclr

Milestone: -

@AaronRobinsonMSFT AaronRobinsonMSFT self-assigned this Oct 20, 2022
@AaronRobinsonMSFT AaronRobinsonMSFT removed the untriaged New issue has not been triaged by the area owner label Oct 20, 2022
@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 8.0.0 milestone Oct 20, 2022
@AaronRobinsonMSFT
Copy link
Member

FYI @janvorli and @jkotas We are again hitting the PAL being pulled into unexpected places.

@BruceForstall
Copy link
Member

Maybe eng\pipelines\common\evaluate-default-paths.yml needs to be updated so the right tests get triggered for mono?

@am11
Copy link
Member

am11 commented Oct 20, 2022

unexpected places.

Mono debug shim is there since .NET 6 preview 4: 82e8d0e

@elinor-fung
Copy link
Member Author

Maybe eng\pipelines\common\evaluate-default-paths.yml needs to be updated so the right tests get triggered for mono?

Yeah, I think we should update at least

- subset: mono_excluding_wasm
to trigger on src/coreclr/pal changes.

@jkotas
Copy link
Member

jkotas commented Oct 20, 2022

It should be on all src/coreclr changes. The Mono dbg shim depends on like number of different pieces from src/coreclr

@elinor-fung
Copy link
Member Author

Ah, then I guess it is more we need to stop excluding src/coreclr

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Oct 20, 2022
@AaronRobinsonMSFT
Copy link
Member

Fix is up - #77284

Please someone tell me how I should update evaluate-default-paths.yml. I can add that to the PR.

@elinor-fung
Copy link
Member Author

Or maybe it could be narrowed down to
clrdefinitions.cmake
inc/
md/
minipal/
nativeresources/
pal/
palrt/
utilcode/

Based on a coarse search for CLR_DIR in mono.

@AaronRobinsonMSFT AaronRobinsonMSFT added the blocking Marks issues that we want to fast track in order to unblock other important work label Oct 20, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Oct 20, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 20, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
area-VM-coreclr blocking Marks issues that we want to fast track in order to unblock other important work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants