[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu-devel
Subject:    Re: OSX/CI: analitza fails to build on branch frameworks
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2014-09-18 22:33:29
Message-ID: CACcA1RqCacev6DwdcUE_KkzRxhU+sXZvz3Yt6r_NYai3crVObg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thu, Sep 18, 2014 at 9:29 PM, Marko Käning <mk-lists@email.de> wrote:

> Hi guys,
>
> recently there was merge 268638c34e0b18db03931452e58b0e09c341fbcc
> bringing in code changing cmake/FindReadline.cmake which made me think
> now, that it could be causing this build failure on OSX.
>
> I wonder whether readline is now properly found on the OSX/CI system,
> as HAVE_FREE_HISTORY_ENTRY is obviously not defined anymore!
>
> The fallback free() can't be properly found anywhere, at least on OSX
> using clang, even if I patch in "#include <stdlib.h>".
>
> But perhaps I am on the wrong track…
>
> Well, kalgebra isn't functional because of it, at the moment. :-(
>
> Wondering what else I could do to help diagnose this than attaching the
> build log now.
>
> Greets,
> Marko
>
>
>
>
> On 17 Sep 2014, at 08:17 , Marko Käning <mk-lists@email.de> wrote:
>
> > Building CXX object
> analitzaplot/CMakeFiles/AnalitzaPlot.dir/private/utils/marchingcubes.cpp.o
> > [ 65%] /Users/marko/WC/KDECI-builds/analitza/calgebra/main.cpp:157:3:
> error: no matching function for call to 'free'
> >                free(he->line);
> >                ^~~~
> > /usr/include/stdlib.h:143:7: note: candidate function not viable: no
> known conversion from 'const char *' to 'void *' for 1st argument; take the
> address of the argument with &
> > void     free(void *);
> >         ^
> > Building CXX object
> analitzaplot/CMakeFiles/AnalitzaPlot.dir/private/abstractplotitem.cpp.o
> > 1 error generated.
> > make[2]: *** [calgebra/CMakeFiles/calgebra.dir/main.cpp.o] Error 1
> > make[1]: *** [calgebra/CMakeFiles/calgebra.dir/all] Error 2
> > make[1]: *** Waiting for unfinished jobs....
>
>
>
You should be trying both analitza and kalgebra from master. Frameworks was
merged to master yesterday night.

As per why it's not working, maybe you can try to change the line to
something like free((void*) he->line)? I have no idea why it says it's a
const char... Or maybe just comment out the free :D

Aleix

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 18, 2014 \
at 9:29 PM, Marko Käning <span dir="ltr">&lt;<a href="mailto:mk-lists@email.de" \
target="_blank">mk-lists@email.de</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi guys,<br> <br>
recently there was merge 268638c34e0b18db03931452e58b0e09c341fbcc<br>
bringing in code changing cmake/FindReadline.cmake which made me think<br>
now, that it could be causing this build failure on OSX.<br>
<br>
I wonder whether readline is now properly found on the OSX/CI system,<br>
as HAVE_FREE_HISTORY_ENTRY is obviously not defined anymore!<br>
<br>
The fallback free() can't be properly found anywhere, at least on OSX<br>
using clang, even if I patch in "#include &lt;stdlib.h&gt;&quot;.<br>
<br>
But perhaps I am on the wrong track…<br>
<br>
Well, kalgebra isn't functional because of it, at the moment. :-(<br>
<br>
Wondering what else I could do to help diagnose this than attaching the<br>
build log now.<br>
<br>
Greets,<br>
Marko<br>
<br>
<br><br>
<br>
On 17 Sep 2014, at 08:17 , Marko Käning &lt;<a \
href="mailto:mk-lists@email.de">mk-lists@email.de</a>&gt; wrote:<br> <br>
&gt; Building CXX object \
analitzaplot/CMakeFiles/AnalitzaPlot.dir/private/utils/marchingcubes.cpp.o<br> &gt; [ \
65%] /Users/marko/WC/KDECI-builds/analitza/calgebra/main.cpp:157:3: error: no \
matching function for call to &#39;free&#39;<br> &gt;                        \
free(he-&gt;line);<br> &gt;                        ^~~~<br>
&gt; /usr/include/stdlib.h:143:7: note: candidate function not viable: no known \
conversion from &#39;const char *&#39; to &#39;void *&#39; for 1st argument; take the \
address of the argument with &amp;<br> &gt; void        free(void *);<br>
&gt;              ^<br>
&gt; Building CXX object \
analitzaplot/CMakeFiles/AnalitzaPlot.dir/private/abstractplotitem.cpp.o<br> &gt; 1 \
error generated.<br> &gt; make[2]: *** [calgebra/CMakeFiles/calgebra.dir/main.cpp.o] \
Error 1<br> &gt; make[1]: *** [calgebra/CMakeFiles/calgebra.dir/all] Error 2<br>
&gt; make[1]: *** Waiting for unfinished jobs....<br>
<br><br></blockquote><div><br></div><div>You should be trying both analitza and \
kalgebra from master. Frameworks was merged to master yesterday \
night.</div><div><br></div><div>As per why it&#39;s not working, maybe you can try to \
change the line to something like free((void*) he-&gt;line)? I have no idea why it \
says it&#39;s a const char... Or maybe just comment out the free \
:D</div><div><br></div><div>Aleix  </div></div><br></div></div>



_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-edu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic