Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909331 - [guru] games-emulation/yuzu-9999 fails to build vk_mem_alloc.h No such file or directory
Summary: [guru] games-emulation/yuzu-9999 fails to build vk_mem_alloc.h No such file o...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Samuel Bauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-28 09:13 UTC by SigHunter
Modified: 2023-07-19 21:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,44.08 KB, text/x-log)
2023-06-28 09:16 UTC, SigHunter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SigHunter 2023-06-28 09:13:52 UTC
FAILED: externals/CMakeFiles/vma.dir/vma/vma.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DARCHITECTURE_x86_64=1 -DBOOST_ASIO_DISABLE_CONCEPTS -DYUZU_UNIX=1 -I/var/tmp/portage/games-emulation/yuzu-9999/work/yuzu-9999/externals/./vma/VulkanMemoryAllocator/include  -march=native -O2 -pipe -std=gnu++20 -MD -MT externals/CMakeFiles/vma.dir/vma/vma.cpp.o -MF externals/CMakeFiles/vma.dir/vma/vma.cpp.o.d -o externals/CMakeFiles/vma.dir/vma/vma.cpp.o -c /var/tmp/portage/games-emulation/yuzu-9999/work/yuzu-9999/externals/vma/vma.cpp
/var/tmp/portage/games-emulation/yuzu-9999/work/yuzu-9999/externals/vma/vma.cpp:8:10: fatal error: vk_mem_alloc.h: No such file or directory
    8 | #include <vk_mem_alloc.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

build log attached. probably related to this yuzu PR https://github.com/yuzu-emu/yuzu/pull/10473

Reproducible: Always

Steps to Reproduce:
1. emerge games-emulation/yuzu-9999
2.
3.
Actual Results:  
build fails with compilation error 
fatal error: vk_mem_alloc.h: No such file or directory

Expected Results:  
should compile fine

probably a missing dependency
Comment 1 SigHunter 2023-06-28 09:16:55 UTC
Created attachment 864776 [details]
build log
Comment 2 chinqrw 2023-06-28 22:04:30 UTC
Hi, I have meet the same issue, yuzu has added a new submodule "VulkanMemoryAllocator" https://github.com/yuzu-emu/yuzu/pull/10473.

I don't have access permission for guru repo, hope someone can help fix it.


--- yuzu-9999.ebuild.old	2023-06-28 16:58:23.140372022 -0500
+++ yuzu-9999.ebuild	2023-06-27 15:53:23.289254418 -0500
@@ -8,7 +8,7 @@
 DESCRIPTION="An emulator for Nintendo Switch"
 HOMEPAGE="https://yuzu-emu.org"
 EGIT_REPO_URI="https://github.com/yuzu-emu/yuzu-mainline"
-EGIT_SUBMODULES=( '-*' 'dynarmic' 'sirit' 'xbyak' 'tzdb_to_nx' 'externals/nx_tzdb/tzdb_to_nx/externals/tz/tz' )
+EGIT_SUBMODULES=( '-*' 'dynarmic' 'sirit' 'xbyak' 'tzdb_to_nx' 'externals/nx_tzdb/tzdb_to_nx/externals/tz/tz' 'VulkanMemoryAllocator' )
 # Dynarmic is not intended to be generic, it is tweaked to fit emulated processor
 # TODO wait 'xbyak' waiting version bump. see #860816
Comment 3 Samuel Bauer 2023-07-03 16:32:03 UTC
Fixed in dev branch
Comment 4 Samuel Bauer 2023-07-03 16:33:18 UTC
SigHunter: If you don't set me as assignee. I can not close bug, may you
Comment 5 SigHunter 2023-07-19 14:26:54 UTC
The vma issue in this bug report was fixed, thanks Samuel Bauer!

It currently is possible to build games-emulation/yuzu-9999::guru 

however, when I enable USE=webservice or discord, build fails with 



-- Configuring done (7.3s)
CMake Error at src/yuzu/CMakeLists.txt:363 (target_link_libraries):
  Target "yuzu" links to:

    httplib::httplib

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



CMake Error at src/web_service/CMakeLists.txt:20 (target_link_libraries):
  Target "web_service" links to:

    httplib::httplib

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.


maybe you can take a look at that if you feel like it but for the moment, I am happy, as I don't need those  :-)
Comment 6 Samuel Bauer 2023-07-19 21:25:21 UTC
(In reply to SigHunter from comment #5)
> The vma issue in this bug report was fixed, thanks Samuel Bauer!
> 
> It currently is possible to build games-emulation/yuzu-9999::guru 
> 
> however, when I enable USE=webservice or discord, build fails with 
> 
> 
> 
> -- Configuring done (7.3s)
> CMake Error at src/yuzu/CMakeLists.txt:363 (target_link_libraries):
>   Target "yuzu" links to:
> 
>     httplib::httplib
> 
>   but the target was not found.  Possible reasons include:
> 
>     * There is a typo in the target name.
>     * A find_package call is missing for an IMPORTED target.
>     * An ALIAS target is missing.
> 
> 
> 
> CMake Error at src/web_service/CMakeLists.txt:20 (target_link_libraries):
>   Target "web_service" links to:
> 
>     httplib::httplib
> 
>   but the target was not found.  Possible reasons include:
> 
>     * There is a typo in the target name.
>     * A find_package call is missing for an IMPORTED target.
>     * An ALIAS target is missing.
> 
> 
> maybe you can take a look at that if you feel like it but for the moment, I
> am happy, as I don't need those  :-)

I solved it locally reverting to =dev-cpp/cpp-httplib-0.12.3, idk exactly what happened as last week I was using =dev-cpp/cpp-httplib-0.13.1 successfully. I could add a version limit to the ebuild, but for now I prefer keep it as is and focus on working being able to compile with latest cpp-httplib back.