{"action":"created","issue":{"url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/241","labels_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/241/comments","events_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/241/events","html_url":"https://github.com/crosstool-ng/crosstool-ng/issues/241","id":115926445,"number":241,"title":"Fails to build with ncurses when libtinfo is separate; needs to use pkg-config","user":{"login":"marcan","id":98387,"avatar_url":"https://avatars.githubusercontent.com/u/98387?v=3","gravatar_id":"","url":"https://api.github.com/users/marcan","html_url":"https://github.com/marcan","followers_url":"https://api.github.com/users/marcan/followers","following_url":"https://api.github.com/users/marcan/following{/other_user}","gists_url":"https://api.github.com/users/marcan/gists{/gist_id}","starred_url":"https://api.github.com/users/marcan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcan/subscriptions","organizations_url":"https://api.github.com/users/marcan/orgs","repos_url":"https://api.github.com/users/marcan/repos","events_url":"https://api.github.com/users/marcan/events{/privacy}","received_events_url":"https://api.github.com/users/marcan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-09T17:33:40Z","updated_at":"2015-11-09T22:41:01Z","closed_at":null,"body":"    /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: lxdialog/util.o: undefined reference to symbol 'nodelay'\r\n    /usr/lib64/libtinfow.so.6: error adding symbols: DSO missing from command line\r\n\r\nSee this Gentoo bug for some background info:\r\nhttps://bugs.gentoo.org/show_bug.cgi?id=457530\r\n\r\ncrosstool-ng should use pkg-config to figure out what libraries are required for ncurses, instead of blindly looking for a given lib."},"comment":{"url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/comments/155221846","html_url":"https://github.com/crosstool-ng/crosstool-ng/issues/241#issuecomment-155221846","issue_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/241","id":155221846,"user":{"login":"jcmvbkbc","id":166731,"avatar_url":"https://avatars.githubusercontent.com/u/166731?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmvbkbc","html_url":"https://github.com/jcmvbkbc","followers_url":"https://api.github.com/users/jcmvbkbc/followers","following_url":"https://api.github.com/users/jcmvbkbc/following{/other_user}","gists_url":"https://api.github.com/users/jcmvbkbc/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmvbkbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmvbkbc/subscriptions","organizations_url":"https://api.github.com/users/jcmvbkbc/orgs","repos_url":"https://api.github.com/users/jcmvbkbc/repos","events_url":"https://api.github.com/users/jcmvbkbc/events{/privacy}","received_events_url":"https://api.github.com/users/jcmvbkbc/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T22:41:01Z","updated_at":"2015-11-09T22:41:01Z","body":"> maybe we start with the patches you have, and work through the review process to find compromise?\r\n\r\nSure.\r\nSo far we have the following patches for xtensa:\r\n- patches to the crosstool-NG itself. Besides adding architecture bits they add hooks to do_{binutils,cc,debug_gdb}_extract functions that allow us to overwrite selected parts of binutils, gcc and gdb with processor-specific files. This is done by unpacking corresponding subtree of the configuration overlay archive. An example of such archive: https://github.com/jcmvbkbc/crosstool-NG/blob/lx106/overlays/xtensa_lx106.tar\r\n- xtensa-specific patches backported from development trees of binutils/gcc/gdb: fixes or improvements that old toolchain components need.\r\n- xtensa-specific patches that haven't got to any toolchain component repository: e.g. call0 ABI support patches for gcc-4.8.2 or xtensa support for newlib-2.0.0.\r\n\r\n> What I would see as acceptable is if patches that are applied to components of crosstool-ng (I.E.: gcc, gdb, binutils, etc...) can be applied without affecting other targets.\r\n\r\nAll changes that we do to binutils, gcc and gdb in extract hook apply to xtensa-specific files only.\r\nHere's the list of files from configuration overlay:\r\n\r\nbinutils/bfd/xtensa-modules.c\r\nbinutils/include/xtensa-config.h\r\ngcc/include/xtensa-config.h\r\ngdb/gdb/gdbserver/xtensa-xtregs.c\r\ngdb/gdb/regformats/reg-xtensa.dat\r\ngdb/gdb/xtensa-config.c\r\ngdb/bfd/xtensa-modules.c\r\ngdb/include/xtensa-config.h\r\n\r\nSo where do I start?"}}