[cairo-bugs] [Bug 55771] New: build fails because FE_INVALID is used uncoditionally in tests

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 8 11:15:04 PDT 2012


          Priority: medium
            Bug ID: 55771
          Assignee: cworth at cworth.org
           Summary: build fails because FE_INVALID is used uncoditionally
                    in tests
        QA Contact: cairo-bugs at cairographics.org
          Severity: blocker
    Classification: Unclassified
                OS: Linux (All)
          Reporter: nico.nelson-91c8b80 at yopmail.com
          Hardware: ARM
            Status: NEW
           Version: 1.12.2
         Component: general
           Product: cairo

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
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

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20121008/7e3dd4c6/attachment.html>

More information about the cairo-bugs mailing list