GNU bug report logs - #23055
wget within guix fails to resolve FQDNs when used as an input (native or otherwise)

Previous Next

Package: guix;

Reported by: Dennis Mungai <dmngaie <at> gmail.com>

Date: Fri, 18 Mar 2016 18:06:01 UTC

Severity: normal

Tags: notabug

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23055 in the body.
You can then email your comments to 23055 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#23055; Package guix. (Fri, 18 Mar 2016 18:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dennis Mungai <dmngaie <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 18 Mar 2016 18:06:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dennis Mungai <dmngaie <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: wget within guix fails to resolve FQDNs when used as an input (native
 or otherwise)
Date: Fri, 18 Mar 2016 21:04:46 +0300
[Message part 1 (text/plain, inline)]
Hello there,

I'm porting Arrayfire to GNU Guix, see
https://github.com/Brainiarc7/guix-bioinformatics/blob/master/gn/packages/arrayfire.scm

One of the inputs declared is wget, needed as a fall-back when fetching
BoostCompute should the Cmake checksums fail.

See the build log below:

-- Boost version: 1.60.0
-- BoostCompute...
--   getting https://github.com/boostorg/compute/archive/v0.5.tar.gz
--   validating
/tmp/nix-build-arrayfire-3.3.1.drv-0/build/third_party/compute-0.5.tar.gz
CMake Warning at CMakeModules/build_boost_compute.cmake:47 (MESSAGE):
  /tmp/nix-build-arrayfire-3.3.1.drv-0/build/third_party/compute-0.5.tar.gz:
  Invalid check sum d41d8cd98f00b204e9800998ecf8427e.  Expected was
  69a52598ac539d3b7f6005a3dd2b6f58
Call Stack (most recent call first):
  src/backend/opencl/CMakeLists.txt:91 (INCLUDE)


-- Trying wget https://github.com/boostorg/compute/archive/v0.5.tar.gz
--2016-03-18 17:38:55--
https://github.com/boostorg/compute/archive/v0.5.tar.gz
Resolving github.com (github.com)... failed: Name or service not known.
wget: unable to resolve host address ‘github.com’
CMake Error at CMakeModules/build_boost_compute.cmake:53 (MESSAGE):
  /tmp/nix-build-arrayfire-3.3.1.drv-0/build/third_party/compute-0.5.tar.gz:
  Invalid check sum d41d8cd98f00b204e9800998ecf8427e.  Expected was
  69a52598ac539d3b7f6005a3dd2b6f58
Call Stack (most recent call first):
  src/backend/opencl/CMakeLists.txt:91 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also
"/tmp/nix-build-arrayfire-3.3.1.drv-0/build/CMakeFiles/CMakeOutput.log".
phase `configure' failed after 2.8 seconds
builder for
`/gnu/store/4ik93fkxrjy6acihzz5mzjcjkwc5va38-arrayfire-3.3.1.drv' failed
with exit code 1
@ build-failed
/gnu/store/4ik93fkxrjy6acihzz5mzjcjkwc5va38-arrayfire-3.3.1.drv - 1 builder
for `/gnu/store/4ik93fkxrjy6acihzz5mzjcjkwc5va38-arrayfire-3.3.1.drv'
failed with exit code 1
guix build: error: build failed: build of
`/gnu/store/4ik93fkxrjy6acihzz5mzjcjkwc5va38-arrayfire-3.3.1.drv' failed

As you can see in the first part, fetching BoostCompute fails because the
specified MD5 hash fails, and as a result, the build system falls back to
fetching the same with wget (see second snippet).

The second part fails because wget fails to resolve the FQDN entry
github.com.

However, when invoking wget directly, both the local instalation and the
Guix installation, the FQDN can be resolved correctly and the associated
file fetched successfully:

/gnu/store/w50mfvfzyjzpcbyw3lll7hm4j457jhb0-wget-1.17.1/bin/wget
https://github.com/boostorg/compute/archive/v0.5.tar.gz

