Opened 8 days ago

Closed 6 days ago

#11304 closed defect (fixed)

Cannot build on OpenBSD/riscv64

Reported by: Brad Smith Owned by: Rémi Denis-Courmont
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Trying to build on OpenBSD/riscv64 7.6, Clang 16..

openbsd-riscv64$ gmake
GEN libavdevice/libavdevice.version
GEN libavfilter/libavfilter.version
GEN libavformat/libavformat.version
GEN libavcodec/libavcodec.version
GEN libswresample/libswresample.version
GEN libswscale/libswscale.version
GEN libavutil/libavutil.version
CC libavdevice/alldevices.o
In file included from libavdevice/alldevices.c:23:
In file included from ./libavformat/avformat_internal.h:30:
In file included from ./libavformat/avformat.h:312:
In file included from ./libavcodec/codec_par.h:26:
In file included from ./libavutil/avutil.h:301:
In file included from ./libavutil/common.h:49:
In file included from ./libavutil/intmath.h:32:
In file included from ./libavutil/riscv/intmath.h:29:
./libavutil/riscv/cpu.h:78:25: error: call to undeclared function 'ff_get_rv_vlenb'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]

return bits <= (8 * ff_get_rv_vlenb());


1 error generated.

Change History (4)

comment:1 by Rémi Denis-Courmont, 8 days ago

Owner: set to Rémi Denis-Courmont
Status: newopen

Patch on ML

comment:2 by Rémi Denis-Courmont, 8 days ago

Note that FFmpeg on RISC-V requires Clang 17 or later. The RISC-V assembler in Clang 16 is a bad joke.

comment:3 by Brad Smith, 7 days ago

Oh, I understand for Vector support. OpenBSD does not have Vector support yet so I figured it would disable the Vector support and still build without the Vector code. I am hoping within the next few months the system compiler will be updated from 16 to 19.

comment:4 by Rémi Denis-Courmont, 6 days ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.