Re: clang compile error with latest kernel

2023-02-18 Thread Michael Hennebry
rent problem. In the case at hand, clang will not compile the kernel code at all. A slight editing of a header file should cure that particular problem. understood and coded around. You cannot write an OS or device driver based on the C standard's memory model. Linux has its own definiti

Re: clang compile error with latest kernel

2023-02-18 Thread Barry Scott
> On 16 Feb 2023, at 18:42, Jeffrey Walton wrote: > > I think some of the kernel devs are the biggest problem. Some of the > developers feel GCC is the only compiler to support. They rely on > GCC-isms, and don't care about things like undefined behavior since it > "works for me using GCC." I'v

Re: clang compile error with latest kernel

2023-02-17 Thread Chung Chung
Thank you for all the suggestions. I am going to try a few and let you guys know. Thanks again!!! Chung ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct:

Re: clang compile error with latest kernel

2023-02-16 Thread Michael Hennebry
On Thu, 16 Feb 2023, Chung Chung wrote: Hi, I am wondering if anyone has successfully compiled latest kernel using clang, I have been having problem with it for the last few month, and here is the error that I have: In file included from drivers/tty/tty_io.c:103: ./include/linux

Re: clang compile error with latest kernel

2023-02-16 Thread Jeffrey Walton
On Thu, Feb 16, 2023 at 12:18 PM Chung Chung wrote: > > Hi, I am wondering if anyone has successfully compiled latest kernel using > clang, I have not tried to build a kernel with Clang. However the LLVM devs have done it in the past. Also see https://docs.kernel.org/kbuild/llvm.htm

Re: clang compile error with latest kernel

2023-02-16 Thread Jeffrey Walton
On Thu, Feb 16, 2023 at 1:02 PM Barry wrote: > > > On 16 Feb 2023, at 17:18, Chung Chung wrote: > > > > Hi, I am wondering if anyone has successfully compiled latest kernel using > > clang, I have been having problem with it for the last few month, > >

Re: clang compile error with latest kernel

2023-02-16 Thread Barry
> On 16 Feb 2023, at 17:18, Chung Chung wrote: > >  > Hi, I am wondering if anyone has successfully compiled latest kernel using > clang, I have been having problem with it for the last few month, > and here is the error that I have: > > In file included from

Re: clang compile error with latest kernel

2023-02-16 Thread stan via users
On Thu, 16 Feb 2023 17:18:36 - "Chung Chung" wrote: > Hi, I am wondering if anyone has successfully compiled latest kernel > using clang, I have been having problem with it for the last few > month, and here is the error that I have: > > In file included from

clang compile error with latest kernel

2023-02-16 Thread Chung Chung
Hi, I am wondering if anyone has successfully compiled latest kernel using clang, I have been having problem with it for the last few month, and here is the error that I have: In file included from drivers/tty/tty_io.c:103: ./include/linux/termios_internal.h:37:5: error: conflicting types for

Re: clang

2022-08-29 Thread Jonathan Billings
On Aug 29, 2022, at 11:18, Patrick Dupre wrote: > I can compile this code with gcc (-lm) > but not with clang > test.c:8:22: warning: implicit declaration of function 'CMPLX' is invalid in > C99 [-Wimplicit-function-declaration] > double complex z = CMPLX (1., 2.) ; &g

clang

2022-08-29 Thread Stephen J. Turnbull
Patrick Dupre writes: > 1 warning generated. > /usr/bin/ld: /tmp/test-52cb2b.o: in function `main': > test.c:(.text+0x1b): undefined reference to `CMPLX' > clang-14: error: linker command failed with exit code 1 (use -v to see > invocation) Since the compiler pro

clang

2022-08-29 Thread Patrick Dupre
Hello, I can compile this code with gcc (-lm) but not with clang test.c:8:22: warning: implicit declaration of function 'CMPLX' is invalid in C99 [-Wimplicit-function-declaration] double complex z = CMPLX (1., 2.) ; ^ 1 warning generated. /usr/bin/ld: /tmp/test-52cb2b.o: in func

clang

2022-08-29 Thread Patrick Dupre
Hello, I can compile this code with gcc (-lm) but not with clang test.c:8:22: warning: implicit declaration of function 'CMPLX' is invalid in C99 [-Wimplicit-function-declaration] double complex z = CMPLX (1., 2.) ; ^ 1 warning generated. /usr/bin/ld: /tmp/tes

Re: State of clang++ in Fedora

2012-08-07 Thread Rex Dieter
Mateusz Marzantowicz wrote: > What is the state of clang++ in Fedora 17 (or any other version)? I know > that clang++ is currently broken in Fedora 17 but are there any ongoing > efforts to make it operational? f17/clang++ is the only place where things are bad currently due to being

State of clang++ in Fedora

2012-08-07 Thread Mateusz Marzantowicz
What is the state of clang++ in Fedora 17 (or any other version)? I know that clang++ is currently broken in Fedora 17 but are there any ongoing efforts to make it operational? Is there a place (maybe some wiki?) where undergoing development of clang in Fedora could be monitored, besides regular

Broken clang++ 3.0

2012-06-22 Thread andrea
Hi, clang 3.0 shipped in Fedora 17 is broken as a c++ compiler. It cannot compile the stl https://bugzilla.redhat.com/show_bug.cgi?id=824406 Has anybody found a way to patch it, upgrade it or else. Unfortunately there are a few things depending on llvm-libs