[Buildroot] Autobuilder failures: microblazeel and toolchainfile.cmake with -D_FILE_OFFSET_BITS=64 (plain text)
Леонид Юрьев (Leonid Yuriev)
leo at yuriev.ru
Sun May 1 15:06:20 UTC 2022
Hi, All.
Seems there is a CMake's and/or glibc's problem(s) with the `-
D_FILE_OFFSET_BITS=64` for microblazeel.
I assume that a `toolchainfile.cmake` contains definitions that don't
compliance to glibc and/or kernel configuration(s).
---
I received an build error notification of a package I support:
http://autobuild.buildroot.net/results/0c52d3202854526de35770df6f580f9b4ad4c588
In fact, `static_assert()` was triggered, checking a compliance of the
`off_t` type and the `struct flock` fields for `fcntl()` call:
...
#ifndef OFF_T_MAX
#define OFF_T_MAX \
(((sizeof(off_t) > 4) ? INT64_MAX : INT32_MAX) & ~(size_t)0xffff)
#endif
...
struct flock lock_op;
STATIC_ASSERT(sizeof(off_t) <= sizeof(lock_op.l_start) &&
sizeof(off_t) <= sizeof(lock_op.l_len) &&
OFF_T_MAX == (off_t)OFF_T_MAX);
This package build is via CMake and in the logs I see the `-
D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64` flags
which provided/added by CMake but not any of my CMakeLists.txt
So I assume that a `toolchainfile.cmake` for microblazeel contains
definitions that do not compliance to the configuration of glibc and/or
the target's kernel.
Regards,
Leonid.
More information about the buildroot
mailing list