From: mss <mss@tutanota.de> To: Ffmpeg Devel <ffmpeg-devel@ffmpeg.org> Subject: [FFmpeg-devel] libavdevice/v4l2.c: FFmpeg 6.0 build breaks with Clang 16 (LLVM 16.0.0-rc4) Date: Fri, 17 Mar 2023 09:02:09 +0100 (CET) Message-ID: <NQi_mRG--3-9@tutanota.de> (raw) On an x86_64 musl (version 1.2.3) linux system with a standalone complete LLVM suite (no GCC, libstdc++ or binutils components are installed), when building FFmpeg version 6.0 with Clang 16 from LLVM 16.0.0-rc4, the build breaks with the following error: src/libavdevice/v4l2.c:145:9: error: incompatible function pointer types assigning to 'int (*)(int, int, ...)' from 'int (int, unsigned long, ...)' [-Wincompatible-function-pointer-types] SET_WRAPPERS(v4l2_); ^~~~~~~~~~~~~~~~~~~ src/libavdevice/v4l2.c:137:17: note: expanded from macro 'SET_WRAPPERS' s->ioctl_f = prefix ## ioctl; \ ^ ~~~~~~~~~~~~~~~ Build of the same version of FFmpeg completes successfully when Clang 15 from LLVM 15.0.7 is used. Only change made to the system to see the build breakage is the Clang/LLVM version being bumped from stable 15.0.7 to rc4 16.0.0. No patches are applied, and the used C/CXX/LDFLAGS are as follows: C/CXXFLAGS: -DNDEBUG -g0 -s -w -pipe -O3 -march=x86-64 -mtune=generic -D_FORTIFY_SOURCE=2 -fstack-protector-strong LDFLAGS: -Wl,--as-needed,--sort-common,-z,relro,-z,now,--gc-sections,-O3, --icf=all when CFLAGS, CXXFLAGS and LDFLAGS variables are unset, the build breakage remains, and Clang/LLVM 15.0.7 is able to build FFmpeg 6.0 with the same set of variables stated above. The configure flags used when configuring the FFmpeg 6.0 stable release source are as follows: ../configure \ --prefix=/usr \ --enable-gpl \ --enable-nonfree \ \ --cpu=generic \ --enable-runtime-cpudetect \ \ --enable-lto \ --enable-pic \ --enable-shared \ --disable-debug \ --disable-optimizations \ --disable-static \ --disable-symver \ \ --enable-ffmpeg \ --disable-ffplay \ --disable-ffprobe \ \ --enable-libpulse \ --disable-alsa \ \ --enable-bzlib \ --enable-libass \ --enable-libdrm \ --enable-libfontconfig \ --enable-libfreetype \ --enable-libfribidi \ --enable-libmp3lame \ --enable-libopenjpeg \ --enable-libopus \ --enable-libv4l2 \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libx265 \ --enable-libxcb \ --enable-libxcb-shape \ --enable-libxcb-shm \ --enable-libxcb-xfixes \ --enable-lzma \ --enable-network \ --enable-opengl \ --enable-openssl \ --enable-pthreads \ --enable-v4l2-m2m \ --enable-vaapi \ --enable-xlib \ --enable-zlib \ \ --disable-indev="oss,sndio,alsa" \ --disable-outdev="oss,sndio,alsa"\ \ --disable-doc \ --disable-htmlpages \ --disable-manpages \ --disable-podpages \ --disable-txtpages _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
reply other threads:[~2023-03-17 8:02 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=NQi_mRG--3-9@tutanota.de \ --to=mss@tutanota.de \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git