pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Build error devel/cmake on MacOS X



Hi,

I cannot get devel/cmake built on MacOS X 10.10 using XCode 6.3.2

$ (cd devel/cmake && bmake)
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /opt/pkg/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for cmake-3.2.3nb1
[  0%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/ProcessUNIX.c.o
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/ProcessUNIX.c:13:10: fatal error: 'cmsys/Process.h' file not found
#include KWSYS_HEADER(Process.h)
         ^
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/kwsysPrivate.h:27:25: note: expanded from macro 'KWSYS_HEADER'
#define KWSYS_HEADER(x) KWSYS_HEADER0(KWSYS_NAMESPACE/x)
                        ^
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/kwsysPrivate.h:28:26: note: expanded from macro 'KWSYS_HEADER0'
#define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
                         ^
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/kwsysPrivate.h:29:26: note: expanded from macro 'KWSYS_HEADER1'
#define KWSYS_HEADER1(x) <x>
                         ^
1 error generated.
gnumake[2]: *** [Source/kwsys/CMakeFiles/cmsys.dir/ProcessUNIX.c.o] Error 1
gnumake[1]: *** [Source/kwsys/CMakeFiles/cmsys.dir/all] Error 2
gnumake: *** [all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /data/pkgsrc/devel/cmake

Enabling verbosity:

===> Building for cmake-3.2.3nb1
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Bootstrap.cmk/cmake -H/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3 -B/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3 --check-build-system CMakeFiles/Makefile.cmake 0
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Bootstrap.cmk/cmake -E cmake_progress_start /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/CMakeFiles /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/gnumake -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/gnumake -f Source/kwsys/CMakeFiles/cmsys.dir/build.make Source/kwsys/CMakeFiles/cmsys.dir/depend
cd /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3 && /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Bootstrap.cmk/cmake -E cmake_depends "Unix Makefiles" /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3 /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3 /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/CMakeFiles/cmsys.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/gnumake -f Source/kwsys/CMakeFiles/cmsys.dir/build.make Source/kwsys/CMakeFiles/cmsys.dir/build
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Bootstrap.cmk/cmake -E cmake_progress_report /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/CMakeFiles
[  0%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/ProcessUNIX.c.o
cd /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys && /tmp/pkgsrc/devel/cmake/work/.wrapper/bin/clang  -DKWSYS_NAMESPACE=cmsys -pipe -O2 -I/opt/pkg/include  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source -I/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys    -std=gnu11 -DKWSYS_C_HAS_PTRDIFF_T=1 -DKWSYS_C_HAS_SSIZE_T=1 -o CMakeFiles/cmsys.dir/ProcessUNIX.c.o   -c /tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/ProcessUNIX.c
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/ProcessUNIX.c:13:10: fatal error: 'cmsys/Process.h' file not found
#include KWSYS_HEADER(Process.h)
         ^
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/kwsysPrivate.h:27:25: note: expanded from macro 'KWSYS_HEADER'
#define KWSYS_HEADER(x) KWSYS_HEADER0(KWSYS_NAMESPACE/x)
                        ^
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/kwsysPrivate.h:28:26: note: expanded from macro 'KWSYS_HEADER0'
#define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
                         ^
/tmp/pkgsrc/devel/cmake/work/cmake-3.2.3/Source/kwsys/kwsysPrivate.h:29:26: note: expanded from macro 'KWSYS_HEADER1'
#define KWSYS_HEADER1(x) <x>
                         ^
1 error generated.
gnumake[2]: *** [Source/kwsys/CMakeFiles/cmsys.dir/ProcessUNIX.c.o] Error 1
gnumake[1]: *** [Source/kwsys/CMakeFiles/cmsys.dir/all] Error 2
gnumake: *** [all] Error 2
*** Error code 2

I wonder that the cmake configuration is weird - it neither detects /private/tmp (even if mk.conf names WRKOBJDIR= /private/tmp/pkgsrc) and uses /tmp instead and when I manually patch the flags.make, it reruns configure stage and break everything.

Any hints?

Cheers
-- 
Jens Rehsack - rehsack%gmail.com@localhost


Home | Main Index | Thread Index | Old Index