[libc-commits] [libc] [libc] Implement fcntl() function (PR #89507)

Vinayak Dev via libc-commits libc-commits at lists.llvm.org
Wed Jun 12 02:51:39 PDT 2024


vinayakdsci wrote:

> Looks like this broke something. With this I'm getting a compile time error when running `ninja check-libc` without fullbuild enabled.
> 
> See the log here: https://hastebin.skyra.pw/uhuroxeyab.bash
> 
> Reverting [aca5117](https://github.com/llvm/llvm-project/commit/aca511734f5ff6204fdc65427566c8bd3b810a24) fixed this for me.
> 
> I'm on debian 12 x86_64

Hi @HendrikHuebner , do you have development headers for `glibc` installed? This could be happening because of their absence, as `struct flock` and `struct flock64` are both supposed to be defined in the `<fcntl.h>` . You can install it on debian through the package `libc6-dev`. 
In case it is installed, my guess is that you might used the same build folder to build the full build and the overlay build and cmake is unable to handle the switch. Could you try deleting you build folder, re-running cmake and then running the build command?

I am saying this because the `libc` tests in both full build and in overlay mode are passing on my machine, running Ubuntu 22.04.

https://github.com/llvm/llvm-project/pull/89507


More information about the libc-commits mailing list