Displaying 20 results from an estimated 9000 matches similar to: "Linker errors after installing/compiling LLVM/CLANG"
2019 Jul 07
2
Linker errors after installing/compiling LLVM/CLANG
I understand that a difference between ninja and xcode is they use a different way to determine code dependencies. So to my understanding xcode needs dependencies to be properly created whereas ninja just doesn’t care. Maybe this is why ninja is able to find what it needs for the compilation to succeed, but not xcode.
So I have now looked at the CMakeLists.txt files and found that all the missing
2019 Jul 07
2
Linker errors after installing/compiling LLVM/CLANG
Try using ninja generator, most people do not use Xcode for building, so
since it lesser-used, it also lesser tested. Note that it’s perfectly
possible to use Xcode for code browsing, debugging, editing while using
ninja for building, which is what I think most people do
On Sun, Jul 7, 2019 at 4:20 AM Joan Lluch via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I also filled a bug
2019 Jul 07
3
Linker errors after installing/compiling LLVM/CLANG
I’m not saying you can’t use Xcode, I’m just saying that instead of
*building* in Xcode, just type “ninja” on the command line to do your build
and then use Xcode as you normally would.
I don’t think it’s the case that LLVM does not intend to support Xcode,
just that its a community driven project, so unless someone is sufficiently
motivated to fix whatever this problem is, it might stay this way
2019 Jul 07
2
Linker errors after installing/compiling LLVM/CLANG
I don’t personally develop on Mac (i use Windows), but I have an analogous
setup there where i use ninja to build and Visual Studio for editing,
debugging, etc.
What i do, and I assume it will be the same or very similar for Xcode, is
to run cmake twice, once with Ninja, and once with VS (Xcode for you), from
separate directories. I build with the ninja one (“ninja clang” on command
line), and I
2019 Jul 07
2
Linker errors after installing/compiling LLVM/CLANG
Hey Joan,
Take a look at this patch, and see if it resolves your issue:
https://reviews.llvm.org/D64300 <https://reviews.llvm.org/D64300>
Thanks,
-Chris
> On Jul 7, 2019, at 3:54 PM, Chris Bieneman via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hey Joan,
>
> I looked into the Xcode build issue that you're experiencing, and it relates to a limitation in
2019 Jul 26
2
Some xcode schemes not appearing now in Xcode after cmake install (??)
Hi all
In order to get ready for the upcoming final 9.0 release code I have now switched to the 'release/9.x' branch that I pulled from github.
Unfortunately, after running cmake in the usual way, I found that many xcode schemes are missing on the resulting project.
Particularly, I added -DLLVM_ENABLE_PROJECTS=clang to the terminal command line. The logs correctly state that ‘clang
2019 Jun 30
3
Tablegen ridiculously slow when compiling for Debug
Hi Praveen,
Thanks for the tip, but Xcode seems to spend all the time running tablegen "custom shell scripts", one by one at a time, not linking. Linking is actually very fast, possibly less than a second. The “scripts” that take longer are “AArch64CommonTableGen" and “AMDGPUCommonTableGen”. As said this is on LLVM 9.0.
However, on LLVM 7.0.1, the same process takes just 5-6
2019 Jun 30
2
Tablegen ridiculously slow when compiling for Debug
This is also the case with the Visual Studio generators. Custom commands in
a single cmake file essentially get written out line by line into a single
batch file that gets processed as a custom build step. In the VS case this
means that it can, for example, run X86 and Aarch64 tablegen steps in
parallel with each other but all of the individual X86 invocations get
processed serially. I can well
2019 Jul 01
2
Tablegen ridiculously slow when compiling for Debug
Hey Joan,
When looking for build support it is really useful to include a bunch of information about your build up front. Knowing that you are on macOS, and using the Xcode generator are really useful.
On macOS, BUILD_SHARED_LIBS won’t really help much because the default linker (ld64) is pretty good. Using an IDE generator and setting LLVM_USE_OPTIMIZED_TABLEGEN will kill your release builds.
2019 Jul 01
3
Tablegen ridiculously slow when compiling for Debug
If someone can manage it, it wouldn't be a bad thing - obviously open up
more parallelism (I don't know how much of LLVM can be built before you hit
everything that needs tblgen run - I guess libSupport and some other bits)
On Mon, Jul 1, 2019 at 12:54 PM Zakharin, Vyacheslav P via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> [resending to the whole list]
>
>
>
>
2019 Jul 02
4
Tablegen ridiculously slow when compiling for Debug
Much of this has been discussed (over many, many years) on
https://bugs.llvm.org/show_bug.cgi?id=28222
Some of the issues that were identified included:
1 - Poor tablegen dependency handling leading to unexpected rebuilds.
2 - Debug STL iterator checks taking an insane amount of time (might be
MSVC specific).
3 - Lack of parallelization of custom commands (XCode and VS builds) -
VS at least
2019 Jul 09
2
Tablegen ridiculously slow when compiling for Debug
FWIW, tablegen does not update timestamps for .inc files, if their contents is unchanged, so if you somehow affect a .td file's timestamp (without changing its contents) it will trigger rebuild of the corresponding .inc file with all subsequent incremental make builds. At the same time, this will not trigger rebuilding any targets dependent on this .inc file, since it is not modified. From
2019 Jul 03
2
LLVM Releases
Thank you.
> On Jul 3, 2019, at 4:04 AM, Justin Clift <justin at postgresql.org> wrote:
>
> On 2019-07-01 00:22, Marty Itzkowitz via llvm-dev wrote:
>> I also tried spack install llvm at develop on a POWER9 (ppc641e)
>> machine, but I can not find a compiler that
>> will compile it. gcc 4.8.5 is reported as too old, and gcc 7.3.0 and
>> 8.1.0 both fail in
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
Hi!
I'm trying to build a fast Clang for myself to use for debug builds on
Clang itself, but I've been struggling for a very long time on it. Could
you please help?
I've been following this guide: https://llvm.org/docs/HowToBuildWithPGO.html
I've quickly learned that its outdated, because the script it talks about
doesn't work with the monorepo layout at all, but in any
2020 Apr 10
2
Running clang tests
Hi Team,
I have checked out the clang and llvm source code and
built the executables using the visual studio 2015 community edition. I am
using Windows as my platform.
However I see that there are some test cases under the clang test folder
in the LLVM.sln. Eg AstMatcherTest,ASTTests etc. I see that these tests
make use of the Google test framework.
In my visual studio I have
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
Yes, that was it! Now that I took a closer look, the guide also states that
I should use the stage2 build. Silly me.
Thanks!
On Tue, 3 Sep 2019 at 19:31, David Blaikie <dblaikie at gmail.com> wrote:
> I /guess/ you actually want /path/to/release_build/llvm-profdata because
> the profiles are generated from binaries compiled with the release build,
> so it's the release build
2020 Apr 11
2
using the bat script build_llvm_package.bat on windows
where should the file build_llvm_package.bat be placed and how should
the build_llvm_package.bat be called?
or
is there a another way to do a two stage build of the llvm project on
windows starting with using visual studio 2017 community.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2019 Apr 16
3
Opt plugin linkage
Hi,
I have a dynamically loaded llvm pass built in-tree with ninja (generated with cmake, basically a copy of the hallo pass plugin, linux, llvm/clang version 6.0.1).
It uses the ExecutionEngine.
Building it without linking against LLVMExecutionEngine library results in an undefined symbol to the vtable of the EngineBuilder when loaded to opt. Linking the plugin with LLVMExecutionEngine results in
2019 May 08
2
failed to build llvm since 25de7691a0e27c29c8d783a22373cc265571f5e9 on AMD platform
Hi
we observed that below errors occur on AMD platform since 25de7691a0e27c29c8d783a22373cc265571f5e9
root at lkp-opteron1 /opt/rootfs/llvm_project/src/build# cmake -DCMAKE_BUILD_TYPE=release -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm -DCMAKE_INSTALL_PREFIX=/opt/cross/
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
2019 May 09
3
failed to build llvm since 25de7691a0e27c29c8d783a22373cc265571f5e9 on AMD platform
LKP framework can guarantee that all the software environment are same on AMD and INTEL platform.
INTEL platform always work well, after revert this patch, AMD works well.
we tried below commit on AMD.
1) 25de7691a0e27c29c8d783a22373cc265571f5e9: bad
2) a82235843b102202766115e10003c9465a8b83ae: good
the error logs(build/CMakeFiles/CMakeError.log) has no difference b/w 1) and 2) on AMD platform