git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: PEEX Gamer <czupux@gmail.com>
To: git@vger.kernel.org
Subject: Unable to cross compile git. http.c generating errors.
Date: Sat, 6 May 2023 20:38:40 +0200	[thread overview]
Message-ID: <CALpgS-OQzoopjKd2a3NBkaefHoqR_wLop5x3Y7U8e0eVUO7XJQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

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.

[-- Attachment #2: error_stdio.PNG --]
[-- Type: image/png, Size: 9929 bytes --]

             reply	other threads:[~2023-05-06 18:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-06 18:38 PEEX Gamer [this message]
2023-05-11  3:39 ` Unable to cross compile git. http.c generating errors Bagas Sanjaya
2023-05-11  6:28 ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALpgS-OQzoopjKd2a3NBkaefHoqR_wLop5x3Y7U8e0eVUO7XJQ@mail.gmail.com \
    --to=czupux@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).