Package Details: cppo 1.6.6-1

Git Clone URL: https://aur.archlinux.org/cppo.git (read-only, click to copy)
Package Base: cppo
Description: C-style preprocessor for OCaml
Upstream URL: https://github.com/ocaml-community/cppo
Licenses: BSD
Submitter: J5lx
Maintainer: J5lx
Last Packager: J5lx
Votes: 0
Popularity: 0.000000
First Submitted: 2019-09-04 10:17
Last Updated: 2019-09-04 10:17

Latest Comments

1 2 Next › Last »

condy commented on 2020-02-07 09:51

PKGBUILD works well.

It specifies --prefix /usr --libdir lib/ocaml flags.

hv15 commented on 2020-01-24 14:40

@J5lx FYI following the example PKGBUILD given here, I'm able to build and install cppo correctly. Specifically using the --prefix flag makes it unnecessary to build in chroot or remove opam.

J5lx commented on 2019-12-04 18:15

I’m extremely sorry about the lack of communication, I totally let your comments get buried beneath other stuff.

The problem is most likely that you have OCaml software installed locally through opam. Please check if the directory ~/.opam exists on your system – if it does, rename or remove it and retry building the package.

Alternatively, try building in a clean chroot like algorythmis has done. In my experience this avoids many build failures that can be caused by conflicting system configuration, especially for OCaml packages. The error posted by algorythmis (“target not found: cppo”) only means that this package is not part of any of the binary repos (core, extra, community etc.), the actual build should work just fine right now.

Lastly, if I (or another maintainer) fail to respond to comments, try sending an email (the address can usually be found in the PKGBUILD or on the profile page) instead of flagging the package out-of-date. Personally I have my mail filtering rules set up in a way that gives “hand-crafted” emails higher visibility than any notifications, so when I’m busy I’m much more likely to see those.

Again, I’m super sorry that I didn’t respond earlier, I really messed up there!

algorythmis commented on 2019-10-30 18:34

Same error than @skalkoto @Mr.E @Tyilo @alfa8my

Either inserting mkdir "${srcdir}/usr/doc" before the mv command, or removing the latter make the build work, but then the cppo command doesn't seem to exist.

Attempting to build in a clean chroot with extra-x86_64-build instead returns this:

Checking PKGBUILD
Checking cppo-1.6.6-1-x86_64.pkg.tar.xz
cppo W: ELF file ('usr/bin/cppo') lacks FULL RELRO, check LDFLAGS.
cppo W: ELF file ('usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cmxs') lacks FULL RELRO, check LDFLAGS.
cppo W: ELF file ('usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cmxs') lacks PIE.
==> Running checkpkg
  -> Downloading current versions
error: target not found: cppo
==> WARNING: Skipped checkpkg due to missing packages

skalkoto commented on 2019-10-05 18:20

I get the same error:

Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo/META
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo/dune-package
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo/opam
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/bin/cppo
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/doc/cppo/LICENSE.md
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/doc/cppo/README.md
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/META
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.a
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cma
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cmxa
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cmxs
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/dune-package
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.cmi
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.cmt
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.cmti
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.cmx
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.ml
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.mli
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/opam
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/doc/cppo_ocamlbuild/LICENSE.md
Installing /tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/doc/cppo_ocamlbuild/README.md
mv: cannot stat '/tmp/yaourt-tmp-skalkoto/aur-cppo/pkg/cppo/usr/doc': No such file or directory

Mr.E commented on 2019-10-03 20:10

I'm having the same problem. This is the error message I get when trying to compile it using makepkg -si

==> Making package: cppo 1.6.6-1 (Thu 03 Oct 2019 02:07:05 PM -03)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading cppo-v1.6.6.tbz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   604    0   604    0     0    844      0 --:--:-- --:--:-- --:--:--   843
100 25293  100 25293    0     0  13305      0  0:00:01  0:00:01 --:--:-- 49400
==> Validating source files with sha512sums...
    cppo-v1.6.6.tbz ... Passed
==> Extracting sources...
  -> Extracting cppo-v1.6.6.tbz with bsdtar
==> Starting build()...
==> Starting check()...
==> Entering fakeroot environment...
==> Starting package()...
        opam (internal)
[WARNING] Running as root is not recommended
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo/META
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo/dune-package
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo/opam
Installing /opt/cppo/pkg/cppo/home/emid/.opam/default/bin/cppo
Installing /opt/cppo/pkg/cppo/home/emid/.opam/default/doc/cppo/LICENSE.md
Installing /opt/cppo/pkg/cppo/home/emid/.opam/default/doc/cppo/README.md
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/META
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.a
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cma
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cmxa
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/cppo_ocamlbuild.cmxs
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/dune-package
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.cmi
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.cmt
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.cmti
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.cmx
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.ml
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/ocamlbuild_cppo.mli
Installing /opt/cppo/pkg/cppo/usr/lib/ocaml/cppo_ocamlbuild/opam
Installing /opt/cppo/pkg/cppo/home/emid/.opam/default/doc/cppo_ocamlbuild/LICENSE.md
Installing /opt/cppo/pkg/cppo/home/emid/.opam/default/doc/cppo_ocamlbuild/README.md
mv: cannot stat '/opt/cppo/pkg/cppo/usr/doc': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

J5lx commented on 2019-09-12 15:16

@milk The problem is that you have a per-user copy of ocamlbuild installed on your system which shadows the system-wide version. Please build this package in a clean chroot, or at least remove/rename ~/.opam when building this package. In general, not building packages in a clean chroot on a system which also has stuff installed through opam is practically a recipe for problems.

@Tyilo I can only repeat what I told alfa8my: Since I can’t reproduce your issue myself, I need more information to help you. For starters, the complete build output would be very useful. Alternatively, try building the package in a clean chroot (there is a reason I keep saying this – it really does help in many cases).

Tyilo commented on 2019-09-12 14:50

I have the same problem as @alfa8my

milk commented on 2019-09-10 15:28

Getting this atm:

==> Starting build()...
File "ocamlbuild_plugin/ocamlbuild_cppo.mli", line 1:
Error: /home/milk/.opam/system/lib/ocamlbuild/ocamlbuild_plugin.cmi
       is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.
==> ERROR: A failure occurred in build().

J5lx commented on 2019-09-10 02:36

I can’t reproduce that, the package compiles just fine for me. Can you provide a bit more context? Sometimes local configuration can interfere with the build, in that case building in a clean chroot usually helps.