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

Windows build: sccache deactivated #5

Closed
BrunoLevy opened this issue Mar 8, 2022 · 8 comments
Closed

Windows build: sccache deactivated #5

BrunoLevy opened this issue Mar 8, 2022 · 8 comments

Comments

@BrunoLevy
Copy link
Owner

In the "Prepare sccache" step it says:

Initializing...
Invoke-Expression: D:\a\_temp\ff2ee3ee-f101-4b64-b0b3-df1f0e660f49.ps1:2
Line |
   2 |  Invoke-Expression (New-Object System.Net.WebClient).DownloadString('h …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The term 'Select-CurrentVersion' is not recognized as a name of a cmdlet, function, script file, or
     | executable program. Check the spelling of the name, or if a path was included, verify that the path is
     | correct and try again.

Error: Process completed with exit code 1.

Do you have any hint @jdumas ?
(note: I've added yesterday github actions to build Doxygen doc and publish it on gh-pages, but I think it is unrelated)

@jdumas
Copy link
Contributor

jdumas commented Mar 8, 2022

Seems to be an issue with the scoop installer. It should be fixed soon! In the meantime you could comment out the step that installs sccache and comment out the line CMAKE_CXX_COMPILER_LAUNCHER=sccache on the Windows job.

@BrunoLevy
Copy link
Owner Author

Thank you Jeremie !

BrunoLevy added a commit that referenced this issue Mar 8, 2022
@BrunoLevy
Copy link
Owner Author

Leaving the issue open as a reminder that sccache should be reactivated as soon as scoop installer issues is fixed (ScoopInstaller/Scoop#4783)

@jdumas
Copy link
Contributor

jdumas commented Mar 8, 2022

Should be fixed now!

@BrunoLevy
Copy link
Owner Author

Re-activated sccache, works again.

@BrunoLevy BrunoLevy reopened this Mar 10, 2022
@BrunoLevy
Copy link
Owner Author

with latest update of scoop, it fails again (not running as admin by default anymore, and needed for sccache it seems).
For now, I deactivated sccache again in Build action so that Windows compile works.

@jdumas
Copy link
Contributor

jdumas commented Mar 10, 2022

Argh!
Maybe you can use the same changes as this guy? (see the doc about advanced installation)

@BrunoLevy BrunoLevy changed the title Windows build action is broken Windows build: sccache deactivated Jul 22, 2022
@BrunoLevy
Copy link
Owner Author

For now, deactivating cache build (does not gain a lot and makes build system much more complicated...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants