BR2_TIME_BITS_64 break libv4l
How to build libv4l when BR2_TIME_BITS_64=y? This issues looks similar.
What I did
- Buildroot commit sha1: 2024.08-1334-g11ae90b001
- Distribution of the build machine: Ubuntu 24.04.1 LTS (Noble Numbat)
All my steps in my repo:
git clone --remote-submodules --recurse-submodules -j8 https://github.com/AndreiCherniaev/buildroot_x86_libv4l_glibc_64bit_time.git
cd buildroot_x86_libv4l_glibc_64bit_time
make clean -C buildroot
make BR2_EXTERNAL=$PWD/my_external_tree -C $PWD/buildroot qemu_x86_libv4l_BR2_TIME_BITS_64_defconfig
make -C buildroot
I get error while building, after I did
make libv4l-rebuild -C buildroot 2>&1 |tee libv4l.log
What happens
I can't build libv4l because of -D_FILE_OFFSET_BITS=32 and -D_FILE_OFFSET_BITS=64 in one time. From where 32 comes? I don't know, may be from here? See build_libv4l.log
FAILED: lib/libv4l2/v4l2convert.so.p/v4l2convert.c.o /home/a/mycode/buildroot_libv4l_glibc_64bit_time/buildroot/output/host/bin/i686-buildroot-linux-gnu-gcc -Ilib/libv4l2/v4l2convert.so.p -Ilib/libv4l2 -I../lib/libv4l2 -I../lib/include -I../include -fdiagnostics-color=always -Wall -Winvalid-pch -std=gnu99 -O3 -Wpointer-arith -D_GNU_SOURCE -DPROMOTED_MODE_T=int -DENABLE_NLS -include /home/a/mycode/buildroot_libv4l_glibc_64bit_time/buildroot/output/build/libv4l-1.28.1/build/config.h -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -O2 -g0 -D_FORTIFY_SOURCE=1 -fPIC -U_FILE_OFFSET_BITS -D_FILE_OFFSET_BITS=32 -D_LARGEFILE64_SOURCE -MD -MQ lib/libv4l2/v4l2convert.so.p/v4l2convert.c.o -MF lib/libv4l2/v4l2convert.so.p/v4l2convert.c.o.d -o lib/libv4l2/v4l2convert.so.p/v4l2convert.c.o -c ../lib/libv4l2/v4l2convert.c
P.S. I also expect similar problem with BR2_PACKAGE_HOST_GDB
What was expected
Successfully build libv4l when BR2_TIME_BITS_64=y