ssf icon indicating copy to clipboard operation
ssf copied to clipboard

Compilation problem on OSX

Open nodje opened this issue 8 years ago • 1 comments

cmake -DCMAKE_BUILD_TYPE=Release -DSSF_SECURITY:STRING="STANDARD" ../
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
** SSF_SECURITY is STANDARD
** BOOST_ROOT: /Users/user/project/fork/ssf/third_party/boost
** OPENSSL_ROOT_DIR: /Users/user/project/fork/ssf/third_party/openssl
-- [Boost] Looking for components: chrono, date_time, filesystem, log, program_options, regex, serialization, system, thread
-- [Boost] Using package archive: /Users/user/project/fork/ssf/third_party/Boost/boost_1_60_0.tar.bz2
-- [Boost] Found source path: /Users/user/project/fork/ssf/build/src.externals/boost_1_60_0
-- [Boost] Available components: *chrono, *date_time, *filesystem, *log, *program_options, *regex, *serialization, *system, *thread
-- [Boost] Building Libraries in mode STATIC/RELEASE
-- [Boost] Compiling Boost's builder
-- Found Boost: 1.60.0 (found version "1.60.0") found components:  system serialization program_options date_time filesystem log regex thread chrono
-- [OpenSSL] Looking for components: -ALL-
-- [OpenSSL] Using package archive: /Users/user/project/fork/ssf/third_party/openssl/openssl-1.0.2g.tar.gz
-- [OpenSSL] Found source path: /Users/user/project/fork/ssf/build/src.externals/openssl-1.0.2g
### Error [1] while executing:
### '/usr/local/Cellar/cmake/3.5.0/bin/cmake' '-G' 'Unix Makefiles' '-D' 'CMAKE_BUILD_TYPE=Release' '-U' 'OpenSSL_DEBUG' '-U' 'OpenSSL_FIND_QUIETLY' '-D' 'EXTERNALS_PKG_NAME=OpenSSL' '-D' 'EXTERNALS_BOOTSTRAP=ON' '-D' 'CMAKE_MODULE_PATH=/Users/user/project/fork/ssf/cmake/external' '/Users/user/project/fork/ssf/cmake/external/openssl/build'
### ===[ /Users/user/project/fork/ssf/build/OPENSSL115045-EC96323FABF46575.log ]===
### -- The C compiler identification is AppleClang 7.0.2.7000181
### -- The CXX compiler identification is AppleClang 7.0.2.7000181
### -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
### -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
### -- Detecting C compiler ABI info
### -- Detecting C compiler ABI info - done
### -- Detecting C compile features
### -- Detecting C compile features - done
### -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
### -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
### -- Detecting CXX compiler ABI info
### -- Detecting CXX compiler ABI info - done
### -- Detecting CXX compile features
### -- Detecting CXX compile features - done
### -- Found Perl: /opt/local/bin/perl (found version "5.16.3")
### -- Configuring incomplete, errors occurred!
### See also "/Users/user/Documents/project/fork/ssf/build/bin.externals/a1a1e/CMakeFiles/CMakeOutput.log".
###
### ---
### --- Error messages
### ---
### xXx[OpenSSL] Available components: -ALL-
### ### Error [2] while executing:
### ### 'make' 'all'
### ### ===[ /Users/user/Documents/project/fork/ssf/build/bin.externals/a1a1e/exec_115051-E8226781B54568D8.log ]===
### ### making all in crypto...
### ### /opt/local/bin/perl5 ../util/mkbuildinf.pl "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM" "darwin64-x86_64-cc" >buildinf.h
### ### /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM   -c -o cryptlib.o cryptlib.c
### ###
### ### ---
### ### --- Error messages
### ### ---
### ### In file included from cryptlib.c:117:
### ### ./cryptlib.h:62:11: fatal error: 'stdlib.h' file not found
### ### # include <stdlib.h>
### ###           ^
### ### 1 error generated.
### ### make[1]: *** [cryptlib.o] Error 1
### ### make: *** [build_crypto] Error 1
### ### ===[ /Users/user/Documents/project/fork/ssf/build/bin.externals/a1a1e/exec_115051-E8226781B54568D8.log ]===
### CMake Error at /Users/user/project/fork/ssf/cmake/common/SystemTools.cmake:213 (message):
###   SCRIPT ABORTED
### Call Stack (most recent call first):
###   openssl_build.cmake:300 (system_execute)
###   openssl_build.cmake:347 (openssl_run)
###   CMakeLists.txt:90 (openssl_build)
###
###
### ===[ /Users/user/project/fork/ssf/build/OPENSSL115045-EC96323FABF46575.log ]===
CMake Error at cmake/common/SystemTools.cmake:213 (message):
  SCRIPT ABORTED
Call Stack (most recent call first):
  cmake/external/ExternalPackageHelpers.cmake:1006 (system_execute)
  cmake/external/openssl/FindOpenSSL.cmake:76 (externals_build)
  cmake/external/openssl/FindOpenSSL.cmake:262 (openssl_build_package)
  CMakeLists.txt:212 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/user/project/fork/ssf/build/CMakeFiles/CMakeOutput.log".

The content of CMakeOutput.log is available at https://gist.github.com/nodje/5ae4d837bd0355430b8b I guess stdlib.h shouldn't be too far away, but I just don't know why it's not found in this config.

nodje avatar Mar 15 '16 04:03 nodje

Hello,

We don't have this issue on our build machine. Maybe your problem and this one are related.

Here is the given solution:

Interestingly the answer to this was simply that Xcode 6.1.1 with command line tools did not install correctly it appears. I was able to manually executexcode-select --install from the shell and after that /usr/include finally showed up.

securesocketfunneling avatar Aug 25 '16 09:08 securesocketfunneling