Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Build errors #28

Closed
samoht opened this issue Oct 28, 2014 · 17 comments
Closed

Build errors #28

samoht opened this issue Oct 28, 2014 · 17 comments

Comments

@samoht
Copy link
Member

samoht commented Oct 28, 2014

===== ERROR while installing mirage-console.2.0.0 =====
# opam-version 1.1.1
# os           linux
# command      make PREFIX=/home/travis/.opam/system
# path         /home/travis/.opam/system/build/mirage-console.2.0.0
# compiler     system (4.01.0)
# exit-code    2
# env-file     /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.env
# stdout-file  /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.out
# stderr-file  /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.err
### stdout ###
# ./setup.bin -configure --enable-miragexen --enable-xen --enable-tests --prefix /home/travis/.opam/system
### stderr ###
# ...[truncated]
# W: Field 'pkg_xen_evtchn_unix' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-evtchn.unix > '/tmp/oasis-2649ab.txt'' terminated with error code 2
# ocamlfind: Package `xen-evtchn.unix.activations' not found
# W: Field 'pkg_xen_evtchn_unix_activations' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-evtchn.unix.activations > '/tmp/oasis-e326e7.txt'' terminated with error code 2
# ocamlfind: Package `xen-gnt.unix' not found
# W: Field 'pkg_xen_gnt_unix' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-gnt.unix > '/tmp/oasis-ed788e.txt'' terminated with error code 2
# E: Cannot find findlib package xen-evtchn.unix
# E: Cannot find findlib package xen-evtchn.unix.activations
# E: Cannot find findlib package xen-gnt.unix
# E: Failure("3 configuration errors")
# make: *** [setup.data] Error 1

