Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919678 - =sci-libs/kineto-0.4.0_p20231031 build failure: no FabricManager.h
Summary: =sci-libs/kineto-0.4.0_p20231031 build failure: no FabricManager.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-12-10 05:37 UTC by Yiyang Wu
Modified: 2023-12-11 07:43 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,6.79 KB, text/plain)
2023-12-10 05:38 UTC, Yiyang Wu
Details
build.log (build.log,16.15 KB, text/x-log)
2023-12-10 05:38 UTC, Yiyang Wu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yiyang Wu 2023-12-10 05:37:29 UTC
Compilation of =sci-libs/kineto-0.4.0_p20231208 fails with

FAILED: CMakeFiles/kineto_base.dir/src/DaemonConfigLoader.cpp.o
/opt/gentoo/usr/bin/x86_64-pc-linux-gnu-g++  -I/tmp/portage/sci-libs/kineto-0.4.0_p20231031/work/kineto-a30ca3f9509c2cfd28561abbca51328f0bdf9014/libkineto/include -I/tmp/portage/sci-libs/kineto-0.4.0_p20231031/work/kineto-a30ca3f9509c2cfd28561abbca51328f0bdf9014/libkineto/src -I/usr/include/dynolog -I/usr/include/dynolog/src/ipcfabric -I/extras/CUPTI/include -I/include -I/include/roctracer  -march=znver2 -O2 -pipe -std=c++17 -DKINETO_NAMESPACE=libkineto -fPIC -DFMT_HEADER_ONLY -DENABLE_IPC_FABRIC -std=c++17 -MD -MT CMakeFiles/kineto_base.dir/src/DaemonConfigLoader.cpp.o -MF CMakeFiles/kineto_base.dir/src/DaemonConfigLoader.cpp.o.d -o CMakeFiles/kineto_base.dir/src/DaemonConfigLoader.cpp.o -c /tmp/portage/sci-libs/kineto-0.4.0_p20231031/work/kineto-a30ca3f9509c2cfd28561abbca51328f0bdf9014/libkineto/src/DaemonConfigLoader.cpp
In file included from /tmp/portage/sci-libs/kineto-0.4.0_p20231031/work/kineto-a30ca3f9509c2cfd28561abbca51328f0bdf9014/libkineto/src/DaemonConfigLoader.cpp:16:
/tmp/portage/sci-libs/kineto-0.4.0_p20231031/work/kineto-a30ca3f9509c2cfd28561abbca51328f0bdf9014/libkineto/src/IpcFabricConfigClient.h:21:10: fatal error: FabricManager.h: No such file or directory
   21 | #include "FabricManager.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

Reproducible: Always
Comment 1 Yiyang Wu 2023-12-10 05:38:05 UTC
Created attachment 878604 [details]
emerge --info
Comment 2 Yiyang Wu 2023-12-10 05:38:23 UTC
Created attachment 878605 [details]
build.log
Comment 3 Yiyang Wu 2023-12-10 05:38:52 UTC
Confirm that 0.4.0 can build without this issue on the same system.
Comment 4 Yiyang Wu 2023-12-10 05:45:34 UTC
Tried bumping to the lastest https://github.com/pytorch/kineto/commit/fea669c33474eefb93a4954cd1875203282fb382, does not resolve the issue
Comment 5 Tupone Alfredo gentoo-dev 2023-12-10 09:24:11 UTC
Here it is in this location:

/usr/include/dynolog/src/ipcfabric/FabricManager.h
from 
dev-libs/dynolog
Comment 6 Yiyang Wu 2023-12-10 09:37:08 UTC
(In reply to Tupone Alfredo from comment #5)
> Here it is in this location:
> 
> /usr/include/dynolog/src/ipcfabric/FabricManager.h
> from 
> dev-libs/dynolog

So that means it's a prefix specific bug, my dev-libs/dynolog provides

/opt/gentoo/usr/include/dynolog/src/ipcfabric/FabricManager.h

but in build.ninja there's `-I/usr/include/dynolog/src/ipcfabric` (and also there are many other -I flags not properly prefixified)
Comment 7 Tupone Alfredo gentoo-dev 2023-12-10 10:13:44 UTC
(In reply to Yiyang Wu from comment #6)
> (In reply to Tupone Alfredo from comment #5)
> > Here it is in this location:
> > 
> > /usr/include/dynolog/src/ipcfabric/FabricManager.h
> > from 
> > dev-libs/dynolog
> 
> So that means it's a prefix specific bug, my dev-libs/dynolog provides
> 
> /opt/gentoo/usr/include/dynolog/src/ipcfabric/FabricManager.h
> 
> but in build.ninja there's `-I/usr/include/dynolog/src/ipcfabric` (and also
> there are many other -I flags not properly prefixified)

do you know how to fix it?
Comment 8 Yiyang Wu 2023-12-10 10:21:18 UTC
(In reply to Tupone Alfredo from comment #7)
> (In reply to Yiyang Wu from comment #6)
> > (In reply to Tupone Alfredo from comment #5)
> > > Here it is in this location:
> > > 
> > > /usr/include/dynolog/src/ipcfabric/FabricManager.h
> > > from 
> > > dev-libs/dynolog
> > 
> > So that means it's a prefix specific bug, my dev-libs/dynolog provides
> > 
> > /opt/gentoo/usr/include/dynolog/src/ipcfabric/FabricManager.h
> > 
> > but in build.ninja there's `-I/usr/include/dynolog/src/ipcfabric` (and also
> > there are many other -I flags not properly prefixified)
> 
> do you know how to fix it?

Let me have a try
Comment 9 Larry the Git Cow gentoo-dev 2023-12-11 07:43:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=837259803593f16223ba81a222b8b7d160362367

commit 837259803593f16223ba81a222b8b7d160362367
Author:     Yiyang Wu <xgreenlandforwyy@gmail.com>
AuthorDate: 2023-12-11 07:03:29 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2023-12-11 07:42:53 +0000

    sci-libs/kineto: prefixify absolute paths
    
    Closes: https://bugs.gentoo.org/919678
    Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34230
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 sci-libs/kineto/files/kineto-0.4.0_p20231031-gentoo.patch | 4 ++--
 sci-libs/kineto/kineto-0.4.0_p20231031.ebuild             | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)