[exp - 140amd64-default-build-as-user][graphics/ocaml-images] Failed for ocaml-images-4.0.1_13,2 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Thu, 22 Feb 2024 20:51:41 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     michael.grunewald@laposte.net
Log URL:        https://pkg-status.freebsd.org/package19/data/140amd64-default-build-as-user/8c88119c5f21/logs/ocaml-images-4.0.1_13,2.log
Build URL:      https://pkg-status.freebsd.org/package19/build.html?mastername=140amd64-default-build-as-user&build=8c88119c5f21
Log:

=>> Building graphics/ocaml-images
build started at Thu Feb 22 20:51:27 UTC 2024
port directory: /usr/ports/graphics/ocaml-images
package name: ocaml-images-4.0.1_13,2
building for: FreeBSD 140amd64-default-build-as-user-job-12 14.0-RELEASE-p5 FreeBSD 14.0-RELEASE-p5 amd64
maintained by: michael.grunewald@laposte.net
Makefile datestamp: -rw-r--r--  1 root wheel 2247 Nov 29 00:02 /usr/ports/graphics/ocaml-images/Makefile
Ports top last git commit: 8c88119c5f2
Ports top unclean checkout: no
Port dir last git commit: 1ab547de872
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1-1-g1e9f97d6
Host OSVERSION: 1500006
Jail OSVERSION: 1400097
Job Id: 12

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400097
UNAME_v=FreeBSD 14.0-RELEASE-p5
UNAME_r=14.0-RELEASE-p5
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1-1-g1e9f97d6
MASTERMNT=/poudriere/data/.m/140amd64-default-build-as-user/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
GID=0
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
UID=0
PWD=/poudriere/data/.m/140amd64-default-build-as-user/12/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=140amd64-default-build-as-user
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/poudriere/data/.m/140amd64-default-build-as-user/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1-1-g1e9f97d6
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for ocaml-images-4.0.1_13,2:
     DOCS=on: Build and/or install documentation
     FREETYPE=on: TrueType font rendering support
     GHOSTSCRIPT=on: Ghostscript support
     GIF=on: GIF image format support
     GTK2=off: GTK 2 GUI toolkit support
     JPEG=on: JPEG image format support
     PNG=on: PNG image format support
     TIFF=on: TIFF image format support
     XPM=on: XPM pixmap image format support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
michael.grunewald@laposte.net
--End MAINTAINER--

--CONFIGURE_ARGS--
--with-freetype --with-gs --with-gif --without-liblgtk2 --with-jpeg --with-png --with-tiff --with-xpm
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/graphics/ocaml-images/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/graphics/ocaml-images/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/graphics/ocaml-images/work/.cache  HOME=/wrkdirs/usr/ports/graphics/ocaml-images/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/graphics/ocaml-images/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/graphics/ocaml-images/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
OCAMLFIND_DESTDIR="/wrkdirs/usr/ports/graphics/ocaml-images/work/stage/usr/local/lib/ocaml/site-lib"  OCAMLFIND_LDCONF="/usr/local/lib/ocaml/ld.conf" XDG_DATA_HOME=/wrkdirs/usr/ports/graphics/ocaml-images/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/graphics/ocaml-images/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/graphics/ocaml-images/work/.cache  HOME=/wrkdirs/usr/ports/graphics/ocaml-images/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/graphics/ocaml-images/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/graphics/ocaml-images/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-s
trong -fno-strict-aliasing  " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PORTDOCS="" DOCS="" NO_DOCS="@comment " FREETYPE="" NO_FREETYPE="@comment " GHOSTSCRIPT="" NO_GHOSTSCRIPT="@comment " GIF="" NO_GIF="@comment " GTK2="@comment " NO_GTK2="" JPEG="" NO_JPEG="@comment " PNG="" NO_PNG="@comment " TIFF="" NO_TIFF="@comment " XPM="" NO_XPM="@comment " OCAML_SITELIBDIR="lib/ocaml/site-lib" OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/images"  EXAMPLESDIR="share/examples/images"  DATADIR="share/images"  WWWDIR="www/images"  ETCDIR="etc/images"
--End PLIST_SUB--