(see https://travis-ci.org/mirage/mirage/builds/39168291)

@avsm
Copy link
Member

avsm commented Oct 28, 2014

This is a new one... an opam/oasis mismatch on depext probably

On 28 Oct 2014, at 09:02, Thomas Gazagnaire notifications@github.com wrote:

===== ERROR while installing mirage-console.2.0.0 =====

opam-version 1.1.1

os linux

command make PREFIX=/home/travis/.opam/system

path /home/travis/.opam/system/build/mirage-console.2.0.0

compiler system (4.01.0)

exit-code 2

env-file /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.env

stdout-file /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.out

stderr-file /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.err

stdout

./setup.bin -configure --enable-miragexen --enable-xen --enable-tests --prefix /home/travis/.opam/system

stderr

...[truncated]

W: Field 'pkg_xen_evtchn_unix' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-evtchn.unix > '/tmp/oasis-2649ab.txt'' terminated with error code 2

ocamlfind: Package `xen-evtchn.unix.activations' not found

W: Field 'pkg_xen_evtchn_unix_activations' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-evtchn.unix.activations > '/tmp/oasis-e326e7.txt'' terminated with error code 2

ocamlfind: Package `xen-gnt.unix' not found

W: Field 'pkg_xen_gnt_unix' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-gnt.unix > '/tmp/oasis-ed788e.txt'' terminated with error code 2

E: Cannot find findlib package xen-evtchn.unix

E: Cannot find findlib package xen-evtchn.unix.activations

E: Cannot find findlib package xen-gnt.unix

E: Failure("3 configuration errors")

make: *** [setup.data] Error 1

(see https://travis-ci.org/mirage/mirage/builds/39168291 https://travis-ci.org/mirage/mirage/builds/39168291)


Reply to this email directly or view it on GitHub #28.

@djs55
Copy link
Member

djs55 commented Oct 28, 2014

If this happens (formatting may be messed up)

./configure
Looking for xenctrl.h: missing

then this will happen

Building mirage-console.2.0.0:
  make PREFIX=/home/travis/.opam/system
  make install PREFIX=/home/travis/.opam/system
./setup.bin -configure --enable-miragexen --enable-xen --enable-tests --prefix /home/travis/.opam/system
ocamlfind: Package `xen-evtchn.unix' not found

On Tue, Oct 28, 2014 at 9:02 AM, Thomas Gazagnaire <notifications@github.com

wrote:

===== ERROR while installing mirage-console.2.0.0 =====

opam-version 1.1.1

os linux

command make PREFIX=/home/travis/.opam/system

path /home/travis/.opam/system/build/mirage-console.2.0.0

compiler system (4.01.0)

exit-code 2

env-file /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.env

stdout-file /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.out

stderr-file /home/travis/.opam/system/build/mirage-console.2.0.0/mirage-console-27379-42737e.err

stdout

./setup.bin -configure --enable-miragexen --enable-xen --enable-tests --prefix /home/travis/.opam/system

stderr

...[truncated]

W: Field 'pkg_xen_evtchn_unix' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-evtchn.unix > '/tmp/oasis-2649ab.txt'' terminated with error code 2

ocamlfind: Package `xen-evtchn.unix.activations' not found

W: Field 'pkg_xen_evtchn_unix_activations' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-evtchn.unix.activations > '/tmp/oasis-e326e7.txt'' terminated with error code 2

ocamlfind: Package `xen-gnt.unix' not found

W: Field 'pkg_xen_gnt_unix' is not set: Command ''/home/travis/.opam/system/bin/ocamlfind' query -format %d xen-gnt.unix > '/tmp/oasis-ed788e.txt'' terminated with error code 2

E: Cannot find findlib package xen-evtchn.unix

E: Cannot find findlib package xen-evtchn.unix.activations

E: Cannot find findlib package xen-gnt.unix

E: Failure("3 configuration errors")

make: *** [setup.data] Error 1

(see https://travis-ci.org/mirage/mirage/builds/39168291)


Reply to this email directly or view it on GitHub
#28.

Dave Scott

@djs55
Copy link
Member

djs55 commented Oct 28, 2014

I guess the 'xenctrl.h' soft failure is causing a cascade. I guess either we make the 'xenctrl.h' a hard failure at the beginning and add the external dependency on xen-devel or make downstream packages also fail soft.

@djs55
Copy link
Member

djs55 commented Oct 28, 2014

If everything failed soft it would be a PITA because you'd have to reinstall everything after installing xen-devel with apt-get.

@samoht
Copy link
Member Author

samoht commented Oct 28, 2014

xenctrl.h is supposed to be a soft dependency, isn't it?

@avsm
Copy link
Member

avsm commented Oct 28, 2014

yes, its a soft dependency. this is the bug

On 28 Oct 2014, at 10:08, Thomas Gazagnaire notifications@github.com wrote:

xenctrl.h is supposed to be a soft dependency, isn't it?


Reply to this email directly or view it on GitHub #28 (comment).

@samoht
Copy link
Member Author

samoht commented Oct 28, 2014

(how do we build mirage-console on OSX otherwise?)

@djs55
Copy link
Member

djs55 commented Oct 28, 2014

Ah OSX. Blame the build failure on yosemite? :)

On Tue, Oct 28, 2014 at 10:09 AM, Thomas Gazagnaire <
notifications@github.com> wrote:

(how do we build mirage-console on OSX otherwise?)


Reply to this email directly or view it on GitHub
#28 (comment)
.

Dave Scott

@samoht
Copy link
Member Author

samoht commented Oct 28, 2014

@djs55 I think I see your point. We have --enable-xen but the xenctrl.h headers are not correctly installed.

@samoht
Copy link
Member Author

samoht commented Oct 28, 2014

See #29

@samoht
Copy link
Member Author

samoht commented Oct 28, 2014

@avsm I can add libxen-dev as a depext of ocaml-gnt if you think that's useful.

@avsm
Copy link
Member

avsm commented Oct 28, 2014

not looked at it, but sounds sensible...

@samoht
Copy link
Member Author

samoht commented Oct 28, 2014

The only issue is that it is not a hard depext. ie. you can still install things if you don't have it, as it is the case on OSX. But I think that's fine ...

@avsm
Copy link
Member

avsm commented Oct 28, 2014

why not just fix it to not enable --xen if libxenctrl is not found?

@samoht
Copy link
Member Author

samoht commented Oct 28, 2014

That's what #29 does :-)

@samoht
Copy link
Member Author

samoht commented Oct 28, 2014

And the depext is already there actually. The Travis scripts in mirage are just not looking at it at all. This is (kind of) fixed by mirage/mirage#310

@samoht samoht closed this as completed Oct 31, 2014
@samoht
Copy link
Member Author

samoht commented Oct 31, 2014

This is now fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants