Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile request
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
spyro1st
n00b
n00b


Joined: 28 Mar 2003
Posts: 11

PostPosted: Tue Jan 04, 2005 10:08 pm    Post subject: Compile request Reply with quote

Hi i need a lib compiled but i can't get the compiler instructions right because i know too less about this stuff. here is the link to the source code. a header file for x86 GCC is included it's called mirdef.lnx. a bash script called linux takes this header file an trys to compile, but i allways get errors. maybe somebody here knows enough about the PPC architecture to compile this.

ftp://ftp.computing.dcu.ie/pub/crypto/miracl.zip

Thanks for help in advance.

Greets Kevin Moschallski
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Fri Jan 07, 2005 4:25 pm    Post subject: Reply with quote

Heya,

what's that library for?

I had a look at the sources: it looks to me that there is no support for a PowerPC host. There are assembly sources included for Sparc, ARM and x86 architectures. If you need that library compiled for PowerPC, I think you'd need to sit down and rewrite the relevant source code files for PowerPC yourself :-)

Cheers,
Jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
spyro1st
n00b
n00b


Joined: 28 Mar 2003
Posts: 11

PostPosted: Sat Jan 08, 2005 6:29 pm    Post subject: Reply with quote

i need this lib to compile a blowfish plugin for xchat. i saw the ARM and other headers but i thought that these are only examples and because most of the source is in assembler it should possible to compile on powerpc. i will try to contact the author of the lib and ask him if it's possible to compile on powerpc. thanks for the look.

greets Kevin Moschallski
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Sun Jan 09, 2005 8:34 am    Post subject: Reply with quote

you can't just "compile" assembly source for a different machine. assembly are basically the instructions for a specific processor, and every processor has different instructions wich have their own encoding. if you want to port assembly source to a new machine, you will end up implementing everything anew!

alternatively, sit down and rewrite the assembly source in, say, C or C++ and then you'll be able to compile it on many different machines.

cheers,
jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum