[Pkg-opencl-devel] Bug#957624: ocl-icd: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:07:39 BST 2020


Package: src:ocl-icd
Version: 2.2.12-3
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/ocl-icd_2.2.12-3_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html

[...]
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for strstr... yes
configure: using internal copy of OpenCL headers
configure: using the official default vendors directory (/etc/OpenCL/vendors)
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating OpenCL.pc
config.status: creating ocl-icd.pc
config.status: creating tests/atlocal
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing tests/atconfig commands
configure: WARNING: unrecognized options: --disable-maintainer-mode
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ruby icd_generator.rb --mode database --database ./ocl_interface.yaml \
	
ruby icd_generator.rb --mode generate --database ./ocl_interface.yaml
echo "timestamp" > stamp-generator-dummy
echo "timestamp" > stamp-generator
make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in .
make[3]: Entering directory '/<<PKGBUILDDIR>>'
gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -DOCL_ICD_PRINT_EXPECTED -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd.o `test -f 'run_dummy_icd.c' || echo './'`run_dummy_icd.c
gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -DOCL_ICD_PRINT_EXPECTED -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd_gen.o `test -f 'run_dummy_icd_gen.c' || echo './'`run_dummy_icd_gen.c
gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -DOCL_ICD_PRINT_EXPECTED -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd_weak_gen.o `test -f 'run_dummy_icd_weak_gen.c' || echo './'`run_dummy_icd_weak_gen.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations   -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libOpenCL_la-ocl_icd_loader.lo `test -f 'ocl_icd_loader.c' || echo './'`ocl_icd_loader.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I/<<PKGBUILDDIR>>/khronos-headers -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ocl_icd_loader.c  -fPIC -DPIC -o .libs/libOpenCL_la-ocl_icd_loader.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations   -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libOpenCL_la-ocl_icd_loader_gen.lo `test -f 'ocl_icd_loader_gen.c' || echo './'`ocl_icd_loader_gen.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I/<<PKGBUILDDIR>>/khronos-headers -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ocl_icd_loader_gen.c  -fPIC -DPIC -o .libs/libOpenCL_la-ocl_icd_loader_gen.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libdummy_icd.lo libdummy_icd.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I/<<PKGBUILDDIR>>/khronos-headers -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c libdummy_icd.c  -fPIC -DPIC -o .libs/libdummy_icd.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libdummy_icd_gen.lo libdummy_icd_gen.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I/<<PKGBUILDDIR>>/khronos-headers -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummy_icd_gen.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -DICD_SUFFIX=\"2\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libdummycl2_la-libdummy_icd.lo `test -f 'libdummy_icd.c' || echo './'`libdummy_icd.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I/<<PKGBUILDDIR>>/khronos-headers -DICD_SUFFIX=\"2\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c libdummy_icd.c  -fPIC -DPIC -o .libs/libdummycl2_la-libdummy_icd.o
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -DICD_SUFFIX=\"2\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libdummycl2_la-libdummy_icd_gen.lo `test -f 'libdummy_icd_gen.c' || echo './'`libdummy_icd_gen.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -DICD_WITHOUT_EXTENSION -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libdummycl_noext_la-libdummy_icd.lo `test -f 'libdummy_icd.c' || echo './'`libdummy_icd.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -Wall  -I/<<PKGBUILDDIR>>/khronos-headers -DICD_WITHOUT_EXTENSION -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libdummycl_noext_la-libdummy_icd_gen.lo `test -f 'libdummy_icd_gen.c' || echo './'`libdummy_icd_gen.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I/<<PKGBUILDDIR>>/khronos-headers -DICD_SUFFIX=\"2\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummycl2_la-libdummy_icd_gen.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I/<<PKGBUILDDIR>>/khronos-headers -DICD_WITHOUT_EXTENSION -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c libdummy_icd.c  -fPIC -DPIC -o .libs/libdummycl_noext_la-libdummy_icd.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I/<<PKGBUILDDIR>>/khronos-headers -DICD_WITHOUT_EXTENSION -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummycl_noext_la-libdummy_icd_gen.o
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wno-deprecated-declarations   -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -version-info 1:0:0  -Wl,--version-script,ocl_icd_loader_gen.map -Wl,-z,relro -Wl,-z,now -o libOpenCL.la -rpath /usr/lib/x86_64-linux-gnu libOpenCL_la-ocl_icd_loader.lo libOpenCL_la-ocl_icd_loader_gen.lo  -ldl 
/bin/bash ./libtool  --tag=CC   --mode=link gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o libdummycl.la -rpath /usr/lib/x86_64-linux-gnu/ocl-icd libdummy_icd.lo libdummy_icd_gen.lo  -ldl 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libOpenCL_la-ocl_icd_loader.o .libs/libOpenCL_la-ocl_icd_loader_gen.o   -ldl  -g -O2 -fstack-protector-strong -Wl,--version-script -Wl,ocl_icd_loader_gen.map -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,libOpenCL.so.1 -o .libs/libOpenCL.so.1.0.0
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libdummy_icd.o .libs/libdummy_icd_gen.o   -ldl  -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,libdummycl.so.0 -o .libs/libdummycl.so.0.0.0
/usr/bin/ld: .libs/libdummy_icd_gen.o:./libdummy_icd_gen.h:225: multiple definition of `master_dispatch'; .libs/libdummy_icd.o:./libdummy_icd_gen.h:225: first defined here
libtool: link: (cd ".libs" && rm -f "libOpenCL.so.1" && ln -s "libOpenCL.so.1.0.0" "libOpenCL.so.1")
libtool: link: (cd ".libs" && rm -f "libOpenCL.so" && ln -s "libOpenCL.so.1.0.0" "libOpenCL.so")
libtool: link: ( cd ".libs" && rm -f "libOpenCL.la" && ln -s "../libOpenCL.la" "libOpenCL.la" )
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:739: libdummycl.la] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:1015: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:587: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-opencl-devel mailing list