www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dmd-2.078.2 problems with Ubuntu 17.10 32Bit

reply Martin Tschierschke <mt smartdolphin.de> writes:
I just started to play around with D again on my notebook at home 
and realized,
that I have a broken installation.
Even the minimal D "hello world" throws an error at execution.
Speicherzugriffsfehler (Speicherabzug geschrieben) aka. core dump

Compiling with ldc2 still works.
Any hint?
Feb 12 2018
next sibling parent reply Seb <seb wilzba.ch> writes:
On Monday, 12 February 2018 at 20:56:11 UTC, Martin Tschierschke 
wrote:
 I just started to play around with D again on my notebook at 
 home and realized,
 that I have a broken installation.
 Even the minimal D "hello world" throws an error at execution.
 Speicherzugriffsfehler (Speicherabzug geschrieben) aka. core 
 dump

 Compiling with ldc2 still works.
 Any hint?
How did you install DMD? It's probably related to this. I recommend using the official releases: curl https://dlang.org/install.sh | bash -s dmd See also: https://dlang.org/install.html
Feb 12 2018
parent Martin Tschierschke <mt smartdolphin.de> writes:
On Monday, 12 February 2018 at 21:08:30 UTC, Seb wrote:
 On Monday, 12 February 2018 at 20:56:11 UTC, Martin 
 Tschierschke wrote:
 I just started to play around with D again on my notebook at 
 home and realized,
 that I have a broken installation.
 Even the minimal D "hello world" throws an error at execution.
 Speicherzugriffsfehler (Speicherabzug geschrieben) aka. core 
 dump

 Compiling with ldc2 still works.
 Any hint?
How did you install DMD? It's probably related to this. I recommend using the official releases: curl https://dlang.org/install.sh | bash -s dmd See also: https://dlang.org/install.html
I did so, and after that, I tried to install via dpkg -i *.deb, than I tried to use an older version... without success, maybe I first have to clean up? But how to deinstall best?
Feb 12 2018
prev sibling parent reply Jordi Sayol <g.sayol gmail.com> writes:
El 12/02/18 a les 21:56, Martin Tschierschke via Digitalmars-d-learn ha escrit:
 I just started to play around with D again on my notebook at home and realized,
 that I have a broken installation.
 Even the minimal D "hello world" throws an error at execution.
 Speicherzugriffsfehler (Speicherabzug geschrieben) aka. core dump
 
 Compiling with ldc2 still works.
 Any hint?
 
 
 
d-apt <http://d-apt.sourceforge.net/>
Feb 12 2018
parent reply Martin Tschierschke <mt smartdolphin.de> writes:
On Monday, 12 February 2018 at 21:18:01 UTC, Jordi Sayol wrote:
 El 12/02/18 a les 21:56, Martin Tschierschke via 
 Digitalmars-d-learn ha escrit:
 I just started to play around with D again on my notebook at 
 home and realized,
 that I have a broken installation.
 Even the minimal D "hello world" throws an error at execution.
 Speicherzugriffsfehler (Speicherabzug geschrieben) aka. core 
 dump
 
 Compiling with ldc2 still works.
 Any hint?
 
 
 
d-apt <http://d-apt.sourceforge.net/>
After setting ulimit -c unlimited to get the core dumped, I took a look with gdb, to find a hint, now realizing, that it is probably the same problem as here: https://forum.dlang.org/thread/jjaynewwdsyntyehvahq forum.dlang.org?page=1
Feb 12 2018
parent reply Jordi Sayol <g.sayol gmail.com> writes:
El 13/02/18 a les 08:03, Martin Tschierschke via Digitalmars-d-learn ha escrit:
 On Monday, 12 February 2018 at 21:18:01 UTC, Jordi Sayol wrote:
 El 12/02/18 a les 21:56, Martin Tschierschke via Digitalmars-d-learn ha escrit:
 I just started to play around with D again on my notebook at home and realized,
 that I have a broken installation.
 Even the minimal D "hello world" throws an error at execution.
 Speicherzugriffsfehler (Speicherabzug geschrieben) aka. core dump

 Compiling with ldc2 still works.
 Any hint?
d-apt <http://d-apt.sourceforge.net/>
After setting ulimit -c unlimited to get the core dumped, I took a look with gdb, to find a hint, now realizing, that it is probably the same problem as here: https://forum.dlang.org/thread/jjaynewwdsyntyehvahq forum.dlang.org?page=1
A fresh install from d-apt on Ubuntu 16.04 32-bit, and everything worked fine. test.d ---- import std.stdio; void main() { writeln("Hello world!"); } ---- $ rdmd test.d Hello world! $ dmd -run test.d Hello world!
Feb 13 2018
parent reply Martin Tschierschke <mt smartdolphin.de> writes:
On Tuesday, 13 February 2018 at 21:25:44 UTC, Jordi Sayol wrote:
 El 13/02/18 a les 08:03, Martin Tschierschke via 
 Digitalmars-d-learn ha escrit:
 On Monday, 12 February 2018 at 21:18:01 UTC, Jordi Sayol wrote:
 El 12/02/18 a les 21:56, Martin Tschierschke via 
 Digitalmars-d-learn ha escrit:
 I just started to play around with D again on my notebook at 
 home and realized,
 that I have a broken installation.
 Even the minimal D "hello world" throws an error at 
 execution.
 Speicherzugriffsfehler (Speicherabzug geschrieben) aka. core 
 dump

 Compiling with ldc2 still works.
 Any hint?
