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

List:       cfe-dev
Subject:    Re: [cfe-dev] Dynamic linked (.so) files for clang?
From:       Dave Johansen <davejohansen () gmail ! com>
Date:       2014-11-28 22:07:42
Message-ID: CAAcYxUfx+3Ng8i0+brvQ6NiwJFUM8VuHzKp+hUekXDRZ3Dc7YQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'm working on packaging include-what-you-use (
https://code.google.com/p/include-what-you-use/ ) for Fedora/RHEL (
https://bugzilla.redhat.com/show_bug.cgi?id=1091659 ) and the packaging
guidelines strongly discourage linking against static libraries (
http://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries
). I'm putting in an exception request for the time being, but are there
any plans in the long term to build the dynamic libraries for clang?
Thanks,
Dave

On Mon, Nov 24, 2014 at 10:48 AM, Reid Kleckner <rnk@google.com> wrote:

> The clang executable has always been linked statically, and does not
> actually depend on libclang.so. There isn't support yet for linking the
> bulk of Clang's internal libraries into shared libraries. For now, they are
> all static.
>
> On Mon, Nov 24, 2014 at 8:39 AM, Dave Johansen <davejohansen@gmail.com>
> wrote:
>
>> I'm the packager for llvm for the EPEL and it appears that all of the .so
>> files aren't being generated for clang. For example, libclang.so is being
>> generated (
>> http://pkgs.org/centos-6/epel-x86_64/clang-3.4.2-1.el6.x86_64.rpm.html )
>> but several of the symbols are only available in statically linked (.a)
>> files (
>> http://pkgs.org/centos-6/epel-x86_64/llvm-static-3.4.2-1.el6.x86_64.rpm.html
>> ).
>>
>> Is there something I can do to get all of the .so files to be generated?
>>
>> If it helps, the .spec file that I'm using can be found at
>> http://pkgs.fedoraproject.org/cgit/llvm.git/tree/llvm.spec?h=el6 and the
>> configure command starts on line 320.
>>
>> Thanks,
>> Dave
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev@cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>I&#39;m working on packaging include-what-you-use ( <a \
href="https://code.google.com/p/include-what-you-use/" \
target="_blank">https://code.google.com/p/include-what-you-use/</a> ) for Fedora/RHEL \
( <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1091659" \
target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1091659</a> ) and the \
packaging guidelines strongly discourage linking against static libraries ( <a \
href="http://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries" \
target="_blank">http://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries</a> \
). I&#39;m putting in an exception request for the time being, but are there any \
plans in the long term to build the dynamic libraries for \
clang?<br></div>Thanks,<br>Dave<br></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Mon, Nov 24, 2014 at 10:48 AM, Reid Kleckner <span \
dir="ltr">&lt;<a href="mailto:rnk@google.com" \
target="_blank">rnk@google.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">The clang executable has always been linked \
statically, and does not actually depend on libclang.so. There isn&#39;t support yet \
for linking the bulk of Clang&#39;s internal libraries into shared libraries. For \
now, they are all static.</div><div class="gmail_extra"><br><div \
class="gmail_quote"><div><div class="h5">On Mon, Nov 24, 2014 at 8:39 AM, Dave \
Johansen <span dir="ltr">&lt;<a href="mailto:davejohansen@gmail.com" \
target="_blank">davejohansen@gmail.com</a>&gt;</span> \
wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div \
dir="ltr"><div>I&#39;m the packager for llvm for the EPEL and it appears that all of \
the .so files aren&#39;t being generated for clang. For example, libclang.so is being \
generated ( <a href="http://pkgs.org/centos-6/epel-x86_64/clang-3.4.2-1.el6.x86_64.rpm.html" \
target="_blank">http://pkgs.org/centos-6/epel-x86_64/clang-3.4.2-1.el6.x86_64.rpm.html</a> \
) but several of the symbols are only available in statically linked (.a) files ( <a \
href="http://pkgs.org/centos-6/epel-x86_64/llvm-static-3.4.2-1.el6.x86_64.rpm.html" \
target="_blank">http://pkgs.org/centos-6/epel-x86_64/llvm-static-3.4.2-1.el6.x86_64.rpm.html</a> \
).<br><br>Is there something I can do to get all of the .so files to be \
generated?<br><br>If it helps, the .spec file that I&#39;m using can be found at <a \
href="http://pkgs.fedoraproject.org/cgit/llvm.git/tree/llvm.spec?h=el6" \
target="_blank">http://pkgs.fedoraproject.org/cgit/llvm.git/tree/llvm.spec?h=el6</a> \
and the configure command starts on line \
320.<br><br></div><div>Thanks,<br></div>Dave<br></div> \
<br></div></div>_______________________________________________<br> cfe-dev mailing \
list<br> <a href="mailto:cfe-dev@cs.uiuc.edu" \
target="_blank">cfe-dev@cs.uiuc.edu</a><br> <a \
href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" \
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br> \
<br></blockquote></div><br></div> </blockquote></div><br></div>



_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


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

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