{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/2484","labels_url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/2484/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/2484/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/2484/events","html_url":"https://github.com/Homebrew/homebrew-science/issues/2484","id":92942403,"number":2484,"title":"Building opencv3 with CUDA 7.0 fails on Yosemite with: couldn't understand kern.osversion `14.4.0'","user":{"login":"c4live","id":1321409,"avatar_url":"https://avatars.githubusercontent.com/u/1321409?v=3","gravatar_id":"","url":"https://api.github.com/users/c4live","html_url":"https://github.com/c4live","followers_url":"https://api.github.com/users/c4live/followers","following_url":"https://api.github.com/users/c4live/following{/other_user}","gists_url":"https://api.github.com/users/c4live/gists{/gist_id}","starred_url":"https://api.github.com/users/c4live/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c4live/subscriptions","organizations_url":"https://api.github.com/users/c4live/orgs","repos_url":"https://api.github.com/users/c4live/repos","events_url":"https://api.github.com/users/c4live/events{/privacy}","received_events_url":"https://api.github.com/users/c4live/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-03T22:09:03Z","updated_at":"2015-08-18T21:05:36Z","closed_at":"2015-08-18T21:05:36Z","body":"Dear All,\r\nI recently upgraded to XCode 6.4 and OSX 10.10.4.\r\n\r\nHowever, when I build opencv3 from source, that is what I get:\r\n$ brew uninstall gcc\r\nUninstalling /usr/local/Cellar/gcc/5.1.0... (1351 files, 248M)\r\n$ brew install --c++11 --with-contrib --with-cuda --with-ffmpeg --with-gstreamer --with-jasper --with-java --with-libdc1394 --with-opengl --with-openni --with-python3 --with-qt5 --with-tbb --without-tests opencv3\r\n==> Installing opencv3 from homebrew/homebrew-science\r\n==> Installing dependencies for homebrew/science/opencv3: ecj, gcc\r\n==> Installing homebrew/science/opencv3 dependency: ecj\r\n==> Downloading ftp://sourceware.org/pub/java/ecj-4.9.jar\r\n######################################################################## 100.0%\r\n🍺  /usr/local/Cellar/ecj/4.9: 2 files, 1.6M, built in 7 seconds\r\n==> Installing homebrew/science/opencv3 dependency: gcc\r\n==> Downloading https://homebrew.bintray.com/bottles/gcc-5.1.0.yosemite.bottle.2.tar.gz\r\nAlready downloaded: /Library/Caches/Homebrew/gcc-5.1.0.yosemite.bottle.2.tar.gz\r\n==> Pouring gcc-5.1.0.yosemite.bottle.2.tar.gz\r\n==> Caveats\r\nGCC has been built with multilib support. Notably, OpenMP may not work:\r\n  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670\r\nIf you need OpenMP support you may want to\r\n  brew reinstall gcc --without-multilib\r\n\r\n==> Summary\r\n🍺  /usr/local/Cellar/gcc/5.1.0: 1351 files, 248M\r\n==> Installing homebrew/science/opencv3\r\n==> Using Homebrew-provided fortran compiler.\r\nThis may be changed by setting the FC environment variable.\r\n==> Downloading https://github.com/Itseez/opencv/archive/3.0.0.tar.gz\r\nAlready downloaded: /Library/Caches/Homebrew/opencv3-3.0.0.tar.gz\r\n==> Downloading https://github.com/Itseez/opencv_contrib/archive/3.0.0.tar.gz\r\nAlready downloaded: /Library/Caches/Homebrew/opencv3--contrib-3.0.0.tar.gz\r\n==> Downloading https://downloads.sourceforge.net/project/opencvlibrary/3rdparty/ippicv/ippicv_macosx_20141027.tgz\r\nAlready downloaded: /Library/Caches/Homebrew/opencv3--icv-macosx-20141027.tgz\r\n==> cmake .. -DCMAKE_C_FLAGS_RELEASE= -DCMAKE_CXX_FLAGS_RELEASE= -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv3/3.0.0 -DCMAKE_B\r\n==> make\r\n/usr/local/Library/ENV/4.3/clang++  -I/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include/darwin    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security  -Wmissing-prototypes -Wstrict-prototypes  -Winit-self -Wpointer-arith  -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -msse -msse2 -mavx -fvisibility=hidden -fvisibility-inlines-hidden -Wno-undef -Wno-missing-declarations -Wno-shadow   -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 3.0.0 -current_version 3.0.0 -o ../../lib/libopencv_cudafilters.3.0.0.dylib -install_name /tmp/opencv320150703-30746-g7iy7a/opencv-3.0.0/macbuild/lib/libopencv_cudafilters.3.0.dylib CMakeFiles/opencv_cudafilters.dir/src/filtering.cpp.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.16sc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.16sc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.16sc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.16uc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.16uc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.16uc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.32fc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.32fc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.32fc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.32sc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.32sc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.32sc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.8uc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.8uc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.8uc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_filter2d.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.16sc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.16sc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.16sc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.16uc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.16uc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.16uc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.32fc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.32fc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.32fc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.32sc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.32sc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.32sc4.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.8uc1.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.8uc3.cu.o CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.8uc4.cu.o  -L/usr/local/include/../lib  -L/usr/local/cuda/lib ../../lib/libopencv_hal.a ../../lib/libopencv_cudaarithm.3.0.0.dylib ../../lib/libopencv_imgproc.3.0.0.dylib -framework AGL -framework OpenGL -ltbb ../../../3rdparty/ippicv/unpack/ippicv_osx/lib/libippicv.a -lcudart -lnppc -lnppi -lnpps -lcufft -lcudart -lnppc -lnppi -lnpps ../../lib/libopencv_core.3.0.0.dylib ../../lib/libopencv_cudev.3.0.0.dylib ../../lib/libopencv_hal.a -framework AGL -framework OpenGL -ltbb ../../../3rdparty/ippicv/unpack/ippicv_osx/lib/libippicv.a -lcudart -lnppc -lnppi -lnpps -lcufft -lcudart -lnppc -lnppi -lnpps -lcufft -Wl,-rpath,/usr/local/include/../lib -Wl,-rpath,/usr/local/cuda/lib \r\ncd /tmp/opencv320150703-30746-g7iy7a/opencv-3.0.0/macbuild/modules/cudafilters && /usr/local/Cellar/cmake/3.2.2/bin/cmake -E cmake_symlink_library ../../lib/libopencv_cudafilters.3.0.0.dylib ../../lib/libopencv_cudafilters.3.0.dylib ../../lib/libopencv_cudafilters.dylib\r\n/usr/local/Cellar/cmake/3.2.2/bin/cmake -E cmake_progress_report /tmp/opencv320150703-30746-g7iy7a/opencv-3.0.0/macbuild/CMakeFiles  22 23\r\n[ 52%] Built target opencv_cudafilters\r\nmake: *** [all] Error 2\r\ncouldn't understand kern.osversion `14.4.0'\r\n\r\nREAD THIS: https://git.io/brew-troubleshooting\r\nIf reporting this issue please do so at (not Homebrew/homebrew):\r\n  https://github.com/homebrew/homebrew-science/issues\r\n\r\nEverywhere I turn it seems that the \"couldn't understand kern.osversion `14.4.0'\" is caused by a wrong version of gcc/clang/clang++/whatever. Most places suggest to use xcode-select.\r\nHowever if I type:\r\n$ xcode-select --install \r\n\r\nI get:\r\nxcode-select: error: command line tools are already installed, use \"Software Update\" to install updates\r\n\r\nI am really puzzled with what to do. I also ran brew upgrade, to no avail.\r\nDoes anyone has the same issue?\r\n "},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/comments/132350779","html_url":"https://github.com/Homebrew/homebrew-science/issues/2484#issuecomment-132350779","issue_url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/2484","id":132350779,"user":{"login":"tdsmith","id":173889,"avatar_url":"https://avatars.githubusercontent.com/u/173889?v=3","gravatar_id":"","url":"https://api.github.com/users/tdsmith","html_url":"https://github.com/tdsmith","followers_url":"https://api.github.com/users/tdsmith/followers","following_url":"https://api.github.com/users/tdsmith/following{/other_user}","gists_url":"https://api.github.com/users/tdsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/tdsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdsmith/subscriptions","organizations_url":"https://api.github.com/users/tdsmith/orgs","repos_url":"https://api.github.com/users/tdsmith/repos","events_url":"https://api.github.com/users/tdsmith/events{/privacy}","received_events_url":"https://api.github.com/users/tdsmith/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T21:05:36Z","updated_at":"2015-08-18T21:05:36Z","body":"You should also remove apple-gcc42, if you have it installed. Let us know if this is still an issue or if we can help with anything else."}}