mirage / mirage-entropy

Entropy driver for MirageOS -- this has been imported into https://github.com/mirage/mirage-crypto
http://openmirage.org/
BSD 2-Clause "Simplified" License
12 stars 11 forks source link

Error building on TravisCI #27

Closed amirmc closed 9 years ago

amirmc commented 9 years ago

I'm trying to update my travis scripts for building my site and came across the following. I'm not actually trying to build a secure unikernel (yet) so don't really need entropy. Am I doing something wrong?

from https://travis-ci.org/amirmc/amirmc.github.com/jobs/69440139#L567

#=== ERROR while installing mirage-entropy-xen.0.3.0 ==========================#
# opam-version 1.2.2
# os           linux
# command      make
# path         /home/travis/.opam/system/build/mirage-entropy-xen.0.3.0
# compiler     system (4.02.1)
# exit-code    2
# env-file     /home/travis/.opam/system/build/mirage-entropy-xen.0.3.0/mirage-entropy-xen-13314-3a52b4.env
# stdout-file  /home/travis/.opam/system/build/mirage-entropy-xen.0.3.0/mirage-entropy-xen-13314-3a52b4.out
# stderr-file  /home/travis/.opam/system/build/mirage-entropy-xen.0.3.0/mirage-entropy-xen-13314-3a52b4.err
### stdout ###
# ocaml setup.ml -build 
# ocamlfind ocamlopt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# /home/travis/.opam/system/bin/ocamlfind ocamlc -ccopt -O3 -ccopt '-std=c99' -ccopt -Wall -ccopt -Wpedantic -ccopt '-isystem/home/travis/.opam/system/lib/pkgconfig/../../include/minios-xen -isystem/home/travis/.opam/system/lib/pkgconfig/../../include/minios-xen/posix -m64 -mno-red-zone -fno-reorder-blocks -fno-stack-protector -fno-asynchronous-unwind-tables -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -U__linux__ -U__FreeBSD__ -U__sun__ -U__linux -D__MINIOS__ -I/home/travis/.opam/system/lib/pkgconfig/../../include/mirage-xen/include -I/home/travis/.opam/system/lib/pkgconfig/../../include/mirage-xen-ocaml/include -I/home/travis/.opam/system/lib/pkgconfig/../../include/mirage-xen-posix/include -I/home/travis/.opam/system/include  ' -ccopt -mrdrnd -ccopt -mrdseed -c lib/entropy_cpu_xen_stubs.c
# + /home/travis/.opam/system/bin/ocamlfind ocamlc -ccopt -O3 -ccopt '-std=c99' -ccopt -Wall -ccopt -Wpedantic -ccopt '-isystem/home/travis/.opam/system/lib/pkgconfig/../../include/minios-xen -isystem/home/travis/.opam/system/lib/pkgconfig/../../include/minios-xen/posix -m64 -mno-red-zone -fno-reorder-blocks -fno-stack-protector -fno-asynchronous-unwind-tables -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -U__linux__ -U__FreeBSD__ -U__sun__ -U__linux -D__MINIOS__ -I/home/travis/.opam/system/lib/pkgconfig/../../include/mirage-xen/include -I/home/travis/.opam/system/lib/pkgconfig/../../include/mirage-xen-ocaml/include -I/home/travis/.opam/system/lib/pkgconfig/../../include/mirage-xen-posix/include -I/home/travis/.opam/system/include  ' -ccopt -mrdrnd -ccopt -mrdseed -c lib/entropy_cpu_xen_stubs.c
# cc1: error: unrecognized command line option ‘-mrdseed’
# cc1: error: unrecognized command line option ‘-Wpedantic’
# Command exited with code 2.
### stderr ###
# E: Failure("Command ''/usr/bin/ocamlbuild' lib/libmirage-entropy-xen_stubs.a lib/dllmirage-entropy-xen_stubs.so lib/mirage-entropy-xen.cma lib/mirage-entropy-xen.cmxa lib/mirage-entropy-xen.a lib/mirage-entropy-xen.cmxs -use-ocamlfind -tag debug' terminated with error code 10")
# make: *** [build] Error 1
hannesm commented 9 years ago

add UPDATE_GCC_BINUTILS=1 to your .travis.yml, as done here... the problem is that travis runs on arcane infrastructure which needs a newer gcc and binutils.

amirmc commented 9 years ago

Thanks! Following this through and will close this issue once things are working. I'm not using the travis skeleton, hence doing this manually.

amirmc commented 9 years ago

Figured it all out and scripts working now. Thanks!