unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* build hello
@ 2017-12-20 18:05 rennes
  2017-12-21 15:56 ` Ludovic Courtès
  2017-12-23  9:28 ` Manolis Ragkousis
  0 siblings, 2 replies; 5+ messages in thread
From: rennes @ 2017-12-20 18:05 UTC (permalink / raw)
  To: help-guix

Hello,

I am currently trying to compile the 'hello' package in GNU/Hurd with a recent version of Guix and the error it shows is the following:

----------------------------------------------------------
gettext-0.19.8.1/os2/Makefile
gettext-0.19.8.1/os2/README.OS2
gettext-0.19.8.1/os2/backward.def
gettext-0.19.8.1/os2/configure.awk
gettext-0.19.8.1/windows/
gettext-0.19.8.1/windows/gettext.rc
gettext-0.19.8.1/windows/windres-options
phase `unpack' succeeded after 6.3 seconds
starting phase `patch-usr-bin-file'
madvise failed: Function not implemented
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
patch-/usr/bin/file: ./gettext-runtime/configure: changing `/usr/bin/file' to `/gnu/store/w383nnmrhazljpsl1751905mx05mnm6z-file-boot0-5.30/bin/file'
Backtrace:
madvise failed: Function not implemented
          16 (primitive-load "/gnu/store/lk8f1fvxblp413vyrwpl3qa73bl?")
In ice-9/eval.scm:
   191:35 15 (_ _)
In srfi/srfi-1.scm:
   863:16 14 (every1 #<procedure 866ce0 at /gnu/store/1sngxp0ij954l?> ?)
In /gnu/store/1sngxp0ij954ldnx3ymxkz7kvpsfsf2a-module-import/guix/build/gnu-build-system.scm:
   684:27 13 (_ _)
    170:4 12 (patch-usr-bin-file #:native-inputs _ #:inputs _ # _)
In srfi/srfi-1.scm:
    640:9 11 (for-each #<procedure 456e40 at /gnu/store/1sngxp0ij95?> ?)
In /gnu/store/1sngxp0ij954ldnx3ymxkz7kvpsfsf2a-module-import/guix/build/utils.scm:
   880:10 10 (patch-/usr/bin/file "./gettext-runtime/configure" # _ # ?)
In ice-9/boot-9.scm:
    849:4  9 (with-throw-handler _ _ _)
In ice-9/ports.scm:
   444:17  8 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
In /gnu/store/1sngxp0ij954ldnx3ymxkz7kvpsfsf2a-module-import/guix/build/utils.scm:
   609:26  7 (_ _)
   635:26  6 (_ #<input: ./gettext-runtime/configure 15> #<input-out?>)
In srfi/srfi-1.scm:
   466:18  5 (fold #<procedure 47f950 at /gnu/store/1sngxp0ij954ldn?> ?)
In /gnu/store/1sngxp0ij954ldnx3ymxkz7kvpsfsf2a-module-import/guix/build/utils.scm:
   638:37  4 (_ _ "      const char input[] = \"B\\217\\253\\344\\21?")
In ice-9/regex.scm:
   189:12  3 (list-matches _ _ _)
   177:19  2 (fold-matches _ "      const char input[] = \"B\\217\\?" ?)
In unknown file:
           1 (regexp-exec #<regexp 84cec0> "      const char input[?" ?)
In ice-9/boot-9.scm:
   760:25  0 (dispatch-exception _ _ _)

ice-9/boot-9.scm:760:25: In procedure dispatch-exception:
ice-9/boot-9.scm:760:25: Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert narrow string to output locale" 1073741930 #f #f)'.
killing process 24030
builder for `/gnu/store/yv7xx7lcnf3arsf9s3bim1wsarbpj8mx-gettext-minimal-0.19.8.1.drv' failed with exit code 1
@ build-failed /gnu/store/yv7xx7lcnf3arsf9s3bim1wsarbpj8mx-gettext-minimal-0.19.8.1.drv - 1 builder for `/gnu/store/yv7xx7lcnf3arsf9s3bim1wsarbpj8mx-gettext-minimal-0.19.8.1.drv' failed with exit code 1
cannot build derivation `/gnu/store/0hal1xw5hkkj628xyjwiaivy6rjsyqqn-acl-2.2.52.drv': 1 dependencies couldn't be built
killing process 24031
@ build-started /gnu/store/7gxa4zdb45wlk3agx83z880m8fpikw3g-grep-3.0.drv - i586-gnu /var/log/guix/drvs/7g//xa4zdb45wlk3agx83z880m8fpikw3g-grep-3.0.drv.bz2
cannot build derivation `/gnu/store/9d7dsfv987ij1mj99ki5b7rz8m6xfhkf-coreutils-8.27.drv': 1 dependencies couldn't be built
killing process 24033
cannot build derivation `/gnu/store/jcdlcr0l2andnpq95qw01fv247dv5vjv-file-5.30.drv': 1 dependencies couldn't be built
guix build: error: build failed: build of `/gnu/store/jcdlcr0l2andnpq95qw01fv247dv5vjv-file-5.30.drv' failed
----------------------------------------------------------

Details:
 Package version:

* gnutls-3.6.1
* scheme-bytestructures
* libgit2
* guile-git
* guile-2.2.3
* guix (master branch)

steps to reproduce the error:

'guix build hello'

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

* Re: build hello
  2017-12-20 18:05 build hello rennes
@ 2017-12-21 15:56 ` Ludovic Courtès
  2017-12-23  9:28 ` Manolis Ragkousis
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2017-12-21 15:56 UTC (permalink / raw)
  To: rennes; +Cc: help-guix

Hello,

rennes@openmailbox.org skribis:

> I am currently trying to compile the 'hello' package in GNU/Hurd with a recent version of Guix and the error it shows is the following:

[...]

> In /gnu/store/1sngxp0ij954ldnx3ymxkz7kvpsfsf2a-module-import/guix/build/gnu-build-system.scm:
>    684:27 13 (_ _)
>     170:4 12 (patch-usr-bin-file #:native-inputs _ #:inputs _ # _)
> In srfi/srfi-1.scm:
>     640:9 11 (for-each #<procedure 456e40 at /gnu/store/1sngxp0ij95?> ?)
> In /gnu/store/1sngxp0ij954ldnx3ymxkz7kvpsfsf2a-module-import/guix/build/utils.scm:
>    880:10 10 (patch-/usr/bin/file "./gettext-runtime/configure" # _ # ?)
> In ice-9/boot-9.scm:
>     849:4  9 (with-throw-handler _ _ _)
> In ice-9/ports.scm:
>    444:17  8 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
> In /gnu/store/1sngxp0ij954ldnx3ymxkz7kvpsfsf2a-module-import/guix/build/utils.scm:
>    609:26  7 (_ _)
>    635:26  6 (_ #<input: ./gettext-runtime/configure 15> #<input-out?>)
> In srfi/srfi-1.scm:
>    466:18  5 (fold #<procedure 47f950 at /gnu/store/1sngxp0ij954ldn?> ?)
> In /gnu/store/1sngxp0ij954ldnx3ymxkz7kvpsfsf2a-module-import/guix/build/utils.scm:
>    638:37  4 (_ _ "      const char input[] = \"B\\217\\253\\344\\21?")
> In ice-9/regex.scm:
>    189:12  3 (list-matches _ _ _)
>    177:19  2 (fold-matches _ "      const char input[] = \"B\\217\\?" ?)
> In unknown file:
>            1 (regexp-exec #<regexp 84cec0> "      const char input[?" ?)
> In ice-9/boot-9.scm:
>    760:25  0 (dispatch-exception _ _ _)
>
> ice-9/boot-9.scm:760:25: In procedure dispatch-exception:
> ice-9/boot-9.scm:760:25: Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert narrow string to output locale" 1073741930 #f #f)'.

Can you check at the beginning of the build log whether you have a
message like:

  using 'en_US' locale for category LC_ALL

or:

  failed to install 'en_US' locale

which comes from ‘install-locale’ in (guix build gnu-build-system)?

What does this show:

  guix build -e '(@@ (gnu packages commencement)
  glibc-utf8-locales-final)'

?

Ludo’.

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

* Re: build hello
  2017-12-20 18:05 build hello rennes
  2017-12-21 15:56 ` Ludovic Courtès
@ 2017-12-23  9:28 ` Manolis Ragkousis
  1 sibling, 0 replies; 5+ messages in thread
From: Manolis Ragkousis @ 2017-12-23  9:28 UTC (permalink / raw)
  To: rennes; +Cc: help-guix

Hello,

On 12/20/17 20:05, rennes@openmailbox.org wrote:
> Backtrace:
> madvise failed: Function not implemented
>           16 (primitive-load "/gnu/store/lk8f1fvxblp413vyrwpl3qa73bl?")

I think this is because madvise is not implemented on Hurd and Guile is
using it. I had send a patch to workaround this on Guile [1], but I
think it never got accepted. Could you apply it on the Guile you are
using and try again?

Manolis

[1] https://lists.gnu.org/archive/html/guile-devel/2017-07/msg00001.html

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

* Re: build hello
@ 2017-12-23 15:25 rennes
  0 siblings, 0 replies; 5+ messages in thread
From: rennes @ 2017-12-23 15:25 UTC (permalink / raw)
  To: =?utf-8?q?Ludovic__Court=C3=A8s_=3Cludo=40gnu=2Eorg=3E?=

Hello Ludovic,

I found my error, I badly applied the patches (glibc-local.patch and glibc-versioned-locpath.patch) to the new repository.

Finally I was able to build 'the hello package'.

> 
> Can you check at the beginning of the build log whether you have a
> message like:
> 
>   using 'en_US' locale for category LC_ALL
> 
> or:
> 
>   failed to install 'en_US' locale
> 
> which comes from ‘install-locale’ in (guix build gnu-build-system)?

As you comment ends in Warning!
--
starting phase `install-locale'
warning: failed to install 'en_US.utf8' locale: Invalid argument
phase `install-locale' succeeded after 0.0 seconds
--

> 
> What does this show:
> 
>   guix build -e '(@@ (gnu packages commencement)
>   glibc-utf8-locales-final)'

This is the output:
/gnu/store/lzshjn79y2mpx3pyzmfqqf784z5jfrg0-glibc-utf8-locales-2.23

Thanks

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

* Re: build hello
@ 2017-12-23 15:29 rennes
  0 siblings, 0 replies; 5+ messages in thread
From: rennes @ 2017-12-23 15:29 UTC (permalink / raw)
  To: Manolis Ragkousis

Hello Manolis,

> On 12/20/17 20:05, rennes@openmailbox.org wrote:
>> Backtrace:
>> madvise failed: Function not implemented
>>           16 (primitive-load "/gnu/store/lk8f1fvxblp413vyrwpl3qa73bl?")
> 
> I think this is because madvise is not implemented on Hurd and Guile is
> using it. I had send a patch to workaround this on Guile [1], but I
> think it never got accepted. Could you apply it on the Guile you are
> using and try again?

I will test the patch to avoid 'madvise' messages.

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

end of thread, other threads:[~2017-12-23 15:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-20 18:05 build hello rennes
2017-12-21 15:56 ` Ludovic Courtès
2017-12-23  9:28 ` Manolis Ragkousis
  -- strict thread matches above, loose matches on Subject: below --
2017-12-23 15:25 rennes
2017-12-23 15:29 rennes

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).