Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 90211
Alias:
Product:
Component:
Status: CLOSED
Resolution: FIXED
Assigned To: ppc64 architecture team <ppc64@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Markus Rothe <corsair@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 90211 depends on: Show dependency tree
Bug 90211 blocks: 83684 86649 113600
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-04-24 03:01 0000
Hi,

as you can see here http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/libgcrypt/mpi/powerpc64/ there is no asm for mpi on ppc64 (whatever that is...). http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/libgcrypt/mpi/powerpc32/ shows how it looks like for ppc.

As a result of a lack of ppc64 support we are not able to compile cryptsetup, which is a dependency of newer cdrtools.

Here (http://bugs.gentoo.org/attachment.cgi?id=52404) is the compile output of cryptsetup. As you can see there are many undefined references.

I would write this code myself, but I don't have the knowledge to do so. (yet another thing to learn ;-) )

Markus

------- Comment #1 From Joshua (RETIRED) 2005-09-08 06:57:06 0000 -------
(In reply to comment #0)
> Hi,
> 
> as you can see here
http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/libgcrypt/mpi/powerpc64/ there is no
asm for mpi on ppc64 (whatever that is...).
http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/libgcrypt/mpi/powerpc32/ shows how it
looks like for ppc.
> 
    This isn't strictly true.  ppc64 uses ppc32 code for it.  The problem is
slightly more confusing.....

> As a result of a lack of ppc64 support we are not able to compile cryptsetup,
which is a dependency of newer cdrtools.
> 
> Here (http://bugs.gentoo.org/attachment.cgi?id=52404) is the compile output of
cryptsetup. As you can see there are many undefined references.
> 
    O.k.  If you compile cryptsetup but dynamically link to libgcrypt rather
than linking with libgcrypt.a then it all works fine, at least as far as I can
tell from the limited testing I've done.  I created a partition and formatted
it, unmounted then remounted it, resized it.  The normal sort of stuff and it
seemed to keep it's data.

> I would write this code myself, but I don't have the knowledge to do so. (yet
another thing to learn ;-) )
> 
    I am rather confused.  From my brief look at it the archive contains
everything that should be needed.  If you break the archive out into the
constituent .o files and try linking with them you get the same errors.  Is
there something strange going on with the mpih files which are assembly rather
than C?  I could try and find out but I don't have the knowledge (yet another
thing ..... etc.   8-))

    We could just change it so that on ppc64 it doesn't statically link with
libgcrypt, but that would leave dependencies in /usr which you might want to
have encrypted.  The question is, which is better.  To have it working with a
difference in what can be easily encrypted or not to have it working at all?  It
 isn't hard to put in a if useq ppc64 and put in a big ewarn in that case.


> Markus

Joslwah.

------- Comment #2 From Tom Gall 2005-11-25 19:59:49 0000 -------
ok .. so here' the problem

The libgcrypt build was miss detecting a ppc32 machine and actually using 32 bit
asm files ... which actually does build but you end up with an interesting
problem later down the road as shown by cryptsetup.

The key here is the functions it's looking for have the wrong name ... IE 32 bit
asm convention! ...  so since the upstream maintainers supply a generic
implementation, wap the build system to use that and voila, things are fixed!


------- Comment #3 From Tom Gall 2005-11-25 20:16:31 0000 -------
stick a fork in it!

------- Comment #4 From Tom Gall 2005-11-25 20:18:42 0000 -------
closing out

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug