[dev] undefined reference to `__multi3'
Jack
ostroffjh at users.sourceforge.net
Wed Nov 7 19:12:00 GMT 2018
On 2018.11.07 13:29, Yuri Chornoivan wrote:
> Hi,
>
> Below is the discussion in the Mageia development mailing list.
>
> Can this problem be fixed on KMyMoney side?
>
> Thanks in advance for your answers.
>
> Best regards,
> Yuri
>
> ---------- Переслане повідомлення ----------
>
> Тема: Re: [dev] undefined reference to `__multi3'
> Дата: середа, 7 листопада 2018 р., 20:15:33 EET
> Від: David GEIGER <geiger.david68210 at gmail.com>
> Кому: dev at ml.mageia.org
>
> Le mer. 7 nov. 2018 à 18:36, Zézinho <lists.jjorge at free.fr> a écrit :
>
> > I get a strange build error for kmymoney 5.0.2 on MGA6 i586, which I
> > cannot reproduce building here in x86_64.
> >
> > CMakeFiles/kmm_mymoney.dir/mymoneyforecast.cpp.o: In function
> > `MyMoneyForecastPrivate::calculateAccountTrendList()':
> >
> > /home/iurt/rpmbuild/BUILD/kmymoney-5.0.2/kmymoney/mymoney/
> mymoneyforecast.cpp:682:
> > undefined reference to `__multi3'
> >
> > Hint welcome
> >
> >
> This is the commit who seems in fault :
>
> https://github.com/KDE/kmymoney/commit/
> 11fa00ff2b8ae64109d9b74ecfa6f0c80b2daa76#diff-b71dd6e10f60f135bc55ff677b48f3b1
> -----------------------------------------------
I may be out of my league here, but gcc docs say "The integer
arithmetic routines are used on platforms that don’t provide hardware
support for arithmetic operations on some modes." where "These
functions return the remainder of the signed division of a and b."
includes "Runtime Function: long long __multi3 (long long a, long long
b)"
Several google results imply that call may not be present on
architectures other than amd64 (I see cases for MIPS where it looks
like there ended up being a kernel patch for it) and using gcc7. Given
the failure here is on MGA6 i586, I'm not sure if the fix should or
even can be in KMM itself, or whether gcc needs to better deal with
other architectures?
However, note I'm not a KMM developer, so one of them will need to say
something here.
Jack
More information about the KMyMoney-devel
mailing list