On Sat, May 06, 2023 at 08:38:40PM +0200, PEEX Gamer wrote: > I was trying to compile git for x86_64 FreeBSD 13.2 on x86_64 linux > without any success. > I was using clang toolchain that worked for native Freebsd 13.2 compilation. > The errors i had: > First thing was that config.mak.uname was trying to include sysinfo > because of host machine being linux which was weird. I ommited this > error by replacing linux section with freebsd and everythink was > smooth until http.c which generates output attached in email. Looks like you're having problems with fileno() being passed a void pointer. Try compiling with: make FILENO_IS_A_MACRO=Yes That is generally set automatically on FreeBSD via config.mak.uname; perhaps you missed it when moving things around there. I've never tried cross-compiling Git, but I'd guess that your best bet is to override the uname_* variables, like: make uname_S=FreeBSD uname_R=13.2 (there are others, but those are the main ones we use to set defaults for various Makefile knobs). Of course you can tweak all the Makefile knobs yourself, but that may be tedious. -Peff