[cfe-users] clang frontend command failed due to signal

2018-01-08 Thread 01_Tyro_10 via cfe-users
Hello everyone: I'm building libcxx on amd64 ubuntu 14.04 for testing cloud9, but encountered the following fatal issue that clang caused. The program arguments are as follows: /home/bruce/Cloud9_Root/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -e

Re: [cfe-users] clang frontend command failed due to signal

2018-01-08 Thread Dan Čermák via cfe-users
Since clang segfaults, it could be a bug in clang. I am not a clang expert, but I'd suggest trying to remove some of the compiler flags and observe if the output changes. Or you could try to use a different version of clang/llvm. And then file a bug for clang if you can reproduce the crash. 01_Ty

Re: [cfe-users] clang frontend command failed due to signal

2018-01-08 Thread Jan Korous via cfe-users
Hi bruce, which version of clang are you actually using? Could you please paste output of clang -v here? Could you please also paste full output of clang (including reproducer files if any)? Thank you. Jan > On 8 Jan 2018, at 10:36, 01_Tyro_10 via cfe-users > wrote: > > bruce ___

[cfe-users] eBPF: Odd optimization results with clang-5.0

2018-01-08 Thread Charlemagne Lasse via cfe-users
Hi, just tested the clang eBPF backend. Very cool thing :) But I've noticed that the codegen creates really odd things which I cannot explain from my understanding of the ISA. My test is attached and was compiled via: clang -O2 -target bpf -x c -c ebpf_opimizer_problems.o -o ebpf_opimizer_probl

Re: [cfe-users] eBPF: Odd optimization results with clang-5.0

2018-01-08 Thread Alexei Starovoitov via cfe-users
On Fri, Jan 5, 2018 at 7:01 AM, Charlemagne Lasse wrote: > Hi, > > just tested the clang eBPF backend. Very cool thing :) > > But I've noticed that the codegen creates really odd things which I > cannot explain from my understanding of the ISA. My test is attached > and was compiled via: > > clan

Re: [cfe-users] eBPF: Odd optimization results with clang-5.0

2018-01-08 Thread Jiong Wang via cfe-users
On 05/01/2018 20:05, Alexei Starovoitov wrote: On Fri, Jan 5, 2018 at 7:01 AM, Charlemagne Lasse wrote: First thing is the odd way how 8 bit loads to an uint8_t are handled (see bug1_sec): I could reproduce both issues on other targets on latest LLVm trunk@321940, for example AArch64 (need t

Re: [cfe-users] Problem compiling simple main.c with llvm-5.0

2018-01-08 Thread Georg-Johann Lay via cfe-users
On 28.12.2017 20:31, Don Hinton wrote: Looks like AVR is experimental, so you'll need to pass it via -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" As for the correct --target, you can take a look at the logic in llvm/cmake/config.guess to get an idea on how to construct one. hth... don Ok, thank

Re: [cfe-users] clang frontend command failed due to signal

2018-01-08 Thread Christian Gagneraud via cfe-users
On 8/01/2018 11:36 PM, 01_Tyro_10 via cfe-users wrote: But it failed with the following error, and I can not understand why. 1.libcxx/include/__config:1028:3: current parser token 'if' 2.libcxx/include/__config:448:1: parsing namespace 'std' clang: error: unable to execute command: Segmentation