Displaying 20 results from an estimated 5000 matches similar to: "Question about passing -v -save-temps cmd args to clang++"
2019 Jun 28
2
Conflicts with custom passes
You are right. Thanks!
I fixed that one as well as some other issues.
I built LLVM-8 with Debug + no-rtti. But it now has the following error:
Stack dump:
0. Program arguments: clang-8 -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -disable-free -main-file-name time-1.7.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
2019 Nov 04
2
Debugging clang with debugger breakpoints ?
Hi David,
I understand what you say, but have you actually read my messages? I don’t think so,
Anyway, I will repost the question in case someone else can help.
Thanks
John
> On 4 Nov 2019, at 22:18, Zachary Turner <zturner at roblox.com> wrote:
>
>
>
> On Mon, Nov 4, 2019 at 1:11 PM Joan Lluch via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at
2019 Aug 05
2
LLVM crashing while trying to build SPEC with Clang
Hello,
I am building the SPEC 2006 Benchmark with Clang as the compiler. I have written a function pass in LLVM and I am trying to run that for SPEC by invoking the pass in the build options of SPEC. The build options of SPEC are in a *.cfg config file, which allows us to specify the choice of compiler while building SPEC. (https://www.spec.org/cpu2006/Docs/install-guide-unix.html)
The pass
2019 Nov 04
4
Debugging clang with debugger breakpoints ?
Hi David,
Thank you for your patience but I still don’t get it: I don’t see how that is a “command”, as it’s just a list of strings that state command options.
I know how to use the debugger, this is what I attempt to debug:
clang --target=msp430 -emit-llvm -c -S -Oz main.c
The debugger works fine, but only on the main thread. However breakpoints do not work with the code that was invoked
2019 Nov 04
2
Debugging clang with debugger breakpoints ?
Sorry Zach, my apologies.
I understood now what you mean. I tried and it works!.
But now I found that LLVM_DEBUG statements and other output to the console doesn’t show. How do I get that back?.
Thanks
John
> On 4 Nov 2019, at 22:26, Zachary Turner <zturner at roblox.com> wrote:
>
> You hit Reply on my email but then addressed David. So I want to make sure you saw my
2019 Oct 30
2
pointer arithmetic with address space attribute not working
Hi,
I have a case that for pointer with address space attribute, pointer
arithmetic is not work.
For example,
-bash-4.4$ cat test.c
#define __user __attribute__((address_space(1)))
void __user * test(void __user *arg) {
#ifdef ADD
return arg + 4;
#else
return arg;
#endif
}
-bash-4.4$
-bash-4.4$ clang -g -c test.c
-bash-4.4$ clang -g -c -DADD test.c
clang-10: ../lib/IR/Instructions.cpp:2749:
2019 Aug 03
3
conflicting builtins in clang with musl (stddef.h)
Hello there,
I'm building a Linux distribution based on musl and LLVM as default
toolchain (including lld/libc++/libc++abi/libunwind rather than GNU).
For most of the time this works pretty well.
However I'm having troubles with few packages, webkit for instance
fails because of max_align_t being redeclared in musl's stddef.h
I see that stddef.h is provided by both musl and in the
2019 Mar 25
3
Trying to create a pure LLVM toolchain on musl based distribution
Hello,
I'm trying to create a pure LLVM toolchain (that will not depend on GNU
and produce GNU-free code too) on a musl based distribution.
For now, I use gcc to bootstrap and build all LLVM components. I do it
individually because I was running out of space and memory trying to
build all using LLVM_ENABLE_PROJECTS. Also, I don't want to create a
all-in-one package. Then, once
2019 Oct 31
2
pointer arithmetic with address space attribute not working
Thanks for the detailed info!
The problem was that I tried without assertions and didn't inspect the IR closely as it contained this,
for now, illegal instruction: %6 = bitcast i8* %5 to i8 addrspace(1)*
This is clearly a clang error.
I suggest opening a bug report, or sending the reproducer to cfe-dev at llvm.lists.org so someone will take a look that has more clang experience.
@Matt Do
2019 Oct 31
2
pointer arithmetic with address space attribute not working
I forgot the -DADD flag earlier but the result did not change: https://godbolt.org/z/NPcn22
________________________________________
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Doerfert, Johannes via llvm-dev <llvm-dev at lists.llvm.org>
Sent: Wednesday, October 30, 2019 20:18
To: LLVM Developers Mailing List; Y Song
Cc: Alexei Starovoitov
Subject: Re: [llvm-dev]
2015 Feb 07
5
[LLVMdev] mesa-10.4.4: BROKEN TLS support in GLX with llvm-toolchain v3.6.0rc2
[ Please CC me I am not subscribed to mesa-dev and llvmdev MLs ]
Hi,
I already reported this when playing 1st time with my llvm-toolchain
v3.6.0rc2 and mesa v10.3.7 [1].
The issue still remains in mesa v10.4.4.
So, this is a field test to see if LLVM/Clang v3.6.0rc2 fits my needs.
I see the following build-error...
...
make[4]: Entering directory
2016 Mar 01
0
Pass is not initialized
I need some help figuring out existing pass problem. I've submitted a CL
on Friday (http://reviews.llvm.org/rL262103) that broke _only_ armv7 &
aarch64 bots: "Pass 'SanitizerCoverageModule' is not initialized." (it was
rolled back).
Today I've obtained access to aarch64 machine today, applied the patch and
check-all passes without any issues (terminal capture at the
2015 Oct 26
2
How to pass march flag to GCC Assembler arch64-linux-gnu-as
I am trying to build chromium and at this moment, They see some issues with
internal one so recommended to use the flag -fno-integrated-as.
Here is my exact build command (with -v and --save-temps):
$ clang -Igen -I../../include -target aarch64-linux-gnu
-march=armv8-a+crypto -fno-integrated-as
--sysroot=./debian_jessie_arm64-sysroot -O2 -c MyFile.S -o MyFile.o -v
--save-temps
clang version
2018 Jan 16
1
Beginner question: extending pointer to 128 bits segfaults
Hi all,
I've been trying to extend pointer size of the X86 target to 128 bits. For
the prortype, I would like nothing more than the pointers being i128 type
with the same value as before. All I've done was changing the data layout
string to p:128:128 and when trying to run a basic program such as:
int a = 42;
int *p = &a;
it segfaults with the following stack trace:
#0
2016 Dec 09
4
Strange clang behavior when compiled against musl
I have managed to compile llvm and clang against musl, but it behaves really strange:
At first I tried to launch the compiler with musl dynamic loader:
$ LD_LIBRARY_PATH=/path/to/musl/lib /path/to/musl/lib/ld-musl-x86_64.so.1 /path/to/llvm/bin/clang -v
clang version 4.0.0 (https://github.com/llvm-mirror/clang 40adebeca0f99006d407508653c2cbd270a1a51c) (https://github.com/llvm-mirror/llvm
2020 Aug 23
2
Apropos "shouting": PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT
"David Blaikie" <dblaikie at gmail.com> wrote:
> Context is everything.
I'm willing to accept your humble apologies.
> Spotting the relevant details in long build output
> can be tricky & some emphasis (caps, the *** borders, etc) can be useful.
So you dare to "shout" at your users/customers, but mock when someone (me)
uses the same sort of emphasis,
2016 Mar 10
4
instrumenting device code with gpucc
It's hard to tell what is wrong without a concrete example. E.g., what is
the program you are instrumenting? What is the definition of the hook
function? How did you link that definition with the binary?
One thing suspicious to me is that you may have linked the definition of
_Cool_MemRead_Hook as a host function instead of a device function. AFAIK,
PTX assembly cannot be linked. So, if you
2020 Aug 23
3
Apropos "shouting": PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT
Who's "shouting" here? Even in complete lines, 9 consecutive words!
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: C:\Windows\Temp\crash-74a40f.c
clang: note: diagnostic msg: C:\Windows\Temp\crash-74a40f.sh
clang: note: diagnostic msg:
********************
--- crash-74a40f.c ---
2019 Nov 04
2
Debugging clang with debugger breakpoints ?
Hi David,
Thank you for your help. Please, can you elaborate on this?. The command line that I get with -### starts with this:
clang version 9.0.1 (https://github.com/llvm/llvm-project.git 6e38ee067b8fa08792f551fb565bbb8ada4864b1)
Target: msp430
Thread model: posix
InstalledDir: /Users/joan/LLVM-9/llvm-project/build/Debug/bin
"/Users/joan/LLVM-9/llvm-project/build/Debug/bin/clang"
2016 Mar 05
2
instrumenting device code with gpucc
On Fri, Mar 4, 2016 at 5:50 PM, Yuanfeng Peng <yuanfeng.jack.peng at gmail.com>
wrote:
> Hi Jingyue,
>
> My name is Yuanfeng Peng, I'm a PhD student at UPenn. I'm sorry to bother
> you, but I'm having trouble with gpucc in my project, and I would be really
> grateful for your help!
>
> Currently we're trying to instrument CUDA code using LLVM 3.9, and