ygrek / mldonkey

cross-platform multi-network p2p daemon (previously at http://mldonkey.sourceforge.net/)
Other
253 stars 46 forks source link

Build error: `Error: This expression has type bytes but an expression was expected of type string` #106

Closed barracuda156 closed 2 months ago

barracuda156 commented 2 months ago

Upon removing a breaking flag https://github.com/ygrek/mldonkey/issues/105 the build goes a bit further, but fails here:

ocamlc   -w +a-3-4-6-27-29-32-35-37-41-44-45-48-60  -ccopt "-pipe -Os -arch ppc   -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16  -D_THREAD_SAFE  -o src/utils/lib/md4_cc.o" -ccopt "" -c src/utils/lib/md4.c
+ /opt/local/bin/gcc-mp-13 -arch ppc -O2 -fno-strict-aliasing -fwrapv -pthread  -pipe -Os -arch ppc -D_FILE_OFFSET_BITS=64 -I/opt/local/include   -c  -I /byterun -o src/utils/cdk/zlibstubs.o -pipe -Os -arch ppc   -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16  -D_THREAD_SAFE  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -I/opt/local/include -D_THREAD_SAFE   -I'/opt/local/lib/ocaml' 'src/utils/cdk/zlibstubs.c'
+ /opt/local/bin/gcc-mp-13 -arch ppc -O2 -fno-strict-aliasing -fwrapv -pthread  -pipe -Os -arch ppc -D_FILE_OFFSET_BITS=64 -I/opt/local/include   -c  -I /byterun -o src/config/unix/os_stubs_c.o -pipe -Os -arch ppc   -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16  -D_THREAD_SAFE  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -I/opt/local/include -D_THREAD_SAFE   -I'/opt/local/lib/ocaml' 'src/config/unix/os_stubs_c.c'
File "src/utils/extlib/IO.ml", line 70, characters 22-23:
70 |            let r = i.in_input s !p !l in
                                   ^
Error: This expression has type bytes but an expression was expected of type
         string
make: *** [src/utils/extlib/IO.cmo] Error 2
make: *** Waiting for unfinished jobs....
ygrek commented 2 months ago

show full configure and build log

ygrek commented 2 months ago

as discussed in #105 this was not git master build

barracuda156 commented 2 months ago

@ygrek Yeah, I will try from the master soon, once the machine is free.