Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69060 - systemc-2.0.1-r1 (for ppc)
Summary: systemc-2.0.1-r1 (for ppc)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High enhancement (vote)
Assignee: Danny van Dyk (RETIRED)
Depends on:
Reported: 2004-10-26 12:50 UTC by Markus Lindorfer
Modified: 2006-06-12 11:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

patch against app-sci/systemc (systemc-2.0.1-r1.patch.bz2,36.74 KB, patch)
2004-10-26 12:53 UTC, Markus Lindorfer
Details | Diff
fix for gcc < 3.4, amd64 patches (but no ebuild adaption) (sc_amd64.patch,925 bytes, patch)
2004-10-27 01:44 UTC, Markus Lindorfer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Lindorfer 2004-10-26 12:50:31 UTC

find attached a patch against app-sci/systemc.
have hacked the systemc kernel to make it run on ppc (already summited to OSCI).
dunno if it breaks x86 (shouldn't but I havn't such a thing), so take care :-)

Comment 1 Markus Lindorfer 2004-10-26 12:53:45 UTC
Created attachment 42650 [details, diff]
patch against app-sci/systemc
Comment 2 Markus Lindorfer 2004-10-27 01:44:02 UTC
Created attachment 42672 [details, diff]
fix for gcc < 3.4, amd64 patches (but no ebuild adaption)

gcc < 3.4 has problems with ' im #error
additionally a compile fix for amd64 (but sorry, no ebuild adaption, since this
is unfortunatly not a gentoo system :-(
someone with an amd64 who can adapt the ebuild and test it there?
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2004-10-31 20:23:41 UTC
I think, kugelfang should be the right for this bug, as he is in the sci-herd, owns a ppc and an amd64.  So, every request is fulfilled :)
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2004-12-15 15:14:04 UTC
I'll test this out asap ;-)
Comment 5 Danny van Dyk (RETIRED) gentoo-dev 2004-12-25 12:23:44 UTC
Ok, first tests done...

1.) on amd64 with bad results :-(. None of the examples work, however they do compile. There have been plenty of warnings and i suspect a bad variable type to be the guilty (All those warnings are about "right shift count >= width of type").
I will continue working on this.

2.) on pcc it works flawlessly.

Comment 6 Markus Lindorfer 2004-12-26 02:17:45 UTC
amd64: guess the problem is in datatypes/fx/scfx_ieee.h where it probably gets the endianess wrong (sorry can't fix it w/o an amd64 box)
Comment 7 Lars Weiler (RETIRED) gentoo-dev 2005-04-02 06:06:12 UTC
@Kugelfang: If it works flawlessly on ppc, do we still need to be in Cc to this bug?
Comment 8 Joe Jezak (RETIRED) gentoo-dev 2005-07-11 21:36:13 UTC
PPC still needs to be cc'd because the patch hasn't been applied to CVS yet.  If
nobody objects I'll do this and mark it ~ppc.
Comment 9 Joe Jezak (RETIRED) gentoo-dev 2005-09-25 21:32:53 UTC
Is there a way to have a fetch restricted source (systemc) and a non-fetch
restricted source (the patch)?
Comment 10 Chris White (RETIRED) gentoo-dev 2006-04-04 22:44:44 UTC
Hmm.. old bug. As for as fetching patches and all, the patches seem small enough to kill downloads entirely and just shove it in FILESDIR.
Comment 11 Joe Jezak (RETIRED) gentoo-dev 2006-06-12 10:00:51 UTC
36kb is too large to put in the tree.  I'd say we close as CANTFIX, the fetch restrict issue isn't going to be fixed any time soon.
Comment 12 Markus Lindorfer 2006-06-12 11:09:08 UTC
fine by me. thx a lot.
Comment 13 Joe Jezak (RETIRED) gentoo-dev 2006-06-12 11:24:15 UTC
Just a question, did you try to get these patches accepted upstream?
Comment 14 Markus Lindorfer 2006-06-12 11:49:37 UTC
(In reply to comment #13)
> Just a question, did you try to get these patches accepted upstream?

yes, submitted them to OSCI, no response thou.
anyway, current SystemC is at 2.1 IIRC, so this patch is most probably outdated.