Summary: | sci-geosciences/grass: emake failed: get_row.c:18:48: fatal error: rpc/types.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | Current packages | Assignee: | Sam Jorna (wraeth) (RETIRED) <wraeth> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sci-geosciences, tb, toralf |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | ~arch only | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 381391 | ||
Attachments: |
emerge --info
build.log (bzip2) |
I solved this for myself by creating the following file: $ cat /etc/portage/env/sci-geosciences/grass-7.0.4 export LIBS="$(pkg-config --libs libtirpc) ${LIBS}" export CPPFLAGS="$(pkg-config --cflags libtirpc) ${CPPFLAGS}" This is slightly inelegant, since the settings will get executed repeatedly, leading to several repetitions of each of them. So I guess this should go into some function, perhaps pre_pkg_setup(). But the above works, while I haven't tried the alternative. Please attach a complete build.log where this problem can be seen. Created attachment 440942 [details]
build.log (bzip2)
The actual error is reported in lines 788 through 800, but the build doesn't terminate till long after that, amounting to more than 1000k of log so I had to compress this.
(In reply to Martin von Gagern from comment #1) > I guess this should go into some function, perhaps pre_pkg_setup(). Indeed this works as intended, tested with grass 7.2.0: $ cat /etc/portage/env/sci-geosciences/grass-7.2.0 pre_pkg_setup() { export LIBS="$(pkg-config --libs libtirpc) ${LIBS}" export CPPFLAGS="$(pkg-config --cflags libtirpc) ${CPPFLAGS}" einfo "LIBS='${LIBS}' CPPFLAGS='${CPPFLAGS}' # bug #588980" } By the way, the error on my most recent build read In file included from auto_mask.c:23:0: R.h:3:23: fatal error: rpc/types.h: No such file or directory So I guess the exact message as to where rpc/types.h gets reported missing might vary between versions, parallel builds and so on. (In reply to Martin von Gagern from comment #0) > So I'd say this is related to the fact that rpc has been removed from > sys-libs/glibc. So I guess we need some magic to make the package support > net-libs/libtirpc. Next time, please, report this kind of problems upstream too. https://trac.osgeo.org/grass/ticket/3463 *** Bug 638350 has been marked as a duplicate of this bug. *** The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f602ce29a225b52165cf735a263c65a6a8774f36 commit f602ce29a225b52165cf735a263c65a6a8774f36 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-04-04 21:01:04 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-04-04 21:09:32 +0000 sci-geosciences/grass: Fix build with glibc-2.26 Reported-by: Martin von Gagern <Martin.vGagern@gmx.net> Thanks-to: MarisN <maris.gis@gmail.com> Closes: https://bugs.gentoo.org/588980 Package-Manager: Portage-2.3.28, Repoman-2.3.9 .../grass/files/grass-7.2.0-glibc-2.26-1.patch | 10 +++++++ .../grass/files/grass-7.2.0-glibc-2.26-2.patch | 32 ++++++++++++++++++++++ sci-geosciences/grass/grass-7.2.0-r1.ebuild | 1 + 3 files changed, 43 insertions(+) |
Created attachment 440930 [details] emerge --info Grass fails to update on my system: get_row.c:18:48: fatal error: rpc/types.h: No such file or directory compilation terminated. make[3]: *** [../../include/Make/Compile.make:32: OBJ.x86_64-pc-linux-gnu/get_ro w.o] Error 1 So I'd say this is related to the fact that rpc has been removed from sys-libs/glibc. So I guess we need some magic to make the package support net-libs/libtirpc.