From: Markus Wichmann <nullplan@gmx.net>
To: musl@lists.openwall.com
Cc: Ritvik Tanksalkar <ritviktanksalkar@gmail.com>
Subject: Re: [musl] Build failure on 64 bit machine for 32 bit target
Date: Tue, 6 Aug 2024 21:34:03 +0200 [thread overview]
Message-ID: <ZrJ6q0SHu5sy64B9@voyager> (raw)
In-Reply-To: <CAJxTgFwf05px_q2tt4gc6dW31TAw0SPw3pzSpYk4pGnpMbZnFg@mail.gmail.com>
Am Tue, Aug 06, 2024 at 12:00:36PM -0400 schrieb Ritvik Tanksalkar:
> CC=gcc CFLAGS="-m32" LDFLAGS="-m32" ./configure --host=i686-linux-gnu
>
That doesn't work. Try
CC="gcc -m32" ./configure --target=i686 AR=ar RANLIB=ranlib
Your way does not add "-m32" for configure tests. Unfortunately, this
way I am still only able to generate the static library, because the
shared one uses the wrong libgcc. Because -m32 does not change the
output of "gcc -print-libgcc-file-name". No clue how you are supposed to
do this, short of using a real cross compiler.
Ciao,
Markus
prev parent reply other threads:[~2024-08-06 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-06 16:00 Ritvik Tanksalkar
2024-08-06 19:34 ` Markus Wichmann [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZrJ6q0SHu5sy64B9@voyager \
--to=nullplan@gmx.net \
--cc=musl@lists.openwall.com \
--cc=ritviktanksalkar@gmail.com \
/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://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).