[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Porting qcow-format to topkg



Hi Frederico!

> Hello everyone, I've been preparing a branch for porting qcow-format to 
> topkg, this is what I have so far [1]. I'm getting the following error on a 
> clean environment (using the build script from [2]), not sure what might be 
> happening:
> 
>     - Solver failed:
>     -     -Ocamlbuild knows of no rules that apply to a target named 
> lib/qcow_s.cmx. This can happen if you ask Ocamlbuild to build a target with 
> the wrong extension (e.g. .opt instead of .native) or if the source files 
> live in directories that have not been specified as include directories.
>     - Backtrace:
>     -   - Failed to build the target lib/qcow_s.cmx

I had a quick look and it seems that you haven't added a .mllib file, e.g. you 
are referencing "lib/qcow.mllib" in pkg/pkg.ml but that file doesn't exist. So 
just create that file with a list of the module (or look at what `oasis` would 
have generated). You will probably also need to create a _tags file to help 
ocamlbuild to select the right options, something like:

```
true : bin_annot, safe_string, package(bytes)
true: warn_error(+1..49), warn(A-4-41-44)

true: package(cstruct ppx_sexp_conv mirage-types.lwt lwt io-page logs astring)

<lib> : include
<lib_test> : include
```

You also need to update .merlin to use the right libraries. Yes, all of that 
duplication is annoying (META, _tags, .merlin) but this is worked on so should 
improve at one point...

I recommend looking at other ported libraries to get a better feel at what is 
needed :-)

Hope this helps,
Thomas

> Btw, I'm getting a 502 error on canopi.mirage.io, is there any known issue?

Me too, not sure what's happening there.

> 
> Thanks!
> 
> [1] 
> https://github.com/mirage/ocaml-qcow/compare/master...fgimenez:topkg?expand=1
> [2] 
> https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
> https://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.