all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ben Woodcroft <b.woodcroft@uq.edu.au>
To: Adonay Felipe Nogueira <adfeno@openmailbox.org>, guix-devel@gnu.org
Subject: Re: Writing recipe for Crypto++, and getting build errors
Date: Thu, 22 Sep 2016 11:18:37 +1000	[thread overview]
Message-ID: <4a5b1e1e-9889-0859-8d4d-7524212f10ec@uq.edu.au> (raw)
In-Reply-To: <1474471440.5872.41.camel@adfeno-VPCEG17FB>

Welcome Adoney,


On 09/22/2016 01:24 AM, Adonay Felipe Nogueira wrote:
> [..]
> Doing:
>
> $ guix build --fallback "cryptopp"
>
> ... outputs:
>
> # Begin of output
> starting phase `build'
> make: *** No rule to make target 'dynamic'.  Stop.
> phase `build' failed after 0.2 seconds
> builder for
> `/gnu/store/k863vf0ab6hkdhbm7zgmbfs1c3wdqpqs-cryptopp-5.6.4.drv' failed
> with exit code 1
> @
> build-failed /gnu/store/k863vf0ab6hkdhbm7zgmbfs1c3wdqpqs-cryptopp-5.6.4.drv - 1 builder for `/gnu/store/k863vf0ab6hkdhbm7zgmbfs1c3wdqpqs-cryptopp-5.6.4.drv' failed with exit code 1
> guix build: error: build failed: build of
> `/gnu/store/k863vf0ab6hkdhbm7zgmbfs1c3wdqpqs-cryptopp-5.6.4.drv' failed
> # End of output

The problem is that you've been tarbombed, as it were - the zip file 
contains the source code files in its base directory, and then after 
unzipping in the builder a test directory is entered. You can see this 
by inspecting the 'environment-variables' file in the build directory. 
Our usual fix for this is to use 'url-fetch/tarbomb' rather than 
'url-fetch', but it seems that 'url-fetch/tarbomb' does not correctly 
handle zip files.

We should fix 'url-fetch/tarbomb', but in the meantime I suggest 
replacing the unpack phase like so:

                    (replace 'unpack
                      (lambda* (#:key source #:allow-other-keys)
                        (and (zero? (system* "unzip" source "-d" "source"))
                             (begin (chdir "source") #t))))


> ## Additional subject: Absence of `ldconfig`
>
> Seeing the GNUmakefile, it seems to expect some commands to be available
> in the environment, so I tried finding those and seeing if the
> environment sees them from the profile.
>
> [..]
>
> This indicates that `ldconfig` is absent. Someone in #guix told me that
> it was supposed to be provided by

It seems that this line hard-codes the path to ldconfig, so it will need 
to be modified.

LDCONF ?= /sbin/ldconfig -n


> Additionally, `which` was included in the output (comes from the
> "debianutils" package on .deb-based distributions) and is also absent,
> and the GNUmakefile seems to expect `which` at some point (although I'm
> not sure if the build process reached that), so the absence of `which`
> might be good to discuss on other bug report.

'which' is provided by the 'which' package.

Good luck,
ben

  reply	other threads:[~2016-09-22  1:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-21 15:24 Writing recipe for Crypto++, and getting build errors Adonay Felipe Nogueira
2016-09-22  1:18 ` Ben Woodcroft [this message]
2016-09-22  1:22   ` Ben Woodcroft
2016-09-22 14:49     ` Adonay Felipe Nogueira
2016-09-22 22:43       ` Ben Woodcroft
2016-09-30 11:39         ` Adonay Felipe Nogueira
2016-09-26  9:30       ` Ludovic Courtès
2016-09-30 11:35         ` Adonay Felipe Nogueira
2016-09-30 20:10           ` Ludovic Courtès
2016-10-15 20:47             ` Adonay Felipe Nogueira
2016-10-15 20:53               ` Efraim Flashner
2016-10-15 21:47                 ` Adonay Felipe Nogueira
2016-10-17 13:11                   ` Ludovic Courtès
2016-10-17 13:22                     ` Adonay Felipe Nogueira
2016-09-30 11:39         ` Adonay Felipe Nogueira

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=4a5b1e1e-9889-0859-8d4d-7524212f10ec@uq.edu.au \
    --to=b.woodcroft@uq.edu.au \
    --cc=adfeno@openmailbox.org \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.