Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674482 - app-text/cpdf-2.2.1 - src_compile(): File "cpdf.ml", line 302, characters 12-37: Error: This function has type string option -> string option -> Pdfio.input -> Pdf.t It is applied to too many arguments; maybe you forgot a `;'.
Summary: app-text/cpdf-2.2.1 - src_compile(): File "cpdf.ml", line 302, characters 12-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-04 09:50 UTC by Pacho Ramos
Modified: 2019-11-18 21:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2019-01-04 09:50:34 UTC
I get;
I get:
ocamlfind ocamlopt -package camlpdf -c -annot -g -w -3 -annot cpdfstrftime.ml
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Pdfutil, and its interface was not compiled with -opaque
ocamlfind ocamlc -package camlpdf -c -annot cpdf.mli
ocamlfind ocamlopt -package camlpdf -c -annot -g -w -3 -annot cpdf.ml
File "cpdf.ml", line 302, characters 12-37:
Error: This function has type
         string option -> string option -> Pdfio.input -> Pdf.t
       It is applied to too many arguments; maybe you forgot a `;'.
make[1]: *** [OCamlMakefile:1076: cpdf.cmx] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-text/cpdf-2.2.1/work/cpdf-source-2.2.1'
make: *** [OCamlMakefile:777: native-code] Error 2
 * ERROR: app-text/cpdf-2.2.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-text/cpdf-2.2.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/cpdf-2.2.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/cpdf-2.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/cpdf-2.2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/cpdf-2.2.1/work/cpdf-source-2.2.1'
 * S: '/var/tmp/portage/app-text/cpdf-2.2.1/work/cpdf-source-2.2.1'
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (app-text/cpdf-2.2.1:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/app-text/cpdf-2.2.1/temp/build.log'
 * 

Portage 2.3.51 (python 2.7.15-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.3.0, glibc-2.27-r6, 4.19.9-gentoo x86_64)
=================================================================
System uname: Linux-4.19.9-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-2.6
KiB Mem:     3971468 total,   1519296 free
KiB Swap:    6286332 total,   6066228 free
Timestamp of repository gentoo: Thu, 03 Jan 2019 11:15:01 +0000
Head commit of repository gentoo: e114185f9b8e1c8a577fa39d1c5106885632616a
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.8::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

fisi35
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
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="-O2 -pipe -march=native"
DISTDIR="/usr/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write --keep-going --autounmask-keep-masks --backtrack=200"
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-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/es -/usr/share/locale/es_ES -/usr/share/locale/en -/usr/share/locale/en_US -/usr/share/locale/en_GB -/usr/share/locale/en@boldquot -/usr/share/locale/en@quot -/usr/share/locale/en@shaw"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es es_ES en_GB en_US en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage"
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 \ a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cddb cdr cli colord crypt cups cxx dbus djvu dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg flac foomaticdb fortran gdbm gif gimp git glamor gnome gnome-keyring gnome-online-accounts google gpm gstreamer gtk iconv introspection ios java jpeg jpeg2k kpathsea latex lcms libnotify libsecret libtirpc luatex lzma mad mms mmx mmxext mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pch pcre pdf png policykit ppds pulseaudio qt5 raw readline sdl seccomp spell sse sse2 sse3 sse4_1 ssl ssse3 startup-notification subversion svg systemd t1lib tcpd theora tiff tracker truetype udev udisks unicode upower usb vaapi vdpau vorbis wxwidgets x264 xattr xcb xml xmp xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="es es-ES en-GB en-US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nouveau vesa" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tim Harder gentoo-dev 2019-01-04 18:35:48 UTC
What version of ocaml do you have installed?
Comment 2 Pacho Ramos gentoo-dev 2019-01-05 12:43:40 UTC
I have 4.04.2-r1
Comment 3 edes 2019-01-12 00:08:19 UTC
(In reply to Pacho Ramos from comment #2)
> I have 4.04.2-r1

I have the same problem with ocaml-4.05.0-r1.
Comment 4 Bob Johnson 2019-09-28 21:55:58 UTC
I ran into the same error. The ebuild for app-text/cpdf-2.2.1 should depend on dev-ml/camlpdf-2.2.1. Using the earlier dev-ml/camlpdf-2.1.1 library at build time will produce this error. I had to upgrade to the latest camlpdf version AND rebuild dev-lang/ocaml-4.04.2-r1 itself before I could get app-text/cpdf-2.2.1 to build and install cleanly.
Comment 5 Tim Harder gentoo-dev 2019-11-18 21:48:20 UTC
Should be fixed in cpdf-2.3 which version locks its camlpdf dep.