Github messages for voidlinux
 help / color / mirror / Atom feed
From: Aloz1 <Aloz1@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [WIP]ghdl: add libbacktrace for llvm backend
Date: Tue, 21 Dec 2021 07:16:48 +0100	[thread overview]
Message-ID: <20211221061648.PGcYZ6mAuIzUlQGvkLZr7hkwvkkQ84HEcS3Br3AdODc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34626@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]

New comment by Aloz1 on void-packages repository

https://github.com/void-linux/void-packages/pull/34626#issuecomment-998504201

Comment:
> What does ghdl use libbacktrace for, specifically?

GHDL is a VHDL simulator (well, more like an ahead of time compiler nowadays). It links in libbacktrace to elaborated (compiled) VHDL designs. When an error or warning occurs, a backtrace is generated by the program. It actually only needs libbacktrace for the llvm backend (libbacktrace is already linked into libgcc).

> > Use ianlancetaylor/libbacktrace instead (they unfortunately don't seem to do any versioning at all).
> 
> I think using GCC's, since it's already there, is "reasonable". But it should be its own subpackage, the ugliness should be opt-in.

OK, cool. Makes total sense

> > Download gcc source and build libbacktrace from that (gcc source will eventually be needed anyway for building ghdl-gcc)
> 
> What does it need GCC for?

Because GHDL is essentially a compiler for VHDL, it generates machine code using one of 3 backends (mcode, llvm, or gcc).
In other words, GHDL is essentially a VHDL fronted for LLVM or GCC.

At the moment, only the LLVM and mcode variants of GHDL are being built. To build the GCC variant, it requires a source distribution of GCC (which, AFAIK, is the same as for any other custom language frontend for GCC).

So the rationale here is that, if we build ghdl-gcc, then llvm could use the libbacktrace that gets built as part of the gcc source distribution instead of packaging the one that gets built as part of the gcc package.

  parent reply	other threads:[~2021-12-21  6:16 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 14:34 [PR PATCH] " Aloz1
2021-12-20 14:45 ` Aloz1
2021-12-20 15:05 ` [PR REVIEW] " ericonr
2021-12-20 15:05 ` ericonr
2021-12-20 15:05 ` ericonr
2021-12-20 15:32 ` Aloz1
2021-12-20 15:33 ` Aloz1
2021-12-20 15:44 ` [PR PATCH] [Updated] " Aloz1
2021-12-20 15:44 ` [PR REVIEW] " Aloz1
2021-12-21  3:37 ` ericonr
2021-12-21  6:16 ` Aloz1 [this message]
2021-12-21 19:04 ` ericonr
2021-12-22  0:26 ` Aloz1
2021-12-23  4:45 ` ericonr
2021-12-23 12:47 ` [PR PATCH] [Updated] " Aloz1
2021-12-23 12:52 ` Aloz1
2021-12-23 12:57 ` Aloz1
2021-12-23 13:03 ` Aloz1
2021-12-23 14:07 ` ericonr
2021-12-23 21:07 ` Aloz1
2021-12-23 21:07 ` Aloz1
2021-12-23 21:16 ` Aloz1
2021-12-23 22:33 ` Aloz1
2021-12-23 22:58 ` [PR PATCH] [Updated] " Aloz1
2022-01-18 11:45 ` ghdl: " Aloz1
2022-06-19  2:16 ` github-actions
2022-07-04  2:15 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211221061648.PGcYZ6mAuIzUlQGvkLZr7hkwvkkQ84HEcS3Br3AdODc@z \
    --to=aloz1@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).