Re: Unable to compile 2.6.30-rc7 on RHEL 4 - GCC 3.4.6

From: Stefan Richter
Date: Tue May 26 2009 - 12:59:38 EST


Simon König wrote:
> On 05/25/09 18:56, debian developer wrote:
>> Hi all,
>>
>> I am getting this error when trying to compile the latest rc:
>>
>> /in/inndesk171/linux-2.6.28/arch/x86/Makefile:82: stack protector
>> enabled but no compiler support
>
> Hello!
>
> As the message states, your compiler does not support this kernel feature.
> You may want to disable CC_STACKPROTECTOR or use a gcc >= 4.2.

Isn't this only a notification (warning if you will), not an error?

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/x86/Kconfig;h=a6efe0a2e9ae613a81bedec5e4772698d16541cc;hb=HEAD#l1410
"This feature requires gcc version 4.2 or above, or a distribution gcc
with the feature backported. Older versions are automatically detected
and for those versions, this configuration option is ignored. (and a
warning is printed during bootup)"

Actual error messages start at:

>> CC init/main.o
>> /in/inndesk171/linux-2.6.28/arch/x86/include/asm/paravirt.h: In
>> function `start_kernel':
>> /in/inndesk171/linux-2.6.28/arch/x86/include/asm/paravirt.h:1590:
>> warning: asm operand 1 probably doesn't match constraints
[...]
>> /in/inndesk171/linux-2.6.28/arch/x86/include/asm/paravirt.h:1590:
>> error: impossible constraint in `asm'
[...]

Hard to tell from here where the cause is. Cc'd Jeremy as somebody who
knows paravirt.h. Thread start: http://lkml.org/lkml/2009/5/25/303
--
Stefan Richter
-=====-==--= -=-= ==-=-
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/