https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-office/dia-0.97.3-r1 fails to compile. Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: This machine uses MUSL libc
Created attachment 761229 [details] build.log build log and emerge --info
Created attachment 761230 [details] 1-config.log 1-config.log
Created attachment 861014 [details] Log output for ./configure; highlighting the issue Not strictly Gentoo related, as I am trying to got this to build on Alpine against musl, but here's what I've found so far. The ./configure script will try to figure out, whether there's an isinf() macro or function defined; to do this, it tries to get the attached piece of code (config.log:1225) to compile/link. However, for some weird GCC workaround it tries to redefine isinf as: char isinf(); ... which in conflicts with the musl built in definition of int isinf(...), in fact twice: the return value, and the fact, that it has no arguments: conftest.c:55:6: warning: conflicting types for built-in function 'isinf'; expected 'int()' [-Wbuiltin-declaration-mismatch] 55 | char isinf (); | ^~~~~ conftest.c:1:1: note: 'isinf' is declared in header '<math.h>' ... which in turn triggers ./configure to try finding ieeefp.h, which fails. The offending code begins at configure:18707.