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

 
 

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

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

Submitter:  Sebastian Pipping <hartwork>
Submitted:  Sat 16 Jun 2012 04:05:38 PM UTC
   
 
Category:  Compilation Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  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>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by hartwork (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-05 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code