eos icon indicating copy to clipboard operation
eos copied to clipboard

Unable to find softfloat library. mac os

Open jeffreyzhou0924 opened this issue 8 years ago • 5 comments

-- Configuring Eos on OS X -- Found WASM: /usr/local/wasm/bin/clang
-- Using WASM clang => /usr/local/wasm/bin/clang -- Using WASM llc => /usr/local/wasm/bin/llc -- Using WASM llvm-link => /usr/local/wasm/bin/llvm-link -- Looking for softfloat library CMake Error at CMakeModules/softfloat.cmake:4 (message): Unable to find softfloat library Call Stack (most recent call first): CMakeLists.txt:197 (include)

-- Configuring incomplete, errors occurred!

when I build eos/build and cmake, the errors occurred!

jeffreyzhou0924 avatar Mar 09 '18 00:03 jeffreyzhou0924

Same error with Ubuntu build.

rjg123456789 avatar Mar 09 '18 12:03 rjg123456789

Did you use eosio_build.sh?

On Fri, Mar 9, 2018 at 6:54 AM, rjg123456789 [email protected] wrote:

Same error with Ubuntu build.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/1598#issuecomment-371804799, or mute the thread https://github.com/notifications/unsubscribe-auth/AJy1W8TLhaCgIjl8yf3SrTMmfEoFWLzWks5tcnubgaJpZM4SjlF3 .

brianjohnson5972 avatar Mar 09 '18 16:03 brianjohnson5972

Thanks Brian, after trying that I get:

-- binaryen building with -fno-omit-frame-pointer -- binaryen building with -fPIC -- binaryen building with -O2 -- binaryen building with -UNDEBUG -- Could NOT find WASM (missing: WASM_CLANG WASM_LLC WASM_LLVM_LINK) CMake Error at CMakeModules/wasm.cmake:8 (message): No WASM compiler cound be found (make sure WASM_ROOT is set) Call Stack (most recent call first): CMakeLists.txt:193 (include)

:(

rjg123456789 avatar Mar 09 '18 22:03 rjg123456789

   if [ ! -d /usr/local/berkeley-softfloat-3 ]; then
      # clone the library
		cd ${TEMP_DIR}
      mkdir softfloat
      cd softfloat
      git clone --depth 1 --single-branch --branch master https://github.com/ucb-bar/berkeley-softfloat-3.git
      cd berkeley-softfloat-3/build/Linux-x86_64-GCC
      make -j${CPU_CORE} SPECIALIZE_TYPE="8086-SSE" SOFTFLOAT_OPS="-DSOFTFLOAT_ROUND_EVEN -DINLINE_LEVEL=5 -DSOFTFLOAT_FAST_DIV32TO16 -DSOFTFLOAT_FAST_DIV64TO32"
      if [ $? -ne 0 ]; then
         printf "\tError compiling softfloat.\n"
         printf "\tExiting now.\n\n"
         exit;
      fi
      # no install target defined for this library
      sudo mkdir -p /usr/local/berkeley-softfloat-3
      sudo cp softfloat.a /usr/local/berkeley-softfloat-3/libsoftfloat.a
      sudo mv ${TEMP_DIR}/softfloat/berkeley-softfloat-3/source/include /usr/local/berkeley-softfloat-3/include
		sudo rm -rf ${TEMP_DIR}/softfloat
	else
		printf "\tsoftfloat found at /usr/local/berkeley-softfloat-3/\n"
   fi

bytemaster avatar Mar 10 '18 14:03 bytemaster

Thanks I added that into eosio_build.sh just before the build of eosio. Build went through will now start using.

rjg123456789 avatar Mar 10 '18 19:03 rjg123456789