Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252323 - dev-lang/gpc request version bump to gpc-20070904 buit with gcc-4.1.2
Summary: dev-lang/gpc request version bump to gpc-20070904 buit with gcc-4.1.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-23 23:08 UTC by Andrew
Modified: 2008-12-27 13:21 UTC (History)
1 user (show)

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


Attachments
proposed ebuild for the version bump (gpc-20070904.ebuild,4.08 KB, text/plain)
2008-12-23 23:23 UTC, Andrew
Details
time tests for various gpc built with various gcc (testresults.txt,431 bytes, text/plain)
2008-12-26 18:32 UTC, Andrew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew 2008-12-23 23:08:19 UTC
The version currently in portage is gpc-20051104 built with gcc-3.4.5
I have an ebuild to propose.

Reproducible: Always
Comment 1 Andrew 2008-12-23 23:23:25 UTC
Created attachment 176258 [details]
proposed ebuild for the version bump

This ebuild compiles and runs successfully on my amd64 machine which uses profile
2008.0 and gcc-4.3.2.
The following are the only changes from the present gpc-20051104 in portage:

(1) Name change from gpc-20051104.ebuild to gpc-20070904.ebuild.
(2) On line 12 change     GCCVER="3.4.5"  to  GCCVER="4.1.2"
(3) Addition of the line 9:
     replace-flags "-march=native" ""
(This ensures compilation on computers which have "-march=native" 
in their /etc/make.conf.  The problem is that this ebuild actually
compiles it's own gcc and it is gcc-4.1.2. This version of gcc does not support
"-march=native" and the compilation fails if that flag is in the build environment.  Anyone whose system is using >=gcc-4.2 wil likely have "-march=native" in their /etc/make.conf.
Comment 2 Wormo (RETIRED) gentoo-dev 2008-12-25 06:21:16 UTC
Thanks for submitting your version bump, and a nice summary of what was changed!
Assigning to maintainers.
Comment 3 Andrew 2008-12-26 18:32:24 UTC
Created attachment 176460 [details]
time tests for various gpc built with various gcc

Attached are some time tests run on my amd64 machine (profile 2008.0)
using gpc-20051104 and gpcp-20070904 built with various versions of gcc, namely
gcc-3.4.5, gcc-3.4.6 and gcc-4.1.2. (Note that the gpc build does not use the version of gcc installed on the host machine and chosen using gcc-config.)
The test were of two kinds:
(1) A simple loop involving only real arithmetic. in this case the performance differences between versions is insignificant.

(2) A test involving a research program into the structure of certain finite
6 dimensional algebraic structures called quternionic algebras. This test uses no real arithmetic but does create and search through vast lists and trees of finite pascal structures.
NB: The best result is with gpc version 20070904, based on gcc-3.4.6,
NOT gpc version 20070904, based on gcc-4.1.2 which is about 50% slower. 
I am  now recomending that the version bump be to gpc version 20070904, based on gcc-3.4.6 insted of being based on the newer gcc-4.1.2
for these two reasons:

(a) Better time test performances in my "production environment."
(b) gpc version 20070904 warns that building with gcc-4.1.2 is experimental
and is not recomended for "production environments."

To  alter the proposed version bump gpc-20070904.ebuild so that it will build with gcc-3.4.6 simply change line 12 so that GCCVER="3.4.6"
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2008-12-27 13:21:05 UTC
Well, yea, gcc-4.1 was known for having a few performance regressions. 4.2, on the other hand, was supposed to be better (even than 3.4 I believe). Unfortunately there is no support for 4.2 in gpc, - it, in general, heavily lags behind.
Comment 5 George Shapovalov (RETIRED) gentoo-dev 2008-12-27 13:21:57 UTC
Thanks Andrew for reporting the test results. I have just added a new 3.4 based version to the tree.