scala-native / scala-native-bindgen

Scala Native Binding Generator

Home Page:https://scala-native.github.io/scala-native-bindgen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal error: 'stddef.h' file not found

Gorzen opened this issue · comments

I'm trying to generate bindings for LMDB but I can't manage to. It looks like clang can't find the files it wants. I'm not sure how to say where he can find them.

It looks at /usr/include/stddef.h but there is nothing there.
I'm on Arch Linux.

There is a file stddef.h at /usr/include/linux/stddef.h but it's almost empty, it only contains these lines:

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */


#ifndef __always_inline
#define __always_inline __inline__
#endif

If I tell him to get this file there are issues later, such as size_t being undefined.

I don't know what specific information could be useful to debug this, feel free to ask me additional information.