Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 733720 - net-misc/unison-2.48.4-r1: failed build (This expression has type bytes but an expression was expected of type string)
Summary: net-misc/unison-2.48.4-r1: failed build (This expression has type bytes but a...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-23 23:47 UTC by Christophe PEREZ
Modified: 2020-09-15 14:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge log (net-misc_unison-2.48.4-r1_20200723-233118.log.gz,1.85 KB, application/gzip)
2020-07-25 14:50 UTC, Christophe PEREZ
Details
emerge info (emerge-info.gz,3.02 KB, application/gzip)
2020-07-25 14:51 UTC, Christophe PEREZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2020-07-23 23:47:52 UTC
On a very fresh install, I can't emerge unison

I don't know where is the problem, so I don't know if it is a bug duplicate.

ocamlopt -g -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -c /var/tmp/portage/net-misc/unison-2.48.4-r1/work/src/bytearray.ml
File "/var/tmp/portage/net-misc/unison-2.48.4-r1/work/src/unicode.ml", line 25, characters 16-33:
25 | let set s i v = String.unsafe_set s i (Char.unsafe_chr v)
                     ^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.unsafe_set
File "/var/tmp/portage/net-misc/unison-2.48.4-r1/work/src/bytearray.ml", lines 38-39, characters 0-42:
38 | external unsafe_blit_from_string : string -> int -> t -> int -> int -> unit
39 |   = "ml_blit_string_to_bigarray" "noalloc"
Alert deprecated: [@@noalloc] should be used instead of "noalloc"
File "/var/tmp/portage/net-misc/unison-2.48.4-r1/work/src/bytearray.ml", lines 41-42, characters 0-42:
41 | external unsafe_blit_to_string : t -> int -> string -> int -> int -> unit
42 |   = "ml_blit_bigarray_to_string" "noalloc"
Alert deprecated: [@@noalloc] should be used instead of "noalloc"
File "/var/tmp/portage/net-misc/unison-2.48.4-r1/work/src/bytearray.ml", line 47, characters 10-23:
47 |   let s = String.create l in
               ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "/var/tmp/portage/net-misc/unison-2.48.4-r1/work/src/bytearray.ml", line 48, characters 28-29:
48 |   unsafe_blit_to_string a 0 s 0 l;
                                 ^
Error: This expression has type bytes but an expression was expected of type
         string
make: *** [Makefile.OCaml:436: bytearray.cmx] Error 2
make: *** Waiting for unfinished jobs....
File "/var/tmp/portage/net-misc/unison-2.48.4-r1/work/src/unicode.ml", line 822, characters 20-21:
822 |     String.blit s k s (k + d) (i - k);
                          ^
Error: This expression has type string but an expression was expected of type
         bytes
make: *** [Makefile.OCaml:436: unicode.cmx] Error 2
 * ERROR: net-misc/unison-2.48.4-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Christophe PEREZ 2020-07-23 23:50:13 UTC
Impossible to join log and emerge info :

I always have this error when I submit :
Software error:
Malformed multipart POST: data truncated
Comment 2 Sam James gentoo-dev Security 2020-07-25 14:42:50 UTC
(In reply to Christophe PEREZ from comment #1)
> Impossible to join log and emerge info :
> 
> I always have this error when I submit :
> Software error:
> Malformed multipart POST: data truncated

Please upload a compressed version.
Comment 3 Christophe PEREZ 2020-07-25 14:50:40 UTC
Created attachment 650714 [details]
emerge log
Comment 4 Christophe PEREZ 2020-07-25 14:51:09 UTC
Created attachment 650716 [details]
emerge info
Comment 5 Sam James gentoo-dev Security 2020-07-25 14:53:43 UTC
(In reply to Christophe PEREZ from comment #4)
> Created attachment 650716 [details]
> emerge info

Thanks!
Comment 6 Christophe PEREZ 2020-07-30 06:09:23 UTC
I could compile unison with patch suggested in #709646