Skip to content

configure fails with misleading error message if curses is missing #33

Closed

Description

@timbertson

I installed both pthread and libev via system packages (Fedora 20), so they ought to be in reasonable locations. But I still get "The following recquired C libraries are missing: pthread, libev." when I run ocaml setup.ml -configure --enable-unix

Digging into discover.ml, I modified it to print the location of log_file and not to delete it. Aside: it seems rather awkward to debug this sort of build failure, as everything gets cleaned up immediately even in the case of failure. Unless I've missed a -debug argument or something.

Anyway, the log says:

/tmp/lwt_stub35ffd5.c: In function ‘lwt_test’:
/tmp/lwt_stub35ffd5.c:7:3: warning: null argument where non-null required (argument 1) [-Wnonnull]
   pthread_create(0, 0, 0, 0);
   ^
/tmp/lwt_stub35ffd5.c:7:3: warning: null argument where non-null required (argument 3) [-Wnonnull]
/usr/bin/ld: cannot find -lcurses
collect2: error: ld returned 1 exit status
File "/tmp/lwt_caml396824.ml", line 1:
Error: Error while building custom runtime system

So I've installed ncurses-devel, and that fixed it. To be honest I'm not sure what is requiring -lcurses since the word "curses" doesn't appear in the lwt repo, but I thought you'd like to know.

Activity

  1. timbertson commented on Jan 17, 2014

    @timbertson
    ContributorAuthor

    Ahh right, thanks for figuring that out - that would be my fault for installing opam from source and then moving it to a machine without its dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions