Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
September 17, 2019 segmentation fault when running void main() {} | ||||
---|---|---|---|---|
| ||||
I'm not sure, if this is the right place to ask, but I couldn't find a better one either. I'm trying to install D on my old 32-bit machine (debian stable). First I tried to install a precompiled version and now I followed [1]. In both cases, I always get a segmentation fault when I try to run a compiled program. With make -f posix.mak AUTO_BOOTSTRAP=1 I got: > ... > ../generated/build HOST_DMD="../generated/host_dmd-2.079.1/dmd2/linux/bin32/dmd" OS=linux BUILD=release MODEL=32 AUTO_BOOTSTRAP="1" --called-from-make ../generated/linux/release/32/lexer.a > Segmentation fault > ... Any ideas, what's missing? [1] https://wiki.dlang.org/Building_under_Posix |
September 17, 2019 Re: segmentation fault when running void main() {} | ||||
---|---|---|---|---|
| ||||
Posted in reply to berni | Did you make sure the old version was totally uninstalled before the new version was attempted to be built? This thing often happens because of a compiler/runtime version mismatch, typically because the old version didn't get fully removed first. |
September 18, 2019 Re: segmentation fault when running void main() {} | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Tuesday, 17 September 2019 at 18:13:06 UTC, Adam D. Ruppe wrote:
> Did you make sure the old version was totally uninstalled before the new version was attempted to be built? This thing often happens because of a compiler/runtime version mismatch, typically because the old version didn't get fully removed first.
Well, there was no old version. It's been the first time I tried to install D on than computer. Meanwhile I removed my first attempt, using the install script mentioned on the download page. And I removed also gdc and ldc (the last one also not working). But that didn't help...
|
September 18, 2019 Re: segmentation fault when running void main() {} | ||||
---|---|---|---|---|
| ||||
Posted in reply to berni | On 17.09.19 20:03, berni wrote: > I'm trying to install D on my old 32-bit machine (debian stable). First I tried to install a precompiled version and now I followed [1]. In both cases, I always get a segmentation fault when I try to run a compiled program. You're probably hitting this issue: https://issues.dlang.org/show_bug.cgi?id=19116 |
September 18, 2019 Re: segmentation fault when running void main() {} | ||||
---|---|---|---|---|
| ||||
Posted in reply to ag0aep6g | On Wednesday, 18 September 2019 at 13:57:53 UTC, ag0aep6g wrote:
> You're probably hitting this issue:
> https://issues.dlang.org/show_bug.cgi?id=19116
Yes, sounds similar. I tried PR 9981, but that didn't work on my machine. Similar message, just an other file, that cannot be compiled (dmd/backend/optabgen.d if it matters).
The hello-example in issue 19116 didn't work either. Got a lot of
/usr/bin/ld: hello.o/(.eh_frame+0x47): undefined reference to ´__dmd_peronsality_v0´
and the like.
|
Copyright © 1999-2021 by the D Language Foundation