On emerging =dev-ml/lablgtk-2.18.5, the build fails with the following error message: File "gpointer.ml", line 145, characters 30-31: 145 | let reg' = region_of_string s in ^ Error: This expression has type bytes but an expression was expected of type string Reproducible: Always Steps to Reproduce: 1. emerge =dev-ml/lablgtk-2.18.5 Portage 2.3.84 (python 2.7.17-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.30-r3, 5.4.6-gentoo x86_64) ================================================================= System uname: Linux-5.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-8850H_CPU_@_2.60GHz-with-gentoo-2.6 KiB Mem: 32365404 total, 10053544 free KiB Swap: 71412732 total, 71412016 free Timestamp of repository gentoo: Sat, 28 Dec 2019 16:25:47 +0000 Head commit of repository gentoo: befeedf5949071c400f0190461a4bf07b1ab491c sh bash 5.0_p11 ld GNU ld (Gentoo 2.33.1 p1) 2.33.1 app-shells/bash: 5.0_p11::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17::gentoo, 3.6.10::gentoo, 3.7.6::gentoo dev-util/cmake: 3.16.2-r1::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r2::gentoo sys-devel/binutils: 2.33.1::gentoo sys-devel/gcc: 8.3.0-r3::gentoo, 9.2.0-r3::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r3::gentoo Repositories: brother-overlay location: /var/lib/layman/brother-overlay sync-type: laymansync sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git masters: gentoo priority: 50 torbrowser location: /var/lib/layman/torbrowser sync-type: laymansync sync-uri: https://github.com/MeisterP/torbrowser-overlay.git masters: gentoo priority: 50 gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: 1000 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb -ftree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -ggdb -ftree-vectorize" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going -j --load-average 8.0 --with-bdeps=y" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.fau.de/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 apache2 audiofile bash-completion berkdb bluetooth branding bsf bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit crypt css cups curl cvs cxx dbus dga directfb djvu dri dts dv dvd dvdr encode exif fbcon ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp glut gnome gnuplot gphoto2 gpm gstreamer gtk gtk3 gtkhtml gzip handbook iconv icq icu idn ieee1394 imagemagick imap imlib innodb ipv6 jabber java java6 javascript jingle jpeg kde latex lcms ldap libnotify libtirpc lm_sensors lzma lzo mad matroska mhash mime mng mono motif mozilla mp3 mp4 mpeg mplayer musicbrainz mysql mysqli ncurses nls nptl ocamlopt odbc ofx ogg openexr opengl openmp pam pcmcia pcre pdf pic plasma png policykit posix postgres ppds pulseaudio qt3support qt5 rdesktop readline recode rss ruby samba sasl sdl seccomp sharedmem shorten smp sockets sound spell split-usr sqlite sqlite3 ssl startup-notification subversion svg syslog tcl tcpd theora threads tidy tiff truetype udev udisks unicode upower usb vaapi vhosts vim-syntax vnc vorbis wifi wmf wxwidgets x264 xattr xcb xcomposite xft xine xinerama xml xmpp xosd xpm xscreensaver xsl xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please attach the entire build log to this bug report.
Same here - I believe it has to do with the recent upgrade of dev-lang/ocaml to 4.09 (from 4.05).
Created attachment 601740 [details] build log I can also confirm this issue, so I attached my build log.
Version 2.18.8 from here: http://lablgtk.forge.ocamlcore.org/ works fine. I copied lablgtk-2.18.5.ebuild to lablgtk-2.18.8.ebuild in my local overlay.
I also had to change SRC_URI to SRC_URI="https://github.com/garrigue/lablgtk/releases/download/lablgtk2188/${P}.tar.gz" otherwise it downloaded a 2.18.8 named tarball containing a 2.18.5 directory. Once I did that it installed fine.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d00cdf9a2022587a1381c0c6c2d87d3b4babf99 commit 7d00cdf9a2022587a1381c0c6c2d87d3b4babf99 Author: Jason A. Donenfeld <zx2c4@gentoo.org> AuthorDate: 2020-01-07 20:59:56 +0000 Commit: Jason A. Donenfeld <zx2c4@gentoo.org> CommitDate: 2020-01-07 21:00:55 +0000 dev-ml/lablgtk: version bump to 2.18.8 Fixes: https://bugs.gentoo.org/704148 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org> dev-ml/lablgtk/Manifest | 1 + dev-ml/lablgtk/lablgtk-2.18.8.ebuild | 82 ++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+)