Modify

Opened 7 years ago

Last modified 4 years ago

#7907 new defect

Could not disable -Wframe-larger-than flag to gcc

Reported by: himself@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Kamikaze 8.09
Keywords: Cc:

Description

I ran into this problem trying to compile the kernel AODV module from the AODV-UU package. I had configured the OpenWRT build system to make the gcc-4.1.2 toolchain with uClibc 0.9.29, kernel version 2.6.26.5.

However, when trying to compile the kernel module using mips-linux-gcc (4.1.2), the following errors were produced:

make -C /home/arya/openwrt/kamikaze_8.09/build_dir/linux-ar71xx/linux-2.6.26.5 SUBDIRS=/home/arya/openwrt/aodvuu/lnx modules

cc1: error: unrecognized command line option "-Wframe-larger-than=1024"

Running make kernel_menuconfig to disable the option, supposedly by setting it to 0 as suggested by the help text, did not disable it. Instead:

cc1: error: unrecognized command line option "-Wframe-larger-than=0"

I checked the Makefile itself, and found on line 510:

(kamikaze-8.09/build_dir/linux-ar71xx/linux-2.6.26.5/Makefile)

ifneq (CONFIG_FRAME_WARN,0)

KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})

endif

I changed the first line to

ifneq ($(CONFIG_FRAME_WARN),0)

so that the variable would actually be evaluated, and it was fixed.

Do I uh, do I submit a patch? (This is my first bug report, please be gentle!)

Thanks,
Arya Reais-Parsi

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.