bugGNU GRUB - Bugs: bug #54811, After running 'configure' with a...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #54811: After running 'configure' with a existing cache, bulid fails with '/symbol.h:36:20: error: #if with no expression'

Submitter:  Mark Wutzke <mwutzke>
Submitted:  Tue 09 Oct 2018 10:12:48 PM UTC
   
 
Category:  Compilation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  2.02
Release:  Reproducibility:  Intermittent
Planned Release:  None

Tue 09 Oct 2018 10:12:48 PM UTC, original submission:  

When 'configure' (2.0.2 and mainline) is re-executed with an existing autoconf config.cache, the generated config.h contains the following:


  config.h:#define HAVE_ASM_USCORE


which then generates a compile time error like the following:


In file included from ../include/../include/grub/cache.h:23:0,
                 from symlist.h:2:
../include/grub/symbol.h:36:20: error: #if with no expression
 #if HAVE_ASM_USCORE
                    ^
Makefile:41364: recipe for target 'symlist.c' failed


The attached patch resolves this by moving the setup of HAVE_ASM_USCORE in grub_ASM_USCORE, to be outside the AC_CACHE_VAL macro, which is not supposed to have side effects.

Mark Wutzke <mwutzke>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #45172:  0001-grub-Allow-configure-be-re-run-with-cache.patch added by mwutzke (1KiB - application/octet-stream - Proposed patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mwutzke (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-09 mwutzke Attached File- Added 0001-grub-Allow-configure-be-re-run-with-cache.patch, #45172

    Back to the top

    Powered by Savane 3.13-4e86.
    Corresponding source code