Menu

libbu compile error on Ubuntu 9.1

2010-02-09
2013-04-22
  • Stuart Stevenson

    Gentlemen,
    ubuntu 9.1 - svn brlcad trunk
    compile ouput as follows

    Making all in libbu
    make: Entering directory `/home/stustev/brlcad/src/libbu'
    /bin/bash ../../libtool -silent -tag=CC  -silent -mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include  -DPREFIX=\"/usr/brlcad\"  -I../../src/other/tcl/generic -I../../src/other/tcl/unix  -I/usr/local/include -DBRLCADBUILD=1 -I../../include -I../../src/other/openNURBS  -pedantic -W -Wall -Werror -Wno-long-long -pipe -fno-strict-aliasing -fno-common -fexceptions -g3 -gstabs+ -O3 -MT bomb.lo -MD -MP -MF .deps/bomb.Tpo -c -o bomb.lo bomb.c
    cc1: warnings being treated as errors
    bomb.c: In function ‘bu_bomb’:
    bomb.c:111: error: ignoring return value of ‘write’, declared with attribute warn_unused_result
    bomb.c:112: error: ignoring return value of ‘write’, declared with attribute warn_unused_result
    bomb.c:157: error: ignoring return value of ‘write’, declared with attribute warn_unused_result
    make: ***  Error 1
    make: Leaving directory `/home/stustev/brlcad/src/libbu'
    make: ***  Error 1
    make: Leaving directory `/home/stustev/brlcad/src'
    make: ***  Error 1

    thanks for your help
    Stuart

     
  • Sean Morrison

    Sean Morrison - 2010-02-12

    Stuart,

    This problem is caused by incompatible configure options.  By default, BRL-CAD compiles with strict verbose warnings which conflicts with the -enable-optimized flag you used.  You need to also specify -disable-strict.

    Cheers!
    Sean

     

Log in to post a comment.