mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #31063] Problems running on mips64 abi n32


From: Lluís Batlle
Subject: [Mldonkey-bugs] [bug #31063] Problems running on mips64 abi n32
Date: Sat, 18 Sep 2010 16:23:50 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); ca-ES; rv:1.9.2.9) Gecko/20100910 Firefox/3.6.3

URL:
  <http://savannah.nongnu.org/bugs/?31063>

                 Summary: Problems running on mips64 abi n32
                 Project: mldonkey, a multi-networks file-sharing client
            Submitted by: viric
            Submitted on: ds 18 set 2010 16:23:49 GMT
                Category: Core
                Severity: 3 - Normal
              Item Group: Compilation problem
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 3.0.4
        Operating System: Linux
         Binaries Origin: CVS / Self compiled
                CPU type: None

    _______________________________________________________

Details:

Hello,

I had problems building mldonkey for mips64, and I came up with a patch I
attach for review. The problem was in the CryptoPP.cc file, related to
multiplication of double words.
Since gcc 4.4, the asm constraint 'h' is not there, and I was using gcc
4.5.1.

Once I could build mldonkey, I tried to run it, and some division code in
CryptoPP.cc failed an assertion:

mlnet: src/utils/lib/CryptoPP.cc:3745: void CryptoPP::Divide(CryptoPP::word*,
CryptoPP::word*, CryptoPP::word*, const CryptoPP::word*, unsigned int, const
CryptoPP::word*, unsigned int): Assertion `shiftBits < WORD_BITS' failed.


The gdb session:
(gdb) f 3
#3  0x100983cc in CryptoPP::Divide (R=0x1022ba30, Q=0x1022bac0, T=0x1022bae8,
A=0x1022ba78, 
    NA=6, B=0x1022b910, NB=4) at src/utils/lib/CryptoPP.cc:3745
3745            assert(shiftBits < WORD_BITS);
(gdb) print shiftBits 
$1 = 64
(gdb) print WORD_BITS 
$2 = 64


Any idea of what can be wrong in that code? I can debug further if you need.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: ds 18 set 2010 16:23:50 GMT  Name: gcc44mips64_2.patch  Size: 698B  
By: viric
Build problem fix.
<http://savannah.nongnu.org/bugs/download.php?file_id=21486>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?31063>

_______________________________________________
  Missatge enviat a través de/per Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]