Mailing List Archive

i cant compile none of them kernel versions no more..
so i have this uclibc build small router.last night i updated linux-headers from 2.4.22 to 2.4.26 and today i couldnt recompile
the hardened-sources 2.4.27-r3 kernel.
i tried with gentoo-sources-r1 but still :

ibm linux # make bzImage
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.27-gentoo-r1/include/linux/unistd.h:9,
from init/main.c:17:
/usr/src/linux-2.4.27-gentoo-r1/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
. scripts/mkversion > .tmpversion
dnsdomainname: Unknown host
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
In file included from /usr/src/linux-2.4.27-gentoo-r1/include/linux/unistd.h:9,
from init/do_mounts.c:5:
/usr/src/linux-2.4.27-gentoo-r1/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 " -C kernel
make[1]: Entering directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sched.c
sched.c:621: error: conflicting types for 'wake_up_process'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:697: error: previous declaration of 'wake_up_process' was here
sched.c:621: error: conflicting types for 'wake_up_process'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:697: error: previous declaration of 'wake_up_process' was here
sched.c:626: error: conflicting types for 'wake_up_forked_process'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:698: error: previous declaration of 'wake_up_forked_process' was here
sched.c:626: error: conflicting types for 'wake_up_forked_process'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:698: error: previous declaration of 'wake_up_forked_process' was here
sched.c:663: error: conflicting types for 'sched_exit'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:699: error: previous declaration of 'sched_exit' was here
sched.c:663: error: conflicting types for 'sched_exit'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:699: error: previous declaration of 'sched_exit' was here
sched.c:1437: error: conflicting types for '__wake_up'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:689: error: previous declaration of '__wake_up' was here
sched.c:1437: error: conflicting types for '__wake_up'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:689: error: previous declaration of '__wake_up' was here
sched.c:1468: error: conflicting types for 'complete'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:31: error: previous declaration of 'complete' was here
sched.c:1468: error: conflicting types for 'complete'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:31: error: previous declaration of 'complete' was here
sched.c:1478: error: conflicting types for 'wait_for_completion'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
sched.c:1478: error: conflicting types for 'wait_for_completion'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
sched.c:1513: error: conflicting types for 'interruptible_sleep_on'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:694: error: previous declaration of 'interruptible_sleep_on' was here
sched.c:1513: error: conflicting types for 'interruptible_sleep_on'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:694: error: previous declaration of 'interruptible_sleep_on' was here
sched.c:1524: error: conflicting types for 'interruptible_sleep_on_timeout'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:695: error: previous declaration of 'interruptible_sleep_on_timeout' was here
sched.c:1524: error: conflicting types for 'interruptible_sleep_on_timeout'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:695: error: previous declaration of 'interruptible_sleep_on_timeout' was here
sched.c:1537: error: conflicting types for 'sleep_on'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:691: error: previous declaration of 'sleep_on' was here
sched.c:1537: error: conflicting types for 'sleep_on'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:691: error: previous declaration of 'sleep_on' was here
sched.c:1548: error: conflicting types for 'sleep_on_timeout'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:692: error: previous declaration of 'sleep_on_timeout' was here
sched.c:1548: error: conflicting types for 'sleep_on_timeout'
/usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:692: error: previous declaration of 'sleep_on_timeout' was here
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
make: *** [_dir_kernel] Error 2
ibm linux #



--
petre daniel,system administrator,
romania data systems, pitesti branch
mobile 740.10.2196,phone 248.219917

--
gentoo-embedded@gentoo.org mailing list
Re: i cant compile none of them kernel versions no more.. [ In reply to ]
It sounds like your using gcc-3.4.x
Try 3.3.4 to build your kernels. I think 2.4.28_preX brings us the
needed gcc-3.4.x fix.


On Sat, 2004-10-16 at 13:15, petre daniel wrote:
> so i have this uclibc build small router.last night i updated linux-headers from 2.4.22 to 2.4.26 and today i couldnt recompile
> the hardened-sources 2.4.27-r3 kernel.
> i tried with gentoo-sources-r1 but still :
>
> ibm linux # make bzImage
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
> In file included from /usr/src/linux-2.4.27-gentoo-r1/include/linux/unistd.h:9,
> from init/main.c:17:
> /usr/src/linux-2.4.27-gentoo-r1/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
> . scripts/mkversion > .tmpversion
> dnsdomainname: Unknown host
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
> In file included from /usr/src/linux-2.4.27-gentoo-r1/include/linux/unistd.h:9,
> from init/do_mounts.c:5:
> /usr/src/linux-2.4.27-gentoo-r1/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
> make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 " -C kernel
> make[1]: Entering directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
> make all_targets
> make[2]: Entering directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sched.c
> sched.c:621: error: conflicting types for 'wake_up_process'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:697: error: previous declaration of 'wake_up_process' was here
> sched.c:621: error: conflicting types for 'wake_up_process'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:697: error: previous declaration of 'wake_up_process' was here
> sched.c:626: error: conflicting types for 'wake_up_forked_process'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:698: error: previous declaration of 'wake_up_forked_process' was here
> sched.c:626: error: conflicting types for 'wake_up_forked_process'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:698: error: previous declaration of 'wake_up_forked_process' was here
> sched.c:663: error: conflicting types for 'sched_exit'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:699: error: previous declaration of 'sched_exit' was here
> sched.c:663: error: conflicting types for 'sched_exit'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:699: error: previous declaration of 'sched_exit' was here
> sched.c:1437: error: conflicting types for '__wake_up'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:689: error: previous declaration of '__wake_up' was here
> sched.c:1437: error: conflicting types for '__wake_up'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:689: error: previous declaration of '__wake_up' was here
> sched.c:1468: error: conflicting types for 'complete'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:31: error: previous declaration of 'complete' was here
> sched.c:1468: error: conflicting types for 'complete'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:31: error: previous declaration of 'complete' was here
> sched.c:1478: error: conflicting types for 'wait_for_completion'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
> sched.c:1478: error: conflicting types for 'wait_for_completion'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
> sched.c:1513: error: conflicting types for 'interruptible_sleep_on'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:694: error: previous declaration of 'interruptible_sleep_on' was here
> sched.c:1513: error: conflicting types for 'interruptible_sleep_on'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:694: error: previous declaration of 'interruptible_sleep_on' was here
> sched.c:1524: error: conflicting types for 'interruptible_sleep_on_timeout'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:695: error: previous declaration of 'interruptible_sleep_on_timeout' was here
> sched.c:1524: error: conflicting types for 'interruptible_sleep_on_timeout'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:695: error: previous declaration of 'interruptible_sleep_on_timeout' was here
> sched.c:1537: error: conflicting types for 'sleep_on'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:691: error: previous declaration of 'sleep_on' was here
> sched.c:1537: error: conflicting types for 'sleep_on'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:691: error: previous declaration of 'sleep_on' was here
> sched.c:1548: error: conflicting types for 'sleep_on_timeout'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:692: error: previous declaration of 'sleep_on_timeout' was here
> sched.c:1548: error: conflicting types for 'sleep_on_timeout'
> /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:692: error: previous declaration of 'sleep_on_timeout' was here
> make[2]: *** [sched.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
> make: *** [_dir_kernel] Error 2
> ibm linux #
--
Ned Ludd <solar@gentoo.org>
Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer
Re: i cant compile none of them kernel versions no more.. [ In reply to ]
On Sat, 16 Oct 2004, Ned Ludd wrote:

> It sounds like your using gcc-3.4.x
> Try 3.3.4 to build your kernels. I think 2.4.28_preX brings us the
> needed gcc-3.4.x fix.

You need at least pre2-bk2 to build w/ gcc-3.4.x

Peter
>
>
> On Sat, 2004-10-16 at 13:15, petre daniel wrote:
> > so i have this uclibc build small router.last night i updated linux-headers from 2.4.22 to 2.4.26 and today i couldnt recompile
> > the hardened-sources 2.4.27-r3 kernel.
> > i tried with gentoo-sources-r1 but still :
> >
> > ibm linux # make bzImage
> > gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
> > In file included from /usr/src/linux-2.4.27-gentoo-r1/include/linux/unistd.h:9,
> > from init/main.c:17:
> > /usr/src/linux-2.4.27-gentoo-r1/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
> > . scripts/mkversion > .tmpversion
> > dnsdomainname: Unknown host
> > gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
> > gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
> > In file included from /usr/src/linux-2.4.27-gentoo-r1/include/linux/unistd.h:9,
> > from init/do_mounts.c:5:
> > /usr/src/linux-2.4.27-gentoo-r1/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
> > make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 " -C kernel
> > make[1]: Entering directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
> > make all_targets
> > make[2]: Entering directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
> > gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium2 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sched.c
> > sched.c:621: error: conflicting types for 'wake_up_process'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:697: error: previous declaration of 'wake_up_process' was here
> > sched.c:621: error: conflicting types for 'wake_up_process'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:697: error: previous declaration of 'wake_up_process' was here
> > sched.c:626: error: conflicting types for 'wake_up_forked_process'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:698: error: previous declaration of 'wake_up_forked_process' was here
> > sched.c:626: error: conflicting types for 'wake_up_forked_process'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:698: error: previous declaration of 'wake_up_forked_process' was here
> > sched.c:663: error: conflicting types for 'sched_exit'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:699: error: previous declaration of 'sched_exit' was here
> > sched.c:663: error: conflicting types for 'sched_exit'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:699: error: previous declaration of 'sched_exit' was here
> > sched.c:1437: error: conflicting types for '__wake_up'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:689: error: previous declaration of '__wake_up' was here
> > sched.c:1437: error: conflicting types for '__wake_up'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:689: error: previous declaration of '__wake_up' was here
> > sched.c:1468: error: conflicting types for 'complete'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:31: error: previous declaration of 'complete' was here
> > sched.c:1468: error: conflicting types for 'complete'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:31: error: previous declaration of 'complete' was here
> > sched.c:1478: error: conflicting types for 'wait_for_completion'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
> > sched.c:1478: error: conflicting types for 'wait_for_completion'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/completion.h:30: error: previous declaration of 'wait_for_completion' was here
> > sched.c:1513: error: conflicting types for 'interruptible_sleep_on'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:694: error: previous declaration of 'interruptible_sleep_on' was here
> > sched.c:1513: error: conflicting types for 'interruptible_sleep_on'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:694: error: previous declaration of 'interruptible_sleep_on' was here
> > sched.c:1524: error: conflicting types for 'interruptible_sleep_on_timeout'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:695: error: previous declaration of 'interruptible_sleep_on_timeout' was here
> > sched.c:1524: error: conflicting types for 'interruptible_sleep_on_timeout'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:695: error: previous declaration of 'interruptible_sleep_on_timeout' was here
> > sched.c:1537: error: conflicting types for 'sleep_on'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:691: error: previous declaration of 'sleep_on' was here
> > sched.c:1537: error: conflicting types for 'sleep_on'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:691: error: previous declaration of 'sleep_on' was here
> > sched.c:1548: error: conflicting types for 'sleep_on_timeout'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:692: error: previous declaration of 'sleep_on_timeout' was here
> > sched.c:1548: error: conflicting types for 'sleep_on_timeout'
> > /usr/src/linux-2.4.27-gentoo-r1/include/linux/sched.h:692: error: previous declaration of 'sleep_on_timeout' was here
> > make[2]: *** [sched.o] Error 1
> > make[2]: Leaving directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
> > make[1]: *** [first_rule] Error 2
> > make[1]: Leaving directory `/usr/src/linux-2.4.27-gentoo-r1/kernel'
> > make: *** [_dir_kernel] Error 2
> > ibm linux #
>

--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2


--
gentoo-embedded@gentoo.org mailing list