I have noticed that too (Xubuntu 18.04). As a workaround you can try removing the line PATCH_COMMAND ${PATCH_CMD} -p 1 -N -d ${BUILD_DIR}/opencollada/src/external_opencollada < ${PATCH_DIR}/opencollada.diff
from build_files/build_environment/cmake/opencollada.cmake, that did the trick for me.
Use first the install_deps.sh, after that clean up the libs folder (rename it or delete it) inside the build_linux folder, and then use make deps, theoretically it should work.
With install deps you will get some needed updates.
ERROR! Boost-1.70.0 failed to compile, exiting
Jinshans-MacBook-Pro:blender-git jinshanhu$ ./blender/build_files/build_environment/install_deps.sh --show-deps
./blender/build_files/build_environment/install_deps.sh: line 87: nproc: command not found
WARNING! ****WARNING****
If you are experiencing issues building Blender, _*TRY A FRESH, CLEAN BUILD FIRST*_!
The same goes for install_deps itself, if you encounter issues, please first erase everything in /Users/jinshanhu/src/blender-deps and /opt/lib
(provided obviously you did not add anything yourself in those dirs!), and run install_deps.sh again!
Often, changes in the libs built by this script, or in your distro package, cannot be handled simply, so...
You may also try to use the '--build-foo' options to bypass your distribution's packages
for some troublesome/buggy libraries...
Ran with:
install_deps.sh --show-deps
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
Installing dependencies for RPM-based distribution
Source code of dependencies needed to be compiled will be downloaded and extracted into '/Users/jinshanhu/src/blender-deps'.
Built libs of dependencies needed to be compiled will be installed into '/opt/lib'.
Please edit $SRC and/or $INST variables at the beginning of this script,
or use --source/--install options, if you want to use other paths!
Number of threads for building: (automatically detected, use --threads=<nbr> to override it).
Full install: false (use --with-all option to enable it).
Building OpenCOLLADA: false (use --with-opencollada option to enable it).
Building Embree: false (use --with-embree option to enable it).
Building OpenImageDenoise: false (use --with-oidn option to enable it).
Example:
Full install without OpenCOLLADA: --with-all --skip-opencollada
Use --help to show all available options!
Do you want to continue (Y/n)?y
./blender/build_files/build_environment/install_deps.sh: line 3644: [: -ge: unary operator expected
WARNING! clang-format 6.0 or higher not found, this is NOT needed to get Blender compiling...
Own Python-3.7.4 is up to date, nothing to do!
If you want to force rebuild of this lib, use the --force-python option.
Own Numpy-1.17.0 is up to date, nothing to do!
If you want to force rebuild of this lib, use the --force-numpy option.
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Building Boost-1.70.0
Ensuring /opt/lib exists and is writable by us
Downloading Boost-1.70.0
Warning: Failed to set locale category LC_NUMERIC to en_CN.
Warning: Failed to set locale category LC_TIME to en_CN.
Warning: Failed to set locale category LC_COLLATE to en_CN.
Warning: Failed to set locale category LC_MONETARY to en_CN.
Warning: Failed to set locale category LC_MESSAGES to en_CN.
--2020-03-06 14:10:10-- https://nchc.dl.sourceforge.net/project/boost/boost/1.70.0/boost_1_70_0.tar.bz2
Resolving nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)... 140.110.96.69
Connecting to nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)|140.110.96.69|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 97887058 (93M) [application/octet-stream]
Saving to: ‘/Users/jinshanhu/src/blender-deps/boost-1.70.0.tar.bz2’
/Users/jinshanhu/sr 100%[===================>] 93.35M 2.08MB/s in 46s
2020-03-06 14:11:04 (2.05 MB/s) - ‘/Users/jinshanhu/src/blender-deps/boost-1.70.0.tar.bz2’ saved [97887058/97887058]
tar: Option --transform is not supported
Usage:
List: tar -tf <archive-filename>
Extract: tar -xf <archive-filename>
Create: tar -cf <archive-filename> [filenames...]
Help: tar --help
Building Boost.Build engine with toolset darwin... tools/build/src/engine/bin.macosxx86_64/b2
Detecting Python version... 2.7
Detecting Python root... /System/Library/Frameworks/Python.framework/Versions/2.7
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam for darwin...
Bootstrapping is done. To build, run:
./b2
To generate header files, run:
./b2 headers
To adjust configuration, edit 'project-config.jam'.
Further information:
- Command line help:
./b2 --help
- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html
- Boost.Build documentation:
http://www.boost.org/build/
Invalid value for the '-j' option.
Performing configuration checks
- default address-model : 64-bit
- default architecture : x86
Building the Boost C++ Libraries.
- C++11 mutex : no
- lockfree boost::atomic_flag : yes
- Boost.Config Feature Check: cxx11_auto_declarations : no
- Boost.Config Feature Check: cxx11_constexpr : no
- Boost.Config Feature Check: cxx11_defaulted_functions : no
- Boost.Config Feature Check: cxx11_final : no
- Boost.Config Feature Check: cxx11_hdr_mutex : no
- Boost.Config Feature Check: cxx11_hdr_tuple : no
- Boost.Config Feature Check: cxx11_lambdas : no
- Boost.Config Feature Check: cxx11_noexcept : no
- Boost.Config Feature Check: cxx11_nullptr : no
- Boost.Config Feature Check: cxx11_rvalue_references : no
- Boost.Config Feature Check: cxx11_template_aliases : no
- Boost.Config Feature Check: cxx11_thread_local : no
- Boost.Config Feature Check: cxx11_variadic_templates : no
- has_icu builds : no
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
- zlib : yes
- bzip2 : yes
- lzma : yes
- zstd : no
- iconv (libc) : no
- iconv (separate) : yes
- icu : no
- icu (lib64) : no
- native-atomic-int32-supported : yes
- native-syslog-supported : yes
- pthread-supports-robust-mutexes : no
- compiler-supports-ssse3 : yes
- compiler-supports-avx2 : no
- gcc visibility : yes
- long double support : yes
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
- libbacktrace builds : no
- addr2line builds : yes
- WinDbg builds : no
- WinDbgCached builds : no
- BOOST_COMP_GNUC >= 4.3.0 : no
- zlib : yes
- bzip2 : yes
- lzma : yes
- zstd : no
...found 1 target...
...updating 1 target...
...updated 1 target...
ERROR! Boost-1.70.0 failed to compile, exiting
I encountered an error when running the install_deps.sh shell script, how can I fix it?
You can use make deps (not install_deps.sh), but it has not been tested to work on a variety of macOS installs and you’ll have not work through a bunch of errors. Building Blender this way on macOS is not really supported, it’s only intended for platform maintainers.
I think it’s unlikely you’ll get a significant speedup by compiling the library dependencies with extra optimizations flags, if that’s what you’re after.
Prior to this I have successfully built a version of blender using make deps, and I want to further use the gcc flag to optimize the built dependency libraries.