{"action":"created","issue":{"url":"https://api.github.com/repos/bbcrd/audiowaveform/issues/17","labels_url":"https://api.github.com/repos/bbcrd/audiowaveform/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/bbcrd/audiowaveform/issues/17/comments","events_url":"https://api.github.com/repos/bbcrd/audiowaveform/issues/17/events","html_url":"https://github.com/bbcrd/audiowaveform/issues/17","id":52565855,"number":17,"title":"Can't build on Debian 3.2.60-1+deb7u1 i686 GNU/Linux","user":{"login":"deepsystm","id":3322574,"avatar_url":"https://avatars.githubusercontent.com/u/3322574?v=3","gravatar_id":"","url":"https://api.github.com/users/deepsystm","html_url":"https://github.com/deepsystm","followers_url":"https://api.github.com/users/deepsystm/followers","following_url":"https://api.github.com/users/deepsystm/following{/other_user}","gists_url":"https://api.github.com/users/deepsystm/gists{/gist_id}","starred_url":"https://api.github.com/users/deepsystm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepsystm/subscriptions","organizations_url":"https://api.github.com/users/deepsystm/orgs","repos_url":"https://api.github.com/users/deepsystm/repos","events_url":"https://api.github.com/users/deepsystm/events{/privacy}","received_events_url":"https://api.github.com/users/deepsystm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-20T14:38:20Z","updated_at":"2015-01-05T11:48:42Z","closed_at":null,"body":"Hi all!\r\n```\r\n/home/ds/audiowaveform/src/Main.cpp:33:1: error: static_assert expression is not an integral constant expression\r\nstatic_assert(std::numeric_limits<int>::max() >= 2147483647L, \"size of int\");\r\n^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n1 error generated.\r\nmake[2]: *** [CMakeFiles/audiowaveform.dir/src/Main.cpp.o] Ошибка 1\r\nmake[1]: *** [CMakeFiles/audiowaveform.dir/all] Ошибка 2\r\nmake: *** [all] Ошибка 2\r\n```\r\n\r\n```\r\nDebian clang version 3.0-6.2 (tags/RELEASE_30/final) (based on LLVM 3.0)\r\nTarget: i386-pc-linux-gnu\r\nThread model: posix\r\n```\r\n```\r\ng++ (Debian 4.7.2-5) 4.7.2\r\n```\r\n```\r\ngcc (Debian 4.7.2-5) 4.7.2\r\n```\r\n\r\n===========================================================\r\n\r\n```\r\ncmake ..\r\n```\r\n```\r\n-- Build type not specified: default is Release\r\n-- CMAKE_VERSION=2.8.9\r\n-- Build type: Release\r\n-- CMAKE_MODULE_PATH='/home/ds/audiowaveform/cmake/modules'\r\n-- Building version 1.0.9\r\n-- Boost version: 1.49.0\r\n-- Found the following Boost libraries:\r\n--   program_options\r\n--   filesystem\r\n--   regex\r\n--   system\r\n-- Boost_INCLUDE_DIRS='/usr/include'\r\n-- Boost_LIBRARIES='/usr/lib/libboost_program_options-mt.so;/usr/lib/libboost_filesystem-mt.so;/usr/lib/libboost_regex-mt.so;/usr/lib/libboost_system-mt.so'\r\n-- LIBSNDFILE_LIBRARY=/usr/lib/i386-linux-gnu/libsndfile.so\r\n-- LIBGD_LIBRARY=/usr/lib/i386-linux-gnu/libgd.so\r\n-- LIBMAD_LIBRARY=/usr/lib/libmad.so\r\n-- CMAKE_CXX_COMPILER_VERSION='Debian clang version 3.0-6.2 (tags/RELEASE_30/final) (based on LLVM 3.0)\r\nTarget: i386-pc-linux-gnu\r\nThread model: posix'\r\n-- CMAKE_CXX_FLAGS='-std=c++0x -DGTEST_LANG_CXX11=0 -Wall -Wextra -Wconversion -pedantic -DBOOST_FILESYSTEM_NO_DEPRECATED'\r\n-- CMAKE_CXX_FLAGS_DEBUG='-g'\r\n-- CMAKE_CXX_FLAGS_RELEASE='-O3 -DNDEBUG'\r\n-- CMAKE_CXX_COMPILE_OBJECT='<CMAKE_CXX_COMPILER>  <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>'\r\n-- Unit tests disabled\r\n-- CMAKE_INSTALL_PREFIX='/usr/local'\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/ds/audiowaveform/build\r\n```\r\n\r\n```\r\nds@flat:~/audiowaveform/build$ make\r\n[ 15%] Built target doc\r\n[ 15%] Building CXX object CMakeFiles/audiowaveform.dir/src/Main.cpp.o\r\n/home/ds/audiowaveform/src/Main.cpp:33:1: error: static_assert expression is not an integral constant expression\r\nstatic_assert(std::numeric_limits<int>::max() >= 2147483647L, \"size of int\");\r\n^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n1 error generated.\r\nmake[2]: *** [CMakeFiles/audiowaveform.dir/src/Main.cpp.o] Ошибка 1\r\nmake[1]: *** [CMakeFiles/audiowaveform.dir/all] Ошибка 2\r\nmake: *** [all] Ошибка 2\r\n```\r\nwhy it can happens?\r\n\r\n```\r\nds@flat:~/audiowaveform/build$ uname -a\r\nLinux flat 3.2.0-4-486 #1 Debian 3.2.60-1+deb7u1 i686 GNU/Linux\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bbcrd/audiowaveform/issues/comments/68698264","html_url":"https://github.com/bbcrd/audiowaveform/issues/17#issuecomment-68698264","issue_url":"https://api.github.com/repos/bbcrd/audiowaveform/issues/17","id":68698264,"user":{"login":"chrisn","id":57790,"avatar_url":"https://avatars.githubusercontent.com/u/57790?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisn","html_url":"https://github.com/chrisn","followers_url":"https://api.github.com/users/chrisn/followers","following_url":"https://api.github.com/users/chrisn/following{/other_user}","gists_url":"https://api.github.com/users/chrisn/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisn/subscriptions","organizations_url":"https://api.github.com/users/chrisn/orgs","repos_url":"https://api.github.com/users/chrisn/repos","events_url":"https://api.github.com/users/chrisn/events{/privacy}","received_events_url":"https://api.github.com/users/chrisn/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T11:48:42Z","updated_at":"2015-01-05T11:48:42Z","body":"Hi @deepsystm,\r\n\r\nI was able to reproduce the error you posted on Debian with clang 3.0. The audiowaveform code uses C++11 features, so needs a reasonably up-to-date compiler. The software builds OK with g++ 4.7.2, and also with more recent versions of clang. I was able to build successfully using clang 3.5, which I installed from the [LLVM repository](http://blog.llvm.org/2013/04/llvm-debianubuntu-nightly-packages.html).\r\n\r\nChris"}}