Can't compile on F39 #1070

Closed
opened 2024-01-17 02:57:01 -03:00 by leifliddy · 8 comments
leifliddy commented 2024-01-17 02:57:01 -03:00 (Migrated from github.com)

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.

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 2024-01-17 03:02:36 -03:00 (Migrated from github.com)

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?

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 2024-01-17 03:05:25 -03:00 (Migrated from github.com)

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
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 2024-01-17 03:08:46 -03:00 (Migrated from github.com)

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"
```
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 2024-01-17 03:13:35 -03:00 (Migrated from github.com)

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.....

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 2024-01-17 03:18:22 -03:00 (Migrated from github.com)

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

Update: Still getting that `libxcrypt` build error. Not sure what needs to be done to resolve it.
cabrerahector commented 2024-01-17 08:39:22 -03:00 (Migrated from github.com)
Maybe related? https://github.com/cemu-project/Cemu/pull/1064#issue-2080461485
qurious-pixel commented 2024-01-17 10:19:00 -03:00 (Migrated from github.com)

Get your vcpkg submodule up-to-date.

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

Go to Discord for troubleshooting.

Get your vcpkg submodule up-to-date. ``` cd dependencies/vcpkg git fetch --unshallow git pull --all ``` Go to [Discord](https://discord.gg/5psYsup) for troubleshooting.
leifliddy commented 2024-01-17 15:43:37 -03:00 (Migrated from github.com)

Thanks. I'll try that tonight.

Thanks. I'll try that tonight.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cemu-project_Mirror/Cemu-2024-03-05#1070
No description provided.