linux-mips
[Top] [All Lists]

Re: undefined reference to `__multi3' when building with gcc 7.x

To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Subject: Re: undefined reference to `__multi3' when building with gcc 7.x
From: James Hogan <james.hogan@mips.com>
Date: Tue, 5 Dec 2017 23:49:24 +0000
Cc: Ralf Baechle <ralf@linux-mips.org>, <linux-mips@linux-mips.org>, "Waldemar Brodkorb" <wbx@openadk.org>, Florian Fainelli <florian@openwrt.org>
In-reply-to: <20171203105631.5232445a@windsurf.lan>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20170803225547.6caa602b@windsurf.lan> <20171203105631.5232445a@windsurf.lan>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.7.2 (2016-11-26)
On Sun, Dec 03, 2017 at 10:56:31AM +0100, Thomas Petazzoni wrote:
> Hello,
> 
> +James Hogan in Cc.
> 
> On Thu, 3 Aug 2017 22:55:47 +0200, Thomas Petazzoni wrote:
> 
> > When trying to build the current Linux master with a gcc 7.x toolchain
> > for mips64r6-n32, I'm getting the following build failure:
> > 
> > crypto/scompress.o: In function `.L31':
> > scompress.c:(.text+0x2a0): undefined reference to `__multi3'
> > drivers/base/component.o: In function `.L97':
> > component.c:(.text+0x4a4): undefined reference to `__multi3'
> > drivers/base/component.o: In function `component_master_add_with_match':
> > component.c:(.text+0x8c4): undefined reference to `__multi3'
> > net/core/ethtool.o: In function `ethtool_set_per_queue_coalesce':
> > ethtool.c:(.text+0x1ab0): undefined reference to `__multi3'
> > Makefile:1000: recipe for target 'vmlinux' failed
> > make[2]: *** [vmlinux] Error 1
> 
> I'm still facing this problem. There was a lengthy thread about it back
> in August when I reported the problem, but then it calmed down, with no
> real solution proposed.
> 
> Are there plans to fix this at some point?

I recently fixed a similar issue in 64r6[el]_defconfig, but its not the
same as it applies to all gcc versions on mips64r6. Given Ralf appears
to be busy I'll take a look.

Cheers
James

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>