Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sci-electronics/systemc-2.2.0
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
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat Mar 15, 2008 1:15 pm    Post subject: sci-electronics/systemc-2.2.0 Reply with quote

In file included from ../../../src/sysc/datatypes/fx/sc_fxdefs.h:51,
from ../../../src/sysc/datatypes/fx/scfx_ieee.h:49,
from ../../../src/sysc/kernel/sc_time.h:49,
from ../../../src/sysc/kernel/sc_simcontext.h:102,
from sc_cor_qt.cpp:51:
../../../src/sysc/datatypes/int/sc_nbutils.h:51:20: error: ieeefp.h: No such file or directory



ok, this is a masked ebuild for ppc, but any idea about the missing file ?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 19, 2008 10:55 pm    Post subject: Reply with quote

ieeefp.h doesn't seem to exist on my x86 machines either. Perhaps it's a mistake in the configure script?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Mar 20, 2008 10:35 am    Post subject: Reply with quote

JoseJX wrote:
ieeefp.h doesn't seem to exist on my x86 machines either. Perhaps it's a mistake in the configure script?



#if !defined(__ppc__) && !defined(_MSC_VER) && !defined(__x86_64__) && !defined(i386) && !defined(__hpux) && !defined( __BORLANDC__ )
#include <ieeefp.h>
#else
#include <cmath>
#endif


how to have ieeefp correctly installed into a linux box ?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Mar 20, 2008 4:08 pm    Post subject: Reply with quote

Quote:

#if !defined(__ppc__) && !defined(_MSC_VER) && !defined(__x86_64__) && !defined(i386) && !defined(__hpux) && !defined( __BORLANDC__ )
#include <ieeefp.h>
#else
#include <cmath>
#endif


You're reading that wrong. __ppc__ should probably be defined, so you should be using cmath, which is part of the standard library.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Mar 20, 2008 6:14 pm    Post subject: Reply with quote

i forced cmath, but it fails the same ...




googling i found this ....


Quote:

http://lists.debian.org/debian-user/2001/02/msg00702.html
On Mon, Feb 05, 2001 at 05:15:45PM +1100, Brendan J Simon wrote:
> Pollywog wrote:
>
> >>>> libc5-altdev: /usr/i486-linuxlibc1/include/i386/ieeefp.h
> >>>
> >> OK I found this by doing the search, but I have a powerpc based
> >> machine. It doesn't seem to be available for powerpc !!!
> >> Anyone know if I can install this from a non-debian source ???
> >
> > libc5-altdev: /usr/i486-linuxlibc1/include/m68k/ieeefp.h
> >
> > Can't PowerPC use that?
>
> It's not in the package lists. "apt-cache pkgnames | grep libc5" yields :
> libc5-dev
> libc5
> * netscape & communicator packages deleted *
>
> Why is ieeefp.h 486 specific ???

Because it is? It describes hardware options specific to the x86
series of processors, if I remember correctly. For setting the
floating point mode.

Dan




so is it impossible to recompile this systemc ? should i manually remove any reference to floating point ? any other idea ?

@joseJx, are you able to compile this to your x86 machine ?
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Fri Mar 21, 2008 7:24 am    Post subject: Reply with quote

show us the error, please.

If ieeefp.h and cmath are compatible then it should work to difine __ppc__ in that preprocessor directive.

(If I would have been the programmer I would have use a directive that checks for the exact machines that can use ieeefp.h....)

EDIT: you forced cmath and it's failing the same way? it cannot find ieeefp.h?!
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Fri Mar 21, 2008 6:22 pm    Post subject: Reply with quote

I've forced cmath, and fixed around. It emerges fine.

download this http://www.webalice.it/speeder/gentoo-ppc/systemc-2.2.0.hacked.tgz
mv systemc-2.2.0.hacked.tgz /usr/portage/distfile/systemc-2.2.0.tgz
cd /usr/portage/sci-electronics/systemc
nano systemc-2.2.0.ebuild .... check KEYWORD should have "ppc" (not "~ppc")
ebuild systemc-2.2.0.ebuild digest


now you can emerge and have fun with it : P
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