llvm-mingw icon indicating copy to clipboard operation
llvm-mingw copied to clipboard

libc: best practice?

Open karqo opened this issue 1 year ago • 3 comments

There are problems to get libc (?) functionalities working. For example, inclusions like sys/signal.h or sys/mman.h (by 3rd party libraries) can not be found using releases llvm-mingw-2024<month,day>-ucrt-ubuntu-20.04-x86_64.tar.xz, in contrast to original llvm (clang).

Is there a recommended practice (within the toolchain) of how to get it working?

karqo avatar Jun 24 '24 10:06 karqo

sys/signal.h and sys/mman.h are POSIX headers, this toolchain is targeting Windows.

longnguyen2004 avatar Jun 24 '24 14:06 longnguyen2004

sys/signal.h and sys/mman.h are POSIX headers, this toolchain is targeting Windows.

To my understanding this should not be a contradiction, if you have a correctly set up environment, right? (Compare to, e.g., #390 , the hints of which have not been sufficient yet though. Perhaps someone could provide more explicit hints (e.g., possibly missing flags, installs etc.? ) ? )

karqo avatar Jun 24 '24 15:06 karqo

That's a very specific issue regarding PGO and its interaction with ffmpeg's configure script. Since I don't have any extra context on your issue, I can only assume that you're trying to compile some Linux/POSIX specific libraries, which will not work since this toolchain is targeting Windows.

Please provide some info on what you're trying to do.

longnguyen2004 avatar Jun 24 '24 16:06 longnguyen2004