Displaying 20 results from an estimated 6000 matches similar to: "Missing hivex.h error when compiling on macOS 10.14 (Mojave)"
2015 Jul 08
2
[LLVMdev] How to run LLVM3.6.1 on OS X (Yosemite, Xcode6.4) OR how to link bitcode generated by OS X clang with LLVM3.6.1
Thank you. I found a partial answer to the problem (1), namely “how to run Clang compiled with LLVM3.6.1 on OS X Yosemite/Xcode6.4"
It’s a combination of -isysroot and -resource-dir
I’m using these compiler options:
"/Users/meister/Development/externals-clasp/build/release/bin/clang" -v \
-resource-dir
2020 May 07
2
Ld64.lld cannot find Foundation framework
Dear LLVM community I need some help please.
I want to use LLVM's clang and lld within a MacOSX sandboxed app. This is because sandboxing does not allow calls to /usr/bin/clang.
The clang binary works fine to compile a file, but ld64.lld comes up with the error "cannot find framework".
However similar arguments using /usr/bin/ld instead of ld64.lld works fine.
Here are the
2020 May 07
2
Ld64.lld cannot find Foundation framework
Thanks for your reply. Two questions:
1). Will ld64.lld be fixed in LLVM v11.0 and when is this likely to be?
2). You mention Apple’s linker, by which I assume you mean GNU’s ld.
Is it possible to get a binary version of ld (preferably that does not use other things from /usr/bin)?
Thanks
> On 7 May 2020, at 12:26, James Y Knight <jyknight at google.com> wrote:
>
> The MachO
2018 May 14
1
Unable to build 'lld' on Mac OS 10.9
Hi All,
I am trying to build the 'lld' linker on Mac OS 10.9, but during the build, I am getting the errors. Following are the steps that I have followed:
1. I have downloaded the ‘llvm-stable’ source code from the following location:
https://github.com/llvm-mirror/llvm/tree/stable
2. Machine details(on which llvm source code isbeing built) are as follows:
$ sw_vers
2020 Jun 20
1
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
Hi Dave,
Yep. This is JITLink specific, so we could only have observed it on MachO
x86-64 or arm64 until recently. It takes a little bit of poking to get IR
to produce a zero-lengh section on MachO, but not much.
Jared Wyles recently contributed an initial JITLink ELF implementation, so
the fix seems timely -- we might have been about to see more of it.
-- Lang.
On Fri, Jun 19, 2020 at 4:02 PM
2020 Jul 23
2
How to debug a missing symbol with ThinLTO?
Hi Tobias
The problem is that your static archive has a SYMDEF that is empty, so linker thinks the static library provided doesn't contain any symbol. The reason for that is you are using the `ranlib` from Xcode, which is too old to understand the new bitcode object files produced by llvm 10.
There are lots of ways to fix that:
* The standard way to create static library on macOS is to use
2020 May 23
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
Hello,
I am trying to run this basic C++ hello-world code in my iOS app that has
LLVM libraries linked in (the app runs on the actual device - iPad Pro, iOS
13.4.1).
#include <iostream>
int main (int argh, char *argv[]) {
std::cout << "Hello World!" << std::endl;
return 0;
}
So below is the break down of the steps that I do:
First I compile this code to an
2016 Oct 26
2
archiving LTO objects broken for current Xcode releases
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 -flto -O1 -c *.i
$ ar cr libtar.a paxerror.o paxexit-status.o paxnames.o rtapelib.o
stdopen.o wordsplit.o xattr-at.o
error: Unknown attribute kind
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
2020 Jun 06
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
Hi Lang,
Please see below is the trace.
--
Thanks,
Igor
*2020-06-06 12:05:21.016705-0400 CppDevProCompiler[6613:3000073] Running...*
*jitLink_MachO: magic = 0xfeedfacf, identifier =
"llvm-link.submodule-jitted-objectbuffer"*
*jitLink_MachO: cputype = 0x0100000c, cpusubtype = 0x00000000*
*Creating normalized sections...*
* __text: 0x0000000000000000 -- 0x0000000000000064, align:
2019 Jul 22
0
Re: Missing hivex.h error when compiling on macOS 10.14 (Mojave)
Hi Tim,
On Sunday, 21 July 2019 18:31:58 CEST Tim Perfitt wrote:
> I am attempting to compile Hivex (v1.3.18) and am getting a "handle.c:47:10: fatal error: 'hivex.h' file not found" error. I see that hivex.h is not included in the source and I suspect it is created during the configure phase. Full build log below. Any ideas of how this file is created and why it wasn't
2012 Nov 21
1
[LLVMdev] Undefined symbols for architecture i386: "EH_frame0",
linking this IR file: http://pastebin.com/HnUsSshB
with triple i386-apple-ios to an .o file
and linking it using:
ld -arch i386 -ObjC "EmptyProject17.o" -lSystem -lobjc -framework
CoreGraphics -framework Foundation -framework UIKit -dynamic -o
"i386-EmptyProject17" -objc_abi_version 2 -no_implicit_dylibs -lcrt1.o
-syslibroot
2015 Oct 12
2
Clang includes search path
Hi,
I’m trying to set the includes search path in clang, but I can’t figure out how to do it?
I’m working on OSX and every time I compile a C/C++ code, I have to specify it with -isysroot (and I don’t want an alias, or a symlink to /usr/include) since the includes are not in a really standard path on OSX (e.g.:
2015 Jul 05
2
[LLVMdev] How to run LLVM3.6.1 on OS X (Yosemite, Xcode6.4) OR how to link bitcode generated by OS X clang with LLVM3.6.1
I’m developing a Common Lisp compiler for OS X and Linux that uses LLVM as its backend and interoperates with C++.
It’s at: github.com/drmeister/clang
I need to compile one C++ source file containing small, intrinsic functions into an LLVM-IR bitcode file and link it with bitcode generated by my compiler running LLVM3.6.1. I have been unable to do this for more than a year and I was hoping
2013 Jun 12
0
[LLVMdev] Apple clang 4.2 based on llvm 3.2 produces a wrong "instruction requires:arm-mode"
Moshe,
You're more than likely going to get a better response from
https://devforums.apple.com/community/tools/xcode
llvmdev is a mailing list for the LLVM project which is separate from Xcode development.
Cheers,
Joe
On Jun 12, 2013, at 8:51 AM, Moshe Kravchik <mkravchik at hotmail.com<mailto:mkravchik at hotmail.com>> wrote:
Hi,
I've got an assembly file which used to
2013 Mar 08
0
[LLVMdev] ARM assembler's syntax in clang
> And be warned that the PC doesn't point at the next instruction when you
use it like this - I believe you don't need to modify it at all if you swap
the pop and the .long.
Bernie, is it related to ARM pipeline? I'm interesting in this, is there
any other additional information?
On Fri, Mar 8, 2013 at 4:59 AM, Tim Northover <t.p.northover at gmail.com>wrote:
> Hi Ashi,
2018 Mar 29
0
Compilation issues
I’ll fix the bogus `std::move`. That being said, how up to date is your checkout of clang-tools-extra?
> On Mar 29, 2018, at 00:31, vit9696 <vit9696 at avp.su> wrote:
>
> Hi,
>
> Thanks for a quick reply. I included the compilation log in the attachment for clarity. Just in case the compiler is the latest clang from Xcode 9.2.
>
> $ clang --version
> Apple LLVM
2016 Jun 23
2
[cfe-dev] clang++ build from source is not able to find C++ headers
On Thu, Jun 23, 2016 at 7:36 PM, Tim Northover <t.p.northover at gmail.com>
wrote:
> On 23 June 2016 at 06:31, vivek pandya via cfe-dev
> <cfe-dev at lists.llvm.org> wrote:
> > I am running OS X, when I build clang++ from source and use it to compile
> > .cpp files it fails as it is not able to find C++ header. I am not
> building
> > libc++ along with llvm
2018 Apr 02
1
const struct auto vs. static
I find it surprising that given this:
void f1()
{
const struct { int a; } b = { 0 };
}
that clang does not put b on the stack.
gcc does. My gut feeling says it belongs on stack.
But perhaps, the thing is, it is const, and location
shouldn't matter to most code, as long as lifetime is adequate.
Almost no code could tell the difference.
But we have code that takes the address of things, and
2020 Nov 17
0
Binary releases for versions 10 and 11 do not work on macOS 10.11.6
Hello,
I'm on macOS 10.11.6 and I've downloaded different versions of the
binary releases from https://releases.llvm.org/download.html.
Version 9.0.1 works correctly. However versions 10.0.0 and 11.0.0
do not work; I think the system libc++ is too old:
```
$ ~/Downloads/clang+llvm-10.0.0-x86_64-apple-darwin/bin/clang --version
dyld: lazy symbol binding failed: Symbol not found: