cemu-project / Cemu

Cemu - Wii U emulator
https://cemu.info
Mozilla Public License 2.0
6.8k stars 527 forks source link

Can't compile on F39 #1070

Closed leifliddy closed 7 months ago

leifliddy commented 7 months ago

I compile Cemu roughly once a month using my project which compiles Cemu in a F39 container https://github.com/leifliddy/podman-cemu-builder

It's really easy to repro as you only need to run a couple of commands..... Something has changed over the last week or two.

During the build phase I'm seeing this error

+ cmake -S . -B build -DCMAKE_BUILD_TYPE=release -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -G Ninja
-- Bootstrapping vcpkg before install
-- Bootstrapping vcpkg before install - done
-- Running vcpkg install
error: failed to execute: /usr/bin/git --git-dir=/root/cemu/dependencies/vcpkg/.git --work-tree=/root/cemu/dependencies/vcpkg/buildtrees/versioning_/versions/boost-modular-build-helper/843c4331dc1453c80f99e25be4513c99074c5cf2_1293.tmp -c core.autocrlf=false read-tree -m -u 843c4331dc1453c80f99e25be4513c99074c5cf2
vcpkg was cloned as a shallow repository in: /root/cemu/dependencies/vcpkg/.git
Try again with a full vcpkg clone.
error: git failed with exit code: (128).
fatal: failed to unpack tree object 843c4331dc1453c80f99e25be4513c99074c5cf2
note: while checking out port boost-modular-build-helper with git tree 843c4331dc1453c80f99e25be4513c99074c5cf2
-- Running vcpkg install - failed
CMake Error at dependencies/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):
  vcpkg install failed.  See logs for more information:
  /root/cemu/build/vcpkg-manifest-install.log
Call Stack (most recent call first):
  /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:148 (include)
  CMakeLists.txt:37 (project)

There's something off with that command -- if I try and run it manually I get this

[root@cemu_builder ~]# /usr/bin/git --git-dir=/root/cemu/dependencies/vcpkg/.git --work-tree=/root/cemu/dependencies/vcpkg/buildtrees/versioning_/versions/boost-modular-build-helper/843c4331dc1453c80f99e25be4513c99074c5cf2_1293.tmp -c core.autocrlf=false read-tree -m -u 843c4331dc1453c80f99e25be4513c99074c5cf2
fatal: failed to unpack tree object 843c4331dc1453c80f99e25be4513c99074c5cf2

Any help would be appreciated.

leifliddy commented 7 months ago

Interesting, it compiles fine if I clone the full https://github.com/microsoft/vcpkg.git repo to /root/cemu/dependencies/vcpkg/ Is that what we're meant to do now?

leifliddy commented 7 months ago

damn, now it's failing at

error: building libxcrypt:x64-linux failed with: BUILD_FAILED
Elapsed time to handle libxcrypt:x64-linux: 5.9 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libxcrypt
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[libxcrypt]+Build+error+on+x64-linux&body=Copy+issue+body+from+%2Froot%2Fcemu%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

-- Running vcpkg install - failed
CMake Error at dependencies/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):
  vcpkg install failed.  See logs for more information:
  /root/cemu/build/vcpkg-manifest-install.log
Call Stack (most recent call first):
  /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:148 (include)
  CMakeLists.txt:37 (project)

Which sucks because I have those devel libraries installed

[root@cemu_builder cemu]# rpm -qa | grep libxcrypt
libxcrypt-4.4.36-2.fc39.x86_64
libxcrypt-devel-4.4.36-2.fc39.x86_64
leifliddy commented 7 months ago

hmm...

configure:5212: result: no
configure:5212: checking for endian.h
configure:5212: /usr/bin/cc -c -fPIC -g  conftest.c >&5
configure:5212: $? = 0
configure:5212: result: yes
configure:5212: checking for sys/endian.h
configure:5212: /usr/bin/cc -c -fPIC -g  conftest.c >&5
conftest.c:56:10: fatal error: sys/endian.h: No such file or directory
   56 | #include <sys/endian.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
configure:5212: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xcrypt"
| #define PACKAGE_TARNAME "libxcrypt"
| #define PACKAGE_VERSION "4.4.36"
| #define PACKAGE_STRING "xcrypt 4.4.36"
| #define PACKAGE_BUGREPORT "https://github.com/besser82/libxcrypt/issues"
| #define PACKAGE_URL "https://github.com/besser82/libxcrypt"
| #define PACKAGE "libxcrypt"
| #define VERSION "4.4.36"
leifliddy commented 7 months ago

installing libbsd-devel "should" fulfill that requirement

libbsd-devel-0.11.7-5.fc39.i686 : Development files for libbsd
Repo        : fedora
Matched from:
Other       : **sys/endian.h*

Trying again.....

leifliddy commented 7 months ago

Update: Still getting that libxcrypt build error. Not sure what needs to be done to resolve it.

cabrerahector commented 7 months ago

Maybe related? https://github.com/cemu-project/Cemu/pull/1064#issue-2080461485

qurious-pixel commented 7 months ago

Get your vcpkg submodule up-to-date.

cd dependencies/vcpkg
git fetch --unshallow
git pull --all

Go to Discord for troubleshooting.

leifliddy commented 7 months ago

Thanks. I'll try that tonight.