[Debian-med-packaging] C++ help needed for new version of last-align

Andreas Tille andreas at an3as.eu
Wed Dec 30 19:57:56 UTC 2015


Hi,

I've moved last-align from SVN to Git[1].  Unfortunately this version does
not build:

...
g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wcast-qual -Wswitch-enum -Wundef -Wcast-align -Wno-long-long -ansi -pedantic -I. -c -o lastal.o lastal.cc
In file included from /usr/include/c++/5/thread:35:0,
                 from lastal.cc:37:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
lastal.cc: In function 'void scanOneVolume(unsigned int, unsigned int)':
lastal.cc:964:17: error: 'thread' is not a member of 'std'
     std::vector<std::thread> threads(numOfChunks);
                 ^
lastal.cc:964:17: error: 'thread' is not a member of 'std'
lastal.cc:964:28: error: template argument 1 is invalid
     std::vector<std::thread> threads(numOfChunks);
                            ^
lastal.cc:964:28: error: template argument 2 is invalid
lastal.cc:966:16: error: invalid types 'int[size_t {aka long unsigned int}]' for array subscript
       threads[i] = std::thread(alignSomeQueries, i, volume, volumeCount);
                ^
lastal.cc:966:20: error: 'thread' is not a member of 'std'
       threads[i] = std::thread(alignSomeQueries, i, volume, volumeCount);
                    ^
lastal.cc:970:16: error: invalid types 'int[size_t {aka long unsigned int}]' for array subscript
       threads[i].join();
                ^
lastal.cc: In function 'unsigned int decideNumOfThreads()':
lastal.cc:976:21: error: 'std::thread' has not been declared
   unsigned x = std::thread::hardware_concurrency();
                     ^
makefile:69: recipe for target 'lastal.o' failed
make[3]: *** [lastal.o] Error 1


Any hint (commits and team uploads are welcome).

Kind regards

        Andreas.


[1] git://anonscm.debian.org/debian-med/last-align.git

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list