Building 2.9 fails on last step

Hello there,

New here trying to build blender. Everything going well until the last step:

Blockquote
[100%] Linking CXX executable …/…/bin/blender
cd /home/user/Downloads/blender/build/source/creator && /usr/bin/cmake3 -E cmake_link_script CMakeFiles/blender.dir/link.txt --verbose=1
/usr/bin/c++ -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wrestrict -Wuninitialized -Wundef -Wmissing-declarations -Wimplicit-fallthrough=5 -fuse-ld=gold -fopenmp -std=c++17 -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2 -O2 -DNDEBUG -no-pie -Wl,–version-script=’/home/user/Downloads/blender/source/creator/blender.map’ -rdynamic CMakeFiles/blender.dir/creator.c.o CMakeFiles/blender.dir/creator_args.c.o CMakeFiles/blender.dir/creator_signals.c.o CMakeFiles/blender.dir/buildinfo.c.o -o …/…/bin/blender -L/opt/lib/python-3.7/lib -L/opt/lib/ffmpeg/lib -L/opt/lib/boost/lib -L/opt/lib/llvm-9.0.1/lib -L/tbb/lib …/…/lib/libbf_blenkernel.a /opt/lib/tbb/lib/libtbb.so …/…/lib/libbf_windowmanager.a -ljemalloc -lutil -lc -lm -lpthread -ldl -lX11 -lXi -lXxf86vm -lXfixes -lXrender
CMakeFiles/blender.dir/creator.c.o:creator.c:function callback_main_atexit: error: undefined reference to ‘BLI_argsFree’
CMakeFiles/blender.dir/creator.c.o:creator.c:function callback_clg_fatal: error: undefined reference to ‘BLI_system_backtrace’
CMakeFiles/blender.dir/creator.c.o:creator.c:function main: error: undefined reference to ‘MEM_use_guarded_allocator’
CMakeFiles/blender.dir/creator.c.o:creator.c:function main: error: undefined reference to ‘MEM_initialize_memleak_detection’

Blockquote

Any ideas as to what is causing this linker failure at the last step? I can see all libs are under the lib subdir but the linker cannot find the references.

Any help will be appreciated

Have you tried updating to latest master? Or are you building a branch? Maybe it is just a bad commit, it doesn’t look like a build configuration issue.

I’m building from branch blender-v2.90-release. Will try master next.

That worked, thank you!