Hi,

When trying to cross compile elfutils-0.187 for a MIPS device it fails with
various errors depending on the USE flags set on my crossdev Gentoo setup.

I believe but have not confirmed this is a MIPS issue until I have done
further tests.

in the MUSL overlay also fails with the same issue so I need to run some
 further tests on other arches.


With USE="bzip2 nls threads utils" I get a numbe of undefined variables
with the final error "being undefined reference to `assert_perror'"

With USE="-*" then it becomes:

 213 |       if (fnmatch (pattern->pattern, name, FNM_EXTMATCH) == 0)
      |                                            ^~~~~~~~~~~~
      |                                            FNM_NOMATCH
/usr/mipsr5900el-unknown-linux-musl/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187/src/strip.c:213:44:
note: each undeclared identifier is reported only once for each
function it appears in
/usr/mipsr5900el-unknown-linux-musl/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187/src/strip.c:
In function ‘parse_opt’:
/usr/mipsr5900el-unknown-linux-musl/tmp/portage/dev-libs/elfutils-0.187/work/elfutils-0.187/src/strip.c:329:37:
error: ‘FNM_EXTMATCH’ undeclared (first use in this function); did you
mean ‘FNM_NOMATCH’?
  329 |       if (fnmatch (arg, ".comment", FNM_EXTMATCH) == 0)
      |                                     ^~~~~~~~~~~~
      |                                     FNM_NOMATCH

fI'll include the build logs for both below but I would be grateful if
anyone has any ideas on how I can start to solve this isse.

https://www.immolo.co.uk/elfutils/nouse-build.log

https://www.immolo.co.uk/elfutils/withuse-build.log

Reply via email to