Linux 2.6.6 link error when removing -O2 compilation flags
Hello dear all,
I was trying to compile my 2.6.6 linux kernel on an IA64 machine
deactivating optimization options (in fact removing "-02" and "-Os" flags in Makefile and arch/ia64/Makefile).
I've done this test with a gcc-2.96, gcc-3.3.3 and gcc-3.4-20040514 (and removing in this last case "-frename-registers" option).
Has someone else already encountered such a problem ?
Quoted 7 lines
I was trying to compile my 2.6.6 linux kernel on an IA64 machine
deactivating optimization options (in fact removing "-02" and "-Os" flags inMakefileandarch/ia64/Makefile).
I've done this test with a gcc-2.96, gcc-3.3.3 and gcc-3.4-20040514 (and removing in this last case "-frename-registers" option). Has someone else already encountered such a problem ?
yes, you cannot do that. The kernel relies on some optimizations being done by the compiler; for example it assumes certain amount of inlining that happens with optimization enabled.
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/