CC cairo_test_suite-in-fill-trapezoid.o CC cairo_test_suite-invalid-matrix.o invalid-matrix.c: In function 'draw': invalid-matrix.c:367:20: error: 'FE_INVALID' undeclared (first use in this function) invalid-matrix.c:367:20: note: each undeclared identifier is reported only once for each function it appears in At top level: cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable" make[4]: *** [cairo_test_suite-invalid-matrix.o] Error 1 make[4]: Leaving directory `/src/build/cairo/cairo-1.12.2/test' make[3]: *** [all-recursive] Error 1 according to musl libc author: "C99 requires the FE_ macros to be defined if and only if the exception they correspond to is supported" and since ARM doesn't necessarily support a FPU, this is optional. the proper way to test is to check if each of the FE_ is defined before using it.
Created attachment 68478 [details] [review] Patch which #defines all the undefined exception macros Comments? Is this good enough?
thanks, that works.
commit d5f9c694b9145f0464c8bd58d844bddedcb77d5e Author: Uli Schlachter <psychon@znc.in> Date: Tue Oct 16 17:09:42 2012 +0200 test: Define optional exception classes According to musl libc author: "C99 requires the FE_ macros to be defined if and only if the exception they correspond to is supported" So we define these macros to 0 if they are not supported. Support for these FPU exceptions is not necessary for correct functionality, but makes some tests less effective. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55771 Signed-off-by: Uli Schlachter <psychon@znc.in>
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.