<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hey,</p>
<p>I'll update bundled GC before next release. One of the valid
scenarios where bundling GC with ECL makes sense is static linking
(and ECL supports that – when GC is bundled it is statically
linked and none of its symbols are exported). I've also found it
handy, when I was buidling ECL on NetBSD, which shipped only
non-threaded build of bdwgc.</p>
<p>Note, that ECL first looks for system GC and if it can be used –
it is.<br>
</p>
<p>Regards,</p>
<p>Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 20.10.2017 19:44, Dima Pasechnik
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAWYfq26CgQfjTDNfJHNAPRE1iz925G=tT4jc_zSLQ+_Kuc4dw@mail.gmail.com">
<div dir="ltr">The bundled GC is too old; it's not working in the
embedded ECL situation on FreeBSD (see <a
href="https://github.com/ivmai/bdwgc/issues/180"
moz-do-not-send="true">https://github.com/ivmai/bdwgc/issues/180</a>
for a very fresh fix to this), or in at least one dynamic C
library case on OSX I know about (see <a
href="https://github.com/miguelmarco/libhomfly"
moz-do-not-send="true">https://github.com/miguelmarco/libhomfly</a>).
<div><br>
</div>
<div>In general, I don't see the value of bundling with ECL an
old snapshot of a relatively popular and actively maintained
library.</div>
<div>(removing it is trivial - there is one script from bdwgc/
that is used, and should be copied, the rest can go...)</div>
<div><br>
</div>
<div>Just my 0.02c.</div>
<div>Dima</div>
<div><br>
</div>
<div><br>
<div>
<div><br>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Oct 12, 2017 at 5:12 PM, Daniel
Kochmański <span dir="ltr"><<a
href="mailto:daniel@turtleware.eu" target="_blank"
moz-do-not-send="true">daniel@turtleware.eu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hey,</p>
<p>your problem is related to bundled libgc. We have some
conditionalization for musl, so I'm sure it worked in
the past. I'd suggest trying to install libgc from
alpine repositories and build ECL against that libgc. If
Alpine doesn't have libgc in the repositories, I'd try
building upstream bdwgc and linking ECL with it. If it
doesn't build, report a bug on bdwgc project, if it does
– please let us know here so we'll update bundled libgc
to the working version.</p>
<p>Best regards,</p>
<p>Daniel<br>
</p>
<div>
<div class="h5"> <br>
<div class="m_-8588400857917762960moz-cite-prefix">On
12.10.2017 18:03, Lucas Ramage wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small">Hello,</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small">I
am attempting to package ecl for alpine linux
and I am having troubles compiling against
musl. </div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small">
<p class="m_-8588400857917762960gmail-p1"><span
class="m_-8588400857917762960gmail-s1">Building
ecl_min...</span></p>
<p class="m_-8588400857917762960gmail-p1"><span
class="m_-8588400857917762960gmail-s1">.//libeclgc.a(mach_dep.o):
In function `GC_with_callee_saves_pushed':</span></p>
<p class="m_-8588400857917762960gmail-p1"><span
class="m_-8588400857917762960gmail-s1">/root/ecl-16.1.3/src/bdwgc/<wbr>mach_dep.c:245:
undefined reference to `getcontext'</span></p>
<p class="m_-8588400857917762960gmail-p1"><span
class="m_-8588400857917762960gmail-s1">collect2:
error: ld returned 1 exit status</span></p>
<p class="m_-8588400857917762960gmail-p1"><span
class="m_-8588400857917762960gmail-s1">make[1]:
*** [Makefile:224: ecl_min] Error 1</span></p>
<p class="m_-8588400857917762960gmail-p1"><span
class="m_-8588400857917762960gmail-s1">make[1]:
Leaving directory '/root/ecl-16.1.3/build'</span></p>
<p class="m_-8588400857917762960gmail-p1"><span
class="m_-8588400857917762960gmail-s1">make:
*** [Makefile:72: all] Error 2</span></p>
</div>
<div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small"></div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small">I
tried `make CFLAGS='-DNO_GETCONTEXT'` but
that did not work either.</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif;font-size:small">Has
anyone successfully built ecl using musl?</div>
<br>
</div>
<div><br>
</div>
-- <br>
<div
class="m_-8588400857917762960gmail-m_-6133329252160187393gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><span
style="font-size:12.8px">Regards,</span>
<table
style="font-size:12.8px;font-family:Times"
border="0"
cellpadding="0"
width="100%">
<tbody>
<tr>
<td
valign="middle"
align="left"
width="10">
<p
style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;color:rgb(33,33,33);margin-right:10px"><a
href="https://lramage94.github.io/" target="_blank"
moz-do-not-send="true"><img
src="https://raw.githubusercontent.com/lramage94/dotfiles/master/.config/email/img/favicon.png"
alt="Visit
online
journal"
style="border:none;display:inline"
moz-do-not-send="true" border="0" height="80" width="80"></a></p>
</td>
<td
align="left">
<p
style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;color:rgb(33,33,33)"><b>Lucas
Ramage</b> /
Software
Engineer<br>
<a
href="mailto:ramage.lucas@openmailbox.org"
style="color:rgb(255,0,0)" target="_blank" moz-do-not-send="true">ramage.lucas@openmailbox.org</a> /
<a
href="tel:%28941%29%20404-6794"
value="+19414046794" target="_blank" moz-do-not-send="true">(941)
404-6794</a></p>
<p
style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;color:rgb(33,33,33)"><b>PGP
Fingerprint</b> / <a
href="https://emailselfdefense.fsf.org/en/" style="color:rgb(0,0,255)"
target="_blank"
moz-do-not-send="true">Learn More</a><br>
<a
href="https://pgp.mit.edu/pks/lookup?op=get&search=0xF52A5A967B9B6FB7"
style="color:rgb(255,0,0)" target="_blank" moz-do-not-send="true">EAE7
45DF 818D 4948
DDA7 0F44 F52A
5A96 7B9B 6FB7</a></p>
<p
style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;color:rgb(33,33,33)"><b>Visit
online journal</b><br>
<a
href="https://lramage94.github.io/"
style="color:rgb(255,0,0)" target="_blank" moz-do-not-send="true">http://lramage94.github.io</a></p>
<p
style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;color:rgb(33,33,33)"><a
href="https://github.com/lramage94" target="_blank"
moz-do-not-send="true"><img
src="https://raw.githubusercontent.com/lramage94/dotfiles/master/.config/email/img/github.png"
alt="Github"
style="border:none;display:inline"
moz-do-not-send="true" height="16" width="16"> </a><a
href="https://www.linkedin.com/in/lramage94"
target="_blank" moz-do-not-send="true"><img
src="https://raw.githubusercontent.com/lramage94/dotfiles/master/.config/email/img/linkedin.png"
alt="Linkedin"
style="border:none;display:inline" moz-do-not-send="true" height="16"
width="16"></a></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>