LINUX.ORG.RU

kernel-2.4.28-pre3 + gcc-3.4.2


0

0

обгрейдил gcc с 3.3.3 до 3.4.2, начал ставить vmware и он гордо заявил что нехочет собираться gcc 3.4.2 если ядро собрано другой версией gcc. Ядро(как и КДЕ) собираться отказалось,как я понял, из-за того что другие проги скомпилены старым gcc. Пересобрал make, fam(для КДЕ) - не помогает.

вот ошибка
gcc -D__KERNEL__ -I/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon   -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched  -fno-omit-frame-pointer -c -o sched.o sched.c
sched.c:213: error: conflicting types for 'reschedule_idle'
sched.c:210: error: previous declaration of 'reschedule_idle' was here
sched.c:213: error: conflicting types for 'reschedule_idle'
sched.c:210: error: previous declaration of 'reschedule_idle' was here
sched.c:371: error: conflicting types for 'wake_up_process'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:603: error: previous declaration of 'wake_up_process' was here
sched.c:371: error: conflicting types for 'wake_up_process'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:603: error: previous declaration of 'wake_up_process' was here
sched.c:409: error: conflicting types for 'schedule_timeout'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:148: error: previous declaration of 'schedule_timeout' was here
sched.c:409: error: conflicting types for 'schedule_timeout'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:148: error: previous declaration of 'schedule_timeout' was here
sched.c:739: error: conflicting types for '__wake_up'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:595: error: previous declaration of '__wake_up' was here
sched.c:739: error: conflicting types for '__wake_up'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:595: error: previous declaration of '__wake_up' was here
sched.c:749: error: conflicting types for '__wake_up_sync'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:596: error: previous declaration of '__wake_up_sync' was here
sched.c:749: error: conflicting types for '__wake_up_sync'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:596: error: previous declaration of '__wake_up_sync' was here
sched.c:759: error: conflicting types for 'complete'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/completion.h:31: error: previous declaration of 'complete' was here
sched.c:759: error: conflicting types for 'complete'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/completion.h:31: error: previous declaration of 'complete' was here
sched.c:769: error: conflicting types for 'wait_for_completion'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
sched.c:769: error: conflicting types for 'wait_for_completion'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
anonymous

sched.c:804: error: conflicting types for 'interruptible_sleep_on'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:600: error: previous declaration of 'interruptible_sleep_on' was here
sched.c:804: error: conflicting types for 'interruptible_sleep_on'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:600: error: previous declaration of 'interruptible_sleep_on' was here
sched.c:815: error: conflicting types for 'interruptible_sleep_on_timeout'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:601: error: previous declaration of 'interruptible_sleep_on_timeout' was here
sched.c:815: error: conflicting types for 'interruptible_sleep_on_timeout'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:601: error: previous declaration of 'interruptible_sleep_on_timeout' was here
sched.c:828: error: conflicting types for 'sleep_on'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:597: error: previous declaration of 'sleep_on' was here
sched.c:828: error: conflicting types for 'sleep_on'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:597: error: previous declaration of 'sleep_on' was here
sched.c:839: error: conflicting types for 'sleep_on_timeout'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:598: error: previous declaration of 'sleep_on_timeout' was here
sched.c:839: error: conflicting types for 'sleep_on_timeout'
/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/include/linux/sched.h:598: error: previous declaration of 'sleep_on_timeout' was here
sched.c:210: warning: 'reschedule_idle' declared `static' but never defined
make[2]: *** [sched.o] Ошибка 1
make[2]: Leaving directory `/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/kernel'
make[1]: *** [first_rule] Ошибка 2
make[1]: Leaving directory `/w_work/.linux-2.4.28-pre3/linux-2.4.28-pre3/kernel'
make: *** [_dir_kernel] Ошибка 2

anonymous
()
Ответ на: комментарий от anonymous

попробовал собрать 2.6.4, никаких проблем..

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.