--SUB_LIST--
 DOCS="" NO_DOCS="@comment " FREETYPE="" NO_FREETYPE="@comment " GHOSTSCRIPT="" NO_GHOSTSCRIPT="@comment " GIF="" NO_GIF="@comment " GTK2="@comment " NO_GTK2="" JPEG="" NO_JPEG="@comment " PNG="" NO_PNG="@comment " TIFF="" NO_TIFF="@comment " XPM="" NO_XPM="@comment " PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/images DOCSDIR=/usr/local/share/doc/images EXAMPLESDIR=/usr/local/share/examples/images  WWWDIR=/usr/local/www/images ETCDIR=/usr/local/etc/images
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ocaml-images-4.0.1_13,2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.20.9_1.pkg
[140amd64-default-build-as-user-job-12] Installing pkg-1.20.9_1...
[140amd64-default-build-as-user-job-12] Extracting pkg-1.20.9_1: .......... done
===>   ocaml-images-4.0.1_13,2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of ocaml-images-4.0.1_13,2
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Fetching all distfiles required by ocaml-images-4.0.1_13,2 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Fetching all distfiles required by ocaml-images-4.0.1_13,2 for building
=> SHA256 Checksum OK for ocaml-images/v4.0.1.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ocaml-images-4.0.1_13,2 depends on file: /usr/local/bin/ocamlc - not found
===>   Installing existing package /packages/All/ocaml-4.08.1_1.pkg
[140amd64-default-build-as-user-job-12] Installing ocaml-4.08.1_1...
[140amd64-default-build-as-user-job-12] `-- Installing binutils-2.40_5,1...
[140amd64-default-build-as-user-job-12] |   `-- Installing gettext-runtime-0.22.3_1...
[140amd64-default-build-as-user-job-12] |   | `-- Installing indexinfo-0.3.1...
[140amd64-default-build-as-user-job-12] |   | `-- Extracting indexinfo-0.3.1: .... done
[140amd64-default-build-as-user-job-12] |   `-- Extracting gettext-runtime-0.22.3_1: .......... done
[140amd64-default-build-as-user-job-12] |   `-- Installing zstd-1.5.5_1...
[140amd64-default-build-as-user-job-12] |   | `-- Installing liblz4-1.9.4_1,1...
[140amd64-default-build-as-user-job-12] |   | `-- Extracting liblz4-1.9.4_1,1: .......... done
[140amd64-default-build-as-user-job-12] |   `-- Extracting zstd-1.5.5_1: .......... done
[140amd64-default-build-as-user-job-12] `-- Extracting binutils-2.40_5,1: .......... done
[140amd64-default-build-as-user-job-12] `-- Installing libX11-1.8.7_1,1...
[140amd64-default-build-as-user-job-12] |   `-- Installing libxcb-1.15_2...
[140amd64-default-build-as-user-job-12] |   | `-- Installing libXau-1.0.9_1...
[140amd64-default-build-as-user-job-12] |   | `-- Extracting libXau-1.0.9_1: .......... done
[140amd64-default-build-as-user-job-12] |   | `-- Installing libXdmcp-1.1.3...
[140amd64-default-build-as-user-job-12] |   |   `-- Installing xorgproto-2023.2...
[140amd64-default-build-as-user-job-12] |   |   `-- Extracting xorgproto-2023.2: .......... done
[140amd64-default-build-as-user-job-12] |   | `-- Extracting libXdmcp-1.1.3: ......... done
[140amd64-default-build-as-user-job-12] |   `-- Extracting libxcb-1.15_2: .......... done
[140amd64-default-build-as-user-job-12] `-- Extracting libX11-1.8.7_1,1: .......... done
[140amd64-default-build-as-user-job-12] Extracting ocaml-4.08.1_1: .......... done
===>   ocaml-images-4.0.1_13,2 depends on file: /usr/local/bin/ocamlc - found
===>   Returning to build of ocaml-images-4.0.1_13,2
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===> Fetching all distfiles required by ocaml-images-4.0.1_13,2 for building
===>  Extracting for ocaml-images-4.0.1_13,2
=> SHA256 Checksum OK for ocaml-images/v4.0.1.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ocaml-images-4.0.1_13,2 depends on file: /usr/local/bin/ocamlc - found
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Patching for ocaml-images-4.0.1_13,2
<snip>
388 |           str.[0] <- char_of_int (int_of_char str.[0] lor 0x01);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "gif.ml", line 389, characters 10-63:
389 |           str.[3] <- char_of_int frame.frame_bitmap.transparent
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "gif.ml", line 391, characters 10-64:
391 |           str.[0] <- char_of_int (int_of_char str.[0] land 0xfe);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "gif.ml", line 392, characters 10-27:
392 |           str.[3] <- '\000'
                ^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "gif.ml", line 394, characters 8-58:
394 |         str.[1] <- char_of_int (frame.frame_delay mod 256);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "gif.ml", line 395, characters 8-56:
395 |         str.[2] <- char_of_int (frame.frame_delay / 256);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "gif.ml", line 459, characters 14-27:
459 |     let str = String.create len in
                    ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
- build src jpeg.cmo
+ ocamlfind ocamlc -package graphics -unsafe-string -I . -o jpeg.cmo -c jpeg.ml
File "jpeg.ml", line 98, characters 21-34:
98 |       let scanline = String.create (w * 3) in
                          ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "jpeg.ml", line 144, characters 14-27:
144 |     let buf = String.create (width * 4) in
                    ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "jpeg.ml", line 150, characters 6-46:
150 |       buf.[x * 4 + 0] <- char_of_int (255 - c);
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "jpeg.ml", line 151, characters 6-46:
151 |       buf.[x * 4 + 1] <- char_of_int (255 - m);
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "jpeg.ml", line 152, characters 6-46:
152 |       buf.[x * 4 + 2] <- char_of_int (255 - y);
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "jpeg.ml", line 153, characters 6-46:
153 |       buf.[x * 4 + 3] <- char_of_int (255 - k)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "jpeg.ml", line 182, characters 12-25:
182 |     let s = String.create (256 * 4) in
                  ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "jpeg.ml", line 185, characters 6-36:
185 |       s.[x * 4 + 0] <- char_of_int c;
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "jpeg.ml", line 186, characters 6-36:
186 |       s.[x * 4 + 1] <- char_of_int m;
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "jpeg.ml", line 187, characters 6-36:
187 |       s.[x * 4 + 2] <- char_of_int y;
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "jpeg.ml", line 188, characters 6-36:
188 |       s.[x * 4 + 3] <- char_of_int k;
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.set
Use Bytes.set instead.
File "jpeg.ml", line 210, characters 14-27:
210 |     let str = String.create 4 in
                    ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "jpeg.ml", line 223, characters 14-27:
223 |       let s = String.create (blocklen - 2) in
                    ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "jpeg.ml", line 233, characters 14-27:
233 |     let str = String.create len in
                    ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "jpeg.ml", line 244, characters 6-25:
244 |       Pervasives.close_in ic;
            ^^^^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims
File "jpeg.ml", line 252, characters 6-25:
252 |       Pervasives.close_in ic;
            ^^^^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims
- build src tiff.cmo
+ ocamlfind ocamlc -package graphics -unsafe-string -I . -o tiff.cmo -c tiff.ml
File "tiff.ml", line 48, characters 7-20:
48 |       	String.create (w * 3)
            ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "tiff.ml", line 52, characters 7-20:
52 |       	String.create (w * 4)
            ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "tiff.ml", line 58, characters 1-14:
58 | 	String.create ((w + 7) / 8)
      ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "tiff.ml", line 64, characters 1-14:
64 | 	String.create ((w + 7) / 8) in
      ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "tiff.ml", line 110, characters 14-27:
110 |     let str = String.create len in
                    ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "tiff.ml", line 112, characters 4-23:
112 |     Pervasives.close_in ic;
          ^^^^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims
File "tiff.ml", line 125, characters 6-25:
125 |       Pervasives.close_in ic;
            ^^^^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims
- build src fttext.cmo
+ ocamlfind ocamlc -package graphics -unsafe-string -I . -o fttext.cmo -c fttext.ml
File "fttext.ml", line 29, characters 12-24:
29 |   let ary = Array.create (String.length s) 0 in
                 ^^^^^^^^^^^^
Alert deprecated: Stdlib.Array.create
Use Array.make instead.
- build src xvthumb.cmo
+ ocamlfind ocamlc -package graphics -unsafe-string -I . -o xvthumb.cmo -c xvthumb.ml
File "xvthumb.ml", line 22, characters 12-25:
22 |   let buf = String.create 7 in
                 ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "xvthumb.ml", line 82, characters 12-25:
82 |   let str = String.create length in
                 ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
File "xvthumb.ml", line 165, characters 7-20:
165 |       (String.create (nw * nh))
             ^^^^^^^^^^^^^
Alert deprecated: Stdlib.String.create
Use Bytes.create instead.
 ^
20 warnings generated.
*** omake: 445/661 targets are up to date
*** omake: failed (1.73 sec, 104/104 scans, 97/119 rules, 273/340 digests)
*** omake: targets were not rebuilt because of errors:
   src/gifwrite.o
      depends on: src/gifwrite.c
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/ocaml-images