You are not logged in.

#1 2024-05-13 04:18:10

r0ng
Member
Registered: 2023-08-03
Posts: 5

[AUR] lib32-ffmpeg build fail

In file included from /usr/include/CL/cl.h:20,
                 from libavutil/hwcontext_opencl.h:25,
                 from libavutil/hwcontext_opencl.c:30:
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
      |         ^~~~~~~
CC      libavutil/hwcontext_vaapi.o
libavutil/hwcontext_vaapi.c: In function ‘vaapi_map_from_drm’:
libavutil/hwcontext_vaapi.c:1228:34: error: assignment to ‘uintptr_t *’ {aka ‘unsigned int *’} from incompatible pointer type ‘long unsigned int *’ [-Wincompatible-pointer-types]
 1228 |         buffer_desc.buffers      = &buffer_handle;
      |                                  ^
make: *** [ffbuild/common.mak:81: libavutil/hwcontext_vaapi.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'lib32-ffmpeg-2:6.1.1-2': 
error: packages failed to build: lib32-ffmpeg-2:6.1.1-2

How can i fix this problem? check the aur discussion page but no help

Offline

#2 2024-05-13 10:54:15

loqs
Member
Registered: 2014-03-06
Posts: 17,639

Re: [AUR] lib32-ffmpeg build fail

  CFLAGS+=' -Wno-error=incompatible-pointer-types -Wno-error=int-conversion'

Edit:
https://trac.ffmpeg.org/ticket/11004 for incompatible-pointer-types
The int-conversion is fixed by https://git.ffmpeg.org/gitweb/ffmpeg.gi … f732d370c1

Last edited by loqs (2024-05-13 11:28:47)

Offline

#3 2024-05-13 11:02:50

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,954
Website

Re: [AUR] lib32-ffmpeg build fail

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB