Ticket #2770 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

Missing check that C compiler is C99 compatible

Reported by: jputcu Owned by:
Priority: normal Milestone: 6.12.1
Component: Build System Version: 6.10.1
Keywords: Cc: joris.putcuyps@…
Operating System: Linux Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The autoconfigure script checks for gcc >= 2. When using such a compiler on Red Hat 7.3, gcc-2.96, I get a number of C89 errors.

Stated on  http://hackage.haskell.org/trac/ghc/wiki/Commentary/Rts/Conventions, C99 standard is used so my compiler is too old?

Should the gcc requirement be updated or just check for C99 compliance.

Change History

Changed 5 years ago by jputcu

  • os changed from Unknown/Multiple to Linux
  • architecture changed from Unknown/Multiple to x86

Changed 4 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.10.2

Thanks for the report. We should work out exactly what we do require, and correct the configure script.

Changed 4 years ago by igloo

  • milestone changed from 6.10.2 to 6.12.1

Changed 4 years ago by simonmar

I don't have an older version of gcc to test with, so perhaps the safest thing to do is to just require gcc 3.0+ in configure.

Changed 4 years ago by simonmar

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

I've updated the configure script to require gcc 3. Lacking a machine with gcc 2.95 installed that's the best we can do for now.

Note: See TracTickets for help on using tickets.