Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mldonkey build error: This expression has type bytes but an expression was expected of type string #102

Closed
perfect7gentleman opened this issue Jul 10, 2024 · 2 comments

Comments

@perfect7gentleman
Copy link

Git version
Gentoo
dev-lang/ocaml-4.14.2
dev-ml/ocamlbuild-0.14.3

make[1]: Entering directory '/tmp/portage/net-p2p/mldonkey-9999/work/mldonkey-9999'
/usr/bin/ocamlopt.opt -inline 10 -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60   -linkall -o svg_converter \
     bigarray.cmxa unix.cmxa str.cmxa -ccopt "-Wl,-O1 -Wl,--as-needed -Wl,--relax -Wl,--gc-sections -Wl,--sort-common -Wl,-z,norelro -march=native -mtune=native -O3 -pipe -fdevirtualize-at-ltrans -fgraphite -fgraphite-identity -fipa-pta -flto=3 -flto-compression-level=19 -floop-nest-optimize -floop-parallelize-all -fomit-frame-pointer -fsched-pressure -ftree-vectorize -fuse-linker-plugin -fuse-ld=bfd -fno-asynchronous-unwind-tables -fno-fat-lto-objects -fno-plt -fno-semantic-interposition -fno-stack-protector -s -g0 -w -Wno-incompatible-pointer-types  -Wno-error=incompatible-pointer-types " -cclib "-lz  " -cclib -lbz2 \
  \
  \
  \
  \
  \
  \
-I build    
/usr/bin/ocamlopt.opt -inline 10 -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60    -I src/utils/extlib  -I src/utils/cdk  -I src/utils/bitstring  -I src/utils/lib  -I src/utils/ocamlrss  -I src/utils/xml-light  -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui  -I src/config/unix  -I src/networks/fileTP  -I src/networks/donkey -I +camlp4  -c tools/mld_hash.ml
/usr/bin/ocamlopt.opt -inline 10 -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60    -I src/utils/extlib  -I src/utils/cdk  -I src/utils/bitstring  -I src/utils/lib  -I src/utils/ocamlrss  -I src/utils/xml-light  -I src/utils/net  -I tools  -I src/daemon/common  -I src/daemon/driver  -I src/utils/mp3tagui  -I src/config/unix  -I src/networks/fileTP  -I src/networks/donkey -I +camlp4  -c tools/copysources.ml
File "tools/copysources.ml", line 1:
Warning 70 [missing-mli]: Cannot find interface file.
File "tools/mld_hash.ml", line 63, characters 23-24:
63 |   let t = Tiger.string s in
                            ^
Error: This expression has type bytes but an expression was expected of type
         string
make[1]: *** [Makefile:5444: tools/mld_hash.cmx] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/portage/net-p2p/mldonkey-9999/work/mldonkey-9999'
make: *** [Makefile:5203: utils] Error 2
 * ERROR: net-p2p/mldonkey-9999::pg_overlay failed (compile phase):
 *   emake failed
@perfect7gentleman perfect7gentleman changed the title mldonkey build error: This expression has type bytes but an expression was expected of type mldonkey build error: This expression has type bytes but an expression was expected of type string Jul 10, 2024
@ogarcia
Copy link

ogarcia commented Jul 12, 2024

Yes, this is due to recent changes introduced since commit 215aef2. If you compile the code in this commit 591a3a2 you don't have that problem.

@ygrek
Copy link
Owner

ygrek commented Jul 29, 2024

what @ogarcia said

@ygrek ygrek closed this as completed Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants