Ubuntu 24.04 build from source, blender crashes at startup

I’m on a Ubuntu 24.04 WSL2, with CUDA support.

v4.4.3 works fine

Building from source at tag v4.4.3 has no issue encountered. I followed the steps from https://developer.blender.org/docs/handbook/building_blender/linux.

Specifically, I ran the following commands.

sudo apt update
sudo apt install python3 git git-lfs

mkdir ~/blender-git
cd ~/blender-git
git clone https://github.com/blender/blender.git

cd ~/blender-git/blender/
./build_files/build_environment/install_linux_packages.py

make update

cd ~/blender-git
cmake -S ./blender -B build/blender -GNinja \
    -DWITH_COMPILER_CCACHE=ON \
    -DWITH_COMPILER_ASAN=OFF \
    -DWITH_CYCLES_CUDA_BINARIES=ON \
    -DWITH_CYCLES_DEVICE_OPTIX=OFF

cmake --build build/blender
cmake --install build/blender

Then after the building finishes, I run blender with or without factory startup, everything works fine.

In the main branch, I tested several times at some commits during the last couple of days.
Building finishes the no errors, but I always get the following results, and /tmp/blender.crash.txt is empty.

$ ./build/blender/bin/blender
Error: Failed to read file '', not a blend file
Writing: /tmp/blender.crash.txt
[1]    291354 segmentation fault (core dumped)  ./build/blender/bin/blender
$ ./build/blender/bin/blender --factory-startup
Error: Failed to read file '', not a blend file
Writing: /tmp/blender.crash.txt
[1]    291177 segmentation fault (core dumped)  ./build/blender/bin/blender --factory-startup

I tried to run it with lldb, and the backtrace is like the following

$ lldb ./build/blender/bin/blender
(lldb) target create "./build/blender/bin/blender"
Current executable set to '/home/elegracer/blender-git/build/blender/bin/blender' (x86_64).
(lldb) run
Process 291972 launched: '/home/elegracer/blender-git/build/blender/bin/blender' (x86_64)
Process 291972 stopped and restarted: thread 1 received signal: SIGCHLD
Error: Failed to read file '', not a blend file
Process 291972 stopped
* thread #1, name = 'blender', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x18)
    frame #0: 0x0000000000bbd17a blender`BKE_reports_init(ReportList*, int) + 26
blender`BKE_reports_init:
->  0xbbd17a <+26>: movups %xmm0, 0x10(%rdi)
    0xbbd17e <+30>: movq   %rdi, %rbx
    0xbbd181 <+33>: leaq   0x6619168(%rip), %rdx
    0xbbd188 <+40>: movq   %rax, 0x10(%rdi)
(lldb) bt
* thread #1, name = 'blender', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x18)
  * frame #0: 0x0000000000bbd17a blender`BKE_reports_init(ReportList*, int) + 26
    frame #1: 0x00000000014b965d blender`wm_add_default(Main*, bContext*) + 109
    frame #2: 0x00000000014d0f75 blender`wm_file_read_setup_wm_finalize(bContext*, Main*, BlendFileReadWMSetupData*) + 1045
    frame #3: 0x00000000014d6eb8 blender`wm_homefile_read_ex(bContext*, wmHomeFileRead_Params const*, ReportList*, wmFileReadPost_Params**) + 3736
    frame #4: 0x00000000014dc92e blender`WM_init(bContext*, int, char const**) + 318
    frame #5: 0x000000000082c576 blender`main + 774
    frame #6: 0x00007fffe8d611ca libc.so.6`___lldb_unnamed_symbol3278 + 122
    frame #7: 0x00007fffe8d6128b libc.so.6`__libc_start_main + 139
    frame #8: 0x0000000000966605 blender`_start + 37
(lldb)d0f75 blender`wm_file_read_setup_wm_finalize(bContext*, Main*, BlendFileReadWMSetupData*) + 1045
    frame #3: 0x00000000014d6eb8 blender`wm_homefile_read_ex(bContext*, wmHomeFileRead_Params const*, ReportList*, wmFileReadPost_Params**) + 3736
    frame #4: 0x00000000014dc92e blender`WM_init(bContext*, int, char const**) + 318
    frame #5: 0x000000000082c576 blender`main + 774
    frame #6: 0x00007fffe8d611ca libc.so.6`___lldb_unnamed_symbol3278 + 122
    frame #7: 0x00007fffe8d6128b libc.so.6`__libc_start_main + 139
    frame #8: 0x0000000000966605 blender`_start + 37