d-apt <http://d-apt.sourceforge.net/>
After setting ulimit -c unlimited to get the core dumped, I took a look with gdb, to find a hint, now realizing, that it is probably the same problem as here: https://forum.dlang.org/thread/jjaynewwdsyntyehvahq forum.dlang.org?page=1
A fresh install from d-apt on Ubuntu 16.04 32-bit, and everything worked fine.
I tried a lot, there is special bug new on ubuntu 17.10 in /etc/apt/sources.list.d/d-apt.list !!! I had to change http://... to https:// Before that I imported the key with sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EBCF975E5BA24D5E I am not sure if this was necessary, probably not. Than I was able to call sudo apt-get update && sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring && sudo apt-get update and install with sudo apt-get install dmd-compiler dub But unfortunately still the same core dump. Is there anyone using Ubuntu 17.10 32 Bit? I will downgrade to 16.04., the dist-upgrade to 17.10 was a mistake, resulting in problems with startx and newer kernels so I have to use 4.10.
Feb 13 2018
parent reply Andrea Fontana <nospam example.com> writes:
On Tuesday, 13 February 2018 at 22:21:18 UTC, Martin Tschierschke 
wrote:
 I will downgrade to 16.04., the dist-upgrade to 17.10 was a 
 mistake, resulting in problems with startx and newer kernels so 
 I have to use 4.10.
In my experience dist-upgrade are long and messy :) Usually I create a partition on disk; install a fresh (K)ubuntu on that partition; move data / config from old partition to new; delete (or backup) old partition. I have both kubuntu 17.04 and 17.10 and dmd works fine. Andrea
Feb 14 2018
parent reply Martin Tschierschke <mt smartdolphin.de> writes:
On Wednesday, 14 February 2018 at 10:57:47 UTC, Andrea Fontana 
wrote:
 On Tuesday, 13 February 2018 at 22:21:18 UTC, Martin 
 Tschierschke wrote:
 I will downgrade to 16.04., the dist-upgrade to 17.10 was a 
 mistake, resulting in problems with startx and newer kernels 
 so I have to use 4.10.
In my experience dist-upgrade are long and messy :) Usually I create a partition on disk; install a fresh (K)ubuntu on that partition; move data / config from old partition to new; delete (or backup) old partition. I have both kubuntu 17.04 and 17.10 and dmd works fine. Andrea
Ok, good to know! I started with 16.04 and made the initial mistake to take the 32 Bit version, do you use 32 or 64 Bit?
Feb 14 2018
parent reply Andrea Fontana <nospam example.com> writes:
On Wednesday, 14 February 2018 at 11:16:25 UTC, Martin 
Tschierschke wrote:
 Ok, good to know!
 I started with 16.04 and made the initial mistake to take the 
 32 Bit version,
 do you use 32 or 64 Bit?
64bit of course! Andrea
Feb 14 2018
parent reply Martin Tschierschke <mt smartdolphin.de> writes:
On Wednesday, 14 February 2018 at 11:23:48 UTC, Andrea Fontana 
wrote:
 On Wednesday, 14 February 2018 at 11:16:25 UTC, Martin 
 Tschierschke wrote:
 Ok, good to know!
 I started with 16.04 and made the initial mistake to take the 
 32 Bit version,
 do you use 32 or 64 Bit?
64bit of course! Andrea
After this info, I made the step to change to Ubuntu 17.10 64 Bit. And - it works! But the installation via apt-get is not working without the steps already mentioned in the post before! (s/http/https/ and manually import of the public key) This (from https://dlang.org/download.html) is outdated for 17.10. sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list sudo apt-get update && sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring sudo apt-get update && sudo apt-get install dmd-compiler dub
Feb 17 2018
parent Jordi Sayol <g.sayol gmail.com> writes:
El 17/02/18 a les 18:49, Martin Tschierschke via Digitalmars-d-learn ha escrit:
 But the installation via apt-get is not working without the steps already
mentioned in the post before! (s/http/https/  and manually import of the
public key)
"d-apt.list" file fixed! (s/http/https/) d-apt public key is in the "d-apt-keyring" deb package, so you don't have to manually install it.
 
 This (from https://dlang.org/download.html) is outdated for 17.10.
 
 sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O
/etc/apt/sources.list.d/d-apt.list
 sudo apt-get update && sudo apt-get -y --allow-unauthenticated install
--reinstall d-apt-keyring
 sudo apt-get update && sudo apt-get install dmd-compiler dub
It appears that everything should work on 17.10 now. I'll do more tests on a virtual machine.
Feb 17 2018