[bug] cc1 error
rubinigor opened this issue · 2 comments
rubinigor commented
Describe the bug
I'm not very good at English so I'll use google translator, sorry for any mistakes in advance
I use windows 11, I have gcc, I tested it, it worked, but I don't know what it is and what's up with this cc1
Reproduction
I just started a new tauri 2 project using svelte and npm
Expected behavior
I expected a window to open, the same as in versions 1
Full tauri info
output
PS C:\Users\Admin\Desktop\GitHub\MAP GAME\Main\map-game> npm run tauri info
> map-game@0.1.0 tauri
> tauri info
[✔] Environment
- OS: Windows 10.0.22631 x86_64 (X64)
✔ WebView2: 129.0.2792.89
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-gnu (default)
- node: 20.12.1
- npm: 10.5.0
- deno: deno 1.46.2
[-] Packages
- tauri 🦀: 2.0.4
- tauri-build 🦀: 2.0.1
- wry 🦀: 0.46.2
- tao 🦀: 0.30.3
- tauri-cli 🦀: 2.0.3
- @tauri-apps/api : 2.0.2
- @tauri-apps/cli : 2.0.3
[-] Plugins
- tauri-plugin-shell 🦀: 2.0.1
- @tauri-apps/plugin-shell : 2.0.0
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../build
- devUrl: http://localhost:1420/
- framework: Svelte
- bundler: Vite
Stack trace
error: failed to run custom build command for `map-game v0.1.0 (C:\Users\Admin\Desktop\GitHub\MAP GAME\Main\map-game\src-tauri)`
Caused by:
process didn't exit successfully: `C:\Users\Admin\Desktop\GitHub\MAP GAME\Main\map-game\src-tauri\target\release\build\map-game-d0ab7dccec9e8d0e\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=TAURI_CONFIG
cargo:rerun-if-changed=tauri.conf.json
cargo:rustc-check-cfg=cfg(desktop)
cargo:rustc-cfg=desktop
cargo:rustc-check-cfg=cfg(mobile)
cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_APP_NAME=app
cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_PREFIX=pl_map_1game
cargo:rustc-check-cfg=cfg(dev)
cargo:PERMISSION_FILES_PATH=C:\Users\Admin\Desktop\GitHub\MAP GAME\Main\map-game\src-tauri\target\release\build\map-game-84ac0c23791b5156\out\app-manifest\__app__-permission-files
cargo:rerun-if-changed=capabilities
cargo:rustc-env=TAURI_ENV_TARGET_TRIPLE=x86_64-pc-windows-gnu
package.metadata does not exist
--- stderr
gcc: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
windres: preprocessing failed.
thread 'main' panicked at C:\Users\Admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\embed-resource-2.5.0\src\windows_not_msvc.rs:48:25:
windres failed to compile "C:\Users\Admin\Desktop\GitHub\MAP GAME\Main\map-game\src-tauri\target\release\build\map-game-84ac0c23791b5156\out\resource.rc" into "C:\Users\Admin\Desktop\GitHub\MAP GAME\Main\map-game\src-tauri\target\release\build\map-game-84ac0c23791b5156\out/libresource.a" with exit code: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
failed to build app: failed to build app
Error failed to build app: failed to build app
Additional context
I don't know if it's a tauri error, or something on my end or maybe just svelte but there were general errors while generating rust
FabianLars commented
In what path did you install msys2? It hates special characters including spaces (ref). On that note, does it work if rename MAP GAME
to something without spaces?
rubinigor commented
sorry i don't add cc1 do path, i have msys