public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/99691] New: OpenBSD support for GDC
@ 2021-03-21  3:34 bcallah at protonmail dot com
  2021-03-21  7:20 ` [Bug d/99691] " ibuclaw at gdcproject dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bcallah at protonmail dot com @ 2021-03-21  3:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99691

            Bug ID: 99691
           Summary: OpenBSD support for GDC
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: bcallah at protonmail dot com
  Target Milestone: ---

Created attachment 50441
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50441&action=edit
OpenBSD support for GDC

Hello --

Provided here is a patch demonstrating OpenBSD support for GDC.

Some important notes and helps needed:

* Iain, you'll notice that my druntime is different from the DMD druntime diff
you saw on GitHub. I will do my best to sync the two, which will mean replacing
what I've done for DMD with what I've done here for GDC, to make all lives
easier.

* I cannot get a shared libgphobos to work on OpenBSD. I get random crashes
that I have not yet been able to track down. I do not know how to disable
--enable-shared in libphobos's configure.ac without disabling it for all of
gcc, which is not desirable. If that's a patch I have to carry until I can get
a working shared libgphobos, that's fine.

* I suspect libphobos will work on more than just x86_64 and i386 but as I've
only been able to test on x86_64, I kept libphobos to just those 2 archs. I
will submit further diffs for more platforms as I'm able to test.

* The port is otherwise fairly straightforward and I am using this in
production.

Thanks! Happy to work with you to get this in.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug d/99691] OpenBSD support for GDC
  2021-03-21  3:34 [Bug d/99691] New: OpenBSD support for GDC bcallah at protonmail dot com
@ 2021-03-21  7:20 ` ibuclaw at gdcproject dot org
  2021-03-21 18:38 ` bcallah at protonmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-03-21  7:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99691

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Thanks, I have an OpenBSD VM with a WIP port as well, so I'll compare the two -
I don't recall any problems with shared libraries, though the host system
demands that PIC/PIE is forced for all built compilers/generator programs.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug d/99691] OpenBSD support for GDC
  2021-03-21  3:34 [Bug d/99691] New: OpenBSD support for GDC bcallah at protonmail dot com
  2021-03-21  7:20 ` [Bug d/99691] " ibuclaw at gdcproject dot org
@ 2021-03-21 18:38 ` bcallah at protonmail dot com
  2021-03-26 15:15 ` cvs-commit at gcc dot gnu.org
  2021-04-19 17:28 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: bcallah at protonmail dot com @ 2021-03-21 18:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99691

--- Comment #2 from Brian Callahan <bcallah at protonmail dot com> ---
(In reply to Iain Buclaw from comment #1)
> Thanks, I have an OpenBSD VM with a WIP port as well, so I'll compare the
> two - I don't recall any problems with shared libraries, though the host
> system demands that PIC/PIE is forced for all built compilers/generator
> programs.

Yes, I do the same with PIC/PIE.
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug d/99691] OpenBSD support for GDC
  2021-03-21  3:34 [Bug d/99691] New: OpenBSD support for GDC bcallah at protonmail dot com
  2021-03-21  7:20 ` [Bug d/99691] " ibuclaw at gdcproject dot org
  2021-03-21 18:38 ` bcallah at protonmail dot com
@ 2021-03-26 15:15 ` cvs-commit at gcc dot gnu.org
  2021-04-19 17:28 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-26 15:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99691

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:

https://gcc.gnu.org/g:8ab1d637440532d9698daae84cc81a43d36b4aa8

commit r11-7845-g8ab1d637440532d9698daae84cc81a43d36b4aa8
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Sun Mar 21 11:00:29 2021 +0100

    d: Add openbsd support for D compiler [PR99691]

    gcc/ChangeLog:

            PR d/99691
            * config.gcc (*-*-openbsd*): Add openbsd-d.o.
            * config/t-openbsd: Add openbsd-d.o.
            * config/openbsd-d.c: New file.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug d/99691] OpenBSD support for GDC
  2021-03-21  3:34 [Bug d/99691] New: OpenBSD support for GDC bcallah at protonmail dot com
                   ` (2 preceding siblings ...)
  2021-03-26 15:15 ` cvs-commit at gcc dot gnu.org
@ 2021-04-19 17:28 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-19 17:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99691

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:

https://gcc.gnu.org/g:d86e60855f05a0e493f8362c12bfd40d5432d337

commit r11-8246-gd86e60855f05a0e493f8362c12bfd40d5432d337
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Mon Apr 19 14:23:00 2021 +0200

    libphobos: Add section support code for OpenBSD (PR99691)

    libphobos/ChangeLog:

            PR d/99691
            * configure: Regenerate.
            * libdruntime/config/common/threadasm.S: Add __OpenBSD__.
            * libdruntime/gcc/backtrace.d: Import core.sys.openbsd.dlfcn on
            OpenBSD platforms.
            * libdruntime/gcc/sections/elf.d (SharedElf): Define on OpenBSD.
            (linkMapForHandle): Implement for OpenBSD.
            (exeLinkMap): Remove.
            (getDependencies): Adjust dlpi_addr on OpenBSD.
            (handleForName): Implement for OpenBSD.
            (IterateManually): Define on OpenBSD.
            * libdruntime/gcc/sections/package.d (SectionsElf): Define on
OpenBSD.
            * m4/druntime/libraries.m4 (DRUNTIME_LIBRARIES_ATOMIC): Test for
            enable_libatomic.
            (DRUNTIME_LIBRARIES_BACKTRACE): Test for enable_libbacktrace.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-19 17:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-21  3:34 [Bug d/99691] New: OpenBSD support for GDC bcallah at protonmail dot com
2021-03-21  7:20 ` [Bug d/99691] " ibuclaw at gdcproject dot org
2021-03-21 18:38 ` bcallah at protonmail dot com
2021-03-26 15:15 ` cvs-commit at gcc dot gnu.org
2021-04-19 17:28 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).