bugGNU GRUB - Bugs: bug #36669, Compile error "trampoline...

 
 

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

bug #36669: Compile error "trampoline generated for nested function" with GRUB 2.00~beta6

Submitted by:  Sebastian Pipping <hartwork>
Submitted on:  Sat 16 Jun 2012 04:05:38 PM UTC  
 
Category: CompilationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: None
Planned Release: None

Sat 16 Jun 2012 04:05:38 PM UTC, original submission:

When compiling GRUB 2.00~beta6 I run into this compile error:

==========================================================
# ./configure && make
[..]
make[2]: Entering directory `/home/sping/Desktop/grub-2.00~beta6'
gcc -DHAVE_CONFIG_H -I. -Wall -W -I./include -DGRUB_UTIL=1 -DGRUB_LIBDIR=\"/usr/local/lib/grub\" -DLOCALEDIR=\"/usr/local/share/locale\" -DGRUB_FILE=\"grub-core/kern/device.c\" -I. -I. -I. -I. -I./include -I./include -I./grub-core/gnulib -I./grub-core/gnulib -Wall -W -Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wpointer-sign -Werror -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition -Wno-unsafe-loop-optimizations -MT grub-core/kern/libgrubkern_a-device.o -MD -MP -MF grub-core/kern/.deps-util/libgrubkern_a-device.Tpo -c -o grub-core/kern/libgrubkern_a-device.o `test -f 'grub-core/kern/device.c' || echo './'`grub-core/kern/device.c
cc1: warnings being treated as errors
grub-core/kern/device.c: In function 'grub_device_iterate':
grub-core/kern/device.c:105:7: error: trampoline generated for nested function 'iterate_disk'
grub-core/kern/device.c:149:7: error: trampoline generated for nested function 'iterate_partition'
make[2]: *** [grub-core/kern/libgrubkern_a-device.o] Error 1
[..]
==========================================================

As a workaround, I used ./configure --disable-werror but I suppose you want to fix all warnings if -Werror is upstream default. My version of GCC is 4.5.3.

The issue may be related to issue 26510 [1] but as that is two years old and makred fixed, I assumed it would be something new.

Best,

Sebastian

[1] https://savannah.gnu.org/bugs/?func=detailitem&item_id=26510

Sebastian Pipping <hartwork>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by hartwork (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 05 Jan 2013 02:19:22 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup