ports/183954: graphics/opencv-core doesn't compile on 9.2-RELEASE with clang
Guillaume Bibaut
yom at iaelu.net
Thu Nov 14 12:00:01 UTC 2013
>Number: 183954
>Category: ports
>Synopsis: graphics/opencv-core doesn't compile on 9.2-RELEASE 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: Thu Nov 14 12:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Guillaume Bibaut
>Release: 9.2-RELEASE
>Organization:
-
>Environment:
FreeBSD iaelu.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0: Fri Sep 27 12:34:12 CEST 2013 root at iaelu.net:/usr/obj/usr/src/sys/IAELUNET amd64
>Description:
trying to build opencv-core in a poudriere bulk with clang as the default compiler. I'm getting an error at configure :
=======================<phase: configure >============================
===> Configuring for opencv-core-2.3.1_9
===> 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 "cmTryCompileExec2448371935/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2448371935.dir/build.make
CMakeFiles/cmTryCompileExec2448371935.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/cmTryCompileExec2448371935.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/cmTryCompileExec2448371935.dir/testCXXCompiler.cxx.o -c
/wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec2448371935
/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec2448371935.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/cmTryCompileExec2448371935.dir/testCXXCompiler.cxx.o -o
cmTryCompileExec2448371935
/usr/bin/ld: cannot find -lc++
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [cmTryCompileExec2448371935] Error code 1
Stop in
/wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeTmp.
*** [cmTryCompileExec2448371935/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!
See also "/wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeOutput.log".
See also "/wrkdirs/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/CMakeFiles/CMakeError.log".
*** [do-configure] Error code 1
Stop in /usr/ports/graphics/opencv-core.
===> Cleaning for opencv-core-2.3.1_9
>How-To-Repeat:
create a 9.2-RELEASE amd64 poudriere jail with a name (let's call a variable ${jail name}
edit a /usr/local/etc/poudriere.d/${jail name}-make.conf
and save this in it :
CC=clang
CXX=clang++
CPP=clang-cpp
WERROR=
NO_WERROR=
and try to bulk graphics/opencv-core
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list