Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:

Ticket #171 (closed defect: wontfix)

Opened 7 years ago

Last modified 6 years ago

alex generates warnings on powerpc linux

Reported by: erikd Owned by: SimonMarlow
Priority: major Milestone:
Component: alex Keywords:


Using alex in Ben Lippmeier's DDC compiler and would like to develop with -Werror. This is fine on i386 and x86_64, but on powerpc, alex generates code that generates warnings when run through ghc.

Ghc version is 7.0.3 and Alex is 2.3.5. The warnings attached.


error.txt (13.6 kB) - added by erikd 7 years ago.
Warning message from ghc
fix-bang-patterns-and-big-endian-issue_.dpatch (4.3 kB) - added by erikd 7 years ago.
Updated version.

Change History

Changed 7 years ago by erikd

Warning message from ghc

Changed 7 years ago by erikd

I have a patch that's working on powerpc with ghc 7.0.3 (from Debian) but doesn't compile under ghc-6.12 on x86_64 (which I don't to upgrade yet).

Changed 7 years ago by erikd

I've now tested this patch on darwin x86 as well. Works like a charm.

Changed 7 years ago by erikd

Updated version.

Changed 7 years ago by erikd

The first version of this patch had a bootstrapping problem (alex could not be used to build itself). This new version fixes that. Tested on linux-x86_64.

Changed 6 years ago by simonmar

  • status changed from new to closed
  • resolution set to wontfix

We won't be applying this patch. GHC 7.2 will not generate the warning. In the meantime you have to disable the warning for Alex-generated code. Unfortunately it's not possible to make Alex do this itself, because it can't tell whether GHC supports the correct option (and conditional compilation for OPTIONS_GHC pragmas is also a recently-added feature).

If you look through the history of the Alex repository ( you'll see us go back and forth on this issue over the last few releases.

Note: See TracTickets for help on using tickets.