shinchiro / mpv-winbuild-cmake

CMake-based MinGW-w64 Cross Toolchain
592 stars 108 forks source link

ninja gcc fails to compile #638

Closed temis01 closed 6 months ago

temis01 commented 6 months ago

hi! I can't get ninja gcc to compile using msys2 Noob here plz help

Thanks T.

Error message :

[2/53] Performing build step for 'gcc-wrapper' FAILED: toolchain/gcc-wrapper-prefix/src/gcc-wrapper-stamp/gcc-wrapper-build /home/temis/build64/toolchain/gcc-wrapper-prefix/src/gcc-wrapper-stamp/gcc-wrapper-build /bin/sh toolchain/CMakeFiles/gcc-wrapper-build-a1d7382.sh e3b553fd7144bcce CMake Error: failed to create symbolic link '/home/temis/build64/install/bin/x86_64-w64-mingw32-as': No such file or directory [4/53] Performing install step for 'rustup' FAILED: toolchain/rustup-prefix/src/rustup-stamp/rustup-install /home/temis/build64/toolchain/rustup-prefix/src/rustup-stamp/rustup-install /bin/sh toolchain/CMakeFiles/rustup-install-0a9087c.sh 02fe81c9978a3193 CMake Error at /home/temis/build64/toolchain/rustup-prefix/src/rustup-stamp/rustup-install-.cmake:49 (message): Command failed: 101

'/home/temis/build64/exec' 'cargo' 'install' 'cargo-c' '--profile=release-strip' '--features=vendored-openssl'

See also

' /home/temis/build64/toolchain/rustup-prefix/src/rustup-stamp/rustup-install-*.log

[5/53] Performing configure step for 'gcc-binutils' ninja: build stopped: subcommand failed.

temis01 commented 6 months ago

ok thanks, I will try that.

temis01 commented 6 months ago

using ubuntu 22.04

it fails miserably at first GCC command :

cmake -DTARGET_ARCH=x86_64-w64-mingw32 \ -DGCC_ARCH=x86-64-v3 \ -DSINGLE_SOURCE_LOCATION="/home/temis/packages" \ -DRUSTUP_LOCATION="/home/temis/install_rustup" \ -G Ninja -B build64 -S mpv-winbuild-cmake

fail

temis01 commented 6 months ago

Thanks Andarwinux

temis01 commented 6 months ago

which one is bette or "easier" I mean "failsafe" GCC vs Clang ?

pip installs version 0.61 and command responds that meson is too old ! while apt-get installs version 1.4 and command responds same as picture above !! searching newer package now.

temis01 commented 6 months ago

sure ! CMakeOutput.log

temis01 commented 6 months ago

out.txt CMakeCache.txt

out2.txt is empty ; because of that error ! ninja: error: loading 'build.ninja': No such file or directory

temis01 commented 6 months ago

I appreciate that. When you do, tell me if you ran into problems installing app environment. And how you worked around. i did, lots! Maybe this big failure is just the consequence of that.

temis01 commented 6 months ago

I just re-installed cmake with this cmake-3.28.3-linux-x86_64.sh from cmake.org and problem solved ... so far ! Thanks

temis01 commented 6 months ago

I couldn't get GCC to build everything properly, I think it's a problem of memory management. After many retries I decided to go CLANG.

And boom ! First shot almost no err and only took 1h30 to complete ! llvm/clang much better memory manager on wsl, I could even start apps and browse the net while it was working except when ninja mpv was on ; which was impossible with gcc all along.

Just for the sake of it, is there anything I can do to avoid those errors ninja llvm-clang gave me ?


[61/81] Performing configure step for 'llvm-compiler-rt-builtin' CMake Warning (dev) at /home/temis/build_x86_64_v3/toolchain/llvm-compiler-rt-builtin-prefix/src/llvm-compiler-rt-builtin-stamp/llvm-compiler-rt-builtin-configure-.cmake:4: Syntax Warning in cmake code at column 816

Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it.

[71/81] Performing configure step for 'llvm-libcxx' CMake Warning (dev) at /home/temis/build_x86_64_v3/toolchain/llvm-libcxx-prefix/src/llvm-libcxx-stamp/llvm-libcxx-configure-.cmake:4: Syntax Warning in cmake code at column 973

Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/temis/build_x86_64_v3/toolchain/llvm-libcxx-prefix/src/llvm-libcxx-stamp/llvm-libcxx-configure-.cmake:4: Syntax Warning in cmake code at column 1234

Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it.

'[81/81] Completed 'llvm-clang'

temis01 commented 6 months ago

ok got it. Thanks again for your help I couldn't have set the environment properly without you 👍