www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Arm binaries

reply Andrea Fontana <nospam example.com> writes:
On wiki I read: "Get a native ARM GNU/Linux compiler from the 
official release page."

Provided link redirect me to github releases page. But there's no 
arm binaries available.

Andrea Fontana
Oct 24 2017
parent reply Joakim <dlang joakim.fea.st> writes:
On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea Fontana 
wrote:
 On wiki I read: "Get a native ARM GNU/Linux compiler from the 
 official release page."

 Provided link redirect me to github releases page. But there's 
 no arm binaries available.

 Andrea Fontana
There isn't on the first page, but on the next one: https://github.com/ldc-developers/ldc/releases/tag/v1.1.0 Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
Oct 25 2017
parent reply Andrea Fontana <nospam example.com> writes:
On Wednesday, 25 October 2017 at 07:01:59 UTC, Joakim wrote:
 On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea Fontana 
 wrote:
 On wiki I read: "Get a native ARM GNU/Linux compiler from the 
 official release page."

 Provided link redirect me to github releases page. But there's 
 no arm binaries available.

 Andrea Fontana
There isn't on the first page, but on the next one: https://github.com/ldc-developers/ldc/releases/tag/v1.1.0 Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
QEMU can emulate armhf, you don't need a board, i guess. By the way on aliexpress an orangepi costs 6.99$ and run linux on arm.
Oct 25 2017
parent reply Johan Engelen <j j.nl> writes:
On Wednesday, 25 October 2017 at 10:03:37 UTC, Andrea Fontana 
wrote:
 On Wednesday, 25 October 2017 at 07:01:59 UTC, Joakim wrote:
 On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea Fontana 
 wrote:
 Provided link redirect me to github releases page. But 
 there's no arm binaries available.
Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
QEMU can emulate armhf, you don't need a board, i guess. By the way on aliexpress an orangepi costs 6.99$ and run linux on arm.
Great! So can I write you down as the person who uploads the ARM binaries upon beta/release? ;-) ;P - Johan
Oct 26 2017
next sibling parent Andrea Fontana <nospam example.com> writes:
On Thursday, 26 October 2017 at 16:58:59 UTC, Johan Engelen wrote:
 On Wednesday, 25 October 2017 at 10:03:37 UTC, Andrea Fontana 
 wrote:
 On Wednesday, 25 October 2017 at 07:01:59 UTC, Joakim wrote:
 On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea Fontana 
 wrote:
 Provided link redirect me to github releases page. But 
 there's no arm binaries available.
Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
QEMU can emulate armhf, you don't need a board, i guess. By the way on aliexpress an orangepi costs 6.99$ and run linux on arm.
Great! So can I write you down as the person who uploads the ARM binaries upon beta/release? ;-) ;P - Johan
Sorry, I'm not a ldc developer :) But I use D on arm!
Oct 28 2017
prev sibling parent reply Johannes Loher <johannes.loher fg4f.de> writes:
On Thursday, 26 October 2017 at 16:58:59 UTC, Johan Engelen wrote:
 On Wednesday, 25 October 2017 at 10:03:37 UTC, Andrea Fontana 
 wrote:
 On Wednesday, 25 October 2017 at 07:01:59 UTC, Joakim wrote:
 On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea Fontana 
 wrote:
 Provided link redirect me to github releases page. But 
 there's no arm binaries available.
Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
QEMU can emulate armhf, you don't need a board, i guess. By the way on aliexpress an orangepi costs 6.99$ and run linux on arm.
Great! So can I write you down as the person who uploads the ARM binaries upon beta/release? ;-) ;P - Johan
I own a Raspberry Pi 3. If somebody walks me through the necessary steps, I'd be willing to provide binaries for ARMv7.
Oct 28 2017
parent reply Joakim <dlang joakim.fea.st> writes:
On Saturday, 28 October 2017 at 14:54:17 UTC, Johannes Loher 
wrote:
 On Thursday, 26 October 2017 at 16:58:59 UTC, Johan Engelen 
 wrote:
 On Wednesday, 25 October 2017 at 10:03:37 UTC, Andrea Fontana 
 wrote:
 On Wednesday, 25 October 2017 at 07:01:59 UTC, Joakim wrote:
 On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea 
 Fontana wrote:
 Provided link redirect me to github releases page. But 
 there's no arm binaries available.
Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
QEMU can emulate armhf, you don't need a board, i guess. By the way on aliexpress an orangepi costs 6.99$ and run linux on arm.
Great! So can I write you down as the person who uploads the ARM binaries upon beta/release? ;-) ;P - Johan
I own a Raspberry Pi 3. If somebody walks me through the necessary steps, I'd be willing to provide binaries for ARMv7.
Another option would be to cross-compile the native linux/ARM ldc with a bootstrap ldc cross-compiler for linux/x64, as I did with the Android/ARM package I setup for the Termux Android app: https://github.com/termux/termux-packages/tree/master/packages/ldc That works well for me with Android/ARM, might work for linux/ARM too.
Oct 28 2017
parent reply kinke <noone nowhere.com> writes:
On Saturday, 28 October 2017 at 17:16:46 UTC, Joakim wrote:
 On Saturday, 28 October 2017 at 14:54:17 UTC, Johannes Loher 
 wrote:
 On Thursday, 26 October 2017 at 16:58:59 UTC, Johan Engelen 
 wrote:
 On Wednesday, 25 October 2017 at 10:03:37 UTC, Andrea Fontana 
 wrote:
 On Wednesday, 25 October 2017 at 07:01:59 UTC, Joakim wrote:
 On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea 
 Fontana wrote:
 Provided link redirect me to github releases page. But 
 there's no arm binaries available.
Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
QEMU can emulate armhf, you don't need a board, i guess. By the way on aliexpress an orangepi costs 6.99$ and run linux on arm.
Great! So can I write you down as the person who uploads the ARM binaries upon beta/release? ;-) ;P - Johan
I own a Raspberry Pi 3. If somebody walks me through the necessary steps, I'd be willing to provide binaries for ARMv7.
Another option would be to cross-compile the native linux/ARM ldc with a bootstrap ldc cross-compiler for linux/x64, as I did with the Android/ARM package I setup for the Termux Android app: https://github.com/termux/termux-packages/tree/master/packages/ldc That works well for me with Android/ARM, might work for linux/ARM too.
Yeah that's probably what we should be looking into. I gave QEMU a try (in my Linux VirtualBox ;)); after 26 hours of building (!), I finally have a LLVM 5.0.0. For other interested guys: I can recommend following https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32- it-arm-virt-board/. I gave it 2 gigs of memory and 3 CPU cores (but QEMU itself seems to use only a single CPU host core). [I'm mainly interested in running the testsuite and checking if there's something still missing.]
Oct 28 2017
parent reply kinke <noone nowhere.com> writes:
On Saturday, 28 October 2017 at 17:39:40 UTC, kinke wrote:
 On Saturday, 28 October 2017 at 17:16:46 UTC, Joakim wrote:
 On Saturday, 28 October 2017 at 14:54:17 UTC, Johannes Loher 
 wrote:
 On Thursday, 26 October 2017 at 16:58:59 UTC, Johan Engelen 
 wrote:
 On Wednesday, 25 October 2017 at 10:03:37 UTC, Andrea 
 Fontana wrote:
 On Wednesday, 25 October 2017 at 07:01:59 UTC, Joakim wrote:
 On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea 
 Fontana wrote:
 Provided link redirect me to github releases page. But 
 there's no arm binaries available.
Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
QEMU can emulate armhf, you don't need a board, i guess. By the way on aliexpress an orangepi costs 6.99$ and run linux on arm.
Great! So can I write you down as the person who uploads the ARM binaries upon beta/release? ;-) ;P - Johan
I own a Raspberry Pi 3. If somebody walks me through the necessary steps, I'd be willing to provide binaries for ARMv7.
Another option would be to cross-compile the native linux/ARM ldc with a bootstrap ldc cross-compiler for linux/x64, as I did with the Android/ARM package I setup for the Termux Android app: https://github.com/termux/termux-packages/tree/master/packages/ldc That works well for me with Android/ARM, might work for linux/ARM too.
Yeah that's probably what we should be looking into. I gave QEMU a try (in my Linux VirtualBox ;)); after 26 hours of building (!), I finally have a LLVM 5.0.0. For other interested guys: I can recommend following https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32- it-arm-virt-board/. I gave it 2 gigs of memory and 3 CPU cores (but QEMU itself seems to use only a single CPU host core).
Follow-up: LDC 1.5 comes with an ARMv6 hard-float package for Linux again: https://github.com/ldc-developers/ldc/releases/tag/v1.5.0 It was built on Debian Jessie with gcc 4.9 and includes static/shared runtime libs, the LTO linker plugin and dub/rdmd/dustmite/ddemangle, that's why it's not exactly tiny. For reference, building LDC in QEMU takes about 3 hours on my machine. To spare others a few hours, I also uploaded the prebuilt LLVM 5.0.0 (without LLD): https://github.com/ldc-developers/llvm/releases/tag/ldc-v5.0.0 It was built with CMake variable LLVM_DEFAULT_TARGET_TRIPLE=arm-none-linux-gnueabihf in order to emit ARMv6 code by default, just like Debian's gcc. See https://github.com/ldc-developers/ldc/issues/1988 for context.
Nov 02 2017
parent reply Joseph <JE342 gmail.com> writes:
On Thursday, 2 November 2017 at 23:57:15 UTC, kinke wrote:
 On Saturday, 28 October 2017 at 17:39:40 UTC, kinke wrote:
 On Saturday, 28 October 2017 at 17:16:46 UTC, Joakim wrote:
 On Saturday, 28 October 2017 at 14:54:17 UTC, Johannes Loher 
 wrote:
 On Thursday, 26 October 2017 at 16:58:59 UTC, Johan Engelen 
 wrote:
 On Wednesday, 25 October 2017 at 10:03:37 UTC, Andrea 
 Fontana wrote:
 On Wednesday, 25 October 2017 at 07:01:59 UTC, Joakim 
 wrote:
 On Wednesday, 25 October 2017 at 06:54:54 UTC, Andrea 
 Fontana wrote:
 Provided link redirect me to github releases page. But 
 there's no arm binaries available.
Only a couple ldc devs have linux/ARM boards and they're not usually able to provide a build.
QEMU can emulate armhf, you don't need a board, i guess. By the way on aliexpress an orangepi costs 6.99$ and run linux on arm.
Great! So can I write you down as the person who uploads the ARM binaries upon beta/release? ;-) ;P - Johan
I own a Raspberry Pi 3. If somebody walks me through the necessary steps, I'd be willing to provide binaries for ARMv7.
Another option would be to cross-compile the native linux/ARM ldc with a bootstrap ldc cross-compiler for linux/x64, as I did with the Android/ARM package I setup for the Termux Android app: https://github.com/termux/termux-packages/tree/master/packages/ldc That works well for me with Android/ARM, might work for linux/ARM too.
Yeah that's probably what we should be looking into. I gave QEMU a try (in my Linux VirtualBox ;)); after 26 hours of building (!), I finally have a LLVM 5.0.0. For other interested guys: I can recommend following https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32- it-arm-virt-board/. I gave it 2 gigs of memory and 3 CPU cores (but QEMU itself seems to use only a single CPU host core).
Follow-up: LDC 1.5 comes with an ARMv6 hard-float package for Linux again: https://github.com/ldc-developers/ldc/releases/tag/v1.5.0 It was built on Debian Jessie with gcc 4.9 and includes static/shared runtime libs, the LTO linker plugin and dub/rdmd/dustmite/ddemangle, that's why it's not exactly tiny. For reference, building LDC in QEMU takes about 3 hours on my machine. To spare others a few hours, I also uploaded the prebuilt LLVM 5.0.0 (without LLD): https://github.com/ldc-developers/llvm/releases/tag/ldc-v5.0.0 It was built with CMake variable LLVM_DEFAULT_TARGET_TRIPLE=arm-none-linux-gnueabihf in order to emit ARMv6 code by default, just like Debian's gcc. See https://github.com/ldc-developers/ldc/issues/1988 for context.
Can you add a link to the ldc page that links to an up to date walkthrough on how to properly(and easily) cross compile arm binaries with the examples? (I want to create some open gl demo stuff but I can't find the resources)
Nov 06 2017
next sibling parent reply Joakim <dlang joakim.fea.st> writes:
On Monday, 6 November 2017 at 18:49:57 UTC, Joseph wrote:
 On Thursday, 2 November 2017 at 23:57:15 UTC, kinke wrote:
 [...]
Can you add a link to the ldc page that links to an up to date walkthrough on how to properly(and easily) cross compile arm binaries with the examples? (I want to create some open gl demo stuff but I can't find the resources)
See this page on the wiki, which was linked from the 1.4 release: https://wiki.dlang.org/Building_LDC_runtime_libraries The Android link there also shows some similar examples.
Nov 06 2017
parent reply Joseph <JE342 gmail.com> writes:
On Monday, 6 November 2017 at 20:13:33 UTC, Joakim wrote:
 On Monday, 6 November 2017 at 18:49:57 UTC, Joseph wrote:
 On Thursday, 2 November 2017 at 23:57:15 UTC, kinke wrote:
 [...]
Can you add a link to the ldc page that links to an up to date walkthrough on how to properly(and easily) cross compile arm binaries with the examples? (I want to create some open gl demo stuff but I can't find the resources)
See this page on the wiki, which was linked from the 1.4 release: https://wiki.dlang.org/Building_LDC_runtime_libraries The Android link there also shows some similar examples.
What I mean is that finding these links in the forum is not easy. You should add them to the main page so that people can locate the help easier than having to hunt and peck.
Nov 06 2017
next sibling parent reply kinke <noone nowhere.com> writes:
On Monday, 6 November 2017 at 22:48:07 UTC, Joseph wrote:
 What I mean is that finding these links in the forum is not 
 easy. You should add them to the main page so that people can 
 locate the help easier than having to hunt and peck.
So why don't you? It's a Wiki for a reason after all.
Nov 06 2017
parent reply Joseph <JE342 gmail.com> writes:
On Tuesday, 7 November 2017 at 00:50:28 UTC, kinke wrote:
 On Monday, 6 November 2017 at 22:48:07 UTC, Joseph wrote:
 What I mean is that finding these links in the forum is not 
 easy. You should add them to the main page so that people can 
 locate the help easier than having to hunt and peck.
So why don't you? It's a Wiki for a reason after all.
Huh? Maybe you should stop criticizing people and at least try to make sense of what they are talking about first? How am I suppose to add a wiki link to the LDC page? I can push a request but is that what you are really suggesting?
Nov 06 2017
parent kinke <kinke gmx.net> writes:
On Tuesday, 7 November 2017 at 04:34:19 UTC, Joseph wrote:
 Huh? Maybe you should stop criticizing people and at least try 
 to make sense of what they are talking about first? How am I 
 suppose to add a wiki link to the LDC page? I can push a 
 request but is that what you are really suggesting?
Well since you didn't specify what you mean by 'LDC page', I can only infer by your additional context now that you meant the GitHub readme (featuring a prominent link to the Wiki). Most user information can be found on the Wiki (and to some extent, the GitHub release logs with their further links).
Nov 07 2017
prev sibling parent Joakim <dlang joakim.fea.st> writes:
On Monday, 6 November 2017 at 22:48:07 UTC, Joseph wrote:
 On Monday, 6 November 2017 at 20:13:33 UTC, Joakim wrote:
 On Monday, 6 November 2017 at 18:49:57 UTC, Joseph wrote:
 On Thursday, 2 November 2017 at 23:57:15 UTC, kinke wrote:
 [...]
Can you add a link to the ldc page that links to an up to date walkthrough on how to properly(and easily) cross compile arm binaries with the examples? (I want to create some open gl demo stuff but I can't find the resources)
See this page on the wiki, which was linked from the 1.4 release: https://wiki.dlang.org/Building_LDC_runtime_libraries The Android link there also shows some similar examples.
What I mean is that finding these links in the forum is not easy. You should add them to the main page so that people can locate the help easier than having to hunt and peck.
There is a link in the main LDC wiki page, which is linked from the main ldc github page: https://wiki.dlang.org/LDC#ARM I guess you want that linked from the github downloads too, not a bad idea.
Nov 06 2017
prev sibling parent reply Andre Pany <andre s-e-a-p.de> writes:
On Monday, 6 November 2017 at 18:49:57 UTC, Joseph wrote:
 On Thursday, 2 November 2017 at 23:57:15 UTC, kinke wrote:
 [...]
Can you add a link to the ldc page that links to an up to date walkthrough on how to properly(and easily) cross compile arm binaries with the examples? (I want to create some open gl demo stuff but I can't find the resources)
I created an easy walkthrough for cross compilation from Windows to arm (raspberry pi). The article is on german http://d-land.sepany.de/einstieg-in-die-raspberry-pi-entwicklung-mit-ldc.html Kind regards Andre
Nov 06 2017
parent reply Joseph <JE342 gmail.com> writes:
On Monday, 6 November 2017 at 22:51:14 UTC, Andre Pany wrote:
 On Monday, 6 November 2017 at 18:49:57 UTC, Joseph wrote:
 On Thursday, 2 November 2017 at 23:57:15 UTC, kinke wrote:
 [...]
Can you add a link to the ldc page that links to an up to date walkthrough on how to properly(and easily) cross compile arm binaries with the examples? (I want to create some open gl demo stuff but I can't find the resources)
I created an easy walkthrough for cross compilation from Windows to arm (raspberry pi). The article is on german http://d-land.sepany.de/einstieg-in-die-raspberry-pi-entwicklung-mit-ldc.html Kind regards Andre
Thanks, but unfortunately I don't speak German ;/ looks goo though, chances of a translation at some point?
Nov 06 2017
parent Andre Pany <andre s-e-a-p.de> writes:
On Tuesday, 7 November 2017 at 04:35:34 UTC, Joseph wrote:
 On Monday, 6 November 2017 at 22:51:14 UTC, Andre Pany wrote:
 On Monday, 6 November 2017 at 18:49:57 UTC, Joseph wrote:
 On Thursday, 2 November 2017 at 23:57:15 UTC, kinke wrote:
 [...]
Can you add a link to the ldc page that links to an up to date walkthrough on how to properly(and easily) cross compile arm binaries with the examples? (I want to create some open gl demo stuff but I can't find the resources)
I created an easy walkthrough for cross compilation from Windows to arm (raspberry pi). The article is on german http://d-land.sepany.de/einstieg-in-die-raspberry-pi-entwicklung-mit-ldc.html Kind regards Andre
Thanks, but unfortunately I don't speak German ;/ looks goo though, chances of a translation at some point?
It is not planned but googles website translation service will give you an usable translation. Kind regards André
Nov 07 2017