Jump to page: 1 2
Thread overview
[Issue 17833] compiling dmd on x86 linux fails
Oct 13, 2017
Andreas Baumann
Nov 11, 2017
Thomas Mader
Apr 15, 2018
Tyler Dence
Jul 02, 2018
greenify
Jul 03, 2018
deep42thought
Jul 03, 2018
deep42thought
Jul 03, 2018
deep42thought
Jul 03, 2018
Seb
Jul 03, 2018
deep42thought
Mar 02, 2019
Basile-z
Aug 05, 2019
anonymous4
Mar 21, 2020
Basile-z
October 13, 2017
https://issues.dlang.org/show_bug.cgi?id=17833

Andreas Baumann <abaumann@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |abaumann@yahoo.com

--- Comment #1 from Andreas Baumann <abaumann@yahoo.com> ---
See also https://bbs.archlinux32.org/viewtopic.php?id=65

--
November 11, 2017
https://issues.dlang.org/show_bug.cgi?id=17833

Thomas Mader <thomas.mader@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org,
                   |                            |thomas.mader@gmail.com

--- Comment #2 from Thomas Mader <thomas.mader@gmail.com> ---
I am having the same problem when trying to build dmd 2.075.1 with the dmd-cxx branch version at commit 7f7dd837f1cf92e3fd51fabbb95868b4b297ad37 as bootstrap dmd.

The error message is: gmake[2]: *** [posix.mak:147: import/core/sync/barrier.di] Segmentation fault

Switching back to 2.067.1 as bootstrap compiler makes it work again.

@ibuclaw: Do you happen to know what the problem might be?

--
April 15, 2018
https://issues.dlang.org/show_bug.cgi?id=17833

Tyler Dence <tyzoid@archlinux32.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tyzoid@archlinux32.org

--- Comment #3 from Tyler Dence <tyzoid@archlinux32.org> ---
Bumping this issue, since this is triggering the removal of this package from the archlinux32 repos.

--
July 02, 2018
https://issues.dlang.org/show_bug.cgi?id=17833

greenify <greeenify@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify@gmail.com

--- Comment #4 from greenify <greeenify@gmail.com> ---
Hmm building DMD on Linux 32 works on our CIs (e.g. https://auto-tester.puremagic.com/platform-history.ghtml?projectid=1&os=Linux_32), so I'm not sure what this is related to.

The dmd-cxx branch was just an experiment, but it was never fully finished. Do you still get a segfault when using AUTO_BOOTSTRAP=1?

(since 2.081 at least 2.074 is required to build DMD)

--
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=17833

--- Comment #5 from deep42thought <dlang@eckner.net> ---
Created attachment 1708
  --> https://issues.dlang.org/attachment.cgi?id=1708&action=edit
installed packages

--
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=17833

--- Comment #6 from deep42thought <dlang@eckner.net> ---
still fails for me. I ran:
> mkdir dlang
> cd ~/dlang/
> git clone https://github.com/dlang/dmd
> git clone https://github.com/dlang/druntime
> git clone https://github.com/dlang/phobos
> git clone https://github.com/dlang/tools
> cd ~/dlang/dmd
> make -f posix.mak -j8 AUTO_BOOTSTRAP=1
> cd ~/dlang/phobos
> make -f posix.mak -j8

inside an archlinux32 virtual box. See above for a list of installed packages on that box.

--
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=17833

--- Comment #7 from deep42thought <dlang@eckner.net> ---
We have an archlinux32 image for vagrant which you can use to reproduce the issue. The commands are:

> mkdir arch32-builder
> cd arch32-builder
> vagrant init archlinux32/archlinux32
> vagrant up
> ssh vagrant@127.0.0.1 -p 2222 -o StrictHostKeyChecking=Off -o IdentityFile=.vag$
>> sudo pacman -Syu base-devel curl git make libcurl-gnutls sudo reboot
> ssh vagrant@127.0.0.1 -p 2222 -o StrictHostKeyChecking=Off -o IdentityFile=.vag$
>> mkdir dlang
>> cd dlang/
>> git clone https://github.com/dlang/dmd
>> git clone https://github.com/dlang/druntime
>> git clone https://github.com/dlang/phobos
>> git clone https://github.com/dlang/tools
>> cd ~/dlang/dmd
>> make -f posix.mak -j8 AUTO_BOOTSTRAP=1
>> cd ~/dlang/phobos
>> make -f posix.mak -j8
(fails with segfault)

--
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=17833

--- Comment #8 from Seb <greeenify@gmail.com> ---
Thanks that works in reproducing the segfault :/

Command Line: ../dmd/generated/linux/release/32/dmd -conf= -c -o- -Isrc -Iimport -Hfimport/core/sync/barrier.di src/core/sync/barrier.d

(gdb) bt full
#0  0x00861f61 in _d_dso_registry ()
No symbol table info available.
#1  0x007b53cf in ?? ()
No symbol table info available.
#2  0x0087d97b in __libc_csu_init ()
No symbol table info available.
#3  0xb7aecfd3 in __libc_start_main () from /usr/lib/libc.so.6
No symbol table info available.
#4  0x0065d601 in _start ()
No symbol table info available.

However, there's a workaround:

Instead of using AUTO_BOOTSTRAP=1, you can use make -f posix.mak -j8
HOST_DMD=ldmd
 to compile dmd. With this druntime and phobos compile fine.
So I guess it's just an issue that the release binaries aren't fully working
with 32-bit anymore?

--
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=17833

--- Comment #9 from deep42thought <dlang@eckner.net> ---
thanks for your prompt reply - the workaround works :-)

--
March 02, 2019
https://issues.dlang.org/show_bug.cgi?id=17833

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #10 from Basile-z <b2.temp@gmx.com> ---
Still ?

--
« First   ‹ Prev
1 2