Bug#709742: FTBFS on at least amd64 with gcc-4.8 due to -Werror=conversion

Adam Conrad adconrad at debian.org
Sat May 25 06:21:22 UTC 2013


Source: roboptim-core
Version: 2.0-3
Severity: important
Justification: fails to build from source

When building with gcc-4.8 on amd64 (and most likely other 64-bit
arches), roboptim-core fails with the following:

/build/buildd/roboptim-core-2.0/src/dummy.cc: In function 'unsigned int getSizeOfProblem()':
/build/buildd/roboptim-core-2.0/src/dummy.cc:62:19: error: conversion to 'unsigned int' from 'long unsigned int' may alter its value [-Werror=conversion]
     return sizeof (solver_t::problem_t);
                   ^
/build/buildd/roboptim-core-2.0/src/dummy-laststate.cc: In function 'unsigned int getSizeOfProblem()':
/build/buildd/roboptim-core-2.0/src/dummy-laststate.cc:71:19: error: conversion to 'unsigned int' from 'long unsigned int' may alter its value [-Werror=conversion]
     return sizeof (solver_t::problem_t);
                   ^
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/roboptim-core-plugin-dummy.dir/dummy.cc.o] Error 1

This failure was found in Ubuntu (where the compiler defaults to
gcc-4.8 on all arches), however you should be able to reproduce it
in sid by installing g++-4.8 and exporting CXX=g++-4.8

The build record for the failed build (and a link to the log) can
be found here:

https://launchpad.net/ubuntu/+source/roboptim-core/2.0-3/+build/4608308

... Adam

-- System Information:
Debian Release: wheezy/sid
  APT prefers saucy-updates
  APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9.0-2-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the debian-science-maintainers mailing list