[OpenAFS-devel] CLANG 17+
   
    Cheyenne Wills
     
    cwills@sinenomine.net
       
    Thu, 23 Oct 2025 12:45:09 -0600
    
    
  
I've done linux builds with clang-20.
What is the error produced when configure is checking for lex / flex?
(look in the config.log).
If you want, you can email me the config.log and I can take a look at
it directly.
-- 
Cheyenne Wills
cwills@sinenomine.net
On Thu, 23 Oct 2025 17:54:01 +0000
Ben Huntsman <ben@huntsmans.net> wrote:
> Hi there-
>    Do any of the ports currently work with CLANG 17 or higher?
> 
>    After some work trying to get the AIX port working with IBM's new
> Open XL C 17.1, which is CLANG-based, I noticed that version 17.1.0
> and 17.1.1 use CLANG 13, while 17.1.2 jumps to 17, and 17.1.3 uses
> CLANG 19.  CLANG 17 is much more strict about the C standard it
> enforces.  When the configure script gets run, the lex test code
> fails to compile and while this doesn't terminate the script, the LEX
> variable gets set incorrectly in src/config/Makefile.config:
> 
> LEX = : -l
> 
>    Obviously, that breaks the build later.  I can get around it by
> setting CFLAGS="-std=gnu89" and then configure works successfully,
> but that's probably not the right solution here.
> 
>    Has anyone else seen anything like this?  Do we need a new version
> of autotools or something?
> 
> Thanks!
> 
> -Ben
> 
>