(lldb)

If you need more information, please tell me and I will get it for this issue. Thanks!

========================

make update output

git lfs install --skip-repo
Git LFS initialized.

Updating Blender Git Repository
===============================

git pull --rebase
Already up to date.

Configuring Precompiled Libraries
=================================

Detected platform     : linux
Detected architecture : x64

* Enabling precompiled libraries at lib/linux_x64

Updating Libraries
==================

* Updating lib/linux_x64 ...
GIT_LFS_SKIP_SMUDGE=1 git submodule update --init --progress lib/linux_x64
git -C lib/linux_x64 lfs pull
* Skipping lib/macos_arm64
* Skipping lib/macos_x64
* Skipping lib/windows_x64
* Skipping lib/windows_arm64

cmake_configuration output

-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for malloc_stats
-- Looking for malloc_stats - found
-- Looking for feenableexcept
-- Looking for feenableexcept - not found
-- Looking for include file execinfo.h
-- Looking for include file execinfo.h - found
-- Found Git: /usr/bin/git (found version "2.43.0")
-- Performing Test SUPPORT_NEON_BUILD
-- Performing Test SUPPORT_NEON_BUILD - Failed
-- Performing Test SUPPORT_SSE42_BUILD
-- Performing Test SUPPORT_SSE42_BUILD - Success
-- Using pre-compiled LIBDIR: /home/elegracer/blender-git/blender/lib/linux_x64
-- Found JPEG: /home/elegracer/blender-git/blender/lib/linux_x64/jpeg/lib/libjpeg.a (found version "80")
-- Found ZLIB: /home/elegracer/blender-git/blender/lib/linux_x64/zlib/lib/libz.a (found version "1.3.1")
-- Found PNG: /home/elegracer/blender-git/blender/lib/linux_x64/png/lib/libpng.a (found version "1.6.43")
-- Found Zstd: /home/elegracer/blender-git/blender/lib/linux_x64/zstd/lib/libzstd.a
-- Found Epoxy: /home/elegracer/blender-git/blender/lib/linux_x64/epoxy/lib/libepoxy.a
-- Found TIFF: /home/elegracer/blender-git/blender/lib/linux_x64/tiff/lib/libtiff.a (found version "4.7.0")
-- Found Vulkan: /home/elegracer/blender-git/blender/lib/linux_x64/vulkan/lib/libvulkan.so
-- Found ShaderC: /home/elegracer/blender-git/blender/lib/linux_x64/shaderc/lib/libshaderc_combined.a
-- Found Freetype: /home/elegracer/blender-git/blender/lib/linux_x64/freetype/lib/libfreetype.a (found version "2.13.0")
-- Found Brotli: /home/elegracer/blender-git/blender/lib/linux_x64/brotli/lib/libbrotlicommon-static.a
-- Looking for FT_CONFIG_OPTION_USE_BROTLI
-- Looking for FT_CONFIG_OPTION_USE_BROTLI - found
-- Found PythonLibsUnix: /home/elegracer/blender-git/blender/lib/linux_x64/python/lib/libpython3.11.a
-- #define OPENEXR_VERSION_STRING "3.3.2"
-- Found OpenEXR: /home/elegracer/blender-git/blender/lib/linux_x64/openexr/lib/libIex.so;/home/elegracer/blender-git/blender/lib/linux_x64/openexr/lib/libOpenEXR.so;/home/elegracer/blender-git/blender/lib/linux_x64/openexr/lib/libOpenEXRCore.so;/home/elegracer/blender-git/blender/lib/linux_x64/openexr/lib/libIlmThread.so;/home/elegracer/blender-git/blender/lib/linux_x64/imath/lib/libImath.so
-- Found OpenJPEG: /home/elegracer/blender-git/blender/lib/linux_x64/openjpeg/lib/libopenjp2.a
-- Found OpenAL: /home/elegracer/blender-git/blender/lib/linux_x64/openal/lib/libopenal.a
-- Found SndFile: /home/elegracer/blender-git/blender/lib/linux_x64/sndfile/lib/libsndfile.a
-- Found FFmpeg: /home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libavformat.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libavcodec.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libavdevice.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libavutil.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libswresample.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libswscale.a;/home/elegracer/blender-git/blender/lib/linux_x64/sndfile/lib/libsndfile.a;/home/elegracer/blender-git/blender/lib/linux_x64/sndfile/lib/libFLAC.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libmp3lame.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libopus.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libtheora.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libtheoradec.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libtheoraenc.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libvorbis.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libvorbisenc.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libvorbisfile.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libogg.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libvpx.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libx264.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libx265.a;/home/elegracer/blender-git/blender/lib/linux_x64/ffmpeg/lib/libaom.a
-- Found Fftw3: /home/elegracer/blender-git/blender/lib/linux_x64/fftw3/lib/libfftw3f.a
-- Found OpenCOLLADA: /home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libOpenCOLLADAStreamWriter.a;/home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libOpenCOLLADASaxFrameworkLoader.a;/home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libOpenCOLLADAFramework.a;/home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libOpenCOLLADABaseUtils.a;/home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libGeneratedSaxParser.a;/home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libMathMLSolver.a;/home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libbuffer.a;/home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libftoa.a;/home/elegracer/blender-git/blender/lib/linux_x64/opencollada/lib/libUTF.a
-- Found XML2: /home/elegracer/blender-git/blender/lib/linux_x64/xml2/lib/libxml2.a
-- Found JeMalloc: /home/elegracer/blender-git/blender/lib/linux_x64/jemalloc/lib/libjemalloc.a
-- Found Spacenav: /home/elegracer/blender-git/blender/lib/linux_x64/spnav/lib/libspnav.a
-- Found OSL: /home/elegracer/blender-git/blender/lib/linux_x64/osl/lib/liboslcomp.so;/home/elegracer/blender-git/blender/lib/linux_x64/osl/lib/liboslexec.so;/home/elegracer/blender-git/blender/lib/linux_x64/osl/lib/liboslquery.so;/home/elegracer/blender-git/blender/lib/linux_x64/osl/lib/liboslnoise.so (found suitable version "1.14.4", minimum required is "1.13.4")
-- Found OpenVDB: /home/elegracer/blender-git/blender/lib/linux_x64/openvdb/lib/libopenvdb.so
-- Found NanoVDB: /home/elegracer/blender-git/blender/lib/linux_x64/openvdb/include
-- Found Alembic: /home/elegracer/blender-git/blender/lib/linux_x64/alembic/lib/libAlembic.a
-- Found USD: /home/elegracer/blender-git/blender/lib/linux_x64/usd/lib/libusd_ms.so
-- Found PugiXML: /home/elegracer/blender-git/blender/lib/linux_x64/pugixml/lib/libpugixml.a
-- Found WebP: /home/elegracer/blender-git/blender/lib/linux_x64/webp/lib/libwebp.a;/home/elegracer/blender-git/blender/lib/linux_x64/webp/lib/libwebpmux.a;/home/elegracer/blender-git/blender/lib/linux_x64/webp/lib/libwebpdemux.a;/home/elegracer/blender-git/blender/lib/linux_x64/webp/lib/libsharpyuv.a
-- Found OpenImageIO: /home/elegracer/blender-git/blender/lib/linux_x64/openimageio/lib/libOpenImageIO.so;/home/elegracer/blender-git/blender/lib/linux_x64/openimageio/lib/libOpenImageIO_Util.so
-- Found OpenColorIO: /home/elegracer/blender-git/blender/lib/linux_x64/opencolorio/lib/libOpenColorIO.so (found suitable version "2.4.1", minimum required is "2.0.0")
-- Found Embree: /home/elegracer/blender-git/blender/lib/linux_x64/embree/lib/libembree4.so;/home/elegracer/blender-git/blender/lib/linux_x64/embree/lib/libembree4_sycl.a (Required is at least version "4.0.0")
-- Found OpenImageDenoise: /home/elegracer/blender-git/blender/lib/linux_x64/openimagedenoise/lib/libOpenImageDenoise.so
-- Found OpenSubdiv: /home/elegracer/blender-git/blender/lib/linux_x64/opensubdiv/lib/libosdGPU.so;/home/elegracer/blender-git/blender/lib/linux_x64/opensubdiv/lib/libosdCPU.so
-- Found XR_OpenXR_SDK: /home/elegracer/blender-git/blender/lib/linux_x64/xr_openxr_sdk/lib/libopenxr_loader.a
-- Found GMP: /home/elegracer/blender-git/blender/lib/linux_x64/gmp/lib/libgmp.a
-- Found Potrace: /home/elegracer/blender-git/blender/lib/linux_x64/potrace/lib/libpotrace.a
-- Found Haru: /home/elegracer/blender-git/blender/lib/linux_x64/haru/lib/libhpdfs.a
-- Found OpenPGL: /home/elegracer/blender-git/blender/lib/linux_x64/openpgl/lib/libopenpgl.a
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Jack: /usr/lib/x86_64-linux-gnu/libjack.so
-- Found Pulse: /usr/lib/x86_64-linux-gnu/libpulse.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for module 'libpipewire-0.3>=1.1.0'
--   Package dependency requirement 'libpipewire-0.3 >= 1.1.0' could not be satisfied.
Package 'libpipewire-0.3' has version '1.0.5', required version is '>= 1.1.0'
-- PipeWire not found, disabling WITH_PIPEWIRE
-- Checking for module 'xkbcommon'
--   Found xkbcommon, version 1.6.0
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Performing Test ATOMIC_OPS_WITH_LIBATOMIC
-- Performing Test ATOMIC_OPS_WITH_LIBATOMIC - Success
-- SSE42 SIMD instructions enabled
-- Performing Test C_WARN_ALL
-- Performing Test C_WARN_ALL - Success
-- ..... MORE SIMILAR TESTS .....
-- Performing Test CXX_WARN_NO_REORDER
-- Performing Test CXX_WARN_NO_REORDER - Success
-- numpy found at '/home/elegracer/blender-git/blender/lib/linux_x64/python/lib/python3.11/site-packages'
-- numpy include files found at '/home/elegracer/blender-git/blender/lib/linux_x64/python/lib/python3.11/site-packages/numpy/core/include'
-- requests found at '/home/elegracer/blender-git/blender/lib/linux_x64/python/lib/python3.11/site-packages'
-- zstandard found at '/home/elegracer/blender-git/blender/lib/linux_x64/python/lib/python3.11/site-packages'
-- Performing Test C_MACRO_PREFIX_MAP
-- Performing Test C_MACRO_PREFIX_MAP - Success
-- Performing Test CXX_MACRO_PREFIX_MAP
-- Performing Test CXX_MACRO_PREFIX_MAP - Success
-- Looking for memfd_create
-- Looking for memfd_create - found
-- Looking for poll
-- Looking for poll - found
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - found
CMake Warning (dev) at intern/cycles/cmake/external_libs.cmake:28 (find_package):
  Policy CMP0146 is not set: The FindCUDA module is removed.  Run "cmake
  --help-policy CMP0146" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

Call Stack (most recent call first):
  intern/cycles/CMakeLists.txt:25 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found CUDA: /usr/local/cuda (found version "12.9")
-- Found CUDA /usr/local/cuda/bin/nvcc (12.9)
-- Found SYCL: /home/elegracer/blender-git/blender/lib/linux_x64/dpcpp/lib/libsycl.so (found version "8.0.0")
-- Found LevelZero: /home/elegracer/blender-git/blender/lib/linux_x64/level-zero/lib/libze_loader.so
-- Performing Test CXX_HAS_SSE42
-- Performing Test CXX_HAS_SSE42 - Success
-- Performing Test CXX_HAS_AVX2
-- Performing Test CXX_HAS_AVX2 - Success
-- Performing Test _has_no_error_unused_macros
-- Performing Test _has_no_error_unused_macros - Success
-- CUDA binaries for sm_30 require CUDA 10 or earlier, skipped.
-- CUDA binaries for sm_35 require CUDA 11 or earlier, skipped.
-- CUDA binaries for sm_37 require CUDA 11 or earlier, skipped.
-- Performing Test _has_cxxflag_float_conversion
-- Performing Test _has_cxxflag_float_conversion - Success
-- Performing Test _has_cxxflag_double_promotion
-- Performing Test _has_cxxflag_double_promotion - Success
-- Found HIP: /usr/bin/hipcc (found suitable version "5.7.31921", minimum required is "5.5.0")
-- Finding Python Module File: certifi/cacert.pem
-- Tests: Using Python executable: /home/elegracer/blender-git/blender/lib/linux_x64/python/bin/python3.11
-- RPM Build Not Found (rpmbuild). RPM generation will not be available
-- C Compiler:   "GNU"
-- C++ Compiler: "GNU"
--
Blender Configuration
=====================

  Build Options:
  - WITH_ALEMBIC                    ON
  - WITH_BULLET                     ON
  - WITH_CLANG                      OFF
  - WITH_CYCLES                     ON
  - WITH_FFTW3                      ON
  - WITH_FREESTYLE                  ON
  - WITH_GMP                        ON
  - WITH_HARU                       ON
  - WITH_IK_ITASC                   ON
  - WITH_IK_SOLVER                  ON
  - WITH_INPUT_NDOF                 ON
  - WITH_INPUT_IME                  ON
  - WITH_INTERNATIONAL              ON
  - WITH_MANIFOLD                   ON
  - WITH_OPENCOLLADA                ON
  - WITH_OPENCOLORIO                ON
  - WITH_OPENIMAGEDENOISE           ON
  - WITH_OPENSUBDIV                 ON
  - WITH_OPENVDB                    ON
  - WITH_POTRACE                    ON
  - WITH_PUGIXML                    ON
  - WITH_QUADRIFLOW                 ON
  - WITH_TBB                        ON
  - WITH_USD                        ON
  - WITH_MATERIALX                  ON
  - WITH_XR_OPENXR                  ON

  Compiler Options:
  - WITH_BUILDINFO                  ON
  - WITH_OPTIMIZED_BUILD_TOOLS      ON

  System Options:
  - WITH_INSTALL_PORTABLE           ON
  - WITH_MEM_JEMALLOC               ON
  - WITH_MEM_VALGRIND               OFF

  GHOST Options:
  - WITH_GHOST_DEBUG                OFF
  - WITH_GHOST_SDL                  OFF
  - WITH_GHOST_X11                  ON
  - WITH_GHOST_WAYLAND              ON
  - WITH_GHOST_XDND                 ON
  - WITH_X11_XFIXES                 ON
  - WITH_X11_XINPUT                 ON
  - WITH_GHOST_WAYLAND_DYNLOAD      ON
  - WITH_GHOST_WAYLAND_LIBDECOR     ON

  Image Formats:
  - WITH_IMAGE_CINEON               ON
  - WITH_IMAGE_OPENEXR              ON
  - WITH_IMAGE_OPENJPEG             ON

  Audio:
  - WITH_AUDASPACE                  ON
  - WITH_CODEC_FFMPEG               ON
  - WITH_CODEC_SNDFILE              ON
  - WITH_COREAUDIO                  OFF
  - WITH_JACK                       ON
  - WITH_JACK_DYNLOAD               OFF
  - WITH_OPENAL                     ON
  - WITH_PULSEAUDIO                 ON
  - WITH_PULSEAUDIO_DYNLOAD         OFF
  - WITH_SDL                        OFF
  - WITH_WASAPI                     OFF

  Compression:
  - WITH_LZMA                       ON
  - WITH_LZO                        ON

  Python:
  - WITH_PYTHON_INSTALL             ON
  - WITH_PYTHON_INSTALL_NUMPY       ON
  - WITH_PYTHON_INSTALL_ZSTANDARD   ON
  - WITH_PYTHON_MODULE              OFF
  - WITH_PYTHON_SAFETY              OFF

  Modifiers:
  - WITH_MOD_FLUID                  ON
  - WITH_MOD_OCEANSIM               ON
  - WITH_MOD_REMESH                 ON

  Rendering:
  - WITH_HYDRA                      ON

  Rendering (Cycles):
  - WITH_CYCLES_OSL                 ON
  - WITH_CYCLES_EMBREE              ON
  - WITH_CYCLES_PATH_GUIDING        ON
  - WITH_CYCLES_DEVICE_OPTIX        OFF
  - WITH_CYCLES_DEVICE_CUDA         ON
  - WITH_CYCLES_CUDA_BINARIES       ON
  - WITH_CYCLES_DEVICE_ONEAPI       OFF
  - WITH_CYCLES_ONEAPI_BINARIES     OFF
  - WITH_CYCLES_DEVICE_HIP          ON
  - WITH_CYCLES_HIP_BINARIES        OFF
  - WITH_CYCLES_DEVICE_HIPRT        OFF


-- Configuring done (14.2s)
-- Generating done (0.8s)
-- Build files have been written to: /home/elegracer/blender-git/build/blender

cmake_build output

+ cmake --build build/blender
[898/6678] Building CXX object intern/mantaflow/CMakeFiles/bf_intern_mantaflow.dir/intern/MANTA_main.cpp.o
In file included from /usr/include/c++/13/string:54,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/bits/ios_base.h:41,
                 from /usr/include/c++/13/ios:44,
                 from /usr/include/c++/13/istream:40,
                 from /usr/include/c++/13/fstream:40,
                 from /home/elegracer/blender-git/blender/intern/mantaflow/intern/MANTA_main.cpp:10:
In member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’,
    inlined from ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’ at /usr/include/c++/13/bits/basic_string.h:4037:61,
    inlined from ‘std::string MANTA::getRealValue(const std::string&)’ at /home/elegracer/blender-git/blender/intern/mantaflow/intern/MANTA_main.cpp:1146:86:
/usr/include/c++/13/bits/basic_string.h:1072:16: warning: array subscript 1 is outside array bounds of ‘std::aligned_storage<64, 8>::type [0]’ [-Warray-bounds=]
 1072 |       { return _M_string_length; }
      |                ^~~~~~~~~~~~~~~~
In member function ‘std::string MANTA::getRealValue(const std::string&)’:
cc1plus: note: source object is likely at address zero
In member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_data() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’,
    inlined from ‘const _CharT* std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::data() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/13/bits/basic_string.h:2609:23,
    inlined from ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’ at /usr/include/c++/13/bits/basic_string.h:4037:30,
    inlined from ‘std::string MANTA::getRealValue(const std::string&)’ at /home/elegracer/blender-git/blender/intern/mantaflow/intern/MANTA_main.cpp:1146:86:
/usr/include/c++/13/bits/basic_string.h:223:28: warning: array subscript 1 is outside array bounds of ‘std::aligned_storage<64, 8>::type [0]’ [-Warray-bounds=]
  223 |       { return _M_dataplus._M_p; }
      |                            ^~~~
In member function ‘std::string MANTA::getRealValue(const std::string&)’:
cc1plus: note: source object is likely at address zero
[3727/6678] Building CXX object intern/cycles/kernel/osl/CMakeFiles/cycles_kernel_osl.dir/closures.cpp.o
In file included from /home/elegracer/blender-git/blender/intern/cycles/kernel/osl/../../kernel/osl/closures_setup.h:10,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/osl/../../kernel/osl/osl.h:20,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/osl/closures.cpp:25:
/home/elegracer/blender-git/blender/intern/cycles/kernel/osl/../../kernel/closure/alloc.h: In function ‘ccl::ShaderClosure* ccl::closure_alloc(ShaderData*, uint, ClosureType, Spectrum)’:
/home/elegracer/blender-git/blender/intern/cycles/kernel/osl/../../kernel/closure/alloc.h:12:64: warning: unused parameter ‘size’ [-Wunused-parameter]
   12 |                                                     const uint size,
      |                                                     ~~~~~~~~~~~^~~~
[4328/6678] Building CXX object intern/cycles/kernel/CMakeFiles/cycles_kernel.dir/device/cpu/kernel_avx2.cpp.o
In file included from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/closure/bsdf_transparent.h:12,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/closure/bsdf.h:16,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/integrator/guiding.h:15,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/integrator/intersect_closest.h:9,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/integrator/init_from_bake.h:12,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/device/cpu/kernel_arch_impl.h:26,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/device/cpu/kernel_avx2.cpp:29:
/home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/closure/alloc.h: In function ‘ccl::ShaderClosure* ccl::closure_alloc(ShaderData*, uint, ClosureType, Spectrum)’:
/home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/closure/alloc.h:12:64: warning: unused parameter ‘size’ [-Wunused-parameter]
   12 |                                                     const uint size,
      |                                                     ~~~~~~~~~~~^~~~
[4340/6678] Building CXX object intern/cycles/kernel/CMakeFiles/cycles_kernel.dir/device/cpu/kernel.cpp.o
In file included from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/closure/bsdf_transparent.h:12,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/closure/bsdf.h:16,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/integrator/guiding.h:15,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/integrator/intersect_closest.h:9,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/integrator/init_from_bake.h:12,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/device/cpu/kernel_arch_impl.h:26,
                 from /home/elegracer/blender-git/blender/intern/cycles/kernel/device/cpu/kernel.cpp:50:
