🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
6 messages
6 total messages Started by bugzilla-noreply Thu, 22 Oct 2026 17:02
[Bug 299741] FreeBSD clang version 19.1.7: Stack realignment in presence of dynamic allocas is not supported withthis calling co...
#193
Author: bugzilla-noreply
Date: Thu, 22 Oct 2026 17:02
264 lines
14371 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299741

            Bug ID: 299741
           Summary: FreeBSD clang version 19.1.7: Stack realignment in
                    presence of dynamic allocas is not supported withthis
                    calling convention
           Product: Base System
           Version: 15.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: dinoex@FreeBSD.org

Created attachment 276117
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=276117&action=edit
zend_execute-e9daf5.c zend_execute-e9daf5.sh

stock FreeBSD 15.1-RELEASE-p2

I build lang/php83 successful with address-sanitizer

creating a Makefile.local:
CONFIGURE_ARGS+= --enable-address-sanitizer

The I tried the build of lang/php85 with address-sanitizer too.
clang++ throws a fatal error.

# clang++ -v
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git
llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd15.1
Thread model: posix
InstalledDir: /usr/bin


Logfile:
/bin/sh /usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/libtool --silent
--preserve-dup-deps --tag=CC --mode=compile cc -Isapi/phpdbg/
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/sapi/phpdbg/
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/main
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/ext/date/lib
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/ext/lexbor
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/ext/uri/uriparser/include
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/TSRM
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/Zend -isystem
/usr/local/include -D_GNU_SOURCE  -fno-common -Wstrict-prototypes
-Wformat-truncation -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -O2
-pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-ffp-contract=off -fvisibility=hidden -DNDEBUG -DZEND_SIGNALS
-fsanitize=address -DZEND_TRACK_ARENA_ALLOC -fno-omit-frame-pointer  
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/sapi/phpdbg/phpdbg_lexer.c
-o sapi/phpdbg/ph
pdbg_lexer.lo  -MMD -MF sapi/phpdbg/phpdbg_lexer.dep -MT
sapi/phpdbg/phpdbg_lexer.lo
--- Zend/zend_execute.lo ---

fatal error: error in backend: Stack realignment in presence of dynamic allocas
is not supported withthis calling convention.
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the
crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: cc -IZend/
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/Zend/
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/main
-I/usr/obj/ports/usr/ports/lang/php85/work/
php-8.5.12 -I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/ext/date/lib
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/ext/lexbor
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/ext/uri/uriparser/include
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/TSRM
-I/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/Zend -isystem
/usr/local/include -D_GNU_SOURCE -fno-common -Wstrict-prototypes
-Wformat-truncation -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -O2
-pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-ffp-contract=off -fvisibility=hidden -DNDEBUG -DZEND_SIGNALS
-fsanitize=address -DZEND_TRACK_ARENA_ALLOC -fno-omit-frame-pointer
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DSHADOW_STACK_SYSCALL=0 -c
/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/Zend/zend_execute.c -MMD
-MF Zend/zend_execute.dep -MT Zend/zend_execute.lo -fPIC -DPIC -o
Zend/.libs/zend_execute.o
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12/Zend/zend_execute.c'.
4.      Running pass 'Finalize ISel and expand pseudo-instructions' on function
'@ZEND_ASSIGN_SPEC_VAR_CONST_RETVAL_USED_TAILCALL_HANDLER'
 #0 0x00002e1cd8b62779 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:13
 #1 0x00002e1cd8b60635 llvm::sys::RunSignalHandlers()
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:106:18
 #2 0x00002e1cd8b10870
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:73:5
 #3 0x00002e1cd8b1082e (/usr/lib/libprivatellvm.so.19+0x331082e)
 #4 0x00002e1cd8b502fc llvm::sys::Process::Exit(int, bool)
/usr/src/contrib/llvm-project/llvm/lib/Support/Process.cpp:118:5
 #5 0x00002e14af34cb57 (/usr/bin/cc+0xcb57)
 #6 0x00002e1cd8b1e428 __is_long
/usr/obj/amd64.amd64/tmp/usr/include/c++/v1/string:1880:12
 #7 0x00002e1cd8b1e428 ~basic_string
/usr/obj/amd64.amd64/tmp/usr/include/c++/v1/string:1211:9
 #8 0x00002e1cd8b1e428 llvm::report_fatal_error(llvm::Twine const&, bool)
/usr/src/contrib/llvm-project/llvm/lib/Support/ErrorHandling.cpp:104:5
 #9 0x00002e1cd8b1e2c9 (/usr/lib/libprivatellvm.so.19+0x331e2c9)
#10 0x00002e1cd955fc87 (/usr/lib/libprivatellvm.so.19+0x3d5fc87)
#11 0x00002e1cd7dd1931 llvm::MachineRegisterInfo::freezeReservedRegs()
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:523:3
#12 0x00002e1cd7aeb496 runImpl
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/FinalizeISel.cpp:0:8
#13 0x00002e1cd7aeb570
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/FinalizeISel.cpp:89:22
#14 0x00002e1cd7d40dcd
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:0:13
#15 0x00002e1cd854ff62 llvm::FPPassManager::runOnFunction(llvm::Function&)
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1440:27
#16 0x00002e1cd8555ba4 llvm::FPPassManager::runOnModule(llvm::Module&)
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1486:13
#17 0x00002e1cd85507b3 runOnModule
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
#18 0x00002e1cd85507b3 llvm::legacy::PassManagerImpl::run(llvm::Module&)
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:44
#18 0x00002e1cd85507b3 llvm::legacy::PassManagerImpl::run(llvm::Module&)
/usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:541:44
#19 0x00002e1cd37db633 ~TimeTraceScope
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:189:9
#20 0x00002e1cd37db633 RunCodegenPipeline
/usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1158:3
#21 0x00002e1cd37db633 EmitAssembly
/usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1180:3
#22 0x00002e1cd37db633 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef,
llvm::Module*, clang::BackendAction,
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>,
std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*)
/usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1341:13
#23 0x00002e1cd3b79843 reset
/usr/obj/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:289:29
#24 0x00002e1cd3b79843 ~unique_ptr
/usr/obj/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:261:71
#25 0x00002e1cd3b79843
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/usr/src/contrib/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:354:3
#26 0x00002e1cd41fe4c9 begin
/usr/obj/amd64.amd64/tmp/usr/include/c++/v1/vector:1412:28
#27 0x00002e1cd41fe4c9
finalize<std::__1::vector<std::__1::unique_ptr<clang::TemplateInstantiationCallback,
std::__1::default_delete<clang::TemplateInstantiationCallback> >,
std::__1::allocator<std::__1::unique_ptr<clang::TemplateInstantiationCallback,
std::__1::default_delete<clang::TemplateInstantiationCallback> > > > >
/usr/src/contrib/llvm-project/clang/include/clang/Sema/TemplateInstCallback.h:54:16
#28 0x00002e1cd41fe4c9 clang::ParseAST(clang::Sema&, bool, bool)
/usr/src/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:191:3
#29 0x00002e1cd408fae9 clang::FrontendAction::Execute()
/usr/src/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1082:10
#30 0x00002e1cd400cbf4 getPtr
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:282:12
#31 0x00002e1cd400cbf4 operator bool
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:242:16
#32 0x00002e1cd400cbf4
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/usr/src/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1061:23
#33 0x00002e1cd4115f1c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/usr/src/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:280:25
#34 0x00002e14af34c84e cc1_main
/usr/src/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:284:15#35
0x00002e14af359d03 ExecuteCC1Tool
/usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:217:12
#36 0x00002e1cd3cec18e operator()
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:440:30
#37 0x00002e1cd3cec18e callback_fn<(lambda at
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:440:22)>
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:45:12
#38 0x00002e1cd8b10806 operator()
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:0:12
#39 0x00002e1cd8b10806
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:426:3
#40 0x00002e1cd3ceb908
clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char>>*, bool*) const
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:440:7
#41 0x00002e1cd3caf444
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&, bool) const
/usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:199:15
#42 0x00002e1cd3caf6dc
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&,
bool) const
/usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:253:13
#43 0x00002e1cd3ccc0a0 empty
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:95:46#44
0x00002e1cd3ccc0a0
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&)
/usr/src/contrib/llvm-project/clang/lib/Driver/Driver.cpp:1946:23
#45 0x00002e14af359478 clang_main
/usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:391:21#46
0x00002e14af357a42 main /usr/src/usr.bin/clang/clang/clang-driver.cpp:17:10
#47 0x00002e1cdcbfa28f __libc_start1 /usr/src/lib/libc/csu/libc_start1.c:180:2
cc: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git
llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd15.1
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/zend_execute-e9daf5.c
cc: note: diagnostic msg: /tmp/zend_execute-e9daf5.sh
cc: note: diagnostic msg: 

********************
*** [Zend/zend_execute.lo] Error code 1

make: stopped making "all" in
/usr/obj/ports/usr/ports/lang/php85/work/php-8.5.12
make: 1 error

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299741] FreeBSD clang version 19.1.7: Stack realignment in presence of dynamic allocas is not supported withthis calling co...
#192
Author: bugzilla-noreply
Date: Thu, 22 Oct 2026 17:13
20 lines
2868 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299741

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim@FreeBSD.org

--- Comment #1 from Dimitry Andric <dim@FreeBSD.org> ---
Looks like this is https://github.com/llvm/llvm-project/issues/95928, which
apparently is solved in clang 21. Have you tried using that?

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299741] FreeBSD clang version 19.1.7: Stack realignment in presence of dynamic allocas is not supported withthis calling co...
#202
Author: bugzilla-noreply
Date: Fri, 23 Oct 2026 15:23
16 lines
2616 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299741

--- Comment #2 from Dirk Meyer <dinoex@FreeBSD.org> ---
I have build devel/llvm21 sucessful.

But I failed to overwrite the settings from Mk/Uses/compiler.mk.
so the PHP port can use it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299741] FreeBSD clang version 19.1.7: Stack realignment in presence of dynamic allocas is not supported withthis calling co...
#203
Author: bugzilla-noreply
Date: Fri, 23 Oct 2026 15:55
14 lines
2560 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299741

--- Comment #3 from Gleb Popov <arrowd@FreeBSD.org> ---
(In reply to Dirk Meyer from comment #2)
Doesn't USES+=llvm:min=21 work?

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299741] FreeBSD clang version 19.1.7: Stack realignment in presence of dynamic allocas is not supported withthis calling co...
#259
Author: bugzilla-noreply
Date: Mon, 26 Oct 2026 10:35
21 lines
2620 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299741

--- Comment #4 from Dirk Meyer <dinoex@FreeBSD.org> ---

Successful builds with:

# lang/php85/Makefile.local

CONFIGURE_ARGS+= --enable-address-sanitizer
USES+= llvm:min=21

# eof

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299741] FreeBSD clang version 19.1.7: Stack realignment in presence of dynamic allocas is not supported withthis calling co...
#266
Author: bugzilla-noreply
Date: Mon, 26 Oct 2026 15:37
16 lines
2677 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299741

Mark Linimon <linimon@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |toolchain@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads