Thread overview | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
February 12, 2018 dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
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? |
February 12, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Tschierschke | 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 |
February 12, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | 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?
|
February 12, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Tschierschke | 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/> |
February 13, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jordi Sayol | 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 |
February 13, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Tschierschke | 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!
|
February 13, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jordi Sayol | 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. |
February 14, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Tschierschke | 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
|
February 14, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | 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?
|
February 14, 2018 Re: dmd-2.078.2 problems with Ubuntu 17.10 32Bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Tschierschke | 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
|
Copyright © 1999-2021 by the D Language Foundation