unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Todor Kondić" <tk.code@protonmail.com>
To: "help-guix\\@gnu.org" <help-guix@gnu.org>
Subject: Non-standard builds, autoconf and gcc
Date: Wed, 02 Oct 2019 13:49:24 +0000	[thread overview]
Message-ID: <UZZmKOucmS9CsdGdB6N4ayL_qrsV-O46ZW8mm_9Ew0QKL6liilCZUrEKrrIZaAfdr2x-F3iikev8k9pSm_IfIZNgCGEXL6FvLcKC4xwptts=@protonmail.com> (raw)

I am trying to define a package that builds a source which has

a non-standard build procedure. It's a mix of autotools packages and something else. My first attempt was to use the trivial builder, pull in the gcc-toolchain along with autotools and use

this mixture for the parts where they can be used. The usual auto(re)conf et cetera method.

This unfortunately is one huge mess: even when i patch the  resulting configure script not to use hardwired /bin/sh /lib/cpp and such, gcc checks always fail. The glibc, gcc-toolchain-X.Y.Z and gcc-X.Y.Z(-lib), as well as binutils, all have overlapping, but not entirely same libraries, includes and gcc programs.

My first question,  if I am unable to simply use the gnu build system, but need autotools functionality, which packages should I pull in as native inputs for a regular C program? Is it the gcc-toolchain, or the hidden package gcc? Additionally, should I pull in binutils and glibc? The second question is, how to set the build environment? I realised that just installing the gcc-related packages does not necessarily mean that gcc knows about where the heck its brains and guts are. How to set COMPILER_PATH, LIBRARY_PATH and any other relevant environment variables?

Finally, can I work around these problems by calling some of the functionality of gnu-build-system from the builder?
Something like,

; trivial system on top-level
.
.
.
#:builder (... do preparatory stuff ...
           (with-directory-excursion "subpackage"
                (gnu-build-system-build-only ...)))
.
.
.

Cheers,

Todor

             reply	other threads:[~2019-10-02 13:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-02 13:49 Todor Kondić [this message]
2019-10-02 16:25 ` Non-standard builds, autoconf and gcc John Soo
2019-10-14 20:29   ` Maxim Cournoyer

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='UZZmKOucmS9CsdGdB6N4ayL_qrsV-O46ZW8mm_9Ew0QKL6liilCZUrEKrrIZaAfdr2x-F3iikev8k9pSm_IfIZNgCGEXL6FvLcKC4xwptts=@protonmail.com' \
    --to=tk.code@protonmail.com \
    --cc=help-guix@gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).