LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   error: #error Your version of gcc miscompiles the __weak directive (https://www.linuxquestions.org/questions/linux-kernel-70/error-error-your-version-of-gcc-miscompiles-the-__weak-directive-756114/)

teraghavendragoud 09-18-2009 01:28 AM

error: #error Your version of gcc miscompiles the __weak directive
 
Hi
I am using RHEL 5 with Kernel version of 2.6.18 and gcc version 4.1.1 20070105 . I am getting the error like

error: #error Your version of gcc miscompiles the __weak directive

while I was trying to compile a code 2.6.30 code on same machine.

how can I over come this problem to get full compilation new kernel.

jhwilliams 09-18-2009 07:27 PM

Give gcc 4.3 a try.

knudfl 09-19-2009 08:22 AM

# yum install gcc43
.. which provides version 4.3.2-7.el5.

Example command using gcc-4.3.2 :
'make CC=gcc43'


All times are GMT -5. The time now is 11:06 AM.