On 11/10/26 08:46, Xavier Humbert wrote:
> 
> Le 10/11/2026 16:42, Brooks Davis a écrit :
>> It builds for many so you'll need to provide considerably more
>> information if you want help.
>>
>> What ports tree revision is this?  What host are you building on
>> (architecture and specs)?  What is in your make.conf and ports.conf?
>> What options are selected?  Have any processes been killed by the OOM
>> killer during the prior build?
>>
>> -- Brooks
>>
>> On Tue, Nov 10, 2026 at 04:26:24PM +0100, Xavier Humbert wrote:
>>> Hi,
>>>
>>> llvm21 and 22 build fine, but llvm20 fails :
>>>
>>> [root@numenor llvm20]# MAKE_JOBS_UNSAFE=yes make all
>>> [...]
>>> [ 22% 1648/7367] /usr/bin/c++ -DCLANG_EXPORTS -D__STDC_CONSTANT_MACROS
>>> -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
>>> -I/usr/ports/devel/llvm20/work-default/.build/tools/clang/lib/AST
>>> -I/usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/clang/lib/AST
>>> -I/usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/clang/include
>>> -I/usr/ports/devel/llvm20/work-default/.build/tools/clang/include
>>> -I/usr/ports/devel/llvm20/work-default/.build/include
>>> -I/usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/llvm/include
>>> -O2 -pipe -g -march=core2 -fstack-protector-strong -isystem 
>>> /usr/local/include
>>> -fno-strict-aliasing -g?? -isystem /usr/local/include -fPIC
>>> -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time
>>> -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
>>> -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
>>> -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
>>> -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor
>>> -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
>>> -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color
>>> -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual
>>> -Wno-nested-anon-types -O2 -pipe -g -march=core2 -fstack-protector-strong
>>> -isystem /usr/local/include -fno-strict-aliasing -g?? -isystem
>>> /usr/local/include?? -DNDEBUG -std=c++17?? -fno-exceptions -funwind-tables 
>>> -MD
>>> -MT tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/TemplateName.cpp.o -MF
>>> tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/TemplateName.cpp.o.d -o
>>> tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/TemplateName.cpp.o -c 
>>> /usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/clang/lib/AST/TemplateName.cpp
>>> FAILED: [code=1]
>>> tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/TemplateName.cpp.o
>>> /usr/bin/c++ -DCLANG_EXPORTS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
>>> -D__STDC_LIMIT_MACROS
>>> -I/usr/ports/devel/llvm20/work-default/.build/tools/clang/lib/AST
>>> -I/usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/clang/lib/AST
>>> -I/usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/clang/include
>>> -I/usr/ports/devel/llvm20/work-default/.build/tools/clang/include
>>> -I/usr/ports/devel/llvm20/work-default/.build/include
>>> -I/usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/llvm/include

Note the above paths for -I use.

>>> -O2 -pipe -g -march=core2 -fstack-protector-strong -isystem 
>>> /usr/local/include

Note the above path for -isystem use.

>>> -fno-strict-aliasing -g?? -isystem /usr/local/include -fPIC
>>> -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time
>>> -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
>>> -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
>>> -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
>>> -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor
>>> -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
>>> -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color
>>> -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual
>>> -Wno-nested-anon-types -O2 -pipe -g -march=core2 -fstack-protector-strong
>>> -isystem /usr/local/include -fno-strict-aliasing -g?? -isystem
>>> /usr/local/include?? -DNDEBUG -std=c++17?? -fno-exceptions -funwind-tables 
>>> -MD
>>> -MT tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/TemplateName.cpp.o -MF
>>> tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/TemplateName.cpp.o.d -o
>>> tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/TemplateName.cpp.o -c 
>>> /usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/clang/lib/AST/TemplateName.cpp
>>> /usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/clang/lib/AST/TemplateName.cpp:14:10:
>>> fatal error: 'clang/AST/Decl.h' file not found
>>> ?? ??14 | #include "clang/AST/Decl.h"
>>> ?? ?? ?? |?? ?? ?? ?? ?? ^~~~~~~~~~~~~~~~~~
>>> 1 error generated.
>>> ninja: build stopped: subcommand failed.
>>> *** Error code 1
>>>
>>> Regards,
>>>
>>> Xavier
>>>
>>> -- 
>>> Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
>>> https://www.amdh.fr
>>>
>>>
> Hi,
> 
> This is FreeBSD 14.5-STABLE amd64. 16GB memory (I have shut down bhve
> for this compilation)
> My port revision is 8ab81611a099 (HEAD -> main, origin/main, origin/
> HEAD) from last saturday.
> 
> /grep kill /var/log/messages/ gives nothing.
> 
> The problematic include is there : /usr/local/llvm20/include/clang/AST/
> Decl.h

The build was based on the likes of paths based on:

/usr/ports/devel/llvm20/work-default/
and:
/usr/local/include

not:

/usr/local/llvm20/

That last area would be from an alreaday existing install and would not
be used by the new build. An eventual install would update below
/usr/local/llvm20/ .


Looking at a successful official build for main's log shows the path:

/wrkdirs/usr/ports/devel/llvm20/work-default/llvm-project-20.1.8.src/clang/include/clang/AST/Decl.h

in 1000+ warnings, as well as a:

-- Installing:
/wrkdirs/usr/ports/devel/llvm20/work-default/stage/usr/local/llvm20/include/clang/AST/Decl.h

It would appear that in your context a path containing the text

llvm-project-20.1.8.src/clang/include/clang/AST/

would likely be where the file should be found during the build at the
failure point.

The build log references also shows /9621] instead of /7367] for the
@default build. @lite shows /4850] . A 14.4 latest build of @default
shows: /9617] .

Something is very different about your context. Did you set any specific
build options to non-default? Is is some sort of incremental build? My
you need to force a from-scratch build?


> 
> Thanks,
> 
> Xavier
> 
> -- 
> Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
> https://www.amdh.fr
> 


-- 
===
Mark Millard
marklmi at yahoo.com

Reply via email to