Bug#1091161: libthrust: FTBFS on arm64: ccosh.h:102:60: internal compiler error: Segmentation fault

Lucas Nussbaum lucas at debian.org
Sun Dec 22 17:47:50 GMT 2024


Source: libthrust
Version: 2.1.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20241222 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on arm64.


Relevant part (hopefully):
> /usr/bin/c++ -DCUB_WRAPPED_NAMESPACE=wrapped_cub -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_WRAPPED_NAMESPACE=wrapped_thrust -I/<<PKGBUILDDIR>>/thrust/cmake/../.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Werror -Wall -Wextra -Winit-self -Woverloaded-virtual -Wcast-qual -Wpointer-arith -Wvla -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-noexcept-type -MD -MT CMakeFiles/thrust.headers.dir/headers/thrust/system/cpp/pointer.h.cpp.o -MF CMakeFiles/thrust.headers.dir/headers/thrust/system/cpp/pointer.h.cpp.o.d -o CMakeFiles/thrust.headers.dir/headers/thrust/system/cpp/pointer.h.cpp.o -c /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/headers/thrust/system/cpp/pointer.h.cpp
> during RTL pass: expand
> In file included from /<<PKGBUILDDIR>>/thrust/cmake/../../thrust/detail/complex/complex.inl:344,
>                  from /<<PKGBUILDDIR>>/thrust/cmake/../../thrust/complex.h:1036,
>                  from /<<PKGBUILDDIR>>/testing/unittest/assertions.h:3,
>                  from /<<PKGBUILDDIR>>/testing/unittest/unittest.h:6,
>                  from /<<PKGBUILDDIR>>/testing/complex.cu:1,
>                  from /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/thrust/complex.cu.cpp:1:
> /<<PKGBUILDDIR>>/thrust/cmake/../../thrust/detail/complex/ccosh.h: In function ‘thrust::complex<double> thrust::detail::complex::ccosh(const thrust::complex<double>&)’:
> /<<PKGBUILDDIR>>/thrust/cmake/../../thrust/detail/complex/ccosh.h:102:60: internal compiler error: Segmentation fault
>   102 |       return (thrust::complex<double>(z_.real(), z_.imag() * copysign(1.0, x)));
>       |                                                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~
> 0xd530c3 internal_error(char const*, ...)
> 	???:0
> 0x15ac5b4 simplify_context::simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<2u, unsigned long>)
> 	???:0
> 0x15ac43b simplify_context::simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<2u, unsigned long>)
> 	???:0
> 0xb094af gen_xorsignv2df3(rtx_def*, rtx_def*, rtx_def*)
> 	???:0
> 0xb0115b gen_xorsigndf3(rtx_def*, rtx_def*, rtx_def*)
> 	???:0
> 0x160ce97 maybe_expand_insn(insn_code, unsigned int, expand_operand*)
> 	???:0
> 0x1987b0b expand_insn(insn_code, unsigned int, expand_operand*)
> 	???:0
> Please submit a full bug report, with preprocessed source (by using -freport-bug).
> Please include the complete backtrace with any bug report.
> See <file:///usr/share/doc/gcc-14/README.Bugs> for instructions.
> make  -f testing/CMakeFiles/thrust.test.constant_iterator.dir/build.make testing/CMakeFiles/thrust.test.constant_iterator.dir/depend
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/CMakeFiles/thrust.test.constant_iterator.dir/DependInfo.cmake "--color="
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> make  -f testing/CMakeFiles/thrust.test.constant_iterator.dir/build.make testing/CMakeFiles/thrust.test.constant_iterator.dir/build
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 45%] Building CXX object testing/CMakeFiles/thrust.test.constant_iterator.dir/thrust/constant_iterator.cu.cpp.o
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing && /usr/bin/c++ -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_TEST_DEVICE_SIDE -I/<<PKGBUILDDIR>>/testing -I/<<PKGBUILDDIR>>/thrust/cmake/../.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Werror -Wall -Wextra -Winit-self -Woverloaded-virtual -Wcast-qual -Wpointer-arith -Wvla -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-noexcept-type -MD -MT testing/CMakeFiles/thrust.test.constant_iterator.dir/thrust/constant_iterator.cu.cpp.o -MF CMakeFiles/thrust.test.constant_iterator.dir/thrust/constant_iterator.cu.cpp.o.d -o CMakeFiles/thrust.test.constant_iterator.dir/thrust/constant_iterator.cu.cpp.o -c /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/thrust/constant_iterator.cu.cpp
> [ 45%] Building CXX object CMakeFiles/thrust.headers.dir/headers/thrust/system/cpp/vector.h.cpp.o
> /usr/bin/c++ -DCUB_WRAPPED_NAMESPACE=wrapped_cub -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_WRAPPED_NAMESPACE=wrapped_thrust -I/<<PKGBUILDDIR>>/thrust/cmake/../.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Werror -Wall -Wextra -Winit-self -Woverloaded-virtual -Wcast-qual -Wpointer-arith -Wvla -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-noexcept-type -MD -MT CMakeFiles/thrust.headers.dir/headers/thrust/system/cpp/vector.h.cpp.o -MF CMakeFiles/thrust.headers.dir/headers/thrust/system/cpp/vector.h.cpp.o.d -o CMakeFiles/thrust.headers.dir/headers/thrust/system/cpp/vector.h.cpp.o -c /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/headers/thrust/system/cpp/vector.h.cpp
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 45%] Linking CXX executable ../bin/thrust.test.binary_search
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing && /usr/bin/cmake -E cmake_link_script CMakeFiles/thrust.test.binary_search.dir/link.txt --verbose=1
> [ 45%] Built target thrust.headers
> make  -f testing/CMakeFiles/thrust.test.copy.dir/build.make testing/CMakeFiles/thrust.test.copy.dir/depend
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/CMakeFiles/thrust.test.copy.dir/DependInfo.cmake "--color="
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> make  -f testing/CMakeFiles/thrust.test.copy.dir/build.make testing/CMakeFiles/thrust.test.copy.dir/build
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 45%] Building CXX object testing/CMakeFiles/thrust.test.copy.dir/thrust/copy.cu.cpp.o
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing && /usr/bin/c++ -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_TEST_DEVICE_SIDE -I/<<PKGBUILDDIR>>/testing -I/<<PKGBUILDDIR>>/thrust/cmake/../.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Werror -Wall -Wextra -Winit-self -Woverloaded-virtual -Wcast-qual -Wpointer-arith -Wvla -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-noexcept-type -MD -MT testing/CMakeFiles/thrust.test.copy.dir/thrust/copy.cu.cpp.o -MF CMakeFiles/thrust.test.copy.dir/thrust/copy.cu.cpp.o.d -o CMakeFiles/thrust.test.copy.dir/thrust/copy.cu.cpp.o -c /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/thrust/copy.cu.cpp
> /usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,--dependency-file=CMakeFiles/thrust.test.binary_search.dir/link.d CMakeFiles/thrust.test.binary_search.dir/thrust/binary_search.cu.cpp.o -o ../bin/thrust.test.binary_search  ../lib/libthrust.test.framework.a
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 45%] Built target thrust.test.binary_search
> make  -f testing/CMakeFiles/thrust.test.copy_n.dir/build.make testing/CMakeFiles/thrust.test.copy_n.dir/depend
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/CMakeFiles/thrust.test.copy_n.dir/DependInfo.cmake "--color="
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> make  -f testing/CMakeFiles/thrust.test.copy_n.dir/build.make testing/CMakeFiles/thrust.test.copy_n.dir/build
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 46%] Building CXX object testing/CMakeFiles/thrust.test.copy_n.dir/thrust/copy_n.cu.cpp.o
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing && /usr/bin/c++ -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_TEST_DEVICE_SIDE -I/<<PKGBUILDDIR>>/testing -I/<<PKGBUILDDIR>>/thrust/cmake/../.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Werror -Wall -Wextra -Winit-self -Woverloaded-virtual -Wcast-qual -Wpointer-arith -Wvla -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-noexcept-type -MD -MT testing/CMakeFiles/thrust.test.copy_n.dir/thrust/copy_n.cu.cpp.o -MF CMakeFiles/thrust.test.copy_n.dir/thrust/copy_n.cu.cpp.o.d -o CMakeFiles/thrust.test.copy_n.dir/thrust/copy_n.cu.cpp.o -c /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/thrust/copy_n.cu.cpp
> [ 46%] Linking CXX executable ../bin/thrust.test.binary_search_descending
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing && /usr/bin/cmake -E cmake_link_script CMakeFiles/thrust.test.binary_search_descending.dir/link.txt --verbose=1
> /usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,--dependency-file=CMakeFiles/thrust.test.binary_search_descending.dir/link.d CMakeFiles/thrust.test.binary_search_descending.dir/thrust/binary_search_descending.cu.cpp.o -o ../bin/thrust.test.binary_search_descending  ../lib/libthrust.test.framework.a
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 46%] Built target thrust.test.binary_search_descending
> make  -f testing/CMakeFiles/thrust.test.count.dir/build.make testing/CMakeFiles/thrust.test.count.dir/depend
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/CMakeFiles/thrust.test.count.dir/DependInfo.cmake "--color="
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> make  -f testing/CMakeFiles/thrust.test.count.dir/build.make testing/CMakeFiles/thrust.test.count.dir/build
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 46%] Building CXX object testing/CMakeFiles/thrust.test.count.dir/thrust/count.cu.cpp.o
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing && /usr/bin/c++ -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_TEST_DEVICE_SIDE -I/<<PKGBUILDDIR>>/testing -I/<<PKGBUILDDIR>>/thrust/cmake/../.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Werror -Wall -Wextra -Winit-self -Woverloaded-virtual -Wcast-qual -Wpointer-arith -Wvla -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-noexcept-type -MD -MT testing/CMakeFiles/thrust.test.count.dir/thrust/count.cu.cpp.o -MF CMakeFiles/thrust.test.count.dir/thrust/count.cu.cpp.o.d -o CMakeFiles/thrust.test.count.dir/thrust/count.cu.cpp.o -c /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/thrust/count.cu.cpp
> [ 47%] Linking CXX executable ../bin/thrust.test.complex_transform
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing && /usr/bin/cmake -E cmake_link_script CMakeFiles/thrust.test.complex_transform.dir/link.txt --verbose=1
> /usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,--dependency-file=CMakeFiles/thrust.test.complex_transform.dir/link.d CMakeFiles/thrust.test.complex_transform.dir/thrust/complex_transform.cu.cpp.o -o ../bin/thrust.test.complex_transform  ../lib/libthrust.test.framework.a
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 47%] Built target thrust.test.complex_transform
> make  -f testing/CMakeFiles/thrust.test.counting_iterator.dir/build.make testing/CMakeFiles/thrust.test.counting_iterator.dir/depend
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/CMakeFiles/thrust.test.counting_iterator.dir/DependInfo.cmake "--color="
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> make  -f testing/CMakeFiles/thrust.test.counting_iterator.dir/build.make testing/CMakeFiles/thrust.test.counting_iterator.dir/build
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu'
> [ 47%] Building CXX object testing/CMakeFiles/thrust.test.counting_iterator.dir/thrust/counting_iterator.cu.cpp.o
> cd /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing && /usr/bin/c++ -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_TEST_DEVICE_SIDE -I/<<PKGBUILDDIR>>/testing -I/<<PKGBUILDDIR>>/thrust/cmake/../.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -Werror -Wall -Wextra -Winit-self -Woverloaded-virtual -Wcast-qual -Wpointer-arith -Wvla -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-noexcept-type -MD -MT testing/CMakeFiles/thrust.test.counting_iterator.dir/thrust/counting_iterator.cu.cpp.o -MF CMakeFiles/thrust.test.counting_iterator.dir/thrust/counting_iterator.cu.cpp.o.d -o CMakeFiles/thrust.test.counting_iterator.dir/thrust/counting_iterator.cu.cpp.o -c /<<PKGBUILDDIR>>/obj-aarch64-linux-gnu/testing/thrust/counting_iterator.cu.cpp
> Preprocessed source stored into /tmp/ccdznYHz.out file, please attach this to your bugreport.
> === BEGIN GCC DUMP ===
> [...]
> === END GCC DUMP ===
> make[3]: *** [testing/CMakeFiles/thrust.test.complex.dir/build.make:82: testing/CMakeFiles/thrust.test.complex.dir/thrust/complex.cu.cpp.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/12/22/libthrust_2.1.1-1_unstable-arm64.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20241222;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20241222&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-nvidia-devel mailing list