Date: Wed, 23 Oct 2013 12:49:55 GMT From: Chess Griffin <chess@chessgriffin.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/183238: graphics/opencv-core fails to build due to linking error with clang Message-ID: <201310231249.r9NCntAB016653@oldred.freebsd.org> Resent-Message-ID: <201310231300.r9ND00jA031993@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 183238 >Category: ports >Synopsis: graphics/opencv-core fails to build due to linking error with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 23 13:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Chess Griffin >Release: 9.2-RELEASE >Organization: >Environment: FreeBSD fbsdsrvr 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I use poudriere-devel and during a run of package building, opencv-core failed with this error in the log: ===> Returning to build of opencv-core-2.3.1_8 =========================================================================== =======================<phase: lib-depends >============================ =========================================================================== =======================<phase: configure >============================ ===> Configuring for opencv-core-2.3.1_8 ===> Performing in-source build /bin/mkdir -p /wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1 -- The C compiler identification is Clang 3.3.0 -- The CXX compiler identification is Clang 3.3.0 -- Check for working C compiler: /usr/bin/clang -- Check for working C compiler: /usr/bin/clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- broken CMake Error at /usr/local/share/cmake/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "/usr/bin/clang++" is not able to compile a simple test program. It fails with the following output: Change Dir: /wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec1817079940/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec1817079940.dir/build.make CMakeFiles/cmTryCompileExec1817079940.dir/build /usr/local/bin/cmake -E cmake_progress_report /wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec1817079940.dir/testCXXCompiler.cxx.o /usr/bin/clang++ -O2 -pipe -fno-strict-aliasing -stdlib=libc++ -Wno-error -Wno-c++11-narrowing -std=c++11 -o CMakeFiles/cmTryCompileExec1817079940.dir/testCXXCompiler.cxx.o -c /wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTryCompileExec1817079940 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1817079940.dir/link.txt --verbose=1 /usr/bin/clang++ -O2 -pipe -fno-strict-aliasing -stdlib=libc++ -Wno-error -Wno-c++11-narrowing -std=c++11 CMakeFiles/cmTryCompileExec1817079940.dir/testCXXCompiler.cxx.o -o cmTryCompileExec1817079940 /usr/bin/ld: cannot find -lc++ clang++: error: linker command failed with exit code 1 (use -v to see invocation) *** [cmTryCompileExec1817079940] Error code 1 Stop in /wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeTmp. *** [cmTryCompileExec1817079940/fast] Error code 1 Stop in /wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeTmp. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:40 (project) -- Configuring incomplete, errors occurred! *** [do-configure] Error code 1 Stop in /usr/ports/graphics/opencv-core. ===> Cleaning for opencv-core-2.3.1_8 build of /usr/ports/graphics/opencv-core ended at Wed Oct 23 08:39:32 EDT 2013 >How-To-Repeat: Build opencv-core on poudriere 9.2-RELEASE jail. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310231249.r9NCntAB016653>