Kazuhiko
kazuh****@fdiar*****
2011年 12月 15日 (木) 22:01:34 JST
こんにちは。かずひこです。 私自身の環境ではないのですが、同僚からDebian Squeeze 32bitでmroonga-1.10 のビルドができなかったという報告を受けました。-fno-strict-aliasing 有無をconfigureでチェックすべきなのでしょうか? ... make[2]: Entering directory `/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/mroonga-mariadb__compile__/mroonga-1.10' g++ -DHAVE_CONFIG_H -I. -I/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/mariadb__compile__/mariadb-5.3.2-beta/sql -I/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/mariadb__compile__/mariadb-5.3.2-beta/include -I/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/mariadb__compile__/mariadb-5.3.2-beta/regex -I/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/mariadb__compile__/mariadb-5.3.2-beta -I/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/mariadb/include/mysql -I/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/groonga/include/groonga -I/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/groonga/include/groonga -I/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/mariadb/include/mysql -g -DUNIV_LINUX -g -O2 -Wall -Wextra -Wno-unused-parameter -Werror -fno-implicit-templates -fno-exceptions -fno-rtti -felide-constructors -MT libha_groonga_a-ha_mroonga.o -MD -MP -MF .deps/libha_groonga_a-ha_mroonga.Tpo -c -o libha_groonga_a-ha_mroonga.o `test -f 'ha_mroonga.cc' || echo './'`ha_mroonga.cc cc1plus: warnings being treated as errors ha_mroonga.cc: In function 'uchar* mrn_multiple_column_key_encode(KEY*, const uchar*, uint, uchar*, uint*)': ha_mroonga.cc:740: error: dereferencing type-punned pointer will break strict-aliasing rules ha_mroonga.cc: In function 'int mrn_set_key_buf(grn_ctx*, Field*, const uchar*, uchar*, uint*)': ha_mroonga.cc:854: error: dereferencing type-punned pointer will break strict-aliasing rules make[2]: *** [libha_groonga_a-ha_mroonga.o] Error 1 make[2]: Leaving directory `/root/slapos/softwares/82385d7faedc3e23b4aa60af8f64189a/parts/mroonga-mariadb__compile__/mroonga-1.10' $ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.4.5 (Debian 4.4.5-8) かずひこ