Displaying 20 results from an estimated 30000 matches similar to: "[LLVMdev] building libLTO.dylib"
2009 Feb 02
0
[LLVMdev] building libLTO.dylib
Is there a particular method one should used to build
the libLTO.dylib from the llvm svn on darwin9? Unless I
am confused, it seems that libLTO.dylib gets built when
I do a configure and make directly in the llvm svn tree
but not when I created separate llvm_objdir directory
and execute configure and make within it. Thanks in advance
for any clarifications.
Jack
2015 Dec 14
2
Build libLTO.a instead of libLTO.dylib with Cmake
Hello,
Is there any CMake variable available to build LLVM libs as static
libraries. I found one -DLIBCLANG_BUILD_STATIC=ON but what if I want
libLTO.a instead of libLTO.dylib ?
*Vivek Pandya*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151214/1e03efc9/attachment.html>
2010 Apr 13
4
[LLVMdev] darwin dragon-egg build issues
On Sat, Apr 10, 2010 at 08:29:07PM -0500, Peter O'Gorman wrote:
> On 04/10/2010 08:01 PM, Jack Howarth wrote:
>
> >
> > bash-3.2$ GCC=/sw/bin/gcc-4 CC=gcc-4 CXX=g++-4 CFLAGS=-I/sw/include CXXFLAGS=-I/sw/include LLVM_CONFIG=/sw/lib/llvm/bin/llvm-config make
> > g++-4 -c -I/sw/lib/llvm/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -MD
2009 Nov 12
0
[LLVMdev] libLTO on Mac OS X
On Nov 12, 2009, at 11:43 AM, John Criswell wrote:
> Dear LLVMers,
>
> I'm currently working on creating an alternate libLTO.so that will run
> some whole-program analysis and transforms of mine during the final
> linking of an executable. The idea is for it to link all of the
> bitcode
> files together, run the regular LTO passes, and then run my passes.
> For
2008 Nov 30
0
[LLVMdev] libLTO on linux
On Sat, Nov 29, 2008 at 9:17 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> I'm looking into the possibility of building the libLTO plugin on Linux,
> and got tangled up in the build system.
>
> Currently, tools/Makefile only includes 'lto' when the OS equals Darwin,
> while tools/lto/Makefile has an if-statement that builds libLTO as a
> static library on
2009 Nov 12
2
[LLVMdev] libLTO on Mac OS X
Dear LLVMers,
I'm currently working on creating an alternate libLTO.so that will run
some whole-program analysis and transforms of mine during the final
linking of an executable. The idea is for it to link all of the bitcode
files together, run the regular LTO passes, and then run my passes. For
Linux, I should be able to get the Gold linker to load my libLTO.so
instead of the standard
2008 Nov 30
2
[LLVMdev] libLTO on linux
I'm looking into the possibility of building the libLTO plugin on Linux,
and got tangled up in the build system.
Currently, tools/Makefile only includes 'lto' when the OS equals Darwin,
while tools/lto/Makefile has an if-statement that builds libLTO as a
static library on non-Darwin systems.
If I try to build libLTO as a dynamic library on Linux, it works fine,
but I get an
2018 Feb 06
1
how to avoid linking with libLTO?
Hi,
Is there a way to avoid linking with the dynamic LTO library.
I’m using llvm 5.0.0 on various platforms (linux, windows, macOS), this library is not required by my application and I keep having trouble with it. My project is cmake based and makes use of LLVMConfig.cmake or llvm-config output (depending on the platform - there is no LLVMConfig.cmake with the windows package).
On windows the
2016 Oct 26
0
archiving LTO objects broken for current Xcode releases
> On Oct 26, 2016, at 8:06 AM, Jack Howarth via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> The ability to archive object files generated with -flto under
> LLVM.org clang 3.9.0 or 4.0svn trunk is broken against the currently
> shipping Xcode releases including the upcoming Xcode 8.1 GM.
>
> https://llvm.org/bugs/show_bug.cgi?id=30791
>
> $ clang-3.9
2009 Dec 04
1
[LLVMdev] Transparent LTO on Mac OS X
On Dec 4, 2009, at 2:49 PM, John Criswell wrote:
>> If you are building llvm-gcc yourself, try, in this order:
>> 1) sudo ln -s ../../Developer/usr/lib/libLTO.dylib /usr/lib/
>> libLTO.dylib
>>
>> 2) If you still get errors, try installing the libLTO.dylib from
>> your LLVM build into /Developer/usr/lib. Make sure that if you're
>> on a 64-bit
2013 Nov 12
0
[LLVMdev] Best way to do a lto bootstrap on OS X
AFAIK, ld does not use DYLD_LIBRARY_PATH to lookup libLTO.dylib but contains a reference to @executable_path/../lib/libLTO.dylib.
The only way I managed to load a different LTO library than the default one is to create a symlink pointing to the actual ld binary (as returned by 'xcrun -find ld') and making sure the library I want to load is placed at ../lib/libLTO.dylib relatively to this
2013 Nov 12
1
[LLVMdev] Best way to do a lto bootstrap on OS X
We do it by setting DYLD_LIBRARY_PATH. That overrides the normal @executable_path lookup.
On Nov 12, 2013, at 10:09 AM, Jean-Daniel Dupas <devlists at shadowlab.org> wrote:
> AFAIK, ld does not use DYLD_LIBRARY_PATH to lookup libLTO.dylib but contains a reference to @executable_path/../lib/libLTO.dylib.
>
> The only way I managed to load a different LTO library than the default
2009 Dec 04
1
[LLVMdev] Transparent LTO on Mac OS X
I'm confused. libLTO takes bitcode files as input and creates a native object file as output. Why would libLTO create bitcode as output? If so, you're changing the existing API contract. Or are you creating an out-of-band bitcode file, in which case the linker would never see it.
ld doesn't have bitcode support, it has libLTO support, and libLTO is what processes the bitcode.
2015 Jul 07
2
[LLVMdev] between r241513 and r241594, clang 3.7.0svn now crashes building clang-tools-extra
Since we are only a week away from branching for 3.7.0, this new
breakage in the stage2 bootstrap of
llvm/clang/compiler-rt/clang-tools-extra should get triaged. At
r241513, a three stage bootstrap with comparision of stage2/stage3
files completed fine. However at r241594 we now have the new
regression reported in https://llvm.org/bugs/show_bug.cgi?id=24054...
Assertion failed: (Val &&
2009 Dec 04
0
[LLVMdev] Transparent LTO on Mac OS X
Shantonu Sen wrote:
> Are you building llvm-gcc yourself? If so, what version?
>
> Xcode releases include an older llvm-gcc and libLTO.dylib, which may not understand bitcode generated by newer self-built compilers.
>
Thanks. A bitcode format mismatch was the problem. I'm not sure if the
problem stems from the fact that the bitcode was generated for the wrong
architecture
2016 Apr 16
2
[TSAN] LLVM statistics and pass initialization trigger race detection
Hello,
I trying TSAN on Darwin on LLVM itself (sanitizing multi-threaded ThinLTO link).
However I see two main issues on my debug build:
1) Statistics: the pre/post increment is not safe, it seems to be acknowledge in the code itself:
// FIXME: This function and all those that follow carefully use an
// atomic operation to update the value safely in the presence of
// concurrent
2008 Dec 18
0
[LLVMdev] Troubles with clang and llvm libraries and simple Xcode project
Hi,
I'm having a hard time linking the LLVM/clang libraries in Xcode.
I've been fighting this for a couple of days now, and decided to make
a fresh checkout and a super-simple demo project to try and isolate
the problem, but even so I'm getting undefined symbol errors in the
linker for the static libraries LLVM is producing. This is really
baffling, so probably I'm
2011 Sep 22
2
[LLVMdev] running a module pass via opt on multiple bitcode files
Thanks John. I appreciate your help.
I have taken the libLTO approach and it worked like a charm :) For those who wanted to achieve the same thing, below are the steps I've taken.
John -- a small question: I thought I wouldn't need to touch Makefiles at all, but that wasn't the case. Could you take a look at Step 4) and tell me what you think? Thanks!
1) Create your own libLTO and
2008 Oct 21
4
[LLVMdev] Replacing llvm-gcc in Xcode 3.1.1 with svn version
Hello all,
I have replaced the llvm-gcc shipped with the Xcode by the latest
version and I was wondering if I have missed something... (everything
*seems* to work).
Here's what I did:
0. Checkout LLVM (and clang) + llvm-gcc
1. Build LLVM (with clang) and install into /Developer/usr/local :
# mkdir llvmobj
# cd llvmobj
# CC=gcc-4.2 CXX=g++-4.2 ../llvm/configure
2011 Sep 22
0
[LLVMdev] running a module pass via opt on multiple bitcode files
On 9/22/11 4:04 PM, Jinwook Shin wrote:
> Thanks John. I appreciate your help.
De nada.
>
> I have taken the libLTO approach and it worked like a charm :) For
> those who wanted to achieve the same thing, below are the steps I've
> taken.
>
> John -- a small question: I thought I wouldn't need to touch
> Makefiles at all, but that wasn't the case. Could