Source: blender
Version:  4.3.0+dfsg-1
Severity: serious
Tags: FTBFS, patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org

Dear blender Maintainer,
The package blender build failed because BLI_build_config.h does not
support riscv64. The crucial buildd log below:
```

[ 58%] Building CXX object
source/blender/makesrna/intern/CMakeFiles/makesrna.dir/rna_object.cc.o
cd /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/makesrna/intern
&& /usr/bin/c++ -DHAVE_EXECINFO_H -DHAVE_MALLOC_STATS_H
-DUSE_MAKEFILE_WORKAROUND -DWITH_ASSERT_ABORT -DWITH_AUDASPACE
-DWITH_BULLET -DWITH_CINEON -DWITH_CYCLES -DWITH_FFMPEG -DWITH_FFTW3
-DWITH_FLUID -DWITH_FREESTYLE -DWITH_GMP -DWITH_INPUT_NDOF
-DWITH_INTERNATIONAL -DWITH_JACK -DWITH_OCEANSIM -DWITH_OPENAL
-DWITH_OPENEXR -DWITH_OPENGL_BACKEND -DWITH_OPENJPEG -DWITH_OPENSUBDIV
-DWITH_PULSEAUDIO -DWITH_PYTHON -DWITH_TBB -DWITH_VULKAN_BACKEND
-DWITH_WEBP -DWITH_XR_OPENXR -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__
-I/<<PKGBUILDDIR>>/source/blender/makesrna/intern
-I/<<PKGBUILDDIR>>/source/blender/makesrna
-I/<<PKGBUILDDIR>>/source/blender/animrig
-I/<<PKGBUILDDIR>>/source/blender/asset_system
-I/<<PKGBUILDDIR>>/source/blender/blenfont
-I/<<PKGBUILDDIR>>/source/blender/blenkernel
-I/<<PKGBUILDDIR>>/source/blender/blenlib
-I/<<PKGBUILDDIR>>/source/blender/blenloader
-I/<<PKGBUILDDIR>>/source/blender/blentranslation
-I/<<PKGBUILDDIR>>/source/blender/bmesh
-I/<<PKGBUILDDIR>>/source/blender/depsgraph
-I/<<PKGBUILDDIR>>/source/blender/draw
-I/<<PKGBUILDDIR>>/source/blender/functions
-I/<<PKGBUILDDIR>>/source/blender/gpu
-I/<<PKGBUILDDIR>>/source/blender/ikplugin
-I/<<PKGBUILDDIR>>/source/blender/imbuf
-I/<<PKGBUILDDIR>>/source/blender/io/usd
-I/<<PKGBUILDDIR>>/source/blender/modifiers
-I/<<PKGBUILDDIR>>/source/blender/nodes
-I/<<PKGBUILDDIR>>/source/blender/nodes/geometry/include
-I/<<PKGBUILDDIR>>/source/blender/sequencer
-I/<<PKGBUILDDIR>>/source/blender/simulation
-I/<<PKGBUILDDIR>>/source/blender/windowmanager
-I/<<PKGBUILDDIR>>/source/blender/editors/asset
-I/<<PKGBUILDDIR>>/source/blender/editors/include
-I/<<PKGBUILDDIR>>/source/blender/render
-I/<<PKGBUILDDIR>>/intern/clog
-I/<<PKGBUILDDIR>>/intern/cycles/blender
-I/<<PKGBUILDDIR>>/extern/fmtlib/include
-I/<<PKGBUILDDIR>>/intern/memutil
-I/<<PKGBUILDDIR>>/intern/mantaflow/extern
-I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/makesrna
-I/<<PKGBUILDDIR>>/source/blender/python
-I/<<PKGBUILDDIR>>/intern/ffmpeg -I/<<PKGBUILDDIR>>/intern/rigidbody
-I/<<PKGBUILDDIR>>/source/blender/freestyle
-I/<<PKGBUILDDIR>>/intern/opensubdiv
-I/<<PKGBUILDDIR>>/source/blender/makesdna
-I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/makesdna/intern
-I/<<PKGBUILDDIR>>/intern/atomic/.
-I/<<PKGBUILDDIR>>/intern/guardedalloc -isystem
/<<PKGBUILDDIR>>/extern/audaspace/bindings/C -isystem
/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/extern/audaspace
-Wuninitialized -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 -Wcomma-subscript
-Wformat-signedness -Wrestrict -Wno-suggest-override -Wuninitialized
-Wno-stringop-overread -Wno-stringop-overflow -Wimplicit-fallthrough=5
-Wundef -Wmissing-declarations -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG
-fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing
-ffp-contract=off -fmacro-prefix-map="/<<PKGBUILDDIR>>/"=""
-fmacro-prefix-map="/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/"=""
-std=c++17 -MD -MT
source/blender/makesrna/intern/CMakeFiles/makesrna.dir/rna_object.cc.o
-MF CMakeFiles/makesrna.dir/rna_object.cc.o.d -o
CMakeFiles/makesrna.dir/rna_object.cc.o -c
/<<PKGBUILDDIR>>/source/blender/makesrna/intern/rna_object.cc
In file included from
/<<PKGBUILDDIR>>/source/blender/blenlib/BLI_math_bits.h:11,
                 from
/<<PKGBUILDDIR>>/source/blender/blenlib/BLI_bit_span_ops.hh:8,
                 from
/<<PKGBUILDDIR>>/source/blender/blenkernel/BKE_subdiv_ccg.hh:15,
                 from
/<<PKGBUILDDIR>>/source/blender/blenkernel/BKE_paint.hh:30,
                 from
/<<PKGBUILDDIR>>/source/blender/makesrna/intern/rna_object.cc:40:
/<<PKGBUILDDIR>>/source/blender/blenlib/BLI_build_config.h:341:4:
error: #error Please add support for your architecture in
BLI_build_config.h
  341 | #  error Please add support for your architecture in BLI_build_config.h
      |    ^~~~~
[ 58%] Building CXX object
source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern/bit_bool_conversion.cc.o
cd /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/blenlib &&
/usr/bin/c++ -DHAVE_EXECINFO_H -DWITH_ASSERT_ABORT -DWITH_FFTW3
-DWITH_FFTW3_THREADS_F_SUPPORT -DWITH_GMP -DWITH_TBB
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-D__LITTLE_ENDIAN__ -I/<<PKGBUILDDIR>>/source/blender/blenlib
-I/<<PKGBUILDDIR>>/intern/eigen
-I/<<PKGBUILDDIR>>/source/blender/makesdna
-I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/makesdna/intern
-I/<<PKGBUILDDIR>>/extern/fmtlib/include
-I/<<PKGBUILDDIR>>/extern/xxhash
-I/<<PKGBUILDDIR>>/intern/guardedalloc
-I/<<PKGBUILDDIR>>/intern/atomic/. -isystem
/<<PKGBUILDDIR>>/extern/wcwidth -isystem
/<<PKGBUILDDIR>>/extern/json/include -isystem
/<<PKGBUILDDIR>>/extern/Eigen3 -Wuninitialized -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
-Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override
-Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow
-Wimplicit-fallthrough=5 -Wundef -Wmissing-declarations -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG
-fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing
-ffp-contract=off -fmacro-prefix-map="/<<PKGBUILDDIR>>/"=""
-fmacro-prefix-map="/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/"=""
-std=c++17 -MD -MT
source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern/bit_bool_conversion.cc.o
-MF CMakeFiles/bf_blenlib.dir/intern/bit_bool_conversion.cc.o.d -o
CMakeFiles/bf_blenlib.dir/intern/bit_bool_conversion.cc.o -c
/<<PKGBUILDDIR>>/source/blender/blenlib/intern/bit_bool_conversion.cc
/<<PKGBUILDDIR>>/source/blender/blenlib/intern/bit_bool_conversion.cc:
In function ‘bool
blender::bits::or_bools_into_bits(blender::Span<bool>, MutableBitSpan,
int64_t)’:
/<<PKGBUILDDIR>>/source/blender/blenlib/intern/bit_bool_conversion.cc:13:39:
warning: unused parameter ‘allowed_overshoot’ [-Wunused-parameter]
   13 |                         const int64_t allowed_overshoot)
      |                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
[ 58%] Building CXX object
source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern/bit_ref.cc.o
cd /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/blenlib &&
/usr/bin/c++ -DHAVE_EXECINFO_H -DWITH_ASSERT_ABORT -DWITH_FFTW3
-DWITH_FFTW3_THREADS_F_SUPPORT -DWITH_GMP -DWITH_TBB
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-D__LITTLE_ENDIAN__ -I/<<PKGBUILDDIR>>/source/blender/blenlib
-I/<<PKGBUILDDIR>>/intern/eigen
-I/<<PKGBUILDDIR>>/source/blender/makesdna
-I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/makesdna/intern
-I/<<PKGBUILDDIR>>/extern/fmtlib/include
-I/<<PKGBUILDDIR>>/extern/xxhash
-I/<<PKGBUILDDIR>>/intern/guardedalloc
-I/<<PKGBUILDDIR>>/intern/atomic/. -isystem
/<<PKGBUILDDIR>>/extern/wcwidth -isystem
/<<PKGBUILDDIR>>/extern/json/include -isystem
/<<PKGBUILDDIR>>/extern/Eigen3 -Wuninitialized -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
-Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override
-Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow
-Wimplicit-fallthrough=5 -Wundef -Wmissing-declarations -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG
-fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing
-ffp-contract=off -fmacro-prefix-map="/<<PKGBUILDDIR>>/"=""
-fmacro-prefix-map="/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/"=""
-std=c++17 -MD -MT
source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern/bit_ref.cc.o
-MF CMakeFiles/bf_blenlib.dir/intern/bit_ref.cc.o.d -o
CMakeFiles/bf_blenlib.dir/intern/bit_ref.cc.o -c
/<<PKGBUILDDIR>>/source/blender/blenlib/intern/bit_ref.cc
[ 58%] Building CXX object
source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern/bit_span.cc.o
cd /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/blenlib &&
/usr/bin/c++ -DHAVE_EXECINFO_H -DWITH_ASSERT_ABORT -DWITH_FFTW3
-DWITH_FFTW3_THREADS_F_SUPPORT -DWITH_GMP -DWITH_TBB
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-D__LITTLE_ENDIAN__ -I/<<PKGBUILDDIR>>/source/blender/blenlib
-I/<<PKGBUILDDIR>>/intern/eigen
-I/<<PKGBUILDDIR>>/source/blender/makesdna
-I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/source/blender/makesdna/intern
-I/<<PKGBUILDDIR>>/extern/fmtlib/include
-I/<<PKGBUILDDIR>>/extern/xxhash
-I/<<PKGBUILDDIR>>/intern/guardedalloc
-I/<<PKGBUILDDIR>>/intern/atomic/. -isystem
/<<PKGBUILDDIR>>/extern/wcwidth -isystem
/<<PKGBUILDDIR>>/extern/json/include -isystem
/<<PKGBUILDDIR>>/extern/Eigen3 -Wuninitialized -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
-Wcomma-subscript -Wformat-signedness -Wrestrict -Wno-suggest-override
-Wuninitialized -Wno-stringop-overread -Wno-stringop-overflow
-Wimplicit-fallthrough=5 -Wundef -Wmissing-declarations -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG
-fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing
-ffp-contract=off -fmacro-prefix-map="/<<PKGBUILDDIR>>/"=""
-fmacro-prefix-map="/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/"=""
-std=c++17 -MD -MT
source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern/bit_span.cc.o
-MF CMakeFiles/bf_blenlib.dir/intern/bit_span.cc.o.d -o
CMakeFiles/bf_blenlib.dir/intern/bit_span.cc.o -c
/<<PKGBUILDDIR>>/source/blender/blenlib/intern/bit_span.cc
In file included from
/<<PKGBUILDDIR>>/source/blender/blenlib/BLI_math_bits.h:11,
                 from
/<<PKGBUILDDIR>>/source/blender/blenlib/BLI_bit_span_ops.hh:8,
                 from
/<<PKGBUILDDIR>>/source/blender/blenlib/intern/bit_span.cc:6:
/<<PKGBUILDDIR>>/source/blender/blenlib/BLI_build_config.h:341:4:
error: #error Please add support for your architecture in
BLI_build_config.h
  341 | #  error Please add support for your architecture in BLI_build_config.h
      |    ^~~~~
make[3]: *** 
[source/blender/makesrna/intern/CMakeFiles/makesrna.dir/build.make:726:
source/blender/makesrna/intern/CMakeFiles/makesrna.dir/rna_object.cc.o]
Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:8858:
source/blender/makesrna/intern/CMakeFiles/makesrna.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=blender&arch=riscv64&ver=4.3.0%2Bdfsg-1&stamp=1733306193&raw=0

My solution to this issue:
Modify BLI_build_config.h to support the RISC-V architecture.I have tested
this solution locally,and it works well.The debpatch is in the
attachment.Please let me know whether this solution can be accepted.

Attachment: fix_blender_build_failure_on_riscv.patch
Description: Binary data

Reply via email to