{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/5004","repository_url":"https://api.github.com/repos/Itseez/opencv","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/5004/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5004/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/5004/events","html_url":"https://github.com/Itseez/opencv/issues/5004","id":97442162,"number":5004,"title":"Compiler error on alpine linux with 3.0.0-beta and master branch.","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/affected:%20master","name":"affected: master","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20build/install","name":"category: build/install","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20low","name":"priority: low","color":"AA9739"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-27T11:26:48Z","updated_at":"2016-05-24T21:32:10Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/4368\r\n```\n|| Bodo Kaiser on 2015-05-29 08:31\n|| Priority: Normal\n|| Affected: branch 'master' (3.0-dev)\n|| Category: build/install\n|| Tracker: Bug\n|| Difficulty: \n|| PR: \n|| Platform: x64 / Linux\n```\n\nCompiler error on alpine linux with 3.0.0-beta and master branch.\n-----------\n```\nHello,\r\n\r\nI tried to compile the latest version of opencv in an alpine linux docker container.\r\n\r\n> IMDInterpolator>::operator()(const cv::Range&) const [with T = short unsigned int; SIMDInterpolator = cv::SIMDBayerStubInterpolator_<short unsigned int>]':\r\n> /srv/opencv/modules/imgproc/src/demosaicing.cpp:673:18: internal compiler error: in vect_analyze_data_ref_accesses, at tree-vect-data-refs.c:2567\r\n> virtual void operator() (const Range& range) const\r\n> ^\r\n> Please submit a full bug report,\r\n> with preprocessed source if appropriate.\r\n> See <http://gcc.gnu.org/bugs.html> for instructions.\r\n> Preprocessed source stored into /tmp/ccADdKPJ.out file, please attach this to your bugreport.\r\n> modules/imgproc/CMakeFiles/opencv_imgproc.dir/build.make:1038: recipe for target 'modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/demosaicing.cpp.o' failed\r\n> make[2]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/demosaicing.cpp.o] Error 1\r\n> CMakeFiles/Makefile2:1711: recipe for target 'modules/imgproc/CMakeFiles/opencv_imgproc.dir/all' failed\r\n> make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2\r\n> Makefile:136: recipe for target 'all' failed\r\n> make: *** [all] Error 2\n```\n\nHistory\n-------\n##### Bodo Kaiser on 2015-05-30 09:16\n```\nI now replaced gcc with clang on the Dockerfile:\r\n\r\n> RUN apk add -U clang\r\n> \r\n> ENV CC /usr/local/clang\r\n> ENV CXX /usr/local/clang++\r\n\r\nand it now compiles without problems. So I expect that there is either a bug in GCC 4.9 or there are some features used in OpenCV which are not quite supported in that GCC version.\n```\n##### Deepak Kumar on 2015-07-24 03:40\n```\nI faced the same issue. I added compiler clang as suggested by you.\r\n\r\nHowever, now I am getting error related to PTHREADs. If I forcibly stop PTHREAD being built, I get errors related to <linux/auxvec.h> and then several others.\r\n\r\nMy current Docker file is:\r\n\r\n> FROM alpine:3.2\r\n> \r\n> RUN apk add --update gcc g++ clang make cmake\r\n> \r\n> RUN apk add wget tiff-dev libpng-dev jasper-dev libwebp-dev\r\n> \r\n> ENV CC /usr/bin/clang\r\n> ENV CXX /usr/bin/clang++\r\n> \r\n> COPY opencv-3.0.0.zip /tmp/\r\n> \r\n> WORKDIR /tmp/\r\n> \r\n> RUN unzip opencv-3.0.0.zip\r\n> \r\n> RUN mkdir /tmp/build/\r\n> \r\n> WORKDIR /tmp/build/\r\n\r\n---------\r\n\r\nTo build I am running the following:\r\n\r\n> cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_FFMPEG=NO \\\r\n> -D WITH_IPP=NO -D WITH_OPENEXR=NO /tmp/opencv-3.0.0\r\n> \r\n> make\r\n> \n-   Assignee changed from Roman Donchenko to Bodo Kaiser\n```"},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/221407920","html_url":"https://github.com/Itseez/opencv/issues/5004#issuecomment-221407920","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/5004","id":221407920,"user":{"login":"neilstuartcraig","id":320215,"avatar_url":"https://avatars.githubusercontent.com/u/320215?v=3","gravatar_id":"","url":"https://api.github.com/users/neilstuartcraig","html_url":"https://github.com/neilstuartcraig","followers_url":"https://api.github.com/users/neilstuartcraig/followers","following_url":"https://api.github.com/users/neilstuartcraig/following{/other_user}","gists_url":"https://api.github.com/users/neilstuartcraig/gists{/gist_id}","starred_url":"https://api.github.com/users/neilstuartcraig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilstuartcraig/subscriptions","organizations_url":"https://api.github.com/users/neilstuartcraig/orgs","repos_url":"https://api.github.com/users/neilstuartcraig/repos","events_url":"https://api.github.com/users/neilstuartcraig/events{/privacy}","received_events_url":"https://api.github.com/users/neilstuartcraig/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T21:32:10Z","updated_at":"2016-05-24T21:32:10Z","body":"FWIW, I was seeing a `linux/auxvec.h` error compiling NodeJS on Alpine and solved it by installing linux-headers:\r\n\r\n```\r\napk add linux-headers\r\n```\r\n\r\nMaybe that will help someone? Apologies if i'm wide of the mark, Google brought me here."}}
{"actor":{"display_login":"neilstuartcraig"}}