Linking errors with prebuild libs on Linux

Dear all.

Today (2020-05-10), I have tried to build Blender from scratch. I use this documentation and use pre-compiled libraries. All files were downloaded today. The built directory is not in the home directory but in some other location of the hard disk. OS: Lubuntu 18.04 64Bit.
Note that I had a built before in the home directory but I deleted it at the very beginning (before new Blender built) due to not enough disk space in home.

Anyway, everything works well despite the linking: during linking I get a similar error message as shown in the first message of this thread, see below. I attach the CMakeCache.txt file, which I did not modify.

Any ideas?

[100%] Linking CXX executable ../../bin/blender
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exrinput.cpp.o):exrinput.cpp:function OpenImageIO_v1_8::OpenEXRInput::PartInfo::parse_header(OpenImageIO_v1_8::OpenEXRInput*, Imf_2_4::Header const*): Fehler: undefined reference to 'Imf_2_4::Header::type() const'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exrinput.cpp.o):exrinput.cpp:function OpenImageIO_v1_8::OpenEXRInput::PartInfo::parse_header(OpenImageIO_v1_8::OpenEXRInput*, Imf_2_4::Header const*): Fehler: undefined reference to 'Imf_2_4::Header::type() const'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exrinput.cpp.o):exrinput.cpp:function OpenImageIO_v1_8::OpenEXRInput::PartInfo::parse_header(OpenImageIO_v1_8::OpenEXRInput*, Imf_2_4::Header const*): Fehler: undefined reference to 'Imf_2_4::Header::name() const'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:function OpenImageIO_v1_8::OpenEXROutput::open(std::string const&, int, OpenImageIO_v1_8::ImageSpec const*): Fehler: undefined reference to 'Imf_2_4::Header::setType(std::string const&)'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:function Imf_2_4::TypedAttribute<std::string>::typeName() const: Fehler: undefined reference to 'Imf_2_4::TypedAttribute<std::string>::staticTypeName()'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:function Imf_2_4::TypedAttribute<std::vector<std::string, std::allocator<std::string> > >::typeName() const: Fehler: undefined reference to 'Imf_2_4::TypedAttribute<std::vector<std::string, std::allocator<std::string> > >::staticTypeName()'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:vtable for Imf_2_4::TypedAttribute<std::string>: Fehler: undefined reference to 'Imf_2_4::TypedAttribute<std::string>::writeValueTo(Imf_2_4::OStream&, int) const'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:vtable for Imf_2_4::TypedAttribute<std::string>: Fehler: undefined reference to 'Imf_2_4::TypedAttribute<std::string>::readValueFrom(Imf_2_4::IStream&, int, int)'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:vtable for Imf_2_4::TypedAttribute<std::vector<std::string, std::allocator<std::string> > >: Fehler: undefined reference to 'Imf_2_4::TypedAttribute<std::vector<std::string, std::allocator<std::string> > >::writeValueTo(Imf_2_4::OStream&, int) const'
/media/cle/Daten/Programs/Blender/blender-git/lib/linux_centos7_x86_64/openimageio/lib/libOpenImageIO.a(exroutput.cpp.o):exroutput.cpp:vtable for Imf_2_4::TypedAttribute<std::vector<std::string, std::allocator<std::string> > >: Fehler: undefined reference to 'Imf_2_4::TypedAttribute<std::vector<std::string, std::allocator<std::string> > >::readValueFrom(Imf_2_4::IStream&, int, int)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exr_add_channel: Fehler: undefined reference to 'Imf_2_4::insertViewName(std::string const&, std::vector<std::string, std::allocator<std::string> > const&, int)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exr_channel_rect: Fehler: undefined reference to 'Imf_2_4::insertViewName(std::string const&, std::vector<std::string, std::allocator<std::string> > const&, int)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exrtile_write_channels: Fehler: undefined reference to 'Imf_2_4::FrameBuffer::insert(std::string const&, Imf_2_4::Slice const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exr_read_channels: Fehler: undefined reference to 'Imf_2_4::FrameBuffer::insert(std::string const&, Imf_2_4::Slice const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function imb_exr_get_views: Fehler: undefined reference to 'Imf_2_4::Header::view() const'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function imb_exr_get_views: Fehler: undefined reference to 'Imf_2_4::multiView(Imf_2_4::Header const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exrtile_begin_write: Fehler: undefined reference to 'Imf_2_4::Header::setType(std::string const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exrtile_begin_write: Fehler: undefined reference to 'Imf_2_4::Header::setView(std::string const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exrtile_begin_write: Fehler: undefined reference to 'Imf_2_4::Header::setName(std::string const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exrtile_begin_write: Fehler: undefined reference to 'Imf_2_4::ChannelList::insert(std::string const&, Imf_2_4::Channel const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exr_begin_write: Fehler: undefined reference to 'Imf_2_4::ChannelList::layers(std::set<std::string, std::less<std::string>, std::allocator<std::string> >&) const'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function IMB_exr_begin_write: Fehler: undefined reference to 'Imf_2_4::addMultiView(Imf_2_4::Header&, std::vector<std::string, std::allocator<std::string> > const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function imb_exr_is_multi: Fehler: undefined reference to 'Imf_2_4::ChannelList::layers(std::set<std::string, std::less<std::string>, std::allocator<std::string> >&) const'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function void Imf_2_4::GetChannelsInMultiPartFile<std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> > >(Imf_2_4::MultiPartInputFile const&, std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> >&): Fehler: undefined reference to 'Imf_2_4::Header::view() const'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function void Imf_2_4::GetChannelsInMultiPartFile<std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> > >(Imf_2_4::MultiPartInputFile const&, std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> >&): Fehler: undefined reference to 'Imf_2_4::viewFromChannelName(std::string const&, std::vector<std::string, std::allocator<std::string> > const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function void Imf_2_4::GetChannelsInMultiPartFile<std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> > >(Imf_2_4::MultiPartInputFile const&, std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> >&): Fehler: undefined reference to 'Imf_2_4::removeViewName(std::string const&, std::string const&)'
../../lib/libbf_imbuf_openexr.a(openexr_api.cpp.o):openexr_api.cpp:function void Imf_2_4::GetChannelsInMultiPartFile<std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> > >(Imf_2_4::MultiPartInputFile const&, std::vector<Imf_2_4::MultiViewChannelName, std::allocator<Imf_2_4::MultiViewChannelName> >&): Fehler: undefined reference to 'Imf_2_4::multiView(Imf_2_4::Header const&)'
collect2: error: ld returned 1 exit status
source/creator/CMakeFiles/blender.dir/build.make:513: recipe for target 'bin/blender' failed
make[3]: *** [bin/blender] Error 1
CMakeFiles/Makefile2:8117: recipe for target 'source/creator/CMakeFiles/blender.dir/all' failed
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make[1]: *** [all] Error 2
GNUmakefile:299: recipe for target 'all' failed
make: *** [all] Error 2

Output.txt (8.3 KB)
CMakeCache.txt (124.9 KB)

EDIT
In CMakeCache.txt I find:

  1. WITH_STATIC_LIBS:BOOL=OFF
  2. WITH_SYSTEM_GLES:BOOL=ON
  3. All other WITH_SYSTEM_* are off