Opened 8 months ago

Last modified 6 months ago

#9138 open defect

file missing when making build

Reported by: David D Owned by:
Priority: important Component: avutil
Version: git-master Keywords: mips regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

i got a missing file :
src/libavutil/mips/cpu.c:26:22: fatal error: sys/auxv.h: No such file or directory

Doing :
wget https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar -xvf ffmpeg-snapshot.tar.bz2
mkdir -p ffmpeg/build && cd ffmpeg/build
configure --prefix=/home/Projet/aws/cross_output --target-os=linux --arch=mips --enable-cross-compile --cc=mips-linux-uclibc-gnu-gcc --enable-shared --enable-pic
make -j

Attachments (1)

Sans titre.png (159.8 KB ) - added by David D 8 months ago.
stdout

Download all attachments as: .zip

Change History (3)

by David D, 8 months ago

Attachment: Sans titre.png added

stdout

comment:1 by Carl Eugen Hoyos, 8 months ago

Component: undeterminedavutil
Keywords: mips regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen

This is a regression since e387fcd01cb84d9493f3b96158addd2a85f086c6, reproducible for example on Debian 7.11

$ make libavutil/mips/cpu.o
CC      libavutil/mips/cpu.o
src/libavutil/mips/cpu.c:26:22: fatal error: sys/auxv.h: No such file or directory
compilation terminated.
make: *** [libavutil/mips/cpu.o] Error 1

Works fine on Debian 8.11

comment:2 by RedDwarf, 6 months ago

getauxval(), provided by sys/auxv.h, is a glibc extension that exists since glibc 2.16. Clearly there is a need for something more complicated than #if defined __linux__ || defined __ANDROID__.

Note: See TracTickets for help on using tickets.