Would this qualify as a bug filed against wget in Guix, or does the problem
lie elsewhere?

Regards,

Dennis.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#23055; Package guix. (Fri, 18 Mar 2016 18:16:01 GMT) Full text and rfc822 format available.

Message #8 received at 23055 <at> debbugs.gnu.org (full text, mbox):

From: "Thompson, David" <dthompson2 <at> worcester.edu>
To: Dennis Mungai <dmngaie <at> gmail.com>
Cc: 23055 <at> debbugs.gnu.org
Subject: Re: bug#23055: wget within guix fails to resolve FQDNs when used as
 an input (native or otherwise)
Date: Fri, 18 Mar 2016 14:15:37 -0400
On Fri, Mar 18, 2016 at 2:04 PM, Dennis Mungai <dmngaie <at> gmail.com> wrote:

> As you can see in the first part, fetching BoostCompute fails because the
> specified MD5 hash fails, and as a result, the build system falls back to
> fetching the same with wget (see second snippet).
>
> The second part fails because wget fails to resolve the FQDN entry
> github.com.
>
> However, when invoking wget directly, both the local instalation and the
> Guix installation, the FQDN can be resolved correctly and the associated
> file fetched successfully:
>
> /gnu/store/w50mfvfzyjzpcbyw3lll7hm4j457jhb0-wget-1.17.1/bin/wget
> https://github.com/boostorg/compute/archive/v0.5.tar.gz
>
> Would this qualify as a bug filed against wget in Guix, or does the problem
> lie elsewhere?

In Guix, builds are performed in an isolated container where there is
*no* external network access.  It must be this way because otherwise
builds would be non-deterministic. The only exception is for "fixed
output derivations", whose checksum is known in advance, which
wouldn't be the case here.  So, the problem lies with Arrayfire's
build system.  A build system really shouldn't download from the net.
It should use what the system has provided for it.  In my experience,
build systems that try to download from the net usually try to find
something to use locally first.  Without knowing anything beyond the
log you've shown me, I would guess that you need to package
BoostCompute first and provide that as an input to Arrayfire.
Hopefully then it won't try to download it.

Hope this helps!

- Dave




Information forwarded to bug-guix <at> gnu.org:
bug#23055; Package guix. (Fri, 18 Mar 2016 18:24:02 GMT) Full text and rfc822 format available.

Message #11 received at 23055 <at> debbugs.gnu.org (full text, mbox):

From: Dennis Mungai <dmngaie <at> gmail.com>
To: "Thompson, David" <dthompson2 <at> worcester.edu>
Cc: 23055 <at> debbugs.gnu.org
Subject: Re: bug#23055: wget within guix fails to resolve FQDNs when used as
 an input (native or otherwise)
Date: Fri, 18 Mar 2016 21:23:24 +0300
[Message part 1 (text/plain, inline)]
Hello David,

Thanks for the clarification.

Seems Arrayfire will need several modify-phases statements to clean up the
current build system and in addition, port Boost.Compute to GNU Guix as an
input.

Will do, and provide feedback on the same.

Thanks and regards,

Dennis Mungai.

On 18 March 2016 at 21:15, Thompson, David <dthompson2 <at> worcester.edu> wrote:

> On Fri, Mar 18, 2016 at 2:04 PM, Dennis Mungai <dmngaie <at> gmail.com> wrote:
>
> > As you can see in the first part, fetching BoostCompute fails because the
> > specified MD5 hash fails, and as a result, the build system falls back to
> > fetching the same with wget (see second snippet).
> >
> > The second part fails because wget fails to resolve the FQDN entry
> > github.com.
> >
> > However, when invoking wget directly, both the local instalation and the
> > Guix installation, the FQDN can be resolved correctly and the associated
> > file fetched successfully:
> >
> > /gnu/store/w50mfvfzyjzpcbyw3lll7hm4j457jhb0-wget-1.17.1/bin/wget
> > https://github.com/boostorg/compute/archive/v0.5.tar.gz
> >
> > Would this qualify as a bug filed against wget in Guix, or does the
> problem
> > lie elsewhere?
>
> In Guix, builds are performed in an isolated container where there is
> *no* external network access.  It must be this way because otherwise
> builds would be non-deterministic. The only exception is for "fixed
> output derivations", whose checksum is known in advance, which
> wouldn't be the case here.  So, the problem lies with Arrayfire's
> build system.  A build system really shouldn't download from the net.
> It should use what the system has provided for it.  In my experience,
> build systems that try to download from the net usually try to find
> something to use locally first.  Without knowing anything beyond the
> log you've shown me, I would guess that you need to package
> BoostCompute first and provide that as an input to Arrayfire.
> Hopefully then it won't try to download it.
>
> Hope this helps!
>
> - Dave
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#23055; Package guix. (Sat, 19 Mar 2016 07:37:01 GMT) Full text and rfc822 format available.

Message #14 received at 23055 <at> debbugs.gnu.org (full text, mbox):

From: Dennis Mungai <dmngaie <at> gmail.com>
To: "Thompson, David" <dthompson2 <at> worcester.edu>
Cc: 23055 <at> debbugs.gnu.org
Subject: Re: bug#23055: wget within guix fails to resolve FQDNs when used as
 an input (native or otherwise)
Date: Sat, 19 Mar 2016 10:36:35 +0300
[Message part 1 (text/plain, inline)]
Update:

All worked out.

I was able to port over the dependencies to guix and fed them as inputs to
the package in question.
All builds as expected.

Thanks and regards,

Dennis Mungai.

On 18 March 2016 at 21:23, Dennis Mungai <dmngaie <at> gmail.com> wrote:

> Hello David,
>
> Thanks for the clarification.
>
> Seems Arrayfire will need several modify-phases statements to clean up the
> current build system and in addition, port Boost.Compute to GNU Guix as an
> input.
>
> Will do, and provide feedback on the same.
>
> Thanks and regards,
>
> Dennis Mungai.
>
> On 18 March 2016 at 21:15, Thompson, David <dthompson2 <at> worcester.edu>
> wrote:
>
>> On Fri, Mar 18, 2016 at 2:04 PM, Dennis Mungai <dmngaie <at> gmail.com> wrote:
>>
>> > As you can see in the first part, fetching BoostCompute fails because
>> the
>> > specified MD5 hash fails, and as a result, the build system falls back
>> to
>> > fetching the same with wget (see second snippet).
>> >
>> > The second part fails because wget fails to resolve the FQDN entry
>> > github.com.
>> >
>> > However, when invoking wget directly, both the local instalation and the
>> > Guix installation, the FQDN can be resolved correctly and the associated
>> > file fetched successfully:
>> >
>> > /gnu/store/w50mfvfzyjzpcbyw3lll7hm4j457jhb0-wget-1.17.1/bin/wget
>> > https://github.com/boostorg/compute/archive/v0.5.tar.gz
>> >
>> > Would this qualify as a bug filed against wget in Guix, or does the
>> problem
>> > lie elsewhere?
>>
>> In Guix, builds are performed in an isolated container where there is
>> *no* external network access.  It must be this way because otherwise
>> builds would be non-deterministic. The only exception is for "fixed
>> output derivations", whose checksum is known in advance, which
>> wouldn't be the case here.  So, the problem lies with Arrayfire's
>> build system.  A build system really shouldn't download from the net.
>> It should use what the system has provided for it.  In my experience,
>> build systems that try to download from the net usually try to find
>> something to use locally first.  Without knowing anything beyond the
>> log you've shown me, I would guess that you need to package
>> BoostCompute first and provide that as an input to Arrayfire.
>> Hopefully then it won't try to download it.
>>
>> Hope this helps!
>>
>> - Dave
>>
>
>
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sat, 19 Mar 2016 21:04:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 23055 <at> debbugs.gnu.org and Dennis Mungai <dmngaie <at> gmail.com> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sat, 19 Mar 2016 21:04:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 17 Apr 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.