Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-libs/ocl-icd fails to compile [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Tue Aug 25, 2020 12:32 am    Post subject: dev-libs/ocl-icd fails to compile [SOLVED] Reply with quote

OS details:

Make.conf
https://pastebin.com/svXk5p5G

Emerge –info
https://pastebin.com/ydn6LPJJ


# emerge -pv ocl-icd

Code:
These are the packages that would be merged, in order:

Calculating dependencies                                   ... done!
[ebuild  N     ] dev-libs/ocl-icd-2.2.12-r3::gentoo  USE="khronos-headers" 0 KiB


Code:

[32;01m * [39;49;00mPackage:    dev-libs/ocl-icd-2.2.12-r3
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: patrick@gentoo.org
[32;01m * [39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux khronos-headers userland_GNU
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking ocl-icd-2.2.12.tar.gz to /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work
>>> Source unpacked in /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work
>>> Preparing source in /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 ...
 [32;01m*[0m Applying ocl-icd-2.2.12-gcc-10.patch ...
[A[206C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running eautoreconf in '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12' ...
 [32;01m*[0m Running libtoolize --install --copy --force --automake ...
[A[206C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running aclocal -I m4 ...
[A[206C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running autoconf --force ...
[A[206C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running autoheader ...
[A[206C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running automake --add-missing --copy --foreign --force-missing ...
[A[206C [34;01m[ [32;01mok[34;01m ][0m
 * Running elibtoolize in: ocl-icd-2.2.12/
 * Running elibtoolize in: ocl-icd-2.2.12/build-aux/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.3 patch ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 ...
 [32;01m*[0m abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * econf: updating ocl-icd-2.2.12/build-aux/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ocl-icd-2.2.12/build-aux/config.guess with /usr/share/gnuconfig/config.guess
/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/ocl-icd-2.2.12-r3 --htmldir=/usr/share/doc/ocl-icd-2.2.12-r3/html --with-sysroot=/ --libdir=/usr/lib64 --enable-pthread-once --disable-official-khronos-headers
configure: loading site script /usr/share/config.site
checking for a BSD-compatible install... /usr/lib/portage/python3.7/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking the archiver (x86_64-pc-linux-gnu-ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-pc-linux-gnu-nm -B
checking the name lister (/usr/bin/x86_64-pc-linux-gnu-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... (cached) x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... /
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking whether ln -s works... yes
checking for asciidoc... /usr/bin/asciidoc
checking for a2x... /usr/bin/a2x
checking for xmlto... /usr/bin/xmlto
configure: generating documentation
checking for dlopen in -ldl... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking CL/opencl.h usability... yes
checking CL/opencl.h presence... yes
checking for CL/opencl.h... yes
checking whether OpenCL headers 2.2 are available... yes
checking for inline... inline
checking for size_t... yes
checking for an ANSI C-conforming const... yes
checking whether C compiler accepts -Wno-deprecated-declarations... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for strstr... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
configure: using system 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
>>> Source configured.
>>> Compiling source in /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 ...
 [32;01m*[0m abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j4 -l4
ruby /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/icd_generator.rb --mode database --database /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/ocl_interface.yaml \
       
ruby /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/icd_generator.rb --mode generate --database /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/ocl_interface.yaml
echo "timestamp" > stamp-generator-dummy
echo "timestamp" > stamp-generator
make  all-recursive
make[1]: Entering directory '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12-abi_x86_64.amd64'
Making all in .
make[2]: Entering directory '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12-abi_x86_64.amd64'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall  -DOCL_ICD_PRINT_EXPECTED  -Wno-deprecated-declarations  -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd.o `test -f 'run_dummy_icd.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`run_dummy_icd.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall  -DOCL_ICD_PRINT_EXPECTED  -Wno-deprecated-declarations  -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd_gen.o `test -f 'run_dummy_icd_gen.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`run_dummy_icd_gen.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall  -DOCL_ICD_PRINT_EXPECTED  -Wno-deprecated-declarations  -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd_weak_gen.o `test -f 'run_dummy_icd_weak_gen.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`run_dummy_icd_weak_gen.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall   -Wno-deprecated-declarations  -pthread -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o libOpenCL_la-ocl_icd_loader.lo `test -f 'ocl_icd_loader.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`ocl_icd_loader.c
In file included from /usr/include/CL/cl.h:32,
                 from /usr/include/CL/opencl.h:38,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/run_dummy_icd.c:32:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
In file included from /usr/include/CL/cl.h:32,
                 from /usr/include/CL/opencl.h:38,
                 from run_dummy_icd_weak_gen.c:38:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
In file included from /usr/include/CL/cl.h:32,
                 from /usr/include/CL/opencl.h:38,
                 from run_dummy_icd_gen.c:36:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall   -Wno-deprecated-declarations  -pthread -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o libOpenCL_la-ocl_icd_loader_gen.lo `test -f 'ocl_icd_loader_gen.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`ocl_icd_loader_gen.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall    -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o libdummy_icd.lo /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/libdummy_icd.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 -Wall -Wno-deprecated-declarations -pthread -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/ocl_icd_loader.c  -fPIC -DPIC -o .libs/libOpenCL_la-ocl_icd_loader.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 -Wall -Wno-deprecated-declarations -pthread -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c ocl_icd_loader_gen.c  -fPIC -DPIC -o .libs/libOpenCL_la-ocl_icd_loader_gen.o
In file included from /usr/include/CL/cl.h:32,
                 from /usr/include/CL/opencl.h:38,
                 from ./ocl_icd.h:37,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/ocl_icd_loader.h:31,
                 from ocl_icd_loader_gen.c:30:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
In file included from /usr/include/CL/cl.h:32,
                 from /usr/include/CL/opencl.h:38,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/ocl_icd_loader.c:43:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall    -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o libdummy_icd_gen.lo libdummy_icd_gen.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 -Wall -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/libdummy_icd.c  -fPIC -DPIC -o .libs/libdummy_icd.o
In file included from /usr/include/CL/cl.h:32,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/ocl_icd_debug.h:33,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/libdummy_icd.c:27:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall  -DICD_SUFFIX=\"2\"   -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o libdummycl2_la-libdummy_icd.lo `test -f 'libdummy_icd.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`libdummy_icd.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 -Wall -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummy_icd_gen.o
In file included from /usr/include/CL/cl.h:32,
                 from /usr/include/CL/opencl.h:38,
                 from libdummy_icd_gen.h:29,
                 from libdummy_icd_gen.c:32:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall  -DICD_SUFFIX=\"2\"   -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o libdummycl2_la-libdummy_icd_gen.lo `test -f 'libdummy_icd_gen.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`libdummy_icd_gen.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 -Wall -DICD_SUFFIX=\"2\" -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/libdummy_icd.c  -fPIC -DPIC -o .libs/libdummycl2_la-libdummy_icd.o
In file included from /usr/include/CL/cl.h:32,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/ocl_icd_debug.h:33,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/libdummy_icd.c:27:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 -Wall -DICD_SUFFIX=\"2\" -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummycl2_la-libdummy_icd_gen.o
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall  -DICD_WITHOUT_EXTENSION   -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o libdummycl_noext_la-libdummy_icd.lo `test -f 'libdummy_icd.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`libdummy_icd.c
In file included from /usr/include/CL/cl.h:32,
                 from /usr/include/CL/opencl.h:38,
                 from libdummy_icd_gen.h:29,
                 from libdummy_icd_gen.c:32:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12  -Wall  -DICD_WITHOUT_EXTENSION   -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c -o libdummycl_noext_la-libdummy_icd_gen.lo `test -f 'libdummy_icd_gen.c' || echo '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/'`libdummy_icd_gen.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 -Wall -DICD_WITHOUT_EXTENSION -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/libdummy_icd.c  -fPIC -DPIC -o .libs/libdummycl_noext_la-libdummy_icd.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12 -Wall -DICD_WITHOUT_EXTENSION -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummycl_noext_la-libdummy_icd_gen.o
In file included from /usr/include/CL/cl.h:32,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/ocl_icd_debug.h:33,
                 from /tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12/libdummy_icd.c:27:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
In file included from /usr/include/CL/cl.h:32,
                 from /usr/include/CL/opencl.h:38,
                 from libdummy_icd_gen.h:29,
                 from libdummy_icd_gen.c:32:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144  -Wl,-O1 -Wl,--as-needed -o libdummycl.la -rpath /usr/lib64/ocl-icd libdummy_icd.lo libdummy_icd_gen.lo  -ldl
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144  -Wl,-O1 -Wl,--as-needed -o libdummycl2.la -rpath /usr/lib64/ocl-icd libdummycl2_la-libdummy_icd.lo libdummycl2_la-libdummy_icd_gen.lo  -ldl
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144  -Wl,-O1 -Wl,--as-needed -o libdummycl-noext.la -rpath /usr/lib64/ocl-icd libdummycl_noext_la-libdummy_icd.lo libdummycl_noext_la-libdummy_icd_gen.lo  -ldl
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wno-deprecated-declarations  -pthread -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -version-info 1:0:0 -pthread -Wl,--version-script,ocl_icd_loader_gen.map -Wl,-O1 -Wl,--as-needed -o libOpenCL.la -rpath /usr/lib64 libOpenCL_la-ocl_icd_loader.lo libOpenCL_la-ocl_icd_loader_gen.lo  -ldl
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/libdummy_icd.o .libs/libdummy_icd_gen.o   -Wl,--as-needed -ldl  -march=core2 -msse4.1 -Wl,-O1   -Wl,-soname -Wl,libdummycl.so.0 -o .libs/libdummycl.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libdummycl.so.0" && ln -s "libdummycl.so.0.0.0" "libdummycl.so.0")
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/libdummycl2_la-libdummy_icd.o .libs/libdummycl2_la-libdummy_icd_gen.o   -Wl,--as-needed -ldl  -march=core2 -msse4.1 -Wl,-O1   -Wl,-soname -Wl,libdummycl2.so.0 -o .libs/libdummycl2.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libdummycl.so" && ln -s "libdummycl.so.0.0.0" "libdummycl.so")
libtool: link: ( cd ".libs" && rm -f "libdummycl.la" && ln -s "../libdummycl.la" "libdummycl.la" )
libtool: link: (cd ".libs" && rm -f "libdummycl2.so.0" && ln -s "libdummycl2.so.0.0.0" "libdummycl2.so.0")
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/libdummycl_noext_la-libdummy_icd.o .libs/libdummycl_noext_la-libdummy_icd_gen.o   -Wl,--as-needed -ldl  -march=core2 -msse4.1 -Wl,-O1   -Wl,-soname -Wl,libdummycl-noext.so.0 -o .libs/libdummycl-noext.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libdummycl2.so" && ln -s "libdummycl2.so.0.0.0" "libdummycl2.so")
libtool: link: ( cd ".libs" && rm -f "libdummycl2.la" && ln -s "../libdummycl2.la" "libdummycl2.la" )
libtool: link: (cd ".libs" && rm -f "libdummycl-noext.so.0" && ln -s "libdummycl-noext.so.0.0.0" "libdummycl-noext.so.0")
libtool: link: (cd ".libs" && rm -f "libdummycl-noext.so" && ln -s "libdummycl-noext.so.0.0.0" "libdummycl-noext.so")
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/libOpenCL_la-ocl_icd_loader.o .libs/libOpenCL_la-ocl_icd_loader_gen.o   -Wl,--as-needed -ldl  -pthread -march=core2 -msse4.1 -pthread -Wl,--version-script -Wl,ocl_icd_loader_gen.map -Wl,-O1   -pthread -Wl,-soname -Wl,libOpenCL.so.1 -o .libs/libOpenCL.so.1.0.0
libtool: link: ( cd ".libs" && rm -f "libdummycl-noext.la" && ln -s "../libdummycl-noext.la" "libdummycl-noext.la" )
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libOpenCL_la-ocl_icd_loader.o: in function `_find_and_check_platforms':
ocl_icd_loader.c:(.text+0x14d8): undefined reference to `dump_vendor_icd'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ocl_icd_loader.c:(.text+0x1f1c): undefined reference to `dump_vendor_icd'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libOpenCL.so.1.0.0: hidden symbol `dump_vendor_icd' isn't defined
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:732: libOpenCL.la] Error 1
make[2]: Leaving directory '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12-abi_x86_64.amd64'
make[1]: *** [Makefile:1014: all-recursive] Error 1
make[1]: Leaving directory '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12-abi_x86_64.amd64'
make: *** [Makefile:586: all] Error 2
 [31;01m*[0m ERROR: dev-libs/ocl-icd-2.2.12-r3::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-libs/ocl-icd-2.2.12-r3::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-libs/ocl-icd-2.2.12-r3::gentoo'`.
 [31;01m*[0m The complete build log is located at '/home/user/portage/logs/dev-libs:ocl-icd-2.2.12-r3:20200825-001928.log.gz'.
 [31;01m*[0m For convenience, a symlink to the build log is located at '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/temp/build.log.gz'.
 [31;01m*[0m The ebuild environment file is located at '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/temp/environment'.
 [31;01m*[0m Working directory: '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12-abi_x86_64.amd64'
 [31;01m*[0m S: '/tmp/portage/dev-libs/ocl-icd-2.2.12-r3/work/ocl-icd-2.2.12'

_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244


Last edited by HeXiLeD on Tue Aug 25, 2020 1:09 am; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2827

PostPosted: Tue Aug 25, 2020 12:45 am    Post subject: Reply with quote

That emerge --info doesn't seem to match up with the build log, build is core2 while your CFLAGS is skylake.

Also I don't see any -O2 (or similar) which I'm not sure how it'll react without any set, it may be sensitive to this looking at bug #646122, please try with -O2 set.

Edit: seem the above bug's fix is having the ebuild force replace -Os by -O2, however sounds like -O0 and -O1 would be affected too.
Back to top
View user's profile Send private message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Tue Aug 25, 2020 1:09 am    Post subject: Reply with quote

Code:
CFLAGS="-O2" emerge dev-libs/ocl-icd


Thank you.

This problem is now [SOLVED]
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Back to top
View user's profile Send private message
rsnfunky
n00b
n00b


Joined: 30 Dec 2007
Posts: 72

PostPosted: Sun Oct 06, 2024 3:39 pm    Post subject: dev-libs/ocl-icd fails Reply with quote

When trying to install: AMD XDNA drivers (https://github.com/amd/xdna-driver) I get the following errors during XRT installation:

Code:
In file included from /root/xdna-driver/xrt/src/runtime_src/xocl/config.h:41,
                 from /root/xdna-driver/xrt/src/runtime_src/xocl/api/clBuildProgram.cpp:19:
/root/xdna-driver/xrt/src/runtime_src/xocl/api/icd/ocl_icd_bindings.h:28:11: fatal error: ocl_icd.h: No such file or directory
   28 | # include <ocl_icd.h>


Google search suggested that we need ocl-icd package, hence installing the same.


During install the issue is:
Code:
>>> Emerging (1 of 1) dev-libs/ocl-icd-2.3.1-r1::Miezhiko
 * ocl-icd-2.3.1.tar.gz BLAKE2B size ;-) ...                                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking ocl-icd-2.3.1.tar.gz to /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work
>>> Source unpacked in /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work
>>> Preparing source in /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 ...
 * Running eautoreconf in '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1' ...
 * Running 'libtoolize --install --copy --force --automake' ...                                                        [ ok ]
 * Running 'aclocal -I m4 --system-acdir=/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/temp/aclocal' ...                  [ ok ]
 * Running 'autoconf --force' ...                                                                                      [ ok ]
 * Running 'autoheader --force' ...                                                                                    [ ok ]
 * Running 'automake --add-missing --copy --foreign --force-missing' ...                                               [ ok ]
 * Running elibtoolize in: ocl-icd-2.3.1/
 *   Applying fix-file-check/2.5.0 patch ...
 * Running elibtoolize in: ocl-icd-2.3.1/build-aux/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.3 patch ...
 *   Applying color-record/2.4.7 patch ...
 *   Applying openmp/2.4.7 patch ...
 *   Applying verbose-pic/2.4.7 patch ...
 *   Applying clang-runtime-ltmain/2.4.7 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * econf: updating ocl-icd-2.3.1/build-aux/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ocl-icd-2.3.1/build-aux/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ocl-icd-2.3.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ocl-icd-2.3.1/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/ocl-icd-2.3.1-r1 --htmldir=/usr/share/doc/ocl-icd-2.3.1-r1/html --with-sysroot=/ --libdir=/usr/lib64 --enable-pthread-once --disable-official-khronos-headers
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/lib/portage/python3.12/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to enable C11 features... none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking the archiver (x86_64-pc-linux-gnu-ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-pc-linux-gnu-nm -B
checking the name lister (/usr/bin/x86_64-pc-linux-gnu-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-file... no
checking for file... no
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... x86_64-pc-linux-gnu-dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... (cached) x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... /
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
checking for asciidoc... /usr/bin/asciidoc
checking for a2x... /usr/bin/a2x
checking for xmlto... /usr/bin/xmlto
configure: generating documentation
checking for dlopen in -ldl... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for CL/opencl.h... yes
checking for CL/cl_layer.h... yes
checking whether OpenCL headers 3.0 are available... checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
yes
checking for inline... inline
checking for size_t... yes
checking for an ANSI C-conforming const... yes
checking whether C compiler accepts -Wno-deprecated-declarations... yes
checking for GNU libc compatible malloc... yes
checking for GNU libc compatible realloc... yes
checking for strstr... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
configure: using system 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
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j28 -l279 RUBY=ruby31
ruby31 /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/icd_generator.rb --mode database --database /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/ocl_interface.yaml \
   
ruby31 /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/icd_generator.rb --mode generate --database /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/ocl_interface.yaml
echo "timestamp" > stamp-generator-dummy
echo "timestamp" > stamp-generator
make  all-recursive
make[1]: Entering directory '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1-abi_x86_64.amd64'
Making all in .
make[2]: Entering directory '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1-abi_x86_64.amd64'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall  -DOCL_ICD_PRINT_EXPECTED  -Wno-deprecated-declarations  -O2 -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd.o `test -f 'run_dummy_icd.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`run_dummy_icd.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall  -DOCL_ICD_PRINT_EXPECTED  -Wno-deprecated-declarations  -O2 -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd_gen.o `test -f 'run_dummy_icd_gen.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`run_dummy_icd_gen.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall  -DOCL_ICD_PRINT_EXPECTED  -Wno-deprecated-declarations  -O2 -c -o run_dummy_icd_through_our_ICDL-run_dummy_icd_weak_gen.o `test -f 'run_dummy_icd_weak_gen.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`run_dummy_icd_weak_gen.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall   -Wno-deprecated-declarations   -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -O2 -c -o libOpenCL_la-ocl_icd_loader.lo `test -f 'ocl_icd_loader.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`ocl_icd_loader.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall   -Wno-deprecated-declarations   -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -O2 -c -o libOpenCL_la-ocl_icd_loader_gen.lo `test -f 'ocl_icd_loader_gen.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`ocl_icd_loader_gen.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall    -O2 -c -o libdummy_icd.lo /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/libdummy_icd.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall    -O2 -c -o libdummy_icd_gen.lo libdummy_icd_gen.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall  -DICD_SUFFIX=\"2\"   -O2 -c -o libdummycl2_la-libdummy_icd.lo `test -f 'libdummy_icd.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`libdummy_icd.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall  -DICD_SUFFIX=\"2\"   -O2 -c -o libdummycl2_la-libdummy_icd_gen.lo `test -f 'libdummy_icd_gen.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`libdummy_icd_gen.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall  -DICD_WITHOUT_EXTENSION   -O2 -c -o libdummycl_noext_la-libdummy_icd.lo `test -f 'libdummy_icd.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`libdummy_icd.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall  -DICD_WITHOUT_EXTENSION   -O2 -c -o libdummycl_noext_la-libdummy_icd_gen.lo `test -f 'libdummy_icd_gen.c' || echo '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/'`libdummy_icd_gen.c
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1  -Wall    -O2 -c -o dummy_icd_layer_gen.lo dummy_icd_layer_gen.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -O2 -c /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/libdummy_icd.c  -fPIC -DPIC -o .libs/libdummy_icd.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -O2 -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummy_icd_gen.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -O2 -c dummy_icd_layer_gen.c  -fPIC -DPIC -o .libs/dummy_icd_layer_gen.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -Wno-deprecated-declarations -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -O2 -c /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/ocl_icd_loader.c  -fPIC -DPIC -o .libs/libOpenCL_la-ocl_icd_loader.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -DICD_SUFFIX=\"2\" -O2 -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummycl2_la-libdummy_icd_gen.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -Wno-deprecated-declarations -DETC_OPENCL_VENDORS=\"/etc/OpenCL/vendors\" -O2 -c ocl_icd_loader_gen.c  -fPIC -DPIC -o .libs/libOpenCL_la-ocl_icd_loader_gen.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -DICD_WITHOUT_EXTENSION -O2 -c /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/libdummy_icd.c  -fPIC -DPIC -o .libs/libdummycl_noext_la-libdummy_icd.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -DICD_WITHOUT_EXTENSION -O2 -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummycl_noext_la-libdummy_icd_gen.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1 -Wall -DICD_SUFFIX=\"2\" -O2 -c /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/libdummy_icd.c  -fPIC -DPIC -o .libs/libdummycl2_la-libdummy_icd.o
In file included from /usr/include/CL/opencl.h:26,
                 from /var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/ocl_icd_loader.c:49:
/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/ocl_icd_loader.c:895:3: error: expected identifier before numeric constant
  895 |   CL_ICDL_OCL_VERSION=1,
      |   ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/ocl_icd_loader.c:899:3: error: redefinition of typedef 'cl_icdl_info' with different type
  899 | } cl_icdl_info;
      |   ^~~~~~~~~~~~
/usr/include/CL/cl_ext.h:3492:29: note: previous declaration of 'cl_icdl_info' with type 'cl_icdl_info' {aka 'unsigned int'}
 3492 | typedef cl_uint             cl_icdl_info;
      |                             ^~~~~~~~~~~~
/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1/ocl_icd_loader.c:901:15: error: conflicting types for 'clGetICDLoaderInfoOCLICD'; have 'cl_int(int,  size_t,  void *, size_t *)' {aka 'int(int,  long unsigned int,  void *, long unsigned int *)'}
  901 | static cl_int clGetICDLoaderInfoOCLICD(
      |               ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/CL/cl_ext.h:3514:1: note: previous declaration of 'clGetICDLoaderInfoOCLICD' with type 'cl_int(cl_icdl_info,  size_t,  void *, size_t *)' {aka 'int(unsigned int,  long unsigned int,  void *, long unsigned int *)'}
 3514 | clGetICDLoaderInfoOCLICD(
      | ^~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:847: libOpenCL_la-ocl_icd_loader.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1-abi_x86_64.amd64'
make[1]: *** [Makefile:1047: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1-abi_x86_64.amd64'
make: *** [Makefile:615: all] Error 2
 * ERROR: dev-libs/ocl-icd-2.3.1-r1::Miezhiko failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/ocl-icd-2.3.1-r1::Miezhiko'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/ocl-icd-2.3.1-r1::Miezhiko'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1'

>>> Failed to emerge dev-libs/ocl-icd-2.3.1-r1, Log file:

>>>  '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/temp/build.log'

 * Messages for package dev-libs/ocl-icd-2.3.1-r1:

 * ERROR: dev-libs/ocl-icd-2.3.1-r1::Miezhiko failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/ocl-icd-2.3.1-r1::Miezhiko'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/ocl-icd-2.3.1-r1::Miezhiko'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/ocl-icd-2.3.1-r1/work/ocl-icd-2.3.1'


Emerge --info:
Code:
https://pastebin.com/wtVJwLMi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum