Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65177 - (kernel) hardened-sources-2.4.27-r3 build sched problems
Summary: (kernel) hardened-sources-2.4.27-r3 build sched problems
Status: RESOLVED DUPLICATE of bug 64648
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hardened Gentoo
URL:
Whiteboard: scox can you look at this please?
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 02:12 UTC by Gilberto Ficara
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gilberto Ficara 2004-09-24 02:12:25 UTC
Trying to compile the 2.4.27-hardened-r3 kernel fails with GCC 3.4.2-rc2

Reproducible: Always
Steps to Reproduce:
1. cd /usr/src/linux
2. make dep bzImage modules
3.

Actual Results:  
[...]
make[2]: Entering directory `/usr/src/linux-2.4.27-hardened-r3/arch/i386/mm'
/usr/src/linux-2.4.27-hardened-r3/scripts/mkdep -D__KERNEL__
-I/usr/src/linux-2.4.27-hardened-r3/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 --
extable.c fault.c init.c ioremap.c pageattr.c > .depend
make[2]: Leaving directory `/usr/src/linux-2.4.27-hardened-r3/arch/i386/mm'
make -C arch/i386/lib fastdep
make[2]: Entering directory `/usr/src/linux-2.4.27-hardened-r3/arch/i386/lib'
/usr/src/linux-2.4.27-hardened-r3/scripts/mkdep -D__KERNEL__
-I/usr/src/linux-2.4.27-hardened-r3/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 --
checksum.S dec_and_lock.c delay.c getuser.S iodebug.c memcpy.c mmx.c
old-checksum.c strstr.c usercopy.c > .depend
make[2]: Leaving directory `/usr/src/linux-2.4.27-hardened-r3/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.27-hardened-r3'
scripts/mkdep -- `find /usr/src/linux-2.4.27-hardened-r3/include/asm
/usr/src/linux-2.4.27-hardened-r3/include/linux
/usr/src/linux-2.4.27-hardened-r3/include/scsi
/usr/src/linux-2.4.27-hardened-r3/include/net
/usr/src/linux-2.4.27-hardened-r3/include/math-emu \( -name SCCS -o -name .svn
\) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
scripts/mkdep -- init/*.c > .depend
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include
scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon  
-DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.27-hardened-r3/include/linux/unistd.h:9,
                 from init/main.c:17:
/usr/src/linux-2.4.27-hardened-r3/include/asm/unistd.h:375: warning: conflicting
types for built-in function '_exit'
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon 
-DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon  
-DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
In file included from /usr/src/linux-2.4.27-hardened-r3/include/linux/unistd.h:9,
                 from init/do_mounts.c:5:
/usr/src/linux-2.4.27-hardened-r3/include/asm/unistd.h:375: warning: conflicting
types for built-in function '_exit'
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon " -C  kernel
make[1]: Entering directory `/usr/src/linux-2.4.27-hardened-r3/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.27-hardened-r3/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-hardened-r3/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:219: error: conflicting types for 'reschedule_idle'
sched.c:216: error: previous declaration of 'reschedule_idle' was here
sched.c:219: error: conflicting types for 'reschedule_idle'
sched.c:216: error: previous declaration of 'reschedule_idle' was here
sched.c:377: error: conflicting types for 'wake_up_process'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:662: error: previous
declaration of 'wake_up_process' was here
sched.c:377: error: conflicting types for 'wake_up_process'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:662: error: previous
declaration of 'wake_up_process' was here
sched.c:415: error: conflicting types for 'schedule_timeout'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:151: error: previous
declaration of 'schedule_timeout' was here
sched.c:415: error: conflicting types for 'schedule_timeout'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:151: error: previous
declaration of 'schedule_timeout' was here
sched.c:745: error: conflicting types for '__wake_up'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:654: error: previous
declaration of '__wake_up' was here
sched.c:745: error: conflicting types for '__wake_up'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:654: error: previous
declaration of '__wake_up' was here
sched.c:755: error: conflicting types for '__wake_up_sync'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:655: error: previous
declaration of '__wake_up_sync' was here
sched.c:755: error: conflicting types for '__wake_up_sync'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:655: error: previous
declaration of '__wake_up_sync' was here
sched.c:765: error: conflicting types for 'complete'
/usr/src/linux-2.4.27-hardened-r3/include/linux/completion.h:31: error: previous
declaration of 'complete' was here
sched.c:765: error: conflicting types for 'complete'
/usr/src/linux-2.4.27-hardened-r3/include/linux/completion.h:31: error: previous
declaration of 'complete' was here
sched.c:775: error: conflicting types for 'wait_for_completion'
/usr/src/linux-2.4.27-hardened-r3/include/linux/completion.h:30: error: previous
declaration of 'wait_for_completion' was here
sched.c:775: error: conflicting types for 'wait_for_completion'
/usr/src/linux-2.4.27-hardened-r3/include/linux/completion.h:30: error: previous
declaration of 'wait_for_completion' was here
sched.c:810: error: conflicting types for 'interruptible_sleep_on'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:659: error: previous
declaration of 'interruptible_sleep_on' was here
sched.c:810: error: conflicting types for 'interruptible_sleep_on'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:659: error: previous
declaration of 'interruptible_sleep_on' was here
sched.c:821: error: conflicting types for 'interruptible_sleep_on_timeout'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:660: error: previous
declaration of 'interruptible_sleep_on_timeout' was here
sched.c:821: error: conflicting types for 'interruptible_sleep_on_timeout'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:660: error: previous
declaration of 'interruptible_sleep_on_timeout' was here
sched.c:834: error: conflicting types for 'sleep_on'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:656: error: previous
declaration of 'sleep_on' was here
sched.c:834: error: conflicting types for 'sleep_on'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:656: error: previous
declaration of 'sleep_on' was here
sched.c:845: error: conflicting types for 'sleep_on_timeout'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:657: error: previous
declaration of 'sleep_on_timeout' was here
sched.c:845: error: conflicting types for 'sleep_on_timeout'
/usr/src/linux-2.4.27-hardened-r3/include/linux/sched.h:657: error: previous
declaration of 'sleep_on_timeout' was here
sched.c:216: warning: 'reschedule_idle' declared `static' but never defined
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.27-hardened-r3/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.27-hardened-r3/kernel'
make: *** [_dir_kernel] Error 2


Expected Results:  
Compile properly.

Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.4.24-hardened-r3 i686)
=================================================================
System uname: 2.4.24-hardened-r3 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers: 
sys-kernel/linux-headers-2.4.21,sys-kernel/linux-headers-2.4.22,sys-kernel/linux-headers-2.4.19-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O9 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O9 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.linux.ee/pub/gentoo/distfiles/ http://www.gigaload.org/gentoo.org/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/myPortage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aalib acpi apm berkdb bitmap-fonts cdr crypt curl dedicated dnd encode
ethereal faad gdbm gpm gtk2 ipv6 java jikes jpeg junit ldap libwww mad maildir
mbox md5sum mpeg mysql ncurses nls objc oggvorbis pam pdflib perl png python
quicktime readline samba sdl slang snmp spell ssl tcpd truetype usb x86 xml xml2
xprint zlib"

--------
gcc --version
gcc (GCC) 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 1 Luca Barbato gentoo-dev 2004-10-01 16:12:12 UTC

*** This bug has been marked as a duplicate of 64648 ***