runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Ubuntu Arm Builds

Open olegsavelos opened this issue 9 years ago • 43 comments

There was an Ubuntu arm builds available previously. Anyone aware of where did they go and when we can have them back ?

olegsavelos avatar May 04 '17 08:05 olegsavelos

Also generic linux-arm is missing

JensNordenbro avatar May 04 '17 14:05 JensNordenbro

@gkhanna79

Our build system underwent some major changes recently. We are working on bringing back arm support in the next few days.

chcosta avatar May 04 '17 23:05 chcosta

generic linux-arm is back. Do you use the same build @olegsavelos ?

JensNordenbro avatar May 08 '17 18:05 JensNordenbro

Generic linux-arm did not work for me , not sure if it even should. @chcosta any news on when ubuntu builds will be back ?

olegsavelos avatar May 09 '17 07:05 olegsavelos

@olegsavelos Where did you pickup the linux-arm build from and why didn't it work for you? Can you please share the failure details?

gkhanna79 avatar May 09 '17 13:05 gkhanna79

I have tried "Linux (arm) (for glibc based OS)" on ubuntu 16.04 (32bit) What i get is "cannot execute binary file: Exec format error" To be frank i am not sure if it should have worked anyway? I was using previously available builds and they worked but i was still getting "Segmentation fault" when trying ASPNetCore projects.

olegsavelos avatar May 09 '17 16:05 olegsavelos

@olegsavelos I presume you are running on Ubuntu Arm32 bit, right?

gkhanna79 avatar May 10 '17 02:05 gkhanna79

@gkhanna79 Armv71 on Ubuntu 16.04.2 LTS .

olegsavelos avatar May 10 '17 09:05 olegsavelos

We do build with armv7 HF ABI support (see https://github.com/dotnet/core-setup/blob/786a3f40a17b88eecbfb22e504dd37c607856ffa/cross/arm/toolchain.cmake#L10). What is the ABI of the binaries on the Ubuntu build? Does it use Soft ABI?

@hqueue @hseok-oh @jyoungyun incase they have anything to add as well.

gkhanna79 avatar May 10 '17 15:05 gkhanna79

its armhf in my case. This is the output from readelf on dotnet executable

root@opiz:/usr/src# readelf -h dotnet ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x40a30b Start of program headers: 64 (bytes into file) Start of section headers: 401840 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 9 Size of section headers: 64 (bytes) Number of section headers: 39 Section header string table index: 36 I would expect it to be ELF32 or ELF64 should be able to work?

olegsavelos avatar May 10 '17 16:05 olegsavelos

It should be ELF32 unless I am missing something.

Also, the following looks wrong as it is indicative of amd64 binary as opposed to arm32:

Type: EXEC (Executable file) Machine: Advanced Micro Devices X86-64

I will take a look at this.

gkhanna79 avatar May 10 '17 18:05 gkhanna79

@olegsavelos; we have been running generic linux-arm on Yocto. I will try again now that they are back. I havn't tried on ubuntu.

JensNordenbro avatar May 10 '17 18:05 JensNordenbro

@JensNordenbro the previous builds was partially working for me too, it the new generic ones that fail.

olegsavelos avatar May 10 '17 20:05 olegsavelos

Noting that the generic builds currently built are for armhf might be a good idea on the readme just in case people are confused. Also, are there any plans to provide builds for arm-softfp or are those of us that need it going to have to build it ourselves?

ThadHouse avatar May 11 '17 02:05 ThadHouse

Noting that the generic builds currently built are for armhf might be a good idea on the readme just in case people are confused.

I also agree on this, because ABI is usually noted explicitly when distributing binaries for arm. Sometimes filename contains ABI information to help user to infer ABI from filename. For dotnet, full name of ABI might be gnueabihf for hardfp and gnueabi for softfp, because we are using GNU ABI for linux.

hqueue avatar May 11 '17 05:05 hqueue

We do build with armv7 HF ABI support (see https://github.com/dotnet/core-setup/blob/786a3f40a17b88eecbfb22e504dd37c607856ffa/cross/arm/toolchain.cmake#L10). What is the ABI of the binaries on the Ubuntu build? Does it use Soft ABI?

@gkhanna79 Previously distributed ubuntu.14.04-arm and ubuntu.16.04-arm binaries are built in hardfp. No softfp binary has been appeared on the daily build page yet.

hqueue avatar May 11 '17 05:05 hqueue

Same problem!

JensNordenbro avatar May 11 '17 13:05 JensNordenbro

I will update the entry in the table to reflect ARMHF in my PR at https://github.com/dotnet/core-setup/pull/2350.

gkhanna79 avatar May 11 '17 15:05 gkhanna79

I have confirmed that the issue is now fixed. Please try https://dotnetcli.blob.core.windows.net/dotnet/master/Binaries/2.0.0-preview2-25311-09/dotnet-linux-arm.2.0.0-preview2-25311-09.tar.gz

gkhanna79 avatar May 11 '17 18:05 gkhanna79

@olegsavelos @JensNordenbro Can you use the URL above and confirm it works for you?

gkhanna79 avatar May 11 '17 18:05 gkhanna79