[Gridflow-dev] debian wheezy build

Claude Heiland-Allen claude at mathr.co.uk
Wed Jul 18 07:18:34 EDT 2012


Hi!

gridflow trunk doesn't build on debian wheezy, but the fixes are quite 
simple:

in numop2 pass3 move clipadd clibsub definitions above first use

add #include <unistd.h> in a couple of places
(probably it was transcluded by some other header before)

trying to find where I put my svn credentials so I can commit (I do have 
them somewhere, just not right here right now)

got some fresh warnings too:

--8<--
/usr/bin/ruby1.9.1 -w src/source_filter.rb src/formats.cxx 
src/formats.cxx.fcs
src/source_filter.rb:220: warning: assigned but unused variable - default
src/source_filter.rb:249: warning: ambiguous first argument; put 
parentheses or even spaces
--8<--

lots of "ill-formed narrowing conversions", for example:
src/classes3.cxx.fcs:498:15: warning: narrowing conversion of 
‘((s.Stats::yy - ((s.Stats::y * s.Stats::y) / s.Stats::area)) / 
s.Stats::area)’ from ‘int64 {aka long long int}’ to ‘float32 {aka 
float}’ inside { } is ill-formed in C++11 [-Wnarrowing]
(fix could be to specify a version/standard of C++ that allows it)

relevant versions:

claude at cappuccino:~$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
claude at cappuccino:~$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.1-2' 
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs 
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.7 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--enable-gnu-unique-object --enable-plugin --enable-objc-gc 
--with-arch-32=i586 --with-tune=generic --enable-checking=release 
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.1 (Debian 4.7.1-2)


Claude



More information about the Gridflow-dev mailing list