digitalmars.D.learn - segmentation fault when running void main() {}
- berni (9/16) Sep 17 2019 I'm not sure, if this is the right place to ask, but I couldn't
- Adam D. Ruppe (4/4) Sep 17 2019 Did you make sure the old version was totally uninstalled before
- berni (7/12) Sep 17 2019 Well, there was no old version. It's been the first time I tried
- ag0aep6g (3/7) Sep 18 2019 You're probably hitting this issue:
- berni (8/10) Sep 18 2019 Yes, sounds similar. I tried PR 9981, but that didn't work on my
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
Sep 17 2019
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.
Sep 17 2019
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...
Sep 17 2019
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
Sep 18 2019
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=19116Yes, 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.
Sep 18 2019