IanusInferus / termux-mono

Build mono on Termux (Android terminal)
78 stars 10 forks source link

Pre-compiled worked, but I got a warning #5

Closed AsaiToshiya closed 4 years ago

AsaiToshiya commented 4 years ago

Pre-compiled mono-termux.6.12.0.90-arm64.tar.xz worked, but I got the following warning.

$ echo 'using System;class HelloWorld{static void Main(){Console.WriteLine("Hello, world!");}}' > HelloWorld.cs
$ mcs HelloWorld.cs
WARNING: linker: dlopen failed: "/data/data/com.termux/files/usr/local/lib/mono/4.5/mscorlib.dll.so" has unexpected e_machine: 62 (EM_X86_64), targetsdk: 10000, retry
WARNING: linker: dlopen failed: "/data/data/com.termux/files/usr/local/lib/mono/4.5/mcs.exe.so" has unexpected e_machine: 62 (EM_X86_64), targetsdk: 10000, retry
WARNING: linker: dlopen failed: "/data/data/com.termux/files/usr/local/lib/mono/4.5/mcs.exe.so" has unexpected e_machine: 62 (EM_X86_64), targetsdk: 10000, retry
$ mono HelloWorld.exe
WARNING: linker: dlopen failed: "/data/data/com.termux/files/usr/local/lib/mono/4.5/mscorlib.dll.so" has unexpected e_machine: 62 (EM_X86_64), targetsdk: 10000, retry
Hello, world!

my environment:

$ uname -a
Linux localhost 4.9.112-perf+ #2 SMP PREEMPT Wed Aug 5 19:47:11 CST 2020 aarch64 Android

Thank you!

IanusInferus commented 4 years ago

It looks like cached images on mono library build on PC. I will try to remove them.

AsaiToshiya commented 4 years ago

I'm looking forward to it.

IanusInferus commented 4 years ago

I have removed these so files. You can try the new release. The so files for Arm64 can be generated following the 'Build AOT cache for system libraries' section in the README. (optional)

AsaiToshiya commented 4 years ago

Awesome! I have not got any warnings anymore. Thank you for the great work.