Re: problem with combination of cmake and clang module
On Thursday, May 2, 2013 17:42 CEST, "Sebastian Reitenbach" wrote: > > On Thursday, May 2, 2013 13:23 CEST, Vadim Zhukov wrote: > > > 02.05.2013 15:17 пользователь "Sebastian Reitenbach" < > > sebas...@l00-bugdead-prods.de> написал: > > > > > > > > > On Wednesday, May 1, 2013 22:48 CEST, Vadim Zhukov > > wrote: > > > > > > > Sorry, I have to run right now, so I could not dive in throughly ATM > > > > (but I will be able to do this tomorrow). > > > > > > > > Could you please test the following patch instead? Policy CMP0017 > > defaults > > > > to OLD now, I suspect this could be related. > > > > > > Whatever this policy is doing, it helps, and makes the libobjc2 configure > > > stage happy. > > > > > > > > > Below complete patch to LLVM port with REVISION bump. > > > > > > OK? > > > > OK zhuk@. Please send this patch upstream then, too. > > Done, grrr, maybe when it worked with the patch, I might have had the llvm source around. I tried it again libobjc2-1.7, with llvm installed from packages, but it failed: -- Detecting C compiler ABI info - done -- Check for working CXX compiler using: Ninja -- Check for working CXX compiler using: Ninja -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc CMake Error at /usr/local/share/llvm/cmake/LLVMConfig.cmake:157 (include): include could not find load file: LLVM-Config Call Stack (most recent call first): CMakeLists.txt:123 (find_package) WARNING: It is strongly recommended that you compile with clang -- No C++ runtime library found so basically, the patch patch-cmake_modules_LLVMConfig_cmake_in could be removed. If somebody has another idea what might help, I'm all for it. So far, removing the patch again, OK? Sebastian Index: Makefile === RCS file: /cvs/ports/devel/llvm/Makefile,v retrieving revision 1.64 diff -u -p -u -r1.64 Makefile --- Makefile28 Jun 2013 11:14:38 - 1.64 +++ Makefile3 Jul 2013 16:52:47 - @@ -9,6 +9,7 @@ DPB_PROPERTIES = parallel COMMENT = modular, fast C/C++/ObjC compiler, static analyzer and tools LLVM_V = 3.3 +REVISION = 0 DISTNAME = llvm-${LLVM_V}.src PKGNAME = llvm-${LLVM_V} CATEGORIES = devel Index: patches/patch-cmake_modules_LLVMConfig_cmake_in === RCS file: patches/patch-cmake_modules_LLVMConfig_cmake_in diff -N patches/patch-cmake_modules_LLVMConfig_cmake_in --- patches/patch-cmake_modules_LLVMConfig_cmake_in 21 Jun 2013 22:09:12 - 1.2 +++ /dev/null 1 Jan 1970 00:00:00 - @@ -1,16 +0,0 @@ -$OpenBSD: patch-cmake_modules_LLVMConfig_cmake_in,v 1.2 2013/06/21 22:09:12 brad Exp $ - -make it find include file in /usr/local/share/llvm/cmake -bug reported: http://www.llvm.org/bugs/show_bug.cgi?id=15899 - cmake/modules/LLVMConfig.cmake.in.orig Tue Apr 23 04:28:39 2013 -+++ cmake/modules/LLVMConfig.cmake.in Wed May 8 06:14:30 2013 -@@ -39,6 +39,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) - set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) - set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") - -+cmake_policy(SET CMP0017 NEW) -+ - # We try to include using the current setting of CMAKE_MODULE_PATH, - # which suppossedly was filled by the user with the directory where - # this file was installed:
Re: problem with combination of cmake and clang module
On Thursday, May 2, 2013 13:23 CEST, Vadim Zhukov wrote: > 02.05.2013 15:17 пользователь "Sebastian Reitenbach" < > sebas...@l00-bugdead-prods.de> написал: > > > > > > On Wednesday, May 1, 2013 22:48 CEST, Vadim Zhukov > wrote: > > > > > Sorry, I have to run right now, so I could not dive in throughly ATM > > > (but I will be able to do this tomorrow). > > > > > > Could you please test the following patch instead? Policy CMP0017 > defaults > > > to OLD now, I suspect this could be related. > > > > Whatever this policy is doing, it helps, and makes the libobjc2 configure > > stage happy. > > > > > > Below complete patch to LLVM port with REVISION bump. > > > > OK? > > OK zhuk@. Please send this patch upstream then, too. Done, thanks, Sebastian
Re: problem with combination of cmake and clang module
On Thu, May 2, 2013 at 1:16 PM, Sebastian Reitenbach wrote: > > On Wednesday, May 1, 2013 22:48 CEST, Vadim Zhukov wrote: > >> Sorry, I have to run right now, so I could not dive in throughly ATM >> (but I will be able to do this tomorrow). >> >> Could you please test the following patch instead? Policy CMP0017 defaults >> to OLD now, I suspect this could be related. > > Whatever this policy is doing, it helps, and makes the libobjc2 configure > stage happy. > > > Below complete patch to LLVM port with REVISION bump. > > OK? ok with me > Index: Makefile > === > RCS file: /cvs/ports/devel/llvm/Makefile,v > retrieving revision 1.61 > diff -u -r1.61 Makefile > --- Makefile30 Mar 2013 12:10:40 - 1.61 > +++ Makefile2 May 2013 11:15:14 - > @@ -10,7 +10,7 @@ > LLVM_V = 3.2 > DISTNAME = llvm-${LLVM_V}.src > PKGNAME = llvm-${LLVM_V} > -REVISION = 2 > +REVISION = 3 > CATEGORIES = devel > MASTER_SITES = http://llvm.org/releases/${LLVM_V}/ > > Index: patches/patch-cmake_modules_LLVMConfig_cmake_in > === > RCS file: patches/patch-cmake_modules_LLVMConfig_cmake_in > diff -N patches/patch-cmake_modules_LLVMConfig_cmake_in > --- /dev/null 1 Jan 1970 00:00:00 - > +++ patches/patch-cmake_modules_LLVMConfig_cmake_in 2 May 2013 11:15:14 > - > @@ -0,0 +1,15 @@ > +$OpenBSD$ > + > +make it find include file in /usr/local/share/llvm/cmake > + > +--- cmake/modules/LLVMConfig.cmake.in.orig Sat Jul 7 05:12:28 2012 > cmake/modules/LLVMConfig.cmake.in Thu May 2 07:38:57 2013 > +@@ -36,6 +36,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) > + set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) > + set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") > + > ++cmake_policy(SET CMP0017 NEW) > ++ > + # We try to include using the current setting of CMAKE_MODULE_PATH, > + # which suppossedly was filled by the user with the directory where > + # this file was installed: > > > >> >> -- >> WBR, >> Vadim Zhukov >> >> >> $OpenBSD$ >> --- cmake/modules/LLVMConfig.cmake.in.origThu May 2 00:44:02 2013 >> +++ cmake/modules/LLVMConfig.cmake.in Thu May 2 00:43:19 2013 >> @@ -36,6 +36,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) >> set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) >> set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") >> >> +cmake_policy(SET CMP0017 NEW) >> + >> # We try to include using the current setting of CMAKE_MODULE_PATH, >> # which suppossedly was filled by the user with the directory where >> # this file was installed: > > > > >
Re: problem with combination of cmake and clang module
02.05.2013 15:17 пользователь "Sebastian Reitenbach" < sebas...@l00-bugdead-prods.de> написал: > > > On Wednesday, May 1, 2013 22:48 CEST, Vadim Zhukov wrote: > > > Sorry, I have to run right now, so I could not dive in throughly ATM > > (but I will be able to do this tomorrow). > > > > Could you please test the following patch instead? Policy CMP0017 defaults > > to OLD now, I suspect this could be related. > > Whatever this policy is doing, it helps, and makes the libobjc2 configure > stage happy. > > > Below complete patch to LLVM port with REVISION bump. > > OK? OK zhuk@. Please send this patch upstream then, too. > thanks, > Sebastian > > Index: Makefile > === > RCS file: /cvs/ports/devel/llvm/Makefile,v > retrieving revision 1.61 > diff -u -r1.61 Makefile > --- Makefile30 Mar 2013 12:10:40 - 1.61 > +++ Makefile2 May 2013 11:15:14 - > @@ -10,7 +10,7 @@ > LLVM_V = 3.2 > DISTNAME = llvm-${LLVM_V}.src > PKGNAME = llvm-${LLVM_V} > -REVISION = 2 > +REVISION = 3 > CATEGORIES = devel > MASTER_SITES = http://llvm.org/releases/${LLVM_V}/ > > Index: patches/patch-cmake_modules_LLVMConfig_cmake_in > === > RCS file: patches/patch-cmake_modules_LLVMConfig_cmake_in > diff -N patches/patch-cmake_modules_LLVMConfig_cmake_in > --- /dev/null 1 Jan 1970 00:00:00 - > +++ patches/patch-cmake_modules_LLVMConfig_cmake_in 2 May 2013 11:15:14 - > @@ -0,0 +1,15 @@ > +$OpenBSD$ > + > +make it find include file in /usr/local/share/llvm/cmake > + > +--- cmake/modules/LLVMConfig.cmake.in.orig Sat Jul 7 05:12:28 2012 > cmake/modules/LLVMConfig.cmake.in Thu May 2 07:38:57 2013 > +@@ -36,6 +36,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) > + set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) > + set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") > + > ++cmake_policy(SET CMP0017 NEW) > ++ > + # We try to include using the current setting of CMAKE_MODULE_PATH, > + # which suppossedly was filled by the user with the directory where > + # this file was installed: > > > > > > > -- > > WBR, > > Vadim Zhukov > > > > > > $OpenBSD$ > > --- cmake/modules/LLVMConfig.cmake.in.origThu May 2 00:44:02 2013 > > +++ cmake/modules/LLVMConfig.cmake.in Thu May 2 00:43:19 2013 > > @@ -36,6 +36,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) > > set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) > > set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") > > > > +cmake_policy(SET CMP0017 NEW) > > + > > # We try to include using the current setting of CMAKE_MODULE_PATH, > > # which suppossedly was filled by the user with the directory where > > # this file was installed: > > > > >
Re: problem with combination of cmake and clang module
On Wednesday, May 1, 2013 22:48 CEST, Vadim Zhukov wrote: > Sorry, I have to run right now, so I could not dive in throughly ATM > (but I will be able to do this tomorrow). > > Could you please test the following patch instead? Policy CMP0017 defaults > to OLD now, I suspect this could be related. Whatever this policy is doing, it helps, and makes the libobjc2 configure stage happy. Below complete patch to LLVM port with REVISION bump. OK? thanks, Sebastian Index: Makefile === RCS file: /cvs/ports/devel/llvm/Makefile,v retrieving revision 1.61 diff -u -r1.61 Makefile --- Makefile30 Mar 2013 12:10:40 - 1.61 +++ Makefile2 May 2013 11:15:14 - @@ -10,7 +10,7 @@ LLVM_V = 3.2 DISTNAME = llvm-${LLVM_V}.src PKGNAME = llvm-${LLVM_V} -REVISION = 2 +REVISION = 3 CATEGORIES = devel MASTER_SITES = http://llvm.org/releases/${LLVM_V}/ Index: patches/patch-cmake_modules_LLVMConfig_cmake_in === RCS file: patches/patch-cmake_modules_LLVMConfig_cmake_in diff -N patches/patch-cmake_modules_LLVMConfig_cmake_in --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-cmake_modules_LLVMConfig_cmake_in 2 May 2013 11:15:14 - @@ -0,0 +1,15 @@ +$OpenBSD$ + +make it find include file in /usr/local/share/llvm/cmake + +--- cmake/modules/LLVMConfig.cmake.in.orig Sat Jul 7 05:12:28 2012 cmake/modules/LLVMConfig.cmake.in Thu May 2 07:38:57 2013 +@@ -36,6 +36,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) + set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) + set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") + ++cmake_policy(SET CMP0017 NEW) ++ + # We try to include using the current setting of CMAKE_MODULE_PATH, + # which suppossedly was filled by the user with the directory where + # this file was installed: > > -- > WBR, > Vadim Zhukov > > > $OpenBSD$ > --- cmake/modules/LLVMConfig.cmake.in.origThu May 2 00:44:02 2013 > +++ cmake/modules/LLVMConfig.cmake.in Thu May 2 00:43:19 2013 > @@ -36,6 +36,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) > set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) > set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") > > +cmake_policy(SET CMP0017 NEW) > + > # We try to include using the current setting of CMAKE_MODULE_PATH, > # which suppossedly was filled by the user with the directory where > # this file was installed:
Re: problem with combination of cmake and clang module
Sorry, I have to run right now, so I could not dive in throughly ATM (but I will be able to do this tomorrow). Could you please test the following patch instead? Policy CMP0017 defaults to OLD now, I suspect this could be related. -- WBR, Vadim Zhukov $OpenBSD$ --- cmake/modules/LLVMConfig.cmake.in.orig Thu May 2 00:44:02 2013 +++ cmake/modules/LLVMConfig.cmake.in Thu May 2 00:43:19 2013 @@ -36,6 +36,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") +cmake_policy(SET CMP0017 NEW) + # We try to include using the current setting of CMAKE_MODULE_PATH, # which suppossedly was filled by the user with the directory where # this file was installed:
Re: problem with combination of cmake and clang module
Hi, the patch to llvm make the upcoming libobjc2 cmake configure stage happy for me. Don't know if this is the right approach, there might be a different problem which I'm just hiding? Someone with better cmake knowledge has any suggestion? in case I might not be too wrong, OK? Sebastian Index: Makefile === RCS file: /cvs/ports/devel/llvm/Makefile,v retrieving revision 1.61 diff -u -r1.61 Makefile --- Makefile30 Mar 2013 12:10:40 - 1.61 +++ Makefile1 May 2013 19:42:38 - @@ -10,7 +10,7 @@ LLVM_V = 3.2 DISTNAME = llvm-${LLVM_V}.src PKGNAME = llvm-${LLVM_V} -REVISION = 2 +REVISION = 3 CATEGORIES = devel MASTER_SITES = http://llvm.org/releases/${LLVM_V}/ Index: patches/patch-cmake_modules_LLVMConfig_cmake_in === RCS file: patches/patch-cmake_modules_LLVMConfig_cmake_in diff -N patches/patch-cmake_modules_LLVMConfig_cmake_in --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-cmake_modules_LLVMConfig_cmake_in 1 May 2013 19:42:38 - @@ -0,0 +1,14 @@ +$OpenBSD$ + +make it find include file in /usr/local/share/llvm/cmake + +--- cmake/modules/LLVMConfig.cmake.in.orig Wed May 1 17:46:37 2013 cmake/modules/LLVMConfig.cmake.in Wed May 1 17:47:07 2013 +@@ -46,6 +46,7 @@ if( NOT LLVMCONFIG_INCLUDED ) + set(CMAKE_MODULE_PATH + ${CMAKE_MODULE_PATH} + "@LLVM_SOURCE_DIR@/cmake/modules") ++ list(APPEND CMAKE_MODULE_PATH "${LLVM_ROOT}/share/llvm/cmake") + include( LLVM-Config ) + endif() + On Sunday, January 13, 2013 19:01 CET, "Sebastian Reitenbach" wrote: > > On Sunday, January 13, 2013 17:39 CET, "Sebastian Reitenbach" > wrote: > > > Hi, > > > > I'm testing x11/gnustep/libobjc2 from svn. Upstream changed the build > > environment to use cmake. > > Since the recommended compiler is clang, I thought about trying that too, > > but that made me run into trouble: > > > > so I have this in the Makefile: > > > > MODULES = devel/cmake lang/clang > > MODCLANG_ARCHS = ${LLVM_ARCHS} > > MODCLANG_LANGS = c++ > > > > make configure now looks like this: > > > > ===> Configuring for gnustep-libobjc2-1.7 > > -- The C compiler identification is Clang 3.2.0 > > -- The CXX compiler identification is Clang 3.2.0 > > -- Check for working C compiler: > > /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc > > -- Check for working C compiler: > > /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc -- works > > -- Detecting C compiler ABI info > > -- Detecting C compiler ABI info - done > > -- Check for working CXX compiler: > > /home/ports/pobj/gnustep-libobjc2-1.7/bin/c++ > > -- Check for working CXX compiler: > > /home/ports/pobj/gnustep-libobjc2-1.7/bin/c++ -- works > > -- Detecting CXX compiler ABI info > > -- Detecting CXX compiler ABI info - done > > -- The ASM compiler identification is Clang > > -- Found assembler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc > > CMake Error at /usr/local/share/llvm/cmake/LLVMConfig.cmake:137 (include): > > include could not find load file: > > > > LLVM-Config > > Call Stack (most recent call first): > > CMakeLists.txt:123 (find_package) > > > > > > CMake Error at /usr/local/share/llvm/cmake/LLVMConfig.cmake:137 (include): > > include could not find load file: > > > > LLVM-Config > > Call Stack (most recent call first): > > opts/CMakeLists.txt:3 (find_package) > > > > > > CMake Error at opts/CMakeLists.txt:4 (include): > > include could not find load file: > > > > AddLLVM > > > > > > CMake Error at opts/CMakeLists.txt:11 (add_llvm_loadable_module): > > Unknown CMake command "add_llvm_loadable_module". > > > > > > -- Configuring incomplete, errors occurred! > > *** Error 1 in . (/home/ports/infrastructure/mk/bsd.port.mk:2567 > > '/home/ports/pobj/gnustep-libobjc2-1.7/build-i386/.configure_done') > > *** Error 1 in /home/ports/x11/gnustep/libobjc2 > > (/home/ports/infrastructure/mk/bsd.port.mk:2323 'configure') > > > > the opts/CMakeLists.txt file contains on line 3 and 4: > > find_package(LLVM) > > include(AddLLVM) > > > > Am I missing something? Any pointer appreciated. > > I found that when fiddling around with > /usr/local/share/llvm/cmake/LLVMConfig.cmake > and at the very end of that file, changing the MODULE_PATH > to point to /usr/local/share/llvm/cmake > instead of /usr/obj/... > > > from the LLVMConfig.cmake > ... > # We try to include using the current setting of CMAKE_MODULE_PATH, > # which suppossedly was filled by the user with the directory where > # this file was installed: > include( LLVM-Config OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED ) > > # If failed, we assume that this is an un-installed build: > if( NOT LLVMCONFIG_INCLUDED ) > set(CMAKE_MODULE_PATH > ${CMAKE_MODULE_PATH} > "/usr/local/share/llvm/cmake") > include( LLVM-Config ) > endif() > > > but still, I don't know whether I
Re: problem with combination of cmake and clang module
On Sunday, January 13, 2013 17:39 CET, "Sebastian Reitenbach" wrote: > Hi, > > I'm testing x11/gnustep/libobjc2 from svn. Upstream changed the build > environment to use cmake. > Since the recommended compiler is clang, I thought about trying that too, but > that made me run into trouble: > > so I have this in the Makefile: > > MODULES = devel/cmake lang/clang > MODCLANG_ARCHS = ${LLVM_ARCHS} > MODCLANG_LANGS = c++ > > make configure now looks like this: > > ===> Configuring for gnustep-libobjc2-1.7 > -- The C compiler identification is Clang 3.2.0 > -- The CXX compiler identification is Clang 3.2.0 > -- Check for working C compiler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc > -- Check for working C compiler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc > -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: > /home/ports/pobj/gnustep-libobjc2-1.7/bin/c++ > -- Check for working CXX compiler: > /home/ports/pobj/gnustep-libobjc2-1.7/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- The ASM compiler identification is Clang > -- Found assembler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc > CMake Error at /usr/local/share/llvm/cmake/LLVMConfig.cmake:137 (include): > include could not find load file: > > LLVM-Config > Call Stack (most recent call first): > CMakeLists.txt:123 (find_package) > > > CMake Error at /usr/local/share/llvm/cmake/LLVMConfig.cmake:137 (include): > include could not find load file: > > LLVM-Config > Call Stack (most recent call first): > opts/CMakeLists.txt:3 (find_package) > > > CMake Error at opts/CMakeLists.txt:4 (include): > include could not find load file: > > AddLLVM > > > CMake Error at opts/CMakeLists.txt:11 (add_llvm_loadable_module): > Unknown CMake command "add_llvm_loadable_module". > > > -- Configuring incomplete, errors occurred! > *** Error 1 in . (/home/ports/infrastructure/mk/bsd.port.mk:2567 > '/home/ports/pobj/gnustep-libobjc2-1.7/build-i386/.configure_done') > *** Error 1 in /home/ports/x11/gnustep/libobjc2 > (/home/ports/infrastructure/mk/bsd.port.mk:2323 'configure') > > the opts/CMakeLists.txt file contains on line 3 and 4: > find_package(LLVM) > include(AddLLVM) > > Am I missing something? Any pointer appreciated. I found that when fiddling around with /usr/local/share/llvm/cmake/LLVMConfig.cmake and at the very end of that file, changing the MODULE_PATH to point to /usr/local/share/llvm/cmake instead of /usr/obj/... from the LLVMConfig.cmake ... # We try to include using the current setting of CMAKE_MODULE_PATH, # which suppossedly was filled by the user with the directory where # this file was installed: include( LLVM-Config OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED ) # If failed, we assume that this is an un-installed build: if( NOT LLVMCONFIG_INCLUDED ) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/local/share/llvm/cmake") include( LLVM-Config ) endif() but still, I don't know whether I'm missing something, or whether the file should set that path correctly at that point? Sebastian > > cheers, > Sebastian > >
problem with combination of cmake and clang module
Hi, I'm testing x11/gnustep/libobjc2 from svn. Upstream changed the build environment to use cmake. Since the recommended compiler is clang, I thought about trying that too, but that made me run into trouble: so I have this in the Makefile: MODULES = devel/cmake lang/clang MODCLANG_ARCHS = ${LLVM_ARCHS} MODCLANG_LANGS = c++ make configure now looks like this: ===> Configuring for gnustep-libobjc2-1.7 -- The C compiler identification is Clang 3.2.0 -- The CXX compiler identification is Clang 3.2.0 -- Check for working C compiler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc -- Check for working C compiler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/c++ -- Check for working CXX compiler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- The ASM compiler identification is Clang -- Found assembler: /home/ports/pobj/gnustep-libobjc2-1.7/bin/cc CMake Error at /usr/local/share/llvm/cmake/LLVMConfig.cmake:137 (include): include could not find load file: LLVM-Config Call Stack (most recent call first): CMakeLists.txt:123 (find_package) CMake Error at /usr/local/share/llvm/cmake/LLVMConfig.cmake:137 (include): include could not find load file: LLVM-Config Call Stack (most recent call first): opts/CMakeLists.txt:3 (find_package) CMake Error at opts/CMakeLists.txt:4 (include): include could not find load file: AddLLVM CMake Error at opts/CMakeLists.txt:11 (add_llvm_loadable_module): Unknown CMake command "add_llvm_loadable_module". -- Configuring incomplete, errors occurred! *** Error 1 in . (/home/ports/infrastructure/mk/bsd.port.mk:2567 '/home/ports/pobj/gnustep-libobjc2-1.7/build-i386/.configure_done') *** Error 1 in /home/ports/x11/gnustep/libobjc2 (/home/ports/infrastructure/mk/bsd.port.mk:2323 'configure') the opts/CMakeLists.txt file contains on line 3 and 4: find_package(LLVM) include(AddLLVM) Am I missing something? Any pointer appreciated. cheers, Sebastian