mailing list of musl libc
 help / color / mirror / Atom feed
* [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc
@ 2021-07-17 11:35 daggs
  2021-07-17 11:43 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: daggs @ 2021-07-17 11:35 UTC (permalink / raw)
  To: musl

Greetings,

I seems to encounter an issue when creating a musl libc based cross compiler using crosstool-ng.
the error is as follows:
[ALL  ]      /home/dagg/workspace/crosstool-ng/.build/x86_64-unknown-linux-musl/buildtools/lib/gcc/x86_64-unknown-linux-musl/10.3.0/../../../../x86_64-unknown-linux-musl/bin/ld: obj/src/malloc/oldmalloc/malloc.lo: in function `__libc_malloc':
[ALL  ]      malloc.c:(.text.__libc_malloc+0x0): multiple definition of `__libc_malloc'; obj/src/malloc/lite_malloc.lo:lite_malloc.c:(.text.__libc_malloc+0x0): first defined here

from the looks of it, __libc_malloc is defined in more than one files which are getting linked.
in comparison,in I downgrade musl to 1.2.1, the issue doesn't reproduces.

has anyone encountered it? how can I fix this issue?

Thanks,

Dagg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc
  2021-07-17 11:35 [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc daggs
@ 2021-07-17 11:43 ` Rich Felker
  2021-07-17 12:16   ` daggs
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Felker @ 2021-07-17 11:43 UTC (permalink / raw)
  To: daggs; +Cc: musl

On Sat, Jul 17, 2021 at 01:35:27PM +0200, daggs wrote:
> Greetings,
> 
> I seems to encounter an issue when creating a musl libc based cross compiler using crosstool-ng.
> the error is as follows:
> [ALL  ]      /home/dagg/workspace/crosstool-ng/.build/x86_64-unknown-linux-musl/buildtools/lib/gcc/x86_64-unknown-linux-musl/10.3.0/../../../../x86_64-unknown-linux-musl/bin/ld: obj/src/malloc/oldmalloc/malloc.lo: in function `__libc_malloc':
> [ALL  ]      malloc.c:(.text.__libc_malloc+0x0): multiple definition of `__libc_malloc'; obj/src/malloc/lite_malloc.lo:lite_malloc.c:(.text.__libc_malloc+0x0): first defined here
> 
> from the looks of it, __libc_malloc is defined in more than one files which are getting linked.
> in comparison,in I downgrade musl to 1.2.1, the issue doesn't reproduces.
> 
> has anyone encountered it? how can I fix this issue?

commit 98b9df994c85dcb6a8a5a9099495dd44c7cf2bce fixes it:

https://git.musl-libc.org/cgit/musl/commit/?id=98b9df994c85dcb6a8a5a9099495dd44c7cf2bce

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc
  2021-07-17 11:43 ` Rich Felker
@ 2021-07-17 12:16   ` daggs
  2021-07-17 12:41     ` daggs
  0 siblings, 1 reply; 4+ messages in thread
From: daggs @ 2021-07-17 12:16 UTC (permalink / raw)
  To: Rich Felker; +Cc: musl

Greetings Rich,
> Sent: Saturday, July 17, 2021 at 2:43 PM
> From: "Rich Felker" <dalias@libc.org>
> To: "daggs" <daggs@gmx.com>
> Cc: musl@lists.openwall.com
> Subject: Re: [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc
>
> On Sat, Jul 17, 2021 at 01:35:27PM +0200, daggs wrote:
> > Greetings,
> >
> > I seems to encounter an issue when creating a musl libc based cross compiler using crosstool-ng.
> > the error is as follows:
> > [ALL  ]      /home/dagg/workspace/crosstool-ng/.build/x86_64-unknown-linux-musl/buildtools/lib/gcc/x86_64-unknown-linux-musl/10.3.0/../../../../x86_64-unknown-linux-musl/bin/ld: obj/src/malloc/oldmalloc/malloc.lo: in function `__libc_malloc':
> > [ALL  ]      malloc.c:(.text.__libc_malloc+0x0): multiple definition of `__libc_malloc'; obj/src/malloc/lite_malloc.lo:lite_malloc.c:(.text.__libc_malloc+0x0): first defined here
> >
> > from the looks of it, __libc_malloc is defined in more than one files which are getting linked.
> > in comparison,in I downgrade musl to 1.2.1, the issue doesn't reproduces.
> >
> > has anyone encountered it? how can I fix this issue?
>
> commit 98b9df994c85dcb6a8a5a9099495dd44c7cf2bce fixes it:
>
> https://git.musl-libc.org/cgit/musl/commit/?id=98b9df994c85dcb6a8a5a9099495dd44c7cf2bce
>

I'll try it out.

Thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc
  2021-07-17 12:16   ` daggs
@ 2021-07-17 12:41     ` daggs
  0 siblings, 0 replies; 4+ messages in thread
From: daggs @ 2021-07-17 12:41 UTC (permalink / raw)
  To: Rich Felker; +Cc: musl

confirmed, Thanks!

> Sent: Saturday, July 17, 2021 at 3:16 PM
> From: "daggs" <daggs@gmx.com>
> To: "Rich Felker" <dalias@libc.org>
> Cc: musl@lists.openwall.com
> Subject: Re: [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc
>
> Greetings Rich,
> > Sent: Saturday, July 17, 2021 at 2:43 PM
> > From: "Rich Felker" <dalias@libc.org>
> > To: "daggs" <daggs@gmx.com>
> > Cc: musl@lists.openwall.com
> > Subject: Re: [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc
> >
> > On Sat, Jul 17, 2021 at 01:35:27PM +0200, daggs wrote:
> > > Greetings,
> > >
> > > I seems to encounter an issue when creating a musl libc based cross compiler using crosstool-ng.
> > > the error is as follows:
> > > [ALL  ]      /home/dagg/workspace/crosstool-ng/.build/x86_64-unknown-linux-musl/buildtools/lib/gcc/x86_64-unknown-linux-musl/10.3.0/../../../../x86_64-unknown-linux-musl/bin/ld: obj/src/malloc/oldmalloc/malloc.lo: in function `__libc_malloc':
> > > [ALL  ]      malloc.c:(.text.__libc_malloc+0x0): multiple definition of `__libc_malloc'; obj/src/malloc/lite_malloc.lo:lite_malloc.c:(.text.__libc_malloc+0x0): first defined here
> > >
> > > from the looks of it, __libc_malloc is defined in more than one files which are getting linked.
> > > in comparison,in I downgrade musl to 1.2.1, the issue doesn't reproduces.
> > >
> > > has anyone encountered it? how can I fix this issue?
> >
> > commit 98b9df994c85dcb6a8a5a9099495dd44c7cf2bce fixes it:
> >
> > https://git.musl-libc.org/cgit/musl/commit/?id=98b9df994c85dcb6a8a5a9099495dd44c7cf2bce
> >
>
> I'll try it out.
>
> Thanks
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-17 12:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-17 11:35 [musl] musl 1.2.2 link error on __libc_malloc with --with-malloc=oldmalloc daggs
2021-07-17 11:43 ` Rich Felker
2021-07-17 12:16   ` daggs
2021-07-17 12:41     ` daggs

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ http://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git