macOS: 10.13.5
$ git clone https://github.com/EOSIO/eos --recursive
$ cd eos
$ ./eosio_build.sh
Output:
Beginning build version: 1.2
2018年 6月24日 星期日 15时33分38秒 UTC
User: laixurui
git head id: 796511999b46063640396e9cd691a5262bab8207
Current branch: master
ARCHITECTURE: Darwin
Unknown option: 1
Usage: head [-options] <url>...
-m <method> use method for the request (default is 'HEAD')
-f make request even if head believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)
-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways
-v Show program version
-h Print this message
-x Extra debugging output
/Users/laixurui/Work/Blockchain/eos/scripts/eosio_build_darwin.sh: line 13: 1073741824 / blksize : division by 0 (error token is " ")
/Users/laixurui/Work/Blockchain/eos/scripts/eosio_build_darwin.sh: line 16: total_blks / gbfactor : division by 0 (error token is " ")
/Users/laixurui/Work/Blockchain/eos/scripts/eosio_build_darwin.sh: line 17: avail_blks / gbfactor : division by 0 (error token is " ")
OS name: Darwin
OS Version: 10.13.5
CPU speed: 2.60Ghz
CPU cores: 2
Physical Memory: 8 Gbytes
Disk install: /dev/disk1
Disk space total: G
Disk space available: G
/Users/laixurui/Work/Blockchain/eos/scripts/eosio_build_darwin.sh: line 40: [: : integer expression expected
Checking xcode-select installation
xcode-select installation found @
/usr/bin/xcode-select
Checking Ruby installation.
Ruby installation found @
/usr/bin/ruby
Checking Home Brew installation
Home Brew installation found @
/usr/local/bin/brew
Checking dependencies.
Checking automake ... automake found
Checking Libtool ... Libtool found
Checking OpenSSL ... OpenSSL found
Checking llvm ... llvm found
Checking wget ... wget found
Checking CMake ... CMake found
Checking GMP ... GMP found
Checking gettext ... gettext found
Checking MongoDB ... MongoDB found
Checking Doxygen ... Doxygen found
Checking Graphviz ... Graphviz found
Checking LCOV ... LCOV found
Checking Python3 ... Python3 found
No required Home Brew dependencies to install.
Checking boost library installation.
Boost 1.67.0 found at /usr/local.
Checking MongoDB C++ driver installation.
Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.
Checking secp256k1-zkp installation.
secp256k1 found at /usr/local/lib/.
Checking LLVM with WASM support.
Cloning into 'llvm'...
remote: Counting objects: 24803, done.
remote: Compressing objects: 100% (23968/23968), done.
remote: Total 24803 (delta 1309), reused 15779 (delta 553), pack-reused 0
Receiving objects: 100% (24803/24803), 34.45 MiB | 1.75 MiB/s, done.
Resolving deltas: 100% (1309/1309), done.
Checking out files: 100% (24000/24000), done.
Cloning into 'clang'...
remote: Counting objects: 13323, done.
remote: Compressing objects: 100% (11694/11694), done.
remote: Total 13323 (delta 992), reused 6496 (delta 604), pack-reused 0
Receiving objects: 100% (13323/13323), 16.37 MiB | 885.00 KiB/s, done.
Resolving deltas: 100% (992/992), done.
Checking out files: 100% (13510/13510), done.
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_policy):
The OLD behavior for policy CMP0051 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- The ASM compiler identification is AppleClang
-- Found assembler: /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
-- 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 libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc.h
-- Looking for malloc.h - not found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - found
-- Looking for ndir.h
-- Looking for ndir.h - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for sys/dir.h
-- Looking for sys/dir.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/ndir.h
-- Looking for sys/ndir.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/uio.h
-- Looking for sys/uio.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Looking for mach/mach.h
-- Looking for mach/mach.h - found
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Performing Test HAVE_CRASHREPORTER_INFO
-- Performing Test HAVE_CRASHREPORTER_INFO - Success
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_getspecific in pthread
-- Looking for pthread_getspecific in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Looking for compress2 in z
-- Looking for compress2 in z - found
-- Looking for el_init in edit
-- Looking for el_init in edit - found
-- Looking for setupterm in tinfo
-- Looking for setupterm in tinfo - not found
-- Looking for setupterm in terminfo
-- Looking for setupterm in terminfo - not found
-- Looking for setupterm in curses
-- Looking for setupterm in curses - found
-- Looking for xar_open in xar
-- Looking for xar_open in xar - found
-- Looking for arc4random
-- Looking for arc4random - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - not found
-- Looking for writev
-- Looking for writev - found
-- Looking for lseek64
-- Looking for lseek64 - not found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - found
-- Looking for mkdtemp
-- Looking for mkdtemp - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mktemp
-- Looking for mktemp - found
-- Looking for getcwd
-- Looking for getcwd - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for sbrk
-- Looking for sbrk - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - not found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Performing Test HAVE_INT64_T
-- Performing Test HAVE_INT64_T - Success
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Success
-- Performing Test HAVE_U_INT64_T
-- Performing Test HAVE_U_INT64_T - Success
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Success
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Success
-- Native target X86 is not selected; lli will not JIT code
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-darwin17.6.0
-- LLVM default target triple: x86_64-apple-darwin17.6.0
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Success
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_CXX11
-- Performing Test CXX_SUPPORTS_CXX11 - Success
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.10")
-- Constructing LLVMBuild project information
-- Targeting WebAssembly
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Clang version: 4.0.1
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Success
Unknown option: 1
Usage: head [-options] <url>...
-m <method> use method for the request (default is 'HEAD')
-f make request even if head believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)
-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways
-v Show program version
-h Print this message
-x Extra debugging output
CMake Error at tools/clang/CMakeLists.txt:328 (message):
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
failed with status 255
-- Configuring incomplete, errors occurred!
See also "/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeError.log".
Error compiling LLVM/Clang with WASM support.
Exiting now.
brew remove --force boostbrew
remove --force llvmcd /path/to/eos
rm -rf build/
git pull
git submodule update --init --recursive
Recommending a website that learns the basics of EOS (https://www.bcskill.com) may help you.
@cppfuns it didn‘t work,The error message is still the same,can you help me? Thank you
Mac-mini:eos laixurui$ brew remove --force boostbrew
Mac-mini:eos laixurui$ brew remove --force llvmcd /Users/laixurui/Work/Blockchain/eos
Error: No available formula with the name "/Users/laixurui/Work/Blockchain/eos"
Mac-mini:eos laixurui$
@xuruilai Can you run the following command and paste the FULL output from each command here?
echo $PATH
which clang
clang --version
@pacificcode
Mac-mini:eos laixurui$ echo $PATH
/Users/laixurui/.composer/vendor/bin:/Applications/XAMPP/xamppfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/laixurui/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/include/apache-ant-1.9.5/bin:/Users/laixurui/Work/Android/android-sdk-macosx:/Users/laixurui/Work/Android/android-sdk-macosx/tools:/Users/laixurui/Work/Android/android-sdk-macosx/platform-tools:/usr/local/include/gradle-2.5/bin:/Users/laixurui/.rvm/bin:/Users/laixurui/.rvm/bin
Mac-mini:eos laixurui$ which clang
/usr/bin/clang
Mac-mini:eos laixurui$ clang --version
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Mac-mini:eos laixurui$
@xuruilai run the following commands and you should be good.
brew remove --force llvm
cd /path/to/eos
rm -rf build/
git pull
git submodule update --init --recursive
./eosio_build.sh
@pacificcode Thank you, but it didn‘t work,I confirm I have run your commands ,the error message is still the same!!
@xuruilai Try below:
brew cleanup
brew install --with-clang --with-lld --with-python llvm@4
export LLVM_DIR=/usr/local/Cellar/llvm@4/4.0.1/lib/cmake/llvm; ./eosio_build.sh
cd build
sudo make install
@channprj Sorry, but it didn‘t work.
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeError.log
Determining if the include file link.h exists failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_c8c80/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_c8c80.dir/build.make CMakeFiles/cmTC_c8c80.dir/build
Building C object CMakeFiles/cmTC_c8c80.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_c8c80.dir/CheckIncludeFile.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'link.h' file not found
#include <link.h>
^~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_c8c80.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_c8c80/fast] Error 2
Determining if the include file malloc.h exists failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_29205/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_29205.dir/build.make CMakeFiles/cmTC_29205.dir/build
Building C object CMakeFiles/cmTC_29205.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_29205.dir/CheckIncludeFile.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_29205.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_29205/fast] Error 2
Determining if the include file ndir.h exists failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_19287/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_19287.dir/build.make CMakeFiles/cmTC_19287.dir/build
Building C object CMakeFiles/cmTC_19287.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_19287.dir/CheckIncludeFile.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'ndir.h' file not found
#include <ndir.h>
^~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_19287.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_19287/fast] Error 2
Determining if the include file sys/ndir.h exists failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_dee14/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_dee14.dir/build.make CMakeFiles/cmTC_dee14.dir/build
Building C object CMakeFiles/cmTC_dee14.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_dee14.dir/CheckIncludeFile.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'sys/ndir.h' file not found
#include <sys/ndir.h>
^~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_dee14.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_dee14/fast] Error 2
Determining if the include file valgrind/valgrind.h exists failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_8e452/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_8e452.dir/build.make CMakeFiles/cmTC_8e452.dir/build
Building C object CMakeFiles/cmTC_8e452.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_8e452.dir/CheckIncludeFile.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'valgrind/valgrind.h' file not found
#include <valgrind/valgrind.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_8e452.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_8e452/fast] Error 2
Determining if the include file CrashReporterClient.h exists failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_07619/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_07619.dir/build.make CMakeFiles/cmTC_07619.dir/build
Building C object CMakeFiles/cmTC_07619.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_07619.dir/CheckIncludeFile.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'CrashReporterClient.h' file not found
#include <CrashReporterClient.h>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_07619.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_07619/fast] Error 2
Determining if the function clock_gettime exists in the rt failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_7bf8b/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_7bf8b.dir/build.make CMakeFiles/cmTC_7bf8b.dir/build
Building C object CMakeFiles/cmTC_7bf8b.dir/CheckFunctionExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCHECK_FUNCTION_EXISTS=clock_gettime -o CMakeFiles/cmTC_7bf8b.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_7bf8b
/usr/local/Cellar/cmake/3.11.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7bf8b.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCHECK_FUNCTION_EXISTS=clock_gettime -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_7bf8b.dir/CheckFunctionExists.c.o -o cmTC_7bf8b -lrt -lm
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_7bf8b] Error 1
make: *** [cmTC_7bf8b/fast] Error 2
Determining if the function setupterm exists in the tinfo failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_5f995/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_5f995.dir/build.make CMakeFiles/cmTC_5f995.dir/build
Building C object CMakeFiles/cmTC_5f995.dir/CheckFunctionExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm -o CMakeFiles/cmTC_5f995.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_5f995
/usr/local/Cellar/cmake/3.11.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5f995.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_5f995.dir/CheckFunctionExists.c.o -o cmTC_5f995 -ltinfo -lm
ld: library not found for -ltinfo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_5f995] Error 1
make: *** [cmTC_5f995/fast] Error 2
Determining if the function setupterm exists in the terminfo failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_58d1b/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_58d1b.dir/build.make CMakeFiles/cmTC_58d1b.dir/build
Building C object CMakeFiles/cmTC_58d1b.dir/CheckFunctionExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm -o CMakeFiles/cmTC_58d1b.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_58d1b
/usr/local/Cellar/cmake/3.11.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_58d1b.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_58d1b.dir/CheckFunctionExists.c.o -o cmTC_58d1b -lterminfo -lm
ld: library not found for -lterminfo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_58d1b] Error 1
make: *** [cmTC_58d1b/fast] Error 2
Determining if the posix_fallocate exist failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_b9329/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_b9329.dir/build.make CMakeFiles/cmTC_b9329.dir/build
Building C object CMakeFiles/cmTC_b9329.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_b9329.dir/CheckSymbolExists.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'posix_fallocate'
return ((int*)(&posix_fallocate))[argc];
^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_b9329.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_b9329/fast] Error 2
File /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <fcntl.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef posix_fallocate
return ((int*)(&posix_fallocate))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the lseek64 exist failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_51d19/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_51d19.dir/build.make CMakeFiles/cmTC_51d19.dir/build
Building C object CMakeFiles/cmTC_51d19.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -D_LARGEFILE64_SOURCE -o CMakeFiles/cmTC_51d19.dir/CheckSymbolExists.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:9:19: error: use of undeclared identifier 'lseek64'; did you mean 'lseek'?
return ((int*)(&lseek64))[argc];
^~~~~~~
lseek
/usr/include/unistd.h:464:8: note: 'lseek' declared here
off_t lseek(int, off_t, int);
^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_51d19.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_51d19/fast] Error 2
File /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <sys/types.h>
#include <unistd.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef lseek64
return ((int*)(&lseek64))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the mallctl exist failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_90def/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_90def.dir/build.make CMakeFiles/cmTC_90def.dir/build
Building C object CMakeFiles/cmTC_90def.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_90def.dir/CheckSymbolExists.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: 'malloc_np.h' file not found
#include <malloc_np.h>
^~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_90def.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_90def/fast] Error 2
File /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <malloc_np.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef mallctl
return ((int*)(&mallctl))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the mallinfo exist failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_524e3/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_524e3.dir/build.make CMakeFiles/cmTC_524e3.dir/build
Building C object CMakeFiles/cmTC_524e3.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_524e3.dir/CheckSymbolExists.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_524e3.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_524e3/fast] Error 2
File /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <malloc.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef mallinfo
return ((int*)(&mallinfo))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the strerror_s exist failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_b047c/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_b047c.dir/build.make CMakeFiles/cmTC_b047c.dir/build
Building C object CMakeFiles/cmTC_b047c.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_b047c.dir/CheckSymbolExists.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'strerror_s'; did you mean 'strerror_r'?
return ((int*)(&strerror_s))[argc];
^~~~~~~~~~
strerror_r
/usr/include/string.h:116:6: note: 'strerror_r' declared here
int strerror_r(int __errnum, char *__strerrbuf, size_t __buflen);
^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_b047c.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_b047c/fast] Error 2
File /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <string.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef strerror_s
return ((int*)(&strerror_s))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the __GLIBC__ exist failed with the following output:
Change Dir: /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_bd674/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_bd674.dir/build.make CMakeFiles/cmTC_bd674.dir/build
Building C object CMakeFiles/cmTC_bd674.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_bd674.dir/CheckSymbolExists.c.o -c /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier '__GLIBC__'
return ((int*)(&__GLIBC__))[argc];
^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_bd674.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_bd674/fast] Error 2
File /tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <stdio.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef __GLIBC__
return ((int*)(&__GLIBC__))[argc];
#else
(void)argc;
return 0;
#endif
}
I have the same issue. Have you resolved it?
@lazaridiscom Hi there. I did what you said. I removed everything, re-cloned the whole project using the following steps:
git clone https://github.com/EOSIO/eos --recursive
cd eos
./eosio_build.sh
but I still got the same errors. The main errors are
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc.h
-- Looking for malloc.h - not found
-- Looking for malloc/malloc.h
So where are the header files? Any tips? I guess there are something not correctly configured on my mac. Please help. Thanks.
Still no luck, which is frustrating. Below is the total output.
$ ./eosio_build.sh
Beginning build version: 1.2
Wed Aug 15 19:32:26 UTC 2018
User: bos162
git head id: 4da680bdfe1f68a11edb332252e015f4f533c443
Current branch: master
ARCHITECTURE: Darwin
Unknown option: 1
Usage: head [-options]
-m
-f make request even if head believes method is illegal
-b
-t
-i
-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways
-v Show program version
-h Print this message
-x Extra debugging output
/Applications/XAMPP/xamppfiles/htdocs/github/pickle/blockchain/eos/scripts/eosio_build_darwin.sh: line 13: 1073741824 / blksize : division by 0 (error token is " ")
/Applications/XAMPP/xamppfiles/htdocs/github/pickle/blockchain/eos/scripts/eosio_build_darwin.sh: line 16: total_blks / gbfactor : division by 0 (error token is " ")
/Applications/XAMPP/xamppfiles/htdocs/github/pickle/blockchain/eos/scripts/eosio_build_darwin.sh: line 17: avail_blks / gbfactor : division by 0 (error token is " ")
OS name: Darwin
OS Version: 10.12.6
CPU speed: 2.70Ghz
CPU cores: 2
Physical Memory: 8 Gbytes
Disk install: /dev/disk1
Disk space total: G
Disk space available: G
/Applications/XAMPP/xamppfiles/htdocs/github/pickle/blockchain/eos/scripts/eosio_build_darwin.sh: line 40: [: : integer expression expected
Checking xcode-select installation
xcode-select installation found @
/usr/bin/xcode-select
Checking Ruby installation.
Ruby installation found @
/usr/bin/ruby
Checking Home Brew installation
Home Brew installation found @
/usr/local/bin/brew
Checking dependencies.
Checking automake ... automake found
Checking Libtool ... Libtool found
Checking OpenSSL ... OpenSSL found
Checking llvm ... llvm found
Checking wget ... wget found
Checking CMake ... CMake found
Checking GMP ... GMP found
Checking gettext ... gettext found
Checking MongoDB ... MongoDB found
Checking Doxygen ... Doxygen found
Checking Graphviz ... Graphviz found
Checking LCOV ... LCOV found
Checking Python3 ... Python3 found
No required Home Brew dependencies to install.
Checking boost library installation.
Boost 1.67.0 found at /usr/local.
Checking MongoDB C++ driver installation.
Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.
Checking secp256k1-zkp installation.
secp256k1 found at /usr/local/lib/.
Checking LLVM with WASM support.
Cloning into 'llvm'...
remote: Counting objects: 24803, done.
remote: Compressing objects: 100% (23956/23956), done.
remote: Total 24803 (delta 1327), reused 15562 (delta 565), pack-reused 0
Receiving objects: 100% (24803/24803), 34.45 MiB | 782.00 KiB/s, done.
Resolving deltas: 100% (1327/1327), done.
Checking connectivity... done.
Checking out files: 100% (24000/24000), done.
Cloning into 'clang'...
remote: Counting objects: 13323, done.
remote: Compressing objects: 100% (11698/11698), done.
remote: Total 13323 (delta 995), reused 6484 (delta 600), pack-reused 0
Receiving objects: 100% (13323/13323), 16.38 MiB | 2.42 MiB/s, done.
Resolving deltas: 100% (995/995), done.
Checking connectivity... done.
Checking out files: 100% (13510/13510), done.
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_policy):
The OLD behavior for policy CMP0051 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- The ASM compiler identification is AppleClang
-- Found assembler: /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
-- 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 libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Looking for dirent.h
CMake Warning (dev) at /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/CheckIncludeFile.cmake:70 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
CMAKE_REQUIRED_LIBRARIES is set to:
m
For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
cmake/config-ix.cmake:46 (check_include_file)
CMakeLists.txt:582 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for dirent.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc.h
-- Looking for malloc.h - not found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - found
-- Looking for ndir.h
-- Looking for ndir.h - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for sys/dir.h
-- Looking for sys/dir.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/ndir.h
-- Looking for sys/ndir.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/uio.h
-- Looking for sys/uio.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Looking for mach/mach.h
-- Looking for mach/mach.h - found
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Performing Test HAVE_CRASHREPORTER_INFO
-- Performing Test HAVE_CRASHREPORTER_INFO - Success
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_getspecific in pthread
-- Looking for pthread_getspecific in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Looking for compress2 in z
-- Looking for compress2 in z - found
-- Looking for el_init in edit
-- Looking for el_init in edit - found
-- Looking for setupterm in tinfo
-- Looking for setupterm in tinfo - not found
-- Looking for setupterm in terminfo
-- Looking for setupterm in terminfo - not found
-- Looking for setupterm in curses
-- Looking for setupterm in curses - found
-- Looking for xar_open in xar
-- Looking for xar_open in xar - found
-- Looking for arc4random
-- Looking for arc4random - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - not found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - not found
-- Looking for writev
-- Looking for writev - found
-- Looking for lseek64
-- Looking for lseek64 - not found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - found
-- Looking for mkdtemp
-- Looking for mkdtemp - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mktemp
-- Looking for mktemp - found
-- Looking for getcwd
-- Looking for getcwd - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for sbrk
-- Looking for sbrk - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - not found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Performing Test HAVE_INT64_T
-- Performing Test HAVE_INT64_T - Success
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Success
-- Performing Test HAVE_U_INT64_T
-- Performing Test HAVE_U_INT64_T - Success
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Success
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Success
-- Native target X86 is not selected; lli will not JIT code
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-darwin16.7.0
-- LLVM default target triple: x86_64-apple-darwin16.7.0
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Success
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_CXX11
-- Performing Test CXX_SUPPORTS_CXX11 - Success
-- Found PythonInterp: /usr/local/bin/python2.7 (found version "2.7.15")
-- Constructing LLVMBuild project information
-- Targeting WebAssembly
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Clang version: 4.0.1
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Success
Unknown option: 1
Usage: head [-options]
-m
-f make request even if head believes method is illegal
-b
-t
-i
-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways
-v Show program version
-h Print this message
-x Extra debugging output
CMake Error at tools/clang/CMakeLists.txt:328 (message):
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
failed with status 255
-- Configuring incomplete, errors occurred!
See also "/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/wasm-compiler/llvm/build/CMakeFiles/CMakeError.log".
Error compiling LLVM/Clang with WASM support.
Exiting now.
@lazaridiscom Hi. I really appreciate your help. It still does not work, but I noticed that my os is 10.12, and I will upgrade it to 10.13 and try again.
Still not working so far.
After running the shell commands one by one, I think it is the
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=.. -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly -DCMAKE_BUILD_TYPE=Release ../
breaking the build. This is building the WebAssembly, right? What are the dependencies of building WebAssembly here, so that I can double check one by one? Thanks.
Ok, finally I resolved it. It is because the "head -line" command, which was required by EOSIO scripts, can not be used after installing the XAMPP. The solution is on this link. After fixing this error, my EOSIO can be successfully built, even though taking a long time.
Most helpful comment
I have the same issue. Have you resolved it?