derivedConstants: Add support for AIX
ClosedPublic

Authored by hvr on Nov 18 2015, 5:17 PM.

Details

Summary

On IBM AIX nm doesn't support reporting symbol sizes, so we need to
resort to objdump instead, which has a peculiar output format on AIX.

depends on D1499

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
hvr updated this revision to Diff 5197.Nov 18 2015, 5:17 PM
hvr retitled this revision from to derivedConstants: Add support for AIX.
hvr updated this object.
hvr edited the test plan for this revision. (Show Details)
hvr added a reviewer: bgamari.
hvr updated this revision to Diff 5202.Nov 19 2015, 1:30 AM
hvr edited edge metadata.
  • update against revised D1499
  • minor refactor of parseObjDumpEntry

@hvr: can't apply this with: arc patch D1500. It fails with:

Created and checked out branch arcpatch-D1500.
Exception
You may not set new credentials after authenticating conduit.
(Run with `--trace` for a full exception trace.)
49

well just in case you are curious if this runs on Solaris/OpenBSD, can't help you till this is solved. Any idea?

hvr added a comment.Nov 19 2015, 3:51 AM

@hvr: can't apply this with: arc patch D1500. It fails with:
...
well just in case you are curious if this runs on Solaris/OpenBSD, can't help you till this is solved. Any idea?

not sure... maybe try arc upgrade?

If that doesn't help either, I've pushed D1499+D1500 to a branch at http://git.haskell.org/ghc.git/shortlog/refs/heads/wip/D1500

@hvr: arc upgrade solved the issue. I've tested D on OpenBSD/AMD64 and Solaris/AMD64 and builds fine including bindisttest hello world.

bgamari accepted this revision.Nov 19 2015, 4:54 AM
bgamari edited edge metadata.

It's a bit tricky to read the parser but oh well.

This revision is now accepted and ready to land.Nov 19 2015, 4:54 AM
This revision was automatically updated to reflect the committed changes.