All of lore.kernel.org
 help / color / mirror / Atom feed
* gcc error: unrecognized command line option -fno-trampolines
@ 2020-02-22 12:13 pavan
  2020-02-22 18:46 ` [poky] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: pavan @ 2020-02-22 12:13 UTC (permalink / raw)
  To: yocto, poky

[-- Attachment #1: Type: text/plain, Size: 2513 bytes --]

Hi Team,

grub is failing while compiling.
Error Log is as follows:


*ERROR: grub-efi-native-2.04-3 do_compile: oe_runmake failedERROR:
grub-efi-native-2.04-3 do_compile: Execution of
'/build/tmp-glibc/work/x86_64-linux/grub-efi-native/2.04-3/temp/run.do_compile.26150'
failed with exit code 1:*
make: 'grub_script.tab.h' is up to date.
make: Nothing to be done for 'grub_script.tab.c'.
make: 'grub_script.yy.h' is up to date.
make: Nothing to be done for 'grub_script.yy.c'.

*gcc  -DHAVE_CONFIG_H -I. -I../git  -Wall -W -DGRUB_UTIL=1
-D_FILE_OFFSET_BITS=64 -I./include
-DGRUB_FILE=\"grub-core/commands/blocklist.c\" -I. -I../git -I. -I../git
-I../git/include -I./include -I../git/grub-core/lib/libgcrypt-grub/src/
-Wall -W -DGRUB_UTIL=1 -D_FILE_OFFSET_BITS=64 -I./include
-I../git/grub-core/lib/minilzo -I../git/grub-core/lib/xzembed
-I../git/grub-core/lib/zstd -DMINILZO_HAVE_CONFIG_H  -fno-builtin-gettext
-Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment
-Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero
-Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit
-Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces
-Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type
-Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs
-Wunknown-pragmas -Wunused -Wunused-function -Wunused-label
-Wunused-parameter -Wunused-value  -Wunused-variable -Wwrite-strings
-Wnested-externs -Wstrict-prototypes -Wcast-align  -Wextra -Wattributes
-Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch
-Wmissing-field-initializers -Wnonnull -Woverflow -Wvla
-Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros
-Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs
-Wmissing-prototypes -Wmissing-declarations -Wformat=2 -Wextra
-Werror=trampolines -fno-trampolines -fno-builtin -Wno-undef  -c -o
grub-core/commands/libgrubmods_a-blocklist.o `test -f
'grub-core/commands/blocklist.c' || echo
'../git/'`grub-core/commands/blocklist.c*


*gcc: error: unrecognized command line option '-fno-trampolines'; did you
mean '-Wno-trampolines'?Makefile:9084: recipe for target
'grub-core/commands/libgrubmods_a-blocklist.o' failedmake: ***
[grub-core/commands/libgrubmods_a-blocklist.o] Error 1*
My gcc version is 5.
I tried with installing updated gcc versions -7,-8, -9, but still facing
this issue.
Please let me know, how to resolve this.
Thanks in Advance

Regards,
PK

[-- Attachment #2: Type: text/html, Size: 2894 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [poky] gcc error: unrecognized command line option -fno-trampolines
  2020-02-22 12:13 gcc error: unrecognized command line option -fno-trampolines pavan
@ 2020-02-22 18:46 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2020-02-22 18:46 UTC (permalink / raw)
  To: pavan; +Cc: Yocto Project, Poky Project

On Sat, Feb 22, 2020 at 4:13 AM pavan <pawan4749@gmail.com> wrote:
>
> Hi Team,
>
> grub is failing while compiling.
> Error Log is as follows:
> ERROR: grub-efi-native-2.04-3 do_compile: oe_runmake failed
> ERROR: grub-efi-native-2.04-3 do_compile: Execution of '
> /build/tmp-glibc/work/x86_64-linux/grub-efi-native/2.04-3/temp/run.do_compile.26150' failed with exit code 1:
> make: 'grub_script.tab.h' is up to date.
> make: Nothing to be done for 'grub_script.tab.c'.
> make: 'grub_script.yy.h' is up to date.
> make: Nothing to be done for 'grub_script.yy.c'.
> gcc  -DHAVE_CONFIG_H -I. -I../git  -Wall -W -DGRUB_UTIL=1 -D_FILE_OFFSET_BITS=64 -I./include -DGRUB_FILE=\"grub-core/commands/blocklist.c\" -I. -I../git -I. -I../git -I../git/include -I./include -I../git/grub-core/lib/libgcrypt-grub/src/ -Wall -W -DGRUB_UTIL=1 -D_FILE_OFFSET_BITS=64 -I./include -I../git/grub-core/lib/minilzo -I../git/grub-core/lib/xzembed -I../git/grub-core/lib/zstd -DMINILZO_HAVE_CONFIG_H  -fno-builtin-gettext -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value  -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wcast-align  -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -Wextra -Werror=trampolines -fno-trampolines -fno-builtin -Wno-undef  -c -o grub-core/commands/libgrubmods_a-blocklist.o `test -f 'grub-core/commands/blocklist.c' || echo '../git/'`grub-core/commands/blocklist.c
>
> gcc: error: unrecognized command line option '-fno-trampolines'; did you mean '-Wno-trampolines'?
> Makefile:9084: recipe for target 'grub-core/commands/libgrubmods_a-blocklist.o' failed
> make: *** [grub-core/commands/libgrubmods_a-blocklist.o] Error 1
> My gcc version is 5.
> I tried with installing updated gcc versions -7,-8, -9, but still facing this issue.
> Please let me know, how to resolve this.

perhaps you are using an old distro to compile new yocto. This option
may not exist in gcc5, so perhaps you should write a patch to grub-efi
to remove using these options in configure.ac and conf/Makefile.common
and perhaps only apply this patch when building native or nativesdk
variant.


> Thanks in Advance
>
> Regards,
> PK
>
>
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-22 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-22 12:13 gcc error: unrecognized command line option -fno-trampolines pavan
2020-02-22 18:46 ` [poky] " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.