Re: Broken compile?

James Cloos <[email protected]> Sun, 21 Aug 2011 03:03:41 -0400
Newsgroups gmane.comp.mathematics.axiom.user
Message-ID <[email protected]>
[Sometimes just talking/writing publicly is enough to discover the solution.]

It turns out that the problem was gentoo's portage.

The axiom ebuild in gentoo, on which I based mine, is for 2008-May.
Since then portage has added code to eliminate text relocations,
executable stacks, writable+executable segments, and .hash sections
from ELF files.  I had to modify and add these annotations:

-RESTRICT="strip"
+RESTRICT="strip binchecks installsources"

+QA_TEXTRELS="opt/${P}/{algebra,autoload}/*.o opt/${P}/bin/AXIOMsys"
+QA_EXECSTACK="opt/${P}/{algebra,autoload}/*.o opt/${P}/bin/AXIOMsys"
+QA_WX_LOAD="opt/${P}/{algebra,autoload}/*.o opt/${P}/bin/AXIOMsys"
+QA_DT_HASH="opt/${P}/{algebra,autoload}/*.o opt/${P}/bin/AXIOMsys"
+QA_PRESTRIPPED="opt/${P}/{algebra,autoload}/*.o opt/${P}/bin/AXIOMsys"

to get a working installation.

(I haven't confirmed whether all of those are required -- it only takes
about one hour to compile and four to run the tests -- but they are
sufficient.)

I suspect that the ebuilds for the forks also will require similar annotations.

Appoloies for the false alarm.

After a bit more polishing I will publish my ebuild at:

      http://cgit.freedesktop.org/~cloos/overlay/

-JimC
-- 
James Cloos <[email protected]>         OpenPGP: 1024D/ED7DAEA6