{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/opam-repository/issues/5098","repository_url":"https://api.github.com/repos/ocaml/opam-repository","labels_url":"https://api.github.com/repos/ocaml/opam-repository/issues/5098/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/opam-repository/issues/5098/comments","events_url":"https://api.github.com/repos/ocaml/opam-repository/issues/5098/events","html_url":"https://github.com/ocaml/opam-repository/issues/5098","id":115910129,"number":5098,"title":"Opam fail to build ocamlfind","user":{"login":"tychota","id":13785185,"avatar_url":"https://avatars.githubusercontent.com/u/13785185?v=3","gravatar_id":"","url":"https://api.github.com/users/tychota","html_url":"https://github.com/tychota","followers_url":"https://api.github.com/users/tychota/followers","following_url":"https://api.github.com/users/tychota/following{/other_user}","gists_url":"https://api.github.com/users/tychota/gists{/gist_id}","starred_url":"https://api.github.com/users/tychota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tychota/subscriptions","organizations_url":"https://api.github.com/users/tychota/orgs","repos_url":"https://api.github.com/users/tychota/repos","events_url":"https://api.github.com/users/tychota/events{/privacy}","received_events_url":"https://api.github.com/users/tychota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-09T16:15:04Z","updated_at":"2016-03-13T20:00:15Z","closed_at":null,"body":"cc @gerdstolpmann\r\ntested with \r\n\r\nplateform | opam version | ocaml compilateur\r\n-------------|-------------------|-------------------\r\nubuntu 15.10 | stable repo opam | stable repo ocaml\r\nubuntu 15.10 |  ppa opam | ppa ocaml\r\nubuntu 15.10 |  curl opam | stable repo ocaml\r\nubuntu 15.10 |  curl opam | build from source ocaml\r\n\r\n*(Zsh is my main shell but switching to bash is exactly the same.)*\r\n\r\nrunning `opam install ocaml`\r\n\r\nget me \r\n\r\n```bash\r\nfor p in findlib; do ( cd src/$p; make all ) || exit; done\r\nmake[1]: Entering directory '/home/me/.opam/system/build/ocamlfind.1.5.6/src/findlib'\r\nocamllex fl_meta.mll\r\n22 states, 392 transitions, table size 1700 bytes\r\nocamldep *.ml *.mli >depend\r\nUSE_CYGPATH=\"0\"; \\\r\nexport USE_CYGPATH; \\\r\ncat findlib_config.mlp | \\\r\n\t../../tools/patch '@CONFIGFILE@' '/home/me/.opam/system/lib/findlib.conf' | \\\r\n\t../../tools/patch '@STDLIB@' '/usr/lib/ocaml' | \\\r\n\tsed -e 's;@AUTOLINK@;true;g' \\\r\n\t    -e 's;@SYSTEM@;system: linux;g' \\\r\n\t     >findlib_config.ml\r\nMakefile:79: recipe for target 'findlib_config.ml' failed\r\nmake[1]: Leaving directory '/home/me/.opam/system/build/ocamlfind.1.5.6/src/findlib'\r\nMakefile:13: recipe for target 'all' failed\r\n```\r\nand \r\n```bash\r\nMakefile:175: depend: No such file or directory\r\nsed: -e expression #2, char 20: unknown option to `s'\r\nmake[1]: *** [findlib_config.ml] Error 1\r\nmake: *** [all] Error 2\r\n```\r\n\r\nbut running \r\n```bash\r\ncat findlib_config.mlp | ../../tools/patch '@CONFIGFILE@' '/home/me/.opam/system/lib/findlib.conf' | ../../tools/patch '@STDLIB@' '/usr/lib/ocaml' | sed -e 's;@AUTOLINK@;true;g' -e 's;@SYSTEM@;system: linux;g' > findlib_config.ml\r\n```\r\nin `~/.opam/system/build/ocamlfind.1.5.6/src/ocamlfind` produces not issue (at all) \r\n\r\nafter doing this if I did `make install` in  `~/.opam/system/build/ocamlfind.1.5.6` then relaunch `opam install ocaml`, I get the same issue.\r\n\r\nI'm clueless :sad:\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ocaml/opam-repository/issues/comments/196041650","html_url":"https://github.com/ocaml/opam-repository/issues/5098#issuecomment-196041650","issue_url":"https://api.github.com/repos/ocaml/opam-repository/issues/5098","id":196041650,"user":{"login":"peterfrey","id":978289,"avatar_url":"https://avatars.githubusercontent.com/u/978289?v=3","gravatar_id":"","url":"https://api.github.com/users/peterfrey","html_url":"https://github.com/peterfrey","followers_url":"https://api.github.com/users/peterfrey/followers","following_url":"https://api.github.com/users/peterfrey/following{/other_user}","gists_url":"https://api.github.com/users/peterfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/peterfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterfrey/subscriptions","organizations_url":"https://api.github.com/users/peterfrey/orgs","repos_url":"https://api.github.com/users/peterfrey/repos","events_url":"https://api.github.com/users/peterfrey/events{/privacy}","received_events_url":"https://api.github.com/users/peterfrey/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T20:00:15Z","updated_at":"2016-03-13T20:00:15Z","body":"turns out (after some googling) that a bunch of ncurses related libraries must be in the system.\r\n(this is not obvious, I think, from the error messages)\r\nI lost the backup list of all the installed packages.  This not a problem, i can add them all again and leave out things I have never used ..."}}