runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Linux cross build break for ARM

Open hqueue opened this issue 9 years ago • 1 comments

When cross building for ARM on x64 host, following error is observed.

$ ./build-managed.sh -release -buildArch=arm -RuntimeOS=ubuntu.14.04 -BuildTests=True -SkipTests=True -BuildPackages=False -- /p:Outerloop=True
...
  Microsoft.XmlSerializer.Generator.Tests -> /opt/code/github/hqueue/corefx/bin/AnyOS.AnyCPU.Release/Microsoft.XmlSerializer.Generator.Tests/netcoreapp/Microsoft.XmlSerializer.Generator.Tests.dll
  /lib/ld-linux-armhf.so.3: No such file or directory
/opt/code/github/hqueue/corefx/src/Microsoft.XmlSerializer.Generator/tests/Microsoft.XmlSerializer.Generator.Tests.csproj(57,5): error MSB3073: The command "/opt/code/github/hqueue/corefx/bin/testhost/netcoreapp-Linux-Release-arm/dotnet /opt/code/github/hqueue/corefx/bin/AnyOS.AnyCPU.Release/Microsoft.XmlSerializer.Generator.Tests/netcoreapp/dotnet-Microsoft.XmlSerializer.Generator.dll /opt/code/github/hqueue/corefx/bin/AnyOS.AnyCPU.Release/Microsoft.XmlSerializer.Generator.Tests/netcoreapp/Microsoft.XmlSerializer.Generator.Tests.dll /force /casesensitive" exited with code 255.

hqueue avatar Sep 14 '17 01:09 hqueue

i download dotnet-linux-arm.latest.tar.gz on 12/10 and im getting a robot@ev3dev:~/dotnetlinux$ ./dotnet -bash: ./dotnet: No such file or directory

i installed it in a local directory as well as robot@ev3dev:~$ /usr/bin/dotnet/dotnet -bash: /usr/bin/dotnet/dotnet: No such file or directory

is there some preinstallation i need to install? i did a sudo apt-get upgrade before trying.

here are some diagnostics from my linux system cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=ev3dev ID_LIKE=debian HOME_URL="http://www.ev3dev.org/" SUPPORT_URL="http://www.ev3dev.org/support" BUG_REPORT_URL="https://github.com/ev3dev/ev3dev/issues" robot@ev3dev:$ cat /etc/debian_version 8.5 robot@ev3dev:$

robot@ev3dev:~$ lscpu Architecture: armv5tejl Byte Order: Little Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 Model name: ARM926EJ-S rev 5 (v5l)

====update...

i tried hacking around by opening the dotnet executable and saw a path in there. so i copied one of the sym links in the lib directory so it could match that path and something changed.

now i get a segmentation fault.

the path was in the first few lines of the dotnet exe its: /lib/ld-linux-armhf.so.3 when i put everything back the way it was i get the original

-bash: ./dotnet: No such file or directory silent crash.

any ideas?

juansuerogit avatar Dec 11 '17 00:12 juansuerogit