#314 Build Fals On Current GNU compiler tools

closed-fixed
Sean Morrison
8
2012-01-21
2012-01-21
Alan Cox
No

This appears to be a genuine warning

[ 35%] Building C object src/librt/CMakeFiles/librt.dir/primitives/extrude/extrude.c.o
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c: In function ‘isect_2D_loop_ray.isra.4’:
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:624:8: error: array subscript is above array bounds [-Werror=array-bounds]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:624:8: error: array subscript is above array bounds [-Werror=array-bounds]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:624:8: error: array subscript is above array bounds [-Werror=array-bounds]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:624:8: error: array subscript is above array bounds [-Werror=array-bounds]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:624:8: error: array subscript is above array bounds [-Werror=array-bounds]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:672:80: error: array subscript is above array bounds [-Werror=array-bounds]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:674:69: error: array subscript is above array bounds [-Werror=array-bounds]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:677:68: error: array subscript is above array bounds [-Werror=array-bounds]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:624:8: error: ‘ra[2]’ may be used uninitialized in this function [-Werror=uninitialized]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:1623:15: note: ‘ra[2]’ was declared here
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:624:8: error: ‘rb[2]’ may be used uninitialized in this function [-Werror=uninitialized]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:1624:15: note: ‘rb[2]’ was declared here
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:624:8: error: ‘center2d[2]’ may be used uninitialized in this function [-Werror=uninitialized]
/rotating/brlcad/brlcad-7.20.4/src/librt/primitives/extrude/extrude.c:1628:15: note: ‘center2d[2]’ was declared here
cc1: all warnings being treated as errors

make[2]: *** [src/librt/CMakeFiles/librt.dir/primitives/extrude/extrude.c.o] Error 1
make[1]: *** [src/librt/CMakeFiles/librt.dir/all] Error 2

Discussion

  • Alan Cox
    Alan Cox
    2012-01-21

    (Easiest way to see this is to try and build on Fedora 16)

     
  • Sean Morrison
    Sean Morrison
    2012-01-21

    Thanks for the bug report! That issue is already fixed in our latest sources (r47705), but after the 7.20.4 release you're using. The fix will be in our next release, though you can get that compilation to succeed by disabling strict mode compilation (all warnings are errors) with -DBRLCAD_ENABLE_STRICT=OFF during cmake. Alternatively, our trunk sources should succeed (svn co https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk brlcad).

    Cheers!

     
  • Sean Morrison
    Sean Morrison
    2012-01-21

    • labels: --> Compilation
    • milestone: --> other bug / workaround
    • priority: 5 --> 8
    • assigned_to: nobody --> brlcad
    • status: open --> closed-fixed