make error if CC_OPTIMIZE_FOR_SIZE is activated

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

make error if CC_OPTIMIZE_FOR_SIZE is activated

1,310件の閲覧回数
timolange
Contributor II

Hi,

I am using a cross compiler, to make a kernel for the i.mx6dl. If I set CONFIG_CC_OPTIMIZE_FOR_SIZE=y the compiler stops with an error. If I unset this option, the kernel will be compiled correcly.

  CC  drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.o

drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c: In function 'gckKERNEL_Dispatch':

drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c:1160:9: error: 'node' may be used uninitialized in this function [-Werror=maybe-uninitialized]

cc1: all warnings being treated as errors

make[3]: *** [drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.o] Error 1

make[2]: *** [drivers/mxc/gpu-viv] Error 2

make[1]: *** [drivers/mxc] Error 2

make: *** [drivers] Error 2

Kernel: 3.0.35 from LTIB L3.0.35_4.1.0_130816

Compiler: gcc version 4.7.2 (Sourcery CodeBench Lite 2012.09-63)

Any Ideas how I can compile with this option?

Regards,

Timo

ラベル(2)
0 件の賞賛
返信
3 返答(返信)

1,092件の閲覧回数
YixingKong
Senior Contributor IV

Timo

This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.

Thanks,

Yixing

0 件の賞賛
返信

1,092件の閲覧回数
YixingKong
Senior Contributor IV

Timo

We have not got your response yet and will close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.

Thanks,

Yixing

0 件の賞賛
返信

1,092件の閲覧回数
YixingKong
Senior Contributor IV

Timo

We are sorry for getting back to you so late. Are you still stuck with the issue? If you have somehow to resolved the issue, can we close the discussion? If you still need help, please feel free to reply with an update to this discussion.

Thanks,
Yixing

0 件の賞賛
返信