Created attachment 438068 [details] emerge --info Hello. sys-apps/file-5.28/work/file-5.28/src/magic.c: In function 'magic_setparam': sys-apps/file-5.28/work/file-5.28/src/magic.c:611:7: error: 'MAGIC_PARAM_BYTES_MAX' undeclared (first use in this function) case MAGIC_PARAM_BYTES_MAX:
Created attachment 438070 [details] build.log
Same for me.
The problem lies in the multilib_src_compile() function that's defined in the ebuild. When 'multilib_is_native_abi' is false, 'emake -C src libmagic.la' is called instead of 'emake'. The end result is that a needed header file, magic.h, is not created. That said, I had some difficulty reproducing this as /usr/include/magic.h was being substituted for the missing magic.h during the build.
(In reply to nvinson234 from comment #3) nice debug work. should be fixed here: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b60e6814ea6c95cedac4e03c2a1ce574207dea30
*** Bug 593334 has been marked as a duplicate of this bug. ***
I've applied the same for cross-compiled case: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc034c82b286e891d50f2c1e516640ee3107104c Reported by n05 user on #gentoo-embedded as a failure on armv7a target.