Skip to content

Conversation

ahatanak
Copy link
Collaborator

enable_execute_stack is not supported on arm64 Darwin because:

  • It calls mprotect with PROT_WRITE | PROT_EXEC, which is rejected on this platform.
  • It assumes a fixed 4K page size, which is not guaranteed.

This change disables building enable_execute_stack on arm64 Darwin and fixes the failing test:

compiler-rt/test/builtins/Unit/enable_execute_stack_test.c.

rdar://159705691

`enable_execute_stack` is not supported on arm64 Darwin because:

- It calls mprotect with `PROT_WRITE | PROT_EXEC`, which is rejected on
  this platform.
- It assumes a fixed 4K page size, which is not guaranteed.

This change disables building `enable_execute_stack` on arm64 Darwin and
fixes the failing test:

`compiler-rt/test/builtins/Unit/enable_execute_stack_test.c`.

rdar://159705691
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it was just the page size, that could be adjusted. Android will need 16k pages as well.

@ahatanak ahatanak merged commit 0cca9e4 into llvm:main Sep 15, 2025
9 checks passed
@ahatanak ahatanak deleted the disable-enable-execute-stack-arm64 branch September 15, 2025 14:56
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 15, 2025

LLVM Buildbot has detected a new failure on builder hip-third-party-libs-test running on ext_buildbot_hw_05-hip-docker while building compiler-rt at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/6203

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py --jobs=32' (failure)
...
[8002/8067] Linking CXX shared library lib/libHLFIRTransforms.so.22.0git
[8003/8067] Creating library symlink lib/libHLFIRTransforms.so
[8004/8067] Linking CXX shared library lib/libflangPasses.so.22.0git
[8005/8067] Creating library symlink lib/libflangPasses.so
[8006/8067] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/FrontendActions.cpp.o
[8007/8067] Linking CXX executable bin/tco
[8008/8067] Building CXX object tools/flang/tools/fir-lsp-server/CMakeFiles/fir-lsp-server.dir/fir-lsp-server.cpp.o
[8009/8067] Linking CXX executable bin/fir-lsp-server
[8010/8067] Building CXX object tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o
[8011/8067] Linking CXX executable bin/fir-opt
FAILED: bin/fir-opt 
: && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -fpch-preprocess -O3 -DNDEBUG -fno-semantic-interposition -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/./lib  -Wl,--gc-sections tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o -o bin/fir-opt  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/hip-third-party-libs-test/build/lib:"  lib/libHLFIRTransforms.so.22.0git  lib/libFlangOpenMPTransforms.so.22.0git  lib/libFIRTestAnalysis.so.22.0git  lib/libFIRTestOpenACCInterfaces.so.22.0git  lib/libMLIRTestIR.so.22.0git  lib/libMLIROptLib.so.22.0git  lib/libFIRTransforms.so.22.0git  lib/libFIRCodeGen.so.22.0git  lib/libFIROpenMPSupport.so.22.0git  lib/libFIRAnalysis.so.22.0git  lib/libFIROpenACCSupport.so.22.0git  lib/libFIRCodeGenDialect.so.22.0git  lib/libCUFDialect.so.22.0git  lib/libFIRSupport.so.22.0git  lib/libHLFIRDialect.so.22.0git  lib/libFIRDialect.so.22.0git  lib/libCUFAttrs.so.22.0git  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRAffineTransformOps.so.22.0git  lib/libMLIRAMDGPUTransforms.so.22.0git  lib/libMLIRArithValueBoundsOpInterfaceImpl.so.22.0git  lib/libMLIRArmNeonVectorTransformOps.so.22.0git  lib/libMLIRArmSMETransforms.so.22.0git  lib/libMLIRArmSMEDialect.so.22.0git  lib/libMLIRArmSVEVectorTransformOps.so.22.0git  lib/libMLIRAsyncTransforms.so.22.0git  lib/libMLIRBufferizationPipelines.so.22.0git  lib/libMLIRBufferizationTransformOps.so.22.0git  lib/libMLIRControlFlowTransforms.so.22.0git  lib/libMLIRDLTITransformOps.so.22.0git  lib/libMLIREmitCTransforms.so.22.0git  lib/libMLIREmitCDialect.so.22.0git  lib/libMLIRFuncTransformOps.so.22.0git  lib/libMLIRFuncUtils.so.22.0git  lib/libMLIRGPUTransformOps.so.22.0git  lib/libMLIRGPUToROCDLTransforms.so.22.0git  lib/libMLIRMathToROCDL.so.22.0git  lib/libMLIRAMDGPUToROCDL.so.22.0git  lib/libMLIRAMDGPUUtils.so.22.0git  lib/libMLIRGPUPipelines.so.22.0git  lib/libMLIRIndexToLLVM.so.22.0git  lib/libMLIRNVVMToLLVM.so.22.0git  lib/libMLIRVCIXDialect.so.22.0git  lib/libMLIRMathTransforms.so.22.0git  lib/libMLIRMemRefTransformOps.so.22.0git  lib/libMLIRMLProgramTransforms.so.22.0git  lib/libMLIRMLProgramDialect.so.22.0git  lib/libMLIRMPIDialect.so.22.0git  lib/libMLIRNVGPUUtils.so.22.0git  lib/libMLIRNVGPUTransformOps.so.22.0git  lib/libMLIRNVGPUToNVVM.so.22.0git  lib/libMLIRNVGPUTransforms.so.22.0git  lib/libMLIROpenACCTransforms.so.22.0git  lib/libMLIROpenMPDialect.so.22.0git  lib/libMLIRQuantTransforms.so.22.0git  lib/libMLIRSCFTransformOps.so.22.0git  lib/libMLIRShapeOpsTransforms.so.22.0git  lib/libMLIRShapeDialect.so.22.0git  lib/libMLIRSMT.so.22.0git  lib/libMLIRSparseTensorPipelines.so.22.0git  lib/libMLIRAffineToStandard.so.22.0git  lib/libMLIRSCFToControlFlow.so.22.0git  lib/libMLIRGPUToNVVMTransforms.so.22.0git  lib/libMLIRGPUToGPURuntimeTransforms.so.22.0git  lib/libMLIRGPUTransforms.so.22.0git  lib/libMLIRAMDGPUDialect.so.22.0git  lib/libMLIRAsyncToLLVM.so.22.0git  lib/libMLIRAsyncDialect.so.22.0git  lib/libMLIRFuncToLLVM.so.22.0git  lib/libMLIRArithToLLVM.so.22.0git  lib/libMLIRControlFlowToLLVM.so.22.0git  lib/libMLIRConvertToLLVMPass.so.22.0git  lib/libMLIRConvertToLLVMInterface.so.22.0git  lib/libMLIRMathToLLVM.so.22.0git  lib/libMLIRReconcileUnrealizedCasts.so.22.0git  lib/libMLIRComplexToLLVM.so.22.0git  lib/libMLIRComplexToLibm
plexDivisionConversion.so.22.0git  lib/libMLIRMathToLibm.so.22.0git  lib/libMLIRMemRefToLLVM.so.22.0git  lib/libMLIRUBToLLVM.so.22.0git  lib/libMLIRVectorToLLVMPass.so.22.0git  lib/libMLIRAMXTransforms.so.22.0git  lib/libMLIRAMXDialect.so.22.0git  lib/libMLIRArmNeonTransforms.so.22.0git  lib/libMLIRArmNeonDialect.so.22.0git  lib/libMLIRArmSVETransforms.so.22.0git  lib/libMLIRArmSVEDialect.so.22.0git  lib/libMLIRSparseTensorTransformOps.so.22.0git  lib/libMLIRLinalgTransformOps.so.22.0git  lib/libMLIRSparseTensorTransforms.so.22.0git  lib/libMLIRSparseTensorUtils.so.22.0git  lib/libMLIRSPIRVModuleCombiner.so.22.0git  lib/libMLIRSPIRVTransforms.so.22.0git  lib/libMLIRSPIRVConversion.so.22.0git  lib/libMLIRSPIRVUtils.so.22.0git  lib/libMLIRTensorInferTypeOpInterfaceImpl.so.22.0git  lib/libMLIRTensorTransformOps.so.22.0git  lib/libMLIRTosaTransforms.so.22.0git  lib/libMLIRTransformDebugExtension.so.22.0git  lib/libMLIRTransformDialectIRDLExtension.so.22.0git  lib/libMLIRTransformLoopExtension.so.22.0git  lib/libMLIRTransformPDLExtension.so.22.0git  lib/libMLIRTransformDialectTransforms.so.22.0git  lib/libMLIRTransformTuneExtension.so.22.0git  lib/libMLIRVectorTransformOps.so.22.0git  lib/libMLIRTransformDialect.so.22.0git  lib/libMLIRTransformDialectInterfaces.so.22.0git  lib/libMLIRTransformDialectUtils.so.22.0git  lib/libMLIRVectorToLLVM.so.22.0git  lib/libMLIRArithAttrToLLVMConversion.so.22.0git  lib/libMLIRWasmSSADialect.so.22.0git  lib/libMLIRX86VectorTransforms.so.22.0git  lib/libMLIRX86VectorDialect.so.22.0git  lib/libMLIRLLVMCommonConversion.so.22.0git  lib/libMLIRSPIRVTarget.so.22.0git  lib/libMLIRSPIRVSerialization.so.22.0git  lib/libMLIRSPIRVDialect.so.22.0git  lib/libMLIRSPIRVImageInterfaces.so.22.0git  lib/libMLIRSPIRVBinaryUtils.so.22.0git  lib/libMLIRTargetLLVMIRTransforms.so.22.0git  lib/libMLIRTargetLLVMIRImport.so.22.0git  lib/libLLVMX86AsmParser.so.22.0git  lib/libLLVMX86CodeGen.so.22.0git  lib/libLLVMX86Desc.so.22.0git  lib/libLLVMX86Info.so.22.0git  lib/libMLIRNVVMTarget.so.22.0git  lib/libMLIRNVVMToLLVMIRTranslation.so.22.0git  lib/libMLIRROCDLTarget.so.22.0git  lib/libLLVMAMDGPUAsmParser.so.22.0git  lib/libLLVMAMDGPUCodeGen.so.22.0git  lib/libLLVMAMDGPUDesc.so.22.0git  lib/libLLVMAMDGPUInfo.so.22.0git  lib/libMLIRROCDLToLLVMIRTranslation.so.22.0git  lib/libMLIRROCDLDialect.so.22.0git  lib/libMLIRXeVMTarget.so.22.0git  lib/libLLVMSPIRVCodeGen.so.22.0git  lib/libLLVMSPIRVDesc.so.22.0git  lib/libLLVMSPIRVInfo.so.22.0git  lib/libMLIRTargetLLVM.so.22.0git  lib/libMLIRExecutionEngineUtils.so.22.0git  lib/libLLVMPasses.so.22.0git  lib/libLLVMipo.so.22.0git  lib/libLLVMLinker.so.22.0git  lib/libLLVMTarget.so.22.0git  lib/libLLVMBitWriter.so.22.0git  lib/libMLIRXeVMToLLVMIRTranslation.so.22.0git  lib/libMLIRTargetLLVMIRExport.so.22.0git  lib/libMLIRLLVMIRTransforms.so.22.0git  lib/libMLIRTranslateLib.so.22.0git  lib/libMLIRTestDynDialect.so.22.0git  lib/libMLIRTosaTestPasses.so.22.0git  lib/libMLIRXeGPUTestPasses.so.22.0git  lib/libMLIRXeGPUTransforms.so.22.0git  lib/libMLIRXeGPUUtils.so.22.0git  lib/libMLIRXeGPUDialect.so.22.0git  lib/libMLIRXeVMDialect.so.22.0git  lib/libLLVMFrontendOpenMP.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMTransformUtils.so.22.0git  lib/libLLVMAnalysis.so.22.0git  lib/libLLVMMCParser.so.22.0git  lib/libLLVMMC.so.22.0git  lib/libLLVMIRReader.so.22.0git  lib/libMLIROpenACCDialect.so.22.0git  lib/libMLIROpenACCMPCommon.so.22.0git  lib/libMLIRTestDialect.so.22.0git  lib/libMLIRLinalgTransforms.so.22.0git  lib/libMLIRIndexDialect.so.22.0git  lib/libMLIRMemRefTransforms.so.22.0git  lib/libMLIRArithTransforms.so.22.0git  lib/libMLIRFuncTransforms.so.22.0git  lib/libMLIRNVGPUDialect.so.22.0git  lib/libMLIRShardTransforms.so.22.0git  lib/libMLIRTosaShardingInterfaceImpl.so.22.0git  lib/libMLIRTosaDialect.so.22.0git  lib/libMLIRQuantUtils.so.22.0git  lib/libMLIRQuantDialect.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRSCFTransforms.so.22.0git  lib/libMLIRBufferizationTransforms.so.22.0git  lib/libMLIRTensorTransforms
so.22.0git  lib/libMLIRAffineTransforms.so.22.0git  lib/libMLIRSCFUtils.so.22.0git  lib/libMLIRTensorTilingInterfaceImpl.so.22.0git  lib/libMLIRLinalgUtils.so.22.0git  lib/libMLIRTensorUtils.so.22.0git  lib/libMLIRTilingInterface.so.22.0git  lib/libMLIRVectorToSCF.so.22.0git  lib/libMLIRVectorTransforms.so.22.0git  lib/libMLIRAffineUtils.so.22.0git  lib/libMLIRGPUUtils.so.22.0git  lib/libMLIRLinalgDialect.so.22.0git  lib/libMLIRBufferizationDialect.so.22.0git  lib/libMLIRSparseTensorDialect.so.22.0git  lib/libMLIRMemRefUtils.so.22.0git  lib/libMLIRVectorUtils.so.22.0git  lib/libMLIRAffineAnalysis.so.22.0git  lib/libMLIRSCFDialect.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRVectorDialect.so.22.0git  lib/libMLIRIndexingMapOpInterface.so.22.0git  lib/libMLIRMaskableOpInterface.so.22.0git  lib/libMLIRMaskingOpInterface.so.22.0git  lib/libMLIRVectorInterfaces.so.22.0git  lib/libMLIRNVVMDialect.so.22.0git  lib/libMLIRGPUDialect.so.22.0git  lib/libMLIRDLTIDialect.so.22.0git  lib/libMLIRMathDialect.so.22.0git  lib/libMLIRLLVMDialect.so.22.0git  lib/libLLVMAsmParser.so.22.0git  lib/libMLIRPtrDialect.so.22.0git  lib/libMLIRPtrMemorySpaceInterfaces.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRTransforms.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRDerivedAttributeOpInterface.so.22.0git  lib/libMLIRReduce.so.22.0git  lib/libMLIRTransformUtils.so.22.0git  lib/libMLIRSubsetOpInterface.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRRewrite.so.22.0git  lib/libMLIRRewritePDL.so.22.0git  lib/libMLIRPDLToPDLInterp.so.22.0git  lib/libMLIRPDLInterpDialect.so.22.0git  lib/libMLIRPDLDialect.so.22.0git  lib/libMLIRIRDL.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRParser.so.22.0git  lib/libMLIRBytecodeReader.so.22.0git  lib/libMLIRAsmParser.so.22.0git  lib/libMLIRBytecodeWriter.so.22.0git  lib/libMLIRBytecodeOpInterface.so.22.0git  lib/libMLIRDebug.so.22.0git  lib/libMLIRObservers.so.22.0git  lib/libMLIRPluginsLib.so.22.0git  lib/libMLIRPass.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRRemarkStreamer.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMCore.so.22.0git  lib/libLLVMBinaryFormat.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMRemarks.so.22.0git  lib/libLLVMBitstreamReader.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o: undefined reference to symbol '_ZN3firlsERN4llvm11raw_ostreamERKNS_12ProcBoxValueE'
/usr/bin/ld: /home/botworker/bbot/hip-third-party-libs-test/build/./lib/libFIRBuilder.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[8012/8067] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/DataSharingProcessor.cpp.o
[8013/8067] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-omp-atomic.cpp.o
[8014/8067] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/PFTBuilder.cpp.o
[8015/8067] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/ConvertExpr.cpp.o
[8016/8067] Building CXX object tools/flang/tools/flang-driver/CMakeFiles/flang.dir/driver.cpp.o
[8017/8067] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/ParserActions.cpp.o
[8018/8067] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 107, in step
    yield
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 44, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 120, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/hip-third-party-libs-test/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
@@@BUILD_STEP update llvm-test-suite@@@
@@@HALT_ON_FAILURE@@@
Running: git reset --hard origin/main
HEAD is now at 7f6749e6f [HIP] Removed STDLIB_VERSION Macro definition (#282)
Running: git pull
Step 7 (build cmake config) failure: build cmake config (failure)
...
[8002/8067] Linking CXX shared library lib/libHLFIRTransforms.so.22.0git
[8003/8067] Creating library symlink lib/libHLFIRTransforms.so
[8004/8067] Linking CXX shared library lib/libflangPasses.so.22.0git
[8005/8067] Creating library symlink lib/libflangPasses.so
[8006/8067] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/FrontendActions.cpp.o
[8007/8067] Linking CXX executable bin/tco
[8008/8067] Building CXX object tools/flang/tools/fir-lsp-server/CMakeFiles/fir-lsp-server.dir/fir-lsp-server.cpp.o
[8009/8067] Linking CXX executable bin/fir-lsp-server
[8010/8067] Building CXX object tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o
[8011/8067] Linking CXX executable bin/fir-opt
FAILED: bin/fir-opt 
: && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -fpch-preprocess -O3 -DNDEBUG -fno-semantic-interposition -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/./lib  -Wl,--gc-sections tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o -o bin/fir-opt  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/hip-third-party-libs-test/build/lib:"  lib/libHLFIRTransforms.so.22.0git  lib/libFlangOpenMPTransforms.so.22.0git  lib/libFIRTestAnalysis.so.22.0git  lib/libFIRTestOpenACCInterfaces.so.22.0git  lib/libMLIRTestIR.so.22.0git  lib/libMLIROptLib.so.22.0git  lib/libFIRTransforms.so.22.0git  lib/libFIRCodeGen.so.22.0git  lib/libFIROpenMPSupport.so.22.0git  lib/libFIRAnalysis.so.22.0git  lib/libFIROpenACCSupport.so.22.0git  lib/libFIRCodeGenDialect.so.22.0git  lib/libCUFDialect.so.22.0git  lib/libFIRSupport.so.22.0git  lib/libHLFIRDialect.so.22.0git  lib/libFIRDialect.so.22.0git  lib/libCUFAttrs.so.22.0git  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRAffineTransformOps.so.22.0git  lib/libMLIRAMDGPUTransforms.so.22.0git  lib/libMLIRArithValueBoundsOpInterfaceImpl.so.22.0git  lib/libMLIRArmNeonVectorTransformOps.so.22.0git  lib/libMLIRArmSMETransforms.so.22.0git  lib/libMLIRArmSMEDialect.so.22.0git  lib/libMLIRArmSVEVectorTransformOps.so.22.0git  lib/libMLIRAsyncTransforms.so.22.0git  lib/libMLIRBufferizationPipelines.so.22.0git  lib/libMLIRBufferizationTransformOps.so.22.0git  lib/libMLIRControlFlowTransforms.so.22.0git  lib/libMLIRDLTITransformOps.so.22.0git  lib/libMLIREmitCTransforms.so.22.0git  lib/libMLIREmitCDialect.so.22.0git  lib/libMLIRFuncTransformOps.so.22.0git  lib/libMLIRFuncUtils.so.22.0git  lib/libMLIRGPUTransformOps.so.22.0git  lib/libMLIRGPUToROCDLTransforms.so.22.0git  lib/libMLIRMathToROCDL.so.22.0git  lib/libMLIRAMDGPUToROCDL.so.22.0git  lib/libMLIRAMDGPUUtils.so.22.0git  lib/libMLIRGPUPipelines.so.22.0git  lib/libMLIRIndexToLLVM.so.22.0git  lib/libMLIRNVVMToLLVM.so.22.0git  lib/libMLIRVCIXDialect.so.22.0git  lib/libMLIRMathTransforms.so.22.0git  lib/libMLIRMemRefTransformOps.so.22.0git  lib/libMLIRMLProgramTransforms.so.22.0git  lib/libMLIRMLProgramDialect.so.22.0git  lib/libMLIRMPIDialect.so.22.0git  lib/libMLIRNVGPUUtils.so.22.0git  lib/libMLIRNVGPUTransformOps.so.22.0git  lib/libMLIRNVGPUToNVVM.so.22.0git  lib/libMLIRNVGPUTransforms.so.22.0git  lib/libMLIROpenACCTransforms.so.22.0git  lib/libMLIROpenMPDialect.so.22.0git  lib/libMLIRQuantTransforms.so.22.0git  lib/libMLIRSCFTransformOps.so.22.0git  lib/libMLIRShapeOpsTransforms.so.22.0git  lib/libMLIRShapeDialect.so.22.0git  lib/libMLIRSMT.so.22.0git  lib/libMLIRSparseTensorPipelines.so.22.0git  lib/libMLIRAffineToStandard.so.22.0git  lib/libMLIRSCFToControlFlow.so.22.0git  lib/libMLIRGPUToNVVMTransforms.so.22.0git  lib/libMLIRGPUToGPURuntimeTransforms.so.22.0git  lib/libMLIRGPUTransforms.so.22.0git  lib/libMLIRAMDGPUDialect.so.22.0git  lib/libMLIRAsyncToLLVM.so.22.0git  lib/libMLIRAsyncDialect.so.22.0git  lib/libMLIRFuncToLLVM.so.22.0git  lib/libMLIRArithToLLVM.so.22.0git  lib/libMLIRControlFlowToLLVM.so.22.0git  lib/libMLIRConvertToLLVMPass.so.22.0git  lib/libMLIRConvertToLLVMInterface.so.22.0git  lib/libMLIRMathToLLVM.so.22.0git  lib/libMLIRReconcileUnrealizedCasts.so.22.0git  lib/libMLIRComplexToLLVM.so.22.0git  lib/libMLIRComplexToLibm
plexDivisionConversion.so.22.0git  lib/libMLIRMathToLibm.so.22.0git  lib/libMLIRMemRefToLLVM.so.22.0git  lib/libMLIRUBToLLVM.so.22.0git  lib/libMLIRVectorToLLVMPass.so.22.0git  lib/libMLIRAMXTransforms.so.22.0git  lib/libMLIRAMXDialect.so.22.0git  lib/libMLIRArmNeonTransforms.so.22.0git  lib/libMLIRArmNeonDialect.so.22.0git  lib/libMLIRArmSVETransforms.so.22.0git  lib/libMLIRArmSVEDialect.so.22.0git  lib/libMLIRSparseTensorTransformOps.so.22.0git  lib/libMLIRLinalgTransformOps.so.22.0git  lib/libMLIRSparseTensorTransforms.so.22.0git  lib/libMLIRSparseTensorUtils.so.22.0git  lib/libMLIRSPIRVModuleCombiner.so.22.0git  lib/libMLIRSPIRVTransforms.so.22.0git  lib/libMLIRSPIRVConversion.so.22.0git  lib/libMLIRSPIRVUtils.so.22.0git  lib/libMLIRTensorInferTypeOpInterfaceImpl.so.22.0git  lib/libMLIRTensorTransformOps.so.22.0git  lib/libMLIRTosaTransforms.so.22.0git  lib/libMLIRTransformDebugExtension.so.22.0git  lib/libMLIRTransformDialectIRDLExtension.so.22.0git  lib/libMLIRTransformLoopExtension.so.22.0git  lib/libMLIRTransformPDLExtension.so.22.0git  lib/libMLIRTransformDialectTransforms.so.22.0git  lib/libMLIRTransformTuneExtension.so.22.0git  lib/libMLIRVectorTransformOps.so.22.0git  lib/libMLIRTransformDialect.so.22.0git  lib/libMLIRTransformDialectInterfaces.so.22.0git  lib/libMLIRTransformDialectUtils.so.22.0git  lib/libMLIRVectorToLLVM.so.22.0git  lib/libMLIRArithAttrToLLVMConversion.so.22.0git  lib/libMLIRWasmSSADialect.so.22.0git  lib/libMLIRX86VectorTransforms.so.22.0git  lib/libMLIRX86VectorDialect.so.22.0git  lib/libMLIRLLVMCommonConversion.so.22.0git  lib/libMLIRSPIRVTarget.so.22.0git  lib/libMLIRSPIRVSerialization.so.22.0git  lib/libMLIRSPIRVDialect.so.22.0git  lib/libMLIRSPIRVImageInterfaces.so.22.0git  lib/libMLIRSPIRVBinaryUtils.so.22.0git  lib/libMLIRTargetLLVMIRTransforms.so.22.0git  lib/libMLIRTargetLLVMIRImport.so.22.0git  lib/libLLVMX86AsmParser.so.22.0git  lib/libLLVMX86CodeGen.so.22.0git  lib/libLLVMX86Desc.so.22.0git  lib/libLLVMX86Info.so.22.0git  lib/libMLIRNVVMTarget.so.22.0git  lib/libMLIRNVVMToLLVMIRTranslation.so.22.0git  lib/libMLIRROCDLTarget.so.22.0git  lib/libLLVMAMDGPUAsmParser.so.22.0git  lib/libLLVMAMDGPUCodeGen.so.22.0git  lib/libLLVMAMDGPUDesc.so.22.0git  lib/libLLVMAMDGPUInfo.so.22.0git  lib/libMLIRROCDLToLLVMIRTranslation.so.22.0git  lib/libMLIRROCDLDialect.so.22.0git  lib/libMLIRXeVMTarget.so.22.0git  lib/libLLVMSPIRVCodeGen.so.22.0git  lib/libLLVMSPIRVDesc.so.22.0git  lib/libLLVMSPIRVInfo.so.22.0git  lib/libMLIRTargetLLVM.so.22.0git  lib/libMLIRExecutionEngineUtils.so.22.0git  lib/libLLVMPasses.so.22.0git  lib/libLLVMipo.so.22.0git  lib/libLLVMLinker.so.22.0git  lib/libLLVMTarget.so.22.0git  lib/libLLVMBitWriter.so.22.0git  lib/libMLIRXeVMToLLVMIRTranslation.so.22.0git  lib/libMLIRTargetLLVMIRExport.so.22.0git  lib/libMLIRLLVMIRTransforms.so.22.0git  lib/libMLIRTranslateLib.so.22.0git  lib/libMLIRTestDynDialect.so.22.0git  lib/libMLIRTosaTestPasses.so.22.0git  lib/libMLIRXeGPUTestPasses.so.22.0git  lib/libMLIRXeGPUTransforms.so.22.0git  lib/libMLIRXeGPUUtils.so.22.0git  lib/libMLIRXeGPUDialect.so.22.0git  lib/libMLIRXeVMDialect.so.22.0git  lib/libLLVMFrontendOpenMP.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMTransformUtils.so.22.0git  lib/libLLVMAnalysis.so.22.0git  lib/libLLVMMCParser.so.22.0git  lib/libLLVMMC.so.22.0git  lib/libLLVMIRReader.so.22.0git  lib/libMLIROpenACCDialect.so.22.0git  lib/libMLIROpenACCMPCommon.so.22.0git  lib/libMLIRTestDialect.so.22.0git  lib/libMLIRLinalgTransforms.so.22.0git  lib/libMLIRIndexDialect.so.22.0git  lib/libMLIRMemRefTransforms.so.22.0git  lib/libMLIRArithTransforms.so.22.0git  lib/libMLIRFuncTransforms.so.22.0git  lib/libMLIRNVGPUDialect.so.22.0git  lib/libMLIRShardTransforms.so.22.0git  lib/libMLIRTosaShardingInterfaceImpl.so.22.0git  lib/libMLIRTosaDialect.so.22.0git  lib/libMLIRQuantUtils.so.22.0git  lib/libMLIRQuantDialect.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRSCFTransforms.so.22.0git  lib/libMLIRBufferizationTransforms.so.22.0git  lib/libMLIRTensorTransforms
so.22.0git  lib/libMLIRAffineTransforms.so.22.0git  lib/libMLIRSCFUtils.so.22.0git  lib/libMLIRTensorTilingInterfaceImpl.so.22.0git  lib/libMLIRLinalgUtils.so.22.0git  lib/libMLIRTensorUtils.so.22.0git  lib/libMLIRTilingInterface.so.22.0git  lib/libMLIRVectorToSCF.so.22.0git  lib/libMLIRVectorTransforms.so.22.0git  lib/libMLIRAffineUtils.so.22.0git  lib/libMLIRGPUUtils.so.22.0git  lib/libMLIRLinalgDialect.so.22.0git  lib/libMLIRBufferizationDialect.so.22.0git  lib/libMLIRSparseTensorDialect.so.22.0git  lib/libMLIRMemRefUtils.so.22.0git  lib/libMLIRVectorUtils.so.22.0git  lib/libMLIRAffineAnalysis.so.22.0git  lib/libMLIRSCFDialect.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRVectorDialect.so.22.0git  lib/libMLIRIndexingMapOpInterface.so.22.0git  lib/libMLIRMaskableOpInterface.so.22.0git  lib/libMLIRMaskingOpInterface.so.22.0git  lib/libMLIRVectorInterfaces.so.22.0git  lib/libMLIRNVVMDialect.so.22.0git  lib/libMLIRGPUDialect.so.22.0git  lib/libMLIRDLTIDialect.so.22.0git  lib/libMLIRMathDialect.so.22.0git  lib/libMLIRLLVMDialect.so.22.0git  lib/libLLVMAsmParser.so.22.0git  lib/libMLIRPtrDialect.so.22.0git  lib/libMLIRPtrMemorySpaceInterfaces.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRTransforms.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRDerivedAttributeOpInterface.so.22.0git  lib/libMLIRReduce.so.22.0git  lib/libMLIRTransformUtils.so.22.0git  lib/libMLIRSubsetOpInterface.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRRewrite.so.22.0git  lib/libMLIRRewritePDL.so.22.0git  lib/libMLIRPDLToPDLInterp.so.22.0git  lib/libMLIRPDLInterpDialect.so.22.0git  lib/libMLIRPDLDialect.so.22.0git  lib/libMLIRIRDL.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRParser.so.22.0git  lib/libMLIRBytecodeReader.so.22.0git  lib/libMLIRAsmParser.so.22.0git  lib/libMLIRBytecodeWriter.so.22.0git  lib/libMLIRBytecodeOpInterface.so.22.0git  lib/libMLIRDebug.so.22.0git  lib/libMLIRObservers.so.22.0git  lib/libMLIRPluginsLib.so.22.0git  lib/libMLIRPass.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRRemarkStreamer.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMCore.so.22.0git  lib/libLLVMBinaryFormat.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMRemarks.so.22.0git  lib/libLLVMBitstreamReader.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o: undefined reference to symbol '_ZN3firlsERN4llvm11raw_ostreamERKNS_12ProcBoxValueE'
/usr/bin/ld: /home/botworker/bbot/hip-third-party-libs-test/build/./lib/libFIRBuilder.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[8012/8067] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/DataSharingProcessor.cpp.o
[8013/8067] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/check-omp-atomic.cpp.o
[8014/8067] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/PFTBuilder.cpp.o
[8015/8067] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/ConvertExpr.cpp.o
[8016/8067] Building CXX object tools/flang/tools/flang-driver/CMakeFiles/flang.dir/driver.cpp.o
[8017/8067] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/ParserActions.cpp.o
[8018/8067] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 107, in step
    yield
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 44, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 120, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/hip-third-party-libs-test/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.

@jplehr
Copy link
Contributor

jplehr commented Sep 15, 2025

Apologies for the buildbot noise, please ignore this error.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 16, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-multistage running on ppc64le-clang-multistage-test while building compiler-rt at step 11 "ninja check 2".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/12879

Here is the relevant piece of the build log for the reference
Step 11 (ninja check 2) failure: 1200 seconds without output running [b'ninja', b'check-all', b'check-runtimes'], attempting to kill
...
PASS: LLVM :: tools/llvm-readobj/ELF/AMDGPU/elf-headers.test (101767 of 101777)
PASS: LLVM :: tools/llvm-libtool-darwin/L-and-l.test (101768 of 101777)
PASS: LLVM :: tools/llvm-objcopy/ELF/cross-arch-headers.test (101769 of 101777)
PASS: LLVM :: CodeGen/RISCV/reserved-regs.ll (101770 of 101777)
PASS: mlgo-utils :: corpus/extract_ir_script.test (101771 of 101777)
PASS: lit :: shtest-shell.py (101772 of 101777)
PASS: LLVM :: tools/llvm-readobj/ELF/note-core.test (101773 of 101777)
PASS: LLVM :: tools/llvm-readobj/ELF/file-header-machine-types.test (101774 of 101777)
PASS: lit :: shtest-define.py (101775 of 101777)
PASS: LLVM :: tools/llvm-objdump/ELF/AMDGPU/subtarget.ll (101776 of 101777)
command timed out: 1200 seconds without output running [b'ninja', b'check-all', b'check-runtimes'], attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=3574.334290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants