Opened 4 years ago

Closed 4 years ago

#4252 closed bug (fixed)

"perl boot" fails with "error: FP_CHECK_ALIGNMENT: requires literal arguments"

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Build System Version: 6.12.3
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Building GHC failed Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When executing 'perl boot' as indicated in the build guide it fails with the following output:

Creating libraries/array/ghc.mk
...

Creating libraries/xhtml/GNUmakefile
Booting .
configure.ac:715: error: FP_CHECK_ALIGNMENT: requires literal arguments
aclocal.m4:143: FP_CHECK_ALIGNMENT is expanded from...
configure.ac:715: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
configure.ac:715: error: FP_CHECK_ALIGNMENT: requires literal arguments
aclocal.m4:143: FP_CHECK_ALIGNMENT is expanded from...
configure.ac:715: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
autoreconf: /usr/bin/autoconf failed with exit status: 1
Running autoreconf failed with exitcode 256 on dir . at boot line 50.

Searching the internet I could only find build failures by merehap:
http://markmail.org/message/vqyub65wxjykbup4
and a similar error in MacPorts?
http://trac.macports.org/ticket/25520

Line 715 of configure.ac reads:
FP_CHECK_ALIGNMENT(void *)

The problem seems to be with autoconf. AS_LITERAL_IF macro (used by FP_CHECK_ALIGNMENT) seems to have changed it's behaviour in version 2.66 to be more conservative with regard to shell indirection.

I don't have any experience with autoconf, but it seems that the problem could be that the asterisk is interpreted as a shell indirection.

I have tried with versions 2.66 and 2.67 of autoconf.

Change History (1)

comment:1 Changed 4 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the report. Fixed by:

Mon Aug 16 15:24:42 BST 2010  Ross Paterson <ross@soi.city.ac.uk>
  * fix FP_CHECK_ALIGNMENT for autoconf 2.66 (fixes #4252)
  Ignore-this: cd784b8888d32b3b2cc2cc0969ec40f
  
  Recent versions of AS_LITERAL_IF don't like *'s.  Fix from
  
  http://blog.gmane.org/gmane.comp.sysutils.autoconf.general/month=20100701
Note: See TracTickets for help on using tickets.