On 21-08-2011 17:04:52 +0300, Michael Sioutis wrote:
Hello,
I get an error when trying to compile latest MonetDB default branch on my Ubuntu 10.04 64bit machine.
bootstrap: OK configure (../configure --prefix=/opt/MonetDB/ --enable-monetdb5 --enable-sql --enable-rdf --enable-geom --enable-bits=64 --enable-debug --enable-datacell): OK make -j2: ERROR
The error is: ../../gdk/[1]gdk_batop.mx: In function ‘BATsetprop’: ../../gdk/[2]gdk_batop.mx:2890: error: not protecting function: no buffer at least 8 bytes long
I think flags -fstack-protector-all and -Wstack-protector are to blame, they default to 8 bytes. I can skip the problem if I set 8 byte long dummy buffers to EVERY function that doesn't have such a buffer, e.g., char mybuf[8]; memset(buf, 0, sizeof(buf));
I also thought of setting the buffer size to 1, by passing --param spp-buffer-size=1 as a compiler option, but then I get various other errors.
-fstack-protector-all should check everything. I'd be interested to see your configure output.