Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix charrua-client-lwt build #65

Merged
merged 3 commits into from
Aug 1, 2017
Merged

Fix charrua-client-lwt build #65

merged 3 commits into from
Aug 1, 2017

Conversation

djs55
Copy link
Member

@djs55 djs55 commented Aug 1, 2017

This adds missing dependencies and hopefully re-enables CI for the charrua-client-{lwt,mirage} packages.

This fixes the build. Note the CI isn't building this package at the moment.

Signed-off-by: David Scott <dave@recoil.org>
@djs55 djs55 mentioned this pull request Aug 1, 2017
.travis.yml Outdated
@@ -9,7 +9,7 @@ env:
- PACKAGE="charrua-core"
- TESTS=true
- PINS="charrua-client:. charrua-unix:."
- DEPOPTS="charrua-client charrua-unix"
- DEPOPTS="charrua-client charrua-client-lwt charrua-client-mirage charrua-unix"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the build was not using depopts anymore (since the switch to jbuilder)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, maybe I need to make these PINS?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably

@djs55
Copy link
Member Author

djs55 commented Aug 1, 2017

Since this is a pure OCaml library I don't think we need to test on so many distros in travis -- if it builds in one place it should build everywhere I think. I might shrink the test matrix a bit.

Signed-off-by: David Scott <dave@recoil.org>
@haesbaert
Copy link
Member

haesbaert commented Aug 1, 2017 via email

@djs55
Copy link
Member Author

djs55 commented Aug 1, 2017

@haesbaert If you'd prefer to test more distros, I'll put them back.

(I think I might have used a poor choice of word: by "pure" OCaml I meant "written entirely in OCaml with no C stubs" -- mostly cross-distro testing is useful for finding problems with missing C libraries and header files.)

@djs55
Copy link
Member Author

djs55 commented Aug 1, 2017

I think another dependency is missing:

#=== ERROR while installing charrua-core.0.8 ==================================#
# opam-version         1.2.2
# os                   linux
# command              jbuilder runtest -p charrua-core -j 4
# path                 /home/opam/.opam/4.03.0/build/charrua-core.0.8
# compiler             4.03.0
# exit-code            1
# env-file             /home/opam/.opam/4.03.0/build/charrua-core.0.8/charrua-core-15681-1872ec.env
# stdout-file          /home/opam/.opam/4.03.0/build/charrua-core.0.8/charrua-core-15681-1872ec.out
# stderr-file          /home/opam/.opam/4.03.0/build/charrua-core.0.8/charrua-core-15681-1872ec.err
### stderr ###
# [...]
# /home/opam/.opam/4.03.0/lib/tcpip/tcpip.a(tcpip_checksum.o): In function `camlTcpip_checksum__fun_1205':
# :(.text+0xa): undefined reference to `caml_tcpip_ones_complement_checksum_list'
# /home/opam/.opam/4.03.0/lib/tcpip/tcpip.a(tcpip_checksum.o): In function `camlTcpip_checksum__fun_1207':
# :(.text+0x3a): undefined reference to `caml_tcpip_ones_complement_checksum'
# /home/opam/.opam/4.03.0/lib/tcpip/tcpip.a(tcpip_checksum.o): In function `camlTcpip_checksum__2':
# :(.data+0x58): undefined reference to `caml_tcpip_ones_complement_checksum_list'
# :(.data+0x60): undefined reference to `caml_tcpip_ones_complement_checksum'
# collect2: error: ld returned 1 exit status
# File "caml_startup", line 1:
# Error: Error during linking

The tcpip.unix package contains the checksum C stubs.

Signed-off-by: David Scott <dave@recoil.org>
@djs55
Copy link
Member Author

djs55 commented Aug 1, 2017

OK, CI seems to be fixed!

@djs55 djs55 merged commit 22d6650 into mirage:master Aug 1, 2017
@djs55 djs55 deleted the fix-build-again branch August 1, 2017 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants