git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Unable to cross compile git. http.c generating errors.

From
PGPEEX Gamer <czupux@gmail.com>
Date
May 6, 2023, 18:38 UTC
Message-ID
<CALpgS-OQzoopjKd2a3NBkaefHoqR_wLop5x3Y7U8e0eVUO7XJQ@mail.gmail.com>

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. Why would somethink like this happen when same code was compiled with success on FreeBSD machine but for some reason it can't cross compile. stdio.h come from official FreeBSD 13.2 base. I checked also when was http.c modified but this part is like that for last 5 years. Looks like i might have done somethink wrong with my toolchain but the same toolchain generated working tests (i ran them on FreeBSD machine, worth noting that this tests were using stdio.h) and also built working curl from source.

Next: Bagas Sanjaya
Message 1 of 3 in “Unable to cross compile git. http.c generating errors.”
  1. PEEX GamerMay 6, 2023
  2. Bagas SanjayaMay 11, 2023
  3. Jeff KingMay 11, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.