mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Ritvik Tanksalkar <ritviktanksalkar@gmail.com>
To: musl@lists.openwall.com
Subject: [musl] Build failure on 64 bit machine for 32 bit target
Date: Tue, 6 Aug 2024 12:00:36 -0400	[thread overview]
Message-ID: <CAJxTgFwf05px_q2tt4gc6dW31TAw0SPw3pzSpYk4pGnpMbZnFg@mail.gmail.com> (raw)

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

Hi,

I am not subscribed so I would like to get CC'd for the reply. I've been
trying to get musl build for 32 bit targets on a 64 bit linux machine. For
this, I'm doing the following on musl-1.2.5 -

CC=gcc CFLAGS="-m32" LDFLAGS="-m32" ./configure --host=i686-linux-gnu

and then running "make" results in multiple definition errors while
linking. The following output has been redacted for the sake of brevity.

/usr/bin/ld: obj/compat/time32/__xstat.lo: in function `__fxstat':
__xstat.c:(.text.__fxstat+0x0): multiple definition of `__fxstat';
obj/src/stat/__xstat.lo:__xstat.c:(.text.__fxstat+0x0): first defined here
/usr/bin/ld: obj/compat/time32/__xstat.lo: in function `__fxstatat':
__xstat.c:(.text.__fxstatat+0x0): multiple definition of `__fxstatat';
obj/src/stat/__xstat.lo:__xstat.c:(.text.__fxstatat+0x0): first defined here
/usr/bin/ld: obj/compat/time32/__xstat.lo: in function `__lxstat':
__xstat.c:(.text.__lxstat+0x0): multiple definition of `__lxstat';
obj/src/stat/__xstat.lo:__xstat.c:(.text.__lxstat+0x0): first defined here
/usr/bin/ld: obj/compat/time32/__xstat.lo: in function `__xstat':
__xstat.c:(.text.__xstat+0x0): multiple definition of `__xstat';
obj/src/stat/__xstat.lo:__xstat.c:(.text.__xstat+0x0): first defined here

I'm certain that I'm missing out on something trivial here. Any insights
into this would be appreciated.

Warm Regards,
Ritvik

[-- Attachment #2: Type: text/html, Size: 1896 bytes --]

             reply	other threads:[~2024-08-06 17:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-06 16:00 Ritvik Tanksalkar [this message]
2024-08-06 19:34 ` Markus Wichmann

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=CAJxTgFwf05px_q2tt4gc6dW31TAw0SPw3pzSpYk4pGnpMbZnFg@mail.gmail.com \
    --to=ritviktanksalkar@gmail.com \
    --cc=musl@lists.openwall.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).