eosio_build.sh llvm exists error

Created on 11 Apr 2018  路  5Comments  路  Source: EOSIO/eos

When running

./eosio_build.sh

I get the error:

mkdir: wasm-compiler: File exists
fatal: destination path 'llvm' already exists and is not an empty directory.
    Unable to clone llvm repo @ https://github.com/llvm-mirror/llvm.git.
    Exiting now.

Independent from whether llvm is inside the directory, already installed with brew, unlinked etc.

needs testing - pass

Most helpful comment

@fabifrank @sisardor on darwin remove the directory /tmp/wasm-compiler
rm -rf /tmp/wasm-compiler
And run the eosio_build.sh script again and you should be good to go.

All 5 comments

Fixed it by:

  1. Edit scripts/eosio_build_darwin.sh to delete the llvm folder before git clone (around line 271):
 printf "\n\tChecking LLVM with WASM support.\n"
    if [ ! -d /usr/local/wasm/bin ]; then
      cd ${TEMP_DIR}
      rm -r wasm-compiler
      mkdir wasm-compiler
      cd wasm-compiler                                                                          
      git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/llvm.git
      if [ $? -ne 0 ]; then
        printf "\tUnable to clone llvm repo @ https://github.com/llvm-mirror/llvm.git.\n"
        printf "\tExiting now.\n\n"
        exit;
  1. When error Found PythonInterp: /Users/skober/.pyenv/shims/python2.7 (found version "1.4") appears edit scripts/eosio_build_darwin.sh to point to your python installation with the cmake option -DPYTHON_EXECUTABLE=/<path>/.pyenv/shims/python in the relevant section (wasm on my side, which is the last section in the script).

  2. On this error:

    Failed to find Gettext libintl (missing: Intl_INCLUDE_DIR)
    Call Stack (most recent call first):
    /usr/local/Cellar/cmake/3.11.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
    /usr/local/Cellar/cmake/3.11.0/share/cmake/Modules/FindIntl.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    programs/cleos/CMakeLists.txt:29 (find_package)
    

Reinstall gettext: brew reinstall gettext
Relink: brew unlink gettext && brew link gettext --force

You said scripts/eosio_build_darwin.sh and but didn't say what to do, what to edit? Explain little bit more?

@sisardor Updated the post. Does it help now?
And please add mention with @ notation, otherwise I dont get a notification.

@fabifrank @sisardor on darwin remove the directory /tmp/wasm-compiler
rm -rf /tmp/wasm-compiler
And run the eosio_build.sh script again and you should be good to go.

@pacificcode Yeah that should work in case there's no other error in the build process. Which was not the case on my side.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sim31 picture sim31  路  3Comments

jiazechen picture jiazechen  路  3Comments

christola picture christola  路  3Comments

Npizza picture Npizza  路  3Comments

toonsevrin picture toonsevrin  路  3Comments