/home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/closure/alloc.h: In function ‘ccl::ShaderClosure* ccl::closure_alloc(ShaderData*, uint, ClosureType, Spectrum)’:
/home/elegracer/blender-git/blender/intern/cycles/kernel/../kernel/closure/alloc.h:12:64: warning: unused parameter ‘size’ [-Wunused-parameter]
   12 |                                                     const uint size,
      |                                                     ~~~~~~~~~~~^~~~
[6678/6678] Linking CXX executable bin/blender
Run: "ninja install" to copy runtime files and scripts to: /home/elegracer/blender-git/build/blender/bin/4.5

cmake_install outputs are too long, and I am a new user, so cannot upload an attachment. If it is needed, I can paste it below.

I confirm facing the same issue, I raised it here[

It looks like you didn’t run the install step (e.g. ninja install in the build folder) which meant that Blender couldn’t find the default startup.blend file and crash.
Make sure that in the build folder und the release/datafiles there is a startup.blend file.
Curious that this results in a crash though and not just an exit.

I ran cmake —install, and as I said the install outputs are too long to show here. And to emphasize, 4.4.3 works fine

@filedescriptor I could not find the startup.blend file in release/datafiles
HEre are all the occurences of startup.blend in the build directory :

./bin/4.5/scripts/startup/bl_app_templates_system/Video_Editing/startup.blend
./bin/4.5/scripts/startup/bl_app_templates_system/VFX/startup.blend
./bin/4.5/scripts/startup/bl_app_templates_system/Sculpting/startup.blend
./bin/4.5/scripts/startup/bl_app_templates_system/2D_Animation/startup.blend

Do you have a startup.blend file in the folder I mentioned above? If you run blender with a path to a blend file does it open normally?

For the 2nd question, I tried to give a path to a blend file, the output is the same.

The same issue occurs on my system as well, and it started recently. There were no problems a week ago.

OS: Arch Linux

Is release/datafiles/startup.blend in the Blender source directory (not the build directory) a valid blend file that you can open with another Blender version?

I’m guessing maybe it didn’t get downloaded properly with Git LFS. If so, maybe running git lfs fetch origin will work around it. But not sure why the download would have silently been skipped or failed in the first place.

I have a startup.blend file located at ~/blender-git/blender/release/datafiles.

Its size is 131 bytes.

I ran the following commands successfully:

git lfs fetch origin
git lfs checkout
git pull
make

Everything executed without errors.

So the problem should be related with lfs.

If you cloned from GitHub, maybe try running this:

git lfs fetch lfs-fallback

If that doesn’t work, it would help to see the contents of .git/config in the Blender source directory.

1 Like

When I run this command, some files are updated, and blender starts without any error. Thank you!

I have the same build problem. When I ran this command, I have this error

Invalid remote name "lfs-fallback": invalid remote name: "/home/hbui/sw/blender/lfs-fallback"

The content of .git/config is

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote “origin”]
url = blender/blender: The official Blender project repository. - blender - Blender Projects
fetch = +refs/heads/:refs/remotes/origin/
[branch “main”]
remote = origin
merge = refs/heads/main
[lfs]
repositoryformatversion = 0
[submodule “lib/linux_x64”]
update = checkout
active = true
url = blender/lib-linux_x64: Precompiled libraries for Linux x64 platform - lib-linux_x64 - Blender Projects

Since you are using directly Blender’s git server, you should not have any need for lfs-fallback (and it is not expected to be defined).

Does running git lfs pull fix the issue for you?

The fact that you can build and wait 20-40mins on a modern system, and then install the entire code base and only after attempting to run it do you get an error is dumb.

Please add some validation steps in during the build phase with clear error messages.