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

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

Closed
barracuda156 opened this issue Aug 8, 2024 · 3 comments

Comments

@barracuda156
Copy link
Contributor

Upon removing a breaking flag #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
Copy link
Owner

ygrek commented Aug 8, 2024

show full configure and build log

@ygrek
Copy link
Owner

ygrek commented Aug 9, 2024

as discussed in #105 this was not git master build

@ygrek ygrek closed this as completed Aug 9, 2024
@barracuda156
Copy link
Contributor Author

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

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

2 participants