migueldeicaza / mono-wasm

MIT License
529 stars 31 forks source link

Error compiling Mono compiler by following instructions #10

Open ChristianWeyer opened 6 years ago

ChristianWeyer commented 6 years ago

Hi there!

This looks very promising :-)

I am on macOS with (hopefully) all tools installed. When following the instructions I get an error for 'Now, we can now build the Mono compiler itself':

$ cd ~/src/mono-wasm
$ git clone git@github.com:lrz/mono-wasm-mono.git mono-compiler
$ cd mono-compiler
$ ./autogen.sh --host=i386-darwin --with-cross-offsets=offsets-wasm32.h CFLAGS="-DCOMPILE_WASM32 -DMONO_CROSS_COMPILE" CXXFLAGS="-DCOMPILE_WASM32 -DMONO_CROSS_COMPILE" --disable-boehm --with-sigaltstack=no --enable-llvm --enable-llvm-runtime --with-llvm=../llvm-mono-build --disable-btls --with-runtime_preset=testing_aot_full
$ cd eglib
$ make
$ cd ../mono
$ make

The last make produces this error:

  mono git:(master) make
Making all in arch
make[2]: Nothing to be done for `all-am'.
Making all in utils
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[2]: Nothing to be done for `all-am'.
Making all in cil
make[1]: Nothing to be done for `all'.
Making all in metadata
make[1]: Nothing to be done for `all'.
Making all in sgen
make[1]: Nothing to be done for `all'.
Making all in mini
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CCLD     mono-sgen
Undefined symbols for architecture i386:
  "_futimens", referenced from:
      llvm::sys::fs::setLastModificationAndAccessTime(int, llvm::sys::TimeValue) in libLLVMSupport.a(Path.cpp.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [mono-sgen] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Is there anything I am missing? Thanks!

ChristianWeyer commented 6 years ago

Any ideas @lrz ? Thanks!