<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">We had run into the same issue with
editline.<br>
You can try using this patch to fix the issue with the editline
versions.<br>
<br>
Thanks,<br>
Deepak<br>
<br>
On 05/02/14 05:47, Todd Fiala wrote:<br>
</div>
<blockquote
cite="mid:CAFab17+t5Qt5gULAS7M3E3bLMMYub7ZZvXE2JpFED-+SgBkvXg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I just had a look at this build bot:</div>
<div><br>
</div>
<div>lldb-x86_64-linux <br>
</div>
<div><br>
</div>
<div>The latest build I looked at <a moz-do-not-send="true"
href="http://lab.llvm.org:8011/builders/lldb-x86_64-linux/builds/10087">here</a>
appears to be failing because it doesn't have libedit
installed. As we mentioned above, it will need a newer
libedit since we are currently using features that don't
appear to be in older versions of the library and we're not
doing anything to distinguish that at the moment.</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Feb 4, 2014 at 4:50 PM, Todd
Fiala <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">> <span
style="font-family:arial,sans-serif;font-size:13px">configure
../llvm --enable-cxx11 --with-extra-option=-I$</span><span
style="font-family:arial,sans-serif;font-size:13px">LIBEDIT_PATH/include
--with-extra-ld-options=-L$</span>
<div>
<span
style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span
style="font-family:arial,sans-serif;font-size:13px">That
should be:</span></div>
<div><span
style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span
style="font-family:arial,sans-serif;font-size:13px">../llvm/configure </span><span
style="font-size:13px;font-family:arial,sans-serif"> --enable-cxx11
--with-extra-option=-I$</span><span
style="font-size:13px;font-family:arial,sans-serif">LIBEDIT_PATH/include
--with-extra-ld-options=-L$</span><span
style="font-family:arial,sans-serif;font-size:13px">LIBEDIT_PATH/lib
--prefix=<some_install_path></span></div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Feb 4, 2014 at 4:49
PM, Todd Fiala <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">We've been using a configure-built
libedit from <a moz-do-not-send="true"
href="http://thrysoee.dk/editline/"
target="_blank">here</a>. We essentially
build that with something like "configure
--prefix=/usr/local/libedit/libedit-<a
moz-do-not-send="true" href="tel:20130712-3.1"
value="+12013071231" target="_blank">20130712-3.1</a>
&& make && sudo make install".
<div>
<br>
</div>
<div>We then run configure something like this:</div>
<div><br>
</div>
<div>export
LIBEDIT_PATH=/usr/local/libedit/libedit-<a
moz-do-not-send="true"
href="tel:20130712-3.1" value="+12013071231"
target="_blank">20130712-3.1</a></div>
<div>
export
LD_LIBRARY_PATH=<some_paths_to_gcc_4.8.2/lib64>:$LIBEDIT_PATH/lib:$LD_LIBRARY_PATH</div>
<div><br>
</div>
<div># assume ../llvm is the source tree: i.e.
we're in a build directory that parallels the
source tree</div>
<div>configure ../llvm --enable-cxx11
--with-extra-option=-I$LIBEDIT_PATH/include
--with-extra-ld-options=-L$LIBEDIT_PATH/lib
--prefix=<some_install_path></div>
<div><br>
</div>
<div>That's what we're doing now. We could
consider breaking out the libedit parts to the
2008-libedit spec and adding configure/cmake
checks for it. That might be a nice smallish
project for somebody to knock out.<br>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra">
<div>
<div><br>
<br>
<div class="gmail_quote">On Tue, Feb 4, 2014
at 4:21 PM, Adam Strzelecki <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:ono@java.pl"
target="_blank">ono@java.pl</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div>> I've not been looking at the
linux one. However, I am in the
process of fixing something in llvm
that is broken due to unexpected
interactions between libedit, libbsd
and <bsd/stdlib.h> on Ubuntu
(and probably other linux variants
that might implement libedit in terms
of libbsd).<br>
<br>
</div>
The problem here is that any Ubuntu <
13.10 (which unfortunately includes
12.04 LTS we are using) use libedit<br>
2.11-20080614 while latest lldb
source/Host/common/Editline.cpp relies
on libedit 3.1 API (available only for
13.10).<br>
<br>
I presume that Ubuntu < 13.10 builds
should use their own libedit 3.1
probably linked statically, but I have
absolutely no idea how to configure
that.<br>
<br>
Currently my build here fails:<br>
<br>
/home/ono/Projects/llvm/tools/lldb/source/Host/common/Editline.cpp:70:27:
error: use of undeclared identifier
'EL_PROMPT_ESC'<br>
::el_set (m_editline, EL_PROMPT_ESC,
GetPromptCallback,
k_prompt_escape_char);<br>
^<br>
/home/ono/Projects/llvm/tools/lldb/source/Host/common/Editline.cpp:265:31:
error: cannot initialize a parameter of
type 'char *' with an rvalue of type
'const char *'<br>
::el_push(m_editline,
std::string (bytes, len).c_str());<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
/usr/include/histedit.h:95:34: note:
passing argument to parameter here<br>
void el_push(EditLine *,
char *);<br>
^<br>
/home/ono/Projects/llvm/tools/lldb/source/Host/common/Editline.cpp:341:52:
error: cannot initialize a parameter of
type 'char *' with an rvalue of type
'const char *'<br>
::el_push
(m_editline, lines[line_idx+1].c_str());<br>
^~~~~~~~~~~~~~~~~~~~~~~~~<br>
/usr/include/histedit.h:95:34: note:
passing argument to parameter here<br>
void el_push(EditLine *,
char *);<br>
^<br>
/home/ono/Projects/llvm/tools/lldb/source/Host/common/Editline.cpp:357:52:
error: cannot initialize a parameter of
type 'char *' with an rvalue of type
'const char *'<br>
::el_push
(m_editline, lines[line_idx-1].c_str());<br>
^~~~~~~~~~~~~~~~~~~~~~~~~<br>
/usr/include/histedit.h:95:34: note:
passing argument to parameter here<br>
void el_push(EditLine *,
char *);<br>
^<br>
/home/ono/Projects/llvm/tools/lldb/source/Host/common/Editline.cpp:367:48:
error: cannot initialize a parameter of
type 'char *' with an rvalue of type
'const char *'<br>
::el_push
(m_editline, lines[line_idx+1].c_str());<br>
^~~~~~~~~~~~~~~~~~~~~~~~~<br>
/usr/include/histedit.h:95:34: note:
passing argument to parameter here<br>
void el_push(EditLine *,
char *);<br>
^<br>
5 errors generated.<br>
<br>
Cheers,<br>
<span><font color="#888888">--<br>
Adam</font></span></blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<div>-- <br>
<div dir="ltr">
<table
style="color:rgb(136,136,136);font-family:'Times
New Roman'" cellpadding="0"
cellspacing="0">
<tbody>
<tr
style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td
style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px"
nowrap="nowrap">Todd Fiala |</td>
<td
style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"
nowrap="nowrap"> Software Engineer |</td>
<td
style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"
nowrap="nowrap"> <a
moz-do-not-send="true"
href="mailto:tfiala@google.com"
style="color:rgb(17,85,204)"
target="_blank"><span
style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial
initial">tfiala@google.com</span></a> |</td>
<td
style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"
nowrap="nowrap"><font
color="#1155cc"> <a
moz-do-not-send="true">650-943-3180</a></font></td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<table
style="color:rgb(136,136,136);font-family:'Times
New Roman'" cellpadding="0" cellspacing="0">
<tbody>
<tr
style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td
style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px"
nowrap="nowrap">Todd Fiala |</td>
<td
style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"
nowrap="nowrap"> Software Engineer |</td>
<td
style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"
nowrap="nowrap"> <a moz-do-not-send="true"
href="mailto:tfiala@google.com"
style="color:rgb(17,85,204)"
target="_blank"><span
style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial
initial">tfiala@google.com</span></a> |</td>
<td
style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"
nowrap="nowrap"><font color="#1155cc"> <a
moz-do-not-send="true">650-943-3180</a></font></td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<table style="color:rgb(136,136,136);font-family:'Times New
Roman'" cellpadding="0" cellspacing="0">
<tbody>
<tr
style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td
style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px"
nowrap="nowrap">Todd Fiala |</td>
<td
style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"
nowrap="nowrap"> Software Engineer |</td>
<td
style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"
nowrap="nowrap"> <a moz-do-not-send="true"
href="mailto:tfiala@google.com"
style="color:rgb(17,85,204)" target="_blank"><span
style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial
initial">tfiala@google.com</span></a> |</td>
<td
style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"
nowrap="nowrap"><font color="#1155cc"> <a
moz-do-not-send="true">650-943-3180</a></font></td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lldb-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>