digitalmars.D.learn - Which Docker to use?
- Ky-Anh Huynh (8/8) Oct 16 2018 Hi,
- Gary Willoughby (5/13) Oct 17 2018 To be honest, you don't need docker for this. You can just
- Jon Degenhardt (8/29) Oct 17 2018 I need to use docker to build static linked Linux executables. My
- Ky-Anh Huynh (4/10) Oct 19 2018 Yes I'm also using Travis-CI and that's why I need some Docker
- Jon Degenhardt (11/22) Oct 20 2018 I'm using dlanguage/ldc. The reason for that choice was because
- Jacob Carlborg (5/10) Oct 21 2018 That's interesting. I've built static binaries for DStep using LDC on
- Jon Degenhardt (9/21) Oct 21 2018 My comment painted too broad a brush. I had forgotten how
- Jacob Carlborg (5/14) Oct 22 2018 Ah, that might be the reason. I am not using LTO. You might want to try
- Jon Degenhardt (11/21) Nov 11 2018 I switched to LDC 1.12.0. The problem remains with LTO and static
Hi, I need to build some static binaries with LDC. I also need to execute builds on both platform 32-bit and 64-bit. From Docker Hub there are two image groups: * language/ldc (last update 5 months ago) * dlang2/ldc-ubuntu (updated recently) Which one do you suggest? Thanks a lot.
Oct 16 2018
On Wednesday, 17 October 2018 at 03:37:21 UTC, Ky-Anh Huynh wrote:Hi, I need to build some static binaries with LDC. I also need to execute builds on both platform 32-bit and 64-bit. From Docker Hub there are two image groups: * language/ldc (last update 5 months ago) * dlang2/ldc-ubuntu (updated recently) Which one do you suggest? Thanks a lot.To be honest, you don't need docker for this. You can just download LDC in a self-contained folder and use it as is. https://github.com/ldc-developers/ldc/releases That's what I do on Linux.
Oct 17 2018
On Wednesday, 17 October 2018 at 08:08:44 UTC, Gary Willoughby wrote:On Wednesday, 17 October 2018 at 03:37:21 UTC, Ky-Anh Huynh wrote:I need to use docker to build static linked Linux executables. My reason is specific, may be different than the OP's. I'm using Travis-CI to build executables. Travis-CI uses Ubuntu 14.04, but static linking fails on 14.04. The standard C library from Ubuntu 16.04 or later is needed. There may be other/better ways to do this, I don't know.Hi, I need to build some static binaries with LDC. I also need to execute builds on both platform 32-bit and 64-bit. From Docker Hub there are two image groups: * language/ldc (last update 5 months ago) * dlang2/ldc-ubuntu (updated recently) Which one do you suggest? Thanks a lot.To be honest, you don't need docker for this. You can just download LDC in a self-contained folder and use it as is. https://github.com/ldc-developers/ldc/releases That's what I do on Linux.
Oct 17 2018
On Wednesday, 17 October 2018 at 23:15:53 UTC, Jon Degenhardt wrote:I need to use docker to build static linked Linux executables. My reason is specific, may be different than the OP's. I'm using Travis-CI to build executables. Travis-CI uses Ubuntu 14.04, but static linking fails on 14.04. The standard C library from Ubuntu 16.04 or later is needed. There may be other/better ways to do this, I don't know.Yes I'm also using Travis-CI and that's why I need some Docker support.
Oct 19 2018
On Friday, 19 October 2018 at 22:16:04 UTC, Ky-Anh Huynh wrote:On Wednesday, 17 October 2018 at 23:15:53 UTC, Jon Degenhardt wrote:I'm using dlanguage/ldc. The reason for that choice was because it was what was available when I put the travis build together. As you mentioned, it hasn't been updated in a while. I'm still producing this build with an older ldc version, but when I move to a more current version I'll have to switch to a different docker image. My travis config is here: https://github.com/eBay/tsv-utils/blob/master/.travis.yml. Look for the sections referencing the DOCKERSPECIAL environment variable.I need to use docker to build static linked Linux executables. My reason is specific, may be different than the OP's. I'm using Travis-CI to build executables. Travis-CI uses Ubuntu 14.04, but static linking fails on 14.04. The standard C library from Ubuntu 16.04 or later is needed. There may be other/better ways to do this, I don't know.Yes I'm also using Travis-CI and that's why I need some Docker support.
Oct 20 2018
On 2018-10-18 01:15, Jon Degenhardt wrote:I need to use docker to build static linked Linux executables. My reason is specific, may be different than the OP's. I'm using Travis-CI to build executables. Travis-CI uses Ubuntu 14.04, but static linking fails on 14.04. The standard C library from Ubuntu 16.04 or later is needed. There may be other/better ways to do this, I don't know.That's interesting. I've built static binaries for DStep using LDC on Travis CI without any problems. -- /Jacob Carlborg
Oct 21 2018
On Sunday, 21 October 2018 at 18:11:37 UTC, Jacob Carlborg wrote:On 2018-10-18 01:15, Jon Degenhardt wrote:My comment painted too broad a brush. I had forgotten how specific the issue I saw was. Apologies for the confusion. The issue that caused me to go to Ubuntu 16.04 had to do with uncaught exceptions when using LTO with the gold linker and LDC 1.5. Problem occurred with 14.04, but not 16.04. I should go back and retest on Ubuntu 14.04 with a more recent LDC, it may well have been corrected. The issue thread is here: https://github.com/ldc-developers/ldc/issues/2390.I need to use docker to build static linked Linux executables. My reason is specific, may be different than the OP's. I'm using Travis-CI to build executables. Travis-CI uses Ubuntu 14.04, but static linking fails on 14.04. The standard C library from Ubuntu 16.04 or later is needed. There may be other/better ways to do this, I don't know.That's interesting. I've built static binaries for DStep using LDC on Travis CI without any problems.
Oct 21 2018
On 2018-10-21 20:45, Jon Degenhardt wrote:My comment painted too broad a brush. I had forgotten how specific the issue I saw was. Apologies for the confusion. The issue that caused me to go to Ubuntu 16.04 had to do with uncaught exceptions when using LTO with the gold linker and LDC 1.5. Problem occurred with 14.04, but not 16.04. I should go back and retest on Ubuntu 14.04 with a more recent LDC, it may well have been corrected. The issue thread is here: https://github.com/ldc-developers/ldc/issues/2390.Ah, that might be the reason. I am not using LTO. You might want to try a newer version of LDC as well since 1.5 is quite old now. -- /Jacob Carlborg
Oct 22 2018
On Monday, 22 October 2018 at 18:44:01 UTC, Jacob Carlborg wrote:On 2018-10-21 20:45, Jon Degenhardt wrote:I switched to LDC 1.12.0. The problem remains with LTO and static builds on Ubuntu 14.04. Ubuntu 16.04 is required, at least with LTO of druntime/phobos. The good news on this front is that the regularly updated dlang2 docker images work fine with LTO on druntime/phobos (using the LTO build support available in LDC 1.9.0). Examples of travis-ci setups for both dlanguage and dlang2 docker images are available on the tsv-utils travis config: https://github.com/eBay/tsv-utils/blob/master/.travis.yml. Look for the DOCKERSPECIAL environment variables.The issue that caused me to go to Ubuntu 16.04 had to do with uncaught exceptions when using LTO with the gold linker and LDC 1.5. Problem occurred with 14.04, but not 16.04. I should go back and retest on Ubuntu 14.04 with a more recent LDC, it may well have been corrected. The issue thread is here: https://github.com/ldc-developers/ldc/issues/2390.Ah, that might be the reason. I am not using LTO. You might want to try a newer version of LDC as well since 1.5 is quite old now.
Nov 11 2018