eos
eos copied to clipboard
eoscpp isn't generated correctly
After installing EOS on Ubuntu 16.04, 16.10, or 17.10 I am getting the file ~/eos/build/tools/eoscpp like below:
function build_contract {
set -e
workdir=`mktemp -d`
# echo mkdir $workdir/built
mkdir $workdir/built
for file in $@; do
name=`basename $file`
filePath=`dirname $file`
echo -emit-llvm -O3 --std=c++14 --target=wasm32 -ffreestanding -nostdlib -fno-threadsafe-statics -fno-rtti -fno-exceptions -I ${EOSIO_INSTALL_DIR}/include -I $filePath -c $file -o $workdir/built/$name
-emit-llvm -O3 --std=c++14 --target=wasm32 -ffreestanding -nostdlib -fno-threadsafe-statics -fno-rtti -fno-exceptions -I ${EOSIO_INSTALL_DIR}/include -I $filePath -c $file -o $workdir/built/$name
done
# echo -o $workdir/linked.bc $workdir/built/*
-o $workdir/linked.bc $workdir/built/*
# echo --asm-verbose=false -o $workdir/assembly.s $workdir/linked.bc
--asm-verbose=false -o $workdir/assembly.s $workdir/linked.bc
# echo ~/binaryen/bin/s2wasm -o $outname -s 16384 $workdir/assembly.s
~/binaryen/bin/s2wasm -o $outname -s 16384 $workdir/assembly.s
# echo rm -rf $workdir
rm -rf $workdir
set +e
}
The @WASM_CLANG@, @WASM_LLVM_LINK@, @WASM_LLC@ params from eoscpp.in are missing here
But why? Did I miss something while installing? I just did ./build.sh ubuntu in clean directory.
Also, sample contracts are not getting compiled at all, .wast files are missing, so I can't go through the manual.
Me too. There's no .wast file...
Old issue, should work now.