CMake build failed with error 'SecTrustEvaluateAsync' undeclared when using gcc 5.3 on OS X - cmake

I am trying to build CMake 3.5.2 from source on Mac El Captain using GNU GCC 5.3 from HPC.
The ./bootstrap process is completed successfully but when i am using make is failing with the following error.
/Users/dev/Downloads/CMake-master/Utilities/cmcurl/lib/vtls/darwinssl.c: In function ‘darwinssl_connect_step3’:
/Users/dev/Downloads/CMake-master/Utilities/cmcurl/lib/vtls/darwinssl.c:1999:6: error: ‘SecTrustEvaluateAsync’ undeclared (first use in this function)
if(SecTrustEvaluateAsync != NULL) {
^
/Users/dev/Downloads/CMake-master/Utilities/cmcurl/lib/vtls/darwinssl.c:1999:6: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/darwinssl.c.o] Error 1
make[1]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/all] Error 2
make: *** [all] Error 2
The same process worked fine when I was using the default clang compiler provided with Mac OS.
When I tried finding about SecTrustEvaluateAsync I found the following information in the apple site.
Any help on this is highly appreciated.

You might try the latest CMake 3.6-rc1. If the problem persists, file a bug to notice the CMake developers. We probably won't fix CMake's code.

Related

Why can I not update to the newest version of libtorch?

I followed the tutorial here to make a c++ front-end application for pytorch:
https://pytorch.org/tutorials/advanced/cpp_frontend.html
I used GPU version. I could succesfully cmake and make.
Now I updated to the latest version of libtorch. I can still cmake, but on make, I get the following error:
[willem#int2 build]$ make
make[2]: *** No rule to make target `/sw/arch/RedHatEnterpriseServer7/EB_production/2019/software/cuDNN/7.6.5.32-CUDA-10.1.243/include/lib64', needed by `polIter'. Stop.
make[1]: *** [CMakeFiles/polIter.dir/all] Error 2
make: *** [all] Error 2
My cmake command is:
cmake -DCMAKE_PREFIX_PATH=~/libtorch1.8.1/share/cmake/Torch/
-DCMAKE_MODULE_PATH=/home/willemvj/libtorch1.8.1/share/cmake/Torch/
-DCUDNN_LIBRARY_PATH=$EBROOTCUDNN/include/lib64
-DCUDNN_INCLUDE_DIR=$EBROOTCUDNN/include -DCUDNN_LIBRARY=$EBROOTCUDNN/lib64
/libcudnn.so.7 .. #
Any ideas on what is causing this?

QT LimeReport on RPI4

I am using QT LimeReport on my UBUNTU 18.04 system although i wanted to use it on RPI4.
But i couldn't find any documentation for it and i tried cloning LimeReport from github but it gives error when i use "make".
The error i get is related to
Project ERROR: Unknown module(s) in QT: designercomponents-private
make[1]: *** [Makefile:818: Makefile] Error 3
make[1]: Leaving directory '/home/pi/Desktop/LimeReport/limereport'
make: *** [Makefile:93: sub-limereport-make_first-ordered] Error 2
Has anyone successfully installed and used LimeReport using QT c++ on RPI4.
Install the qttools5-private-dev package to get the missing designercomponents-private QMake file.

'brew install cmake' gives 'InsecurePlatformWarning'

on mac OSX 10.9.5 (Mavericks)
$brew install cmake
gives
==> Using the sandbox
==> Downloading https://cmake.org/files/v3.8/cmake-3.8.0.tar.gz
Already downloaded: /Users/me/Library/Caches/Homebrew/cmake-3.8.0.tar.gz
==> ./bootstrap --prefix=/usr/local/Cellar/cmake/3.8.0 --no-system-libs --parallel=8 --datadir=/share/cmake --docdir=/sh
==> make
Last 15 lines from /Users/me/Library/Logs/Homebrew/cmake/02.make:
[100%] Linking CXX executable ../bin/ctest
[100%] Built target ctest
Scanning dependencies of target documentation
[100%] sphinx-build man: see Utilities/Sphinx/build-man.log
Exception occurred:
File "/usr/local/Cellar/sphinx-doc/1.5.5/libexec/lib/python2.7/site-packages/sphinx/util/requests.py", line 52, in <module>
requests.packages.urllib3.exceptions.InsecurePlatformWarning)
AttributeError: 'module' object has no attribute 'InsecurePlatformWarning'
The full traceback has been saved in /tmp/sphinx-err-FKTGTI.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make[2]: *** [Utilities/Sphinx/doc_format_man] Error 1
make[1]: *** [Utilities/Sphinx/CMakeFiles/documentation.dir/all] Error 2
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
glew 2.0.0: add "--with-cmake" option https://github.com/Homebrew/homebrew-core/pull/12722
qt5: cmake find_package(Qt5Core) doesn't work when linked to /usr/local https://github.com/Homebrew/homebrew-core/issues/8392
Error: You are using macOS 10.9.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
Error: You are using macOS 10.9.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
why am i getting this error?
A search for this on SO led me to this page which says 'This happens on Python 2 platforms that have an outdated ssl module. '
I am using Python 2.7.13. I followed this page and issued:
pip install urllib3[secure]
but I still get the same error.
turns out make 3.8 is not compatible w mavericks. i upgraded to el capitan and it installed without a hiccough.

Can't find jemalloc while building MariaDB on Raspbian Wheezy

I have installed the list of Required tools shown on the Build Environment Setup for Linux, including JEMALLOC, on my Raspberry Pi which has Raspbian Wheezy installed, fully updated, and setup for development. I have successfully built some of the listed tools (Bison, CMake 3.7.2). I have gcc and g++ (Raspbian 4.8.2-21rpi3rpi1) 4.8.2.
When I attempt to build mariadb 10.1.22 (master branch from the github repository) using cmake . -DBUILD_CONFIG=mysql_release I get an error:
CMake Error at cmake/jemalloc.cmake:38 (MESSAGE):
jemalloc is not found
Call Stack (most recent call first):
CMakeLists.txt:343 (CHECK_JEMALLOC)
After building JEMALLOC, I installed it into /usr/local using sudo make install. I have export JEMALLOC_PATH=/usr/local in my .bashrc.
I don't understand why CHECK_JEMALLOC is failing to find the correct files. A list of the file locations is:
/usr/local/bin/jemalloc.sh
/usr/local/bin/jemalloc-config
/usr/local/include/jemalloc
/usr/local/include/jemalloc/jemalloc.h
/usr/local/lib/pkgconfig/jemalloc.pc
/usr/local/lib/libjemalloc.so
/usr/local/lib/libjemalloc_pic.a
/usr/local/lib/libjemalloc.so.2
/usr/local/lib/libjemalloc.a
/usr/local/share/doc/jemalloc
/usr/local/share/doc/jemalloc/jemalloc.html
/usr/local/share/man/man3/jemalloc.3
I can attach a link to the CMake configure log, error log, and terminal output if needed.
UPDATE
I tried using just cmake . and the configuration part worked, but the make failed with the following error:
/home/user/Downloads/mariadb/server/storage/mroonga/vendor/groonga/lib/expr.c:6816:7: note: in expansion of macro ‘GRN_PTR_POP’
GRN_PTR_POP(&keywords, keyword);
^
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/build.make:257: recipe for target 'storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o' failed
make[2]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o] Error 4
make[2]: Leaving directory '/home/user/Downloads/mariadb/server'
CMakeFiles/Makefile2:4420: recipe for target 'storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/all' failed
make[1]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/all] Error 2
make[1]: Leaving directory '/home/user/Downloads/mariadb/server'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2

valgrind installation make error __longjmp_chk already defined

I am trying to install valgrind 2.2.0 on ubuntu 10.04 having glibc 2.11. I have used valgrind doesn't accept newest version of glibc link. While make i am getting some error. The last 10 lines appearing on screen are
vg_libpthread.c:314: note: expected ‘const Char *’ but argument is of type ‘char *’
vg_libpthread.c:3292: warning: pointer targets in passing argument 4 of ‘my_assert_fail’ differ in signedness
vg_libpthread.c:314: note: expected ‘const Char *’ but argument is of type ‘const char *’
/tmp/ccGHnzp9.s: Assembler messages:
/tmp/ccGHnzp9.s:2463: Error: symbol `__longjmp_chk' is already defined
make[4]: *** [vg_libpthread.o] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
/tmp/ccGHnzp9.s file doesnt exist. I am unable to find whats wrong.
Thank you.
I am trying to install valgrind 2.2.0 on ubuntu 10.04
Valgrind 2.2.0 is ancient (Released on 31 August 2004) and can't be built without much hacking on a recent Linux system.
I can't think of any good reason to attempt building that particular Valgrind version either. Just use a newer release (current release builds just fine on ubuntu 10.04 without any hacks).