Re: Erros while creating compile environment with new kernel
Before changes:
[root <at> x thinstation_src-2.2.2]# sudo ./RUNME
rm: cannot remove `//lib/../include/asm': No such file or directory
mount: Mounting none on /dev failed: No such device
You have entered the Thinstation Build Environment
sh-3.1# cd source/kernel-2.6.31.5
sh-3.1# cd linux-2.6.31.5
sh-3.1# cp .config ../configr.org
sh-3.1# make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config
CLEAN .config .config.old
sh-3.1# make distclean
sh-3.1# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:117:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
After change:
for filename in asm-generic config linux math-emu pcmcia sound mtd media video
do
if [ -h $GLIBC_PATH/../include/$filename ] ; then
rm $GLIBC_PATH/../include/$filename
fi
if [ -e $KERNEL_PATH/include/$filename ] ; then
ln -s $KERNEL_PATH/include/$filename
$GLIBC_PATH/../include/$filename
fi
done
rm $GLIBC_PATH/../include/asm
ln -s $KERNEL_PATH/include/asm-generic $GLIBC_PATH/../include/asm
ASM folder isn't in the org linux-2.6.31.5.tar.bz2..
So i used asm-generic which is availible
Result:
[root <at> x thinstation_src-2.2.2]# sudo ./RUNME
mount: Mounting none on /dev failed: No such device
You have entered the Thinstation Build Environment
sh-3.1# cd source/kernel-2.6.31.5/linux-2.6.31.5
sh-3.1# make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config
CLEAN .config .config.old
sh-3.1# make distclean
sh-3.1# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
In file included from /usr/include/signal.h:333,
from /usr/include/sys/wait.h:30,
from scripts/basic/docproc.c:44:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or
directory
make[1]: *** [scripts/basic/docproc] Error 1
make: *** [scripts_basic] Error 2
sh-3.1#
sigcontext.h isn't available in that source folder
sh-3.1# find -name sigcontext.h
./arch/blackfin/include/asm/sigcontext.h
./arch/frv/include/asm/sigcontext.h
./arch/parisc/include/asm/sigcontext.h
./arch/sparc/include/asm/sigcontext.h
./arch/microblaze/include/asm/sigcontext.h
./arch/sh/include/asm/sigcontext.h
./arch/sh/include/cpu-common/cpu/sigcontext.h
./arch/sh/include/cpu-sh4/cpu/sigcontext.h
./arch/x86/include/asm/sigcontext.h
./arch/arm/include/asm/sigcontext.h
./arch/s390/include/asm/sigcontext.h
./arch/ia64/include/asm/sigcontext.h
./arch/m32r/include/asm/sigcontext.h
./arch/alpha/include/asm/sigcontext.h
./arch/mn10300/include/asm/sigcontext.h
./arch/xtensa/include/asm/sigcontext.h
./arch/powerpc/include/asm/sigcontext.h
./arch/mips/include/asm/sigcontext.h
./arch/m68k/include/asm/sigcontext.h
./arch/cris/include/asm/sigcontext.h
./arch/h8300/include/asm/sigcontext.h
./arch/um/sys-ia64/sysdep/sigcontext.h
./arch/um/sys-ppc/shared/sysdep/sigcontext.h
./arch/um/sys-i386/shared/sysdep/sigcontext.h
./arch/um/sys-x86_64/shared/sysdep/sigcontext.h
./arch/avr32/include/asm/sigcontext.h
For you information old error:
sh-3.1# find -name socket.h
./include/asm-generic/socket.h
./include/linux/socket.h
./arch/blackfin/include/asm/socket.h
./arch/frv/include/asm/socket.h
./arch/parisc/include/asm/socket.h
./arch/sparc/include/asm/socket.h
./arch/microblaze/include/asm/socket.h
./arch/sh/include/asm/socket.h
./arch/x86/include/asm/socket.h
./arch/arm/include/asm/socket.h
./arch/s390/include/asm/socket.h
./arch/ia64/include/asm/socket.h
./arch/m32r/include/asm/socket.h
./arch/alpha/include/asm/socket.h
./arch/mn10300/include/asm/socket.h
./arch/xtensa/include/asm/socket.h
./arch/powerpc/include/asm/socket.h
./arch/mips/include/asm/socket.h
./arch/m68k/include/asm/socket.h
./arch/cris/include/asm/socket.h
./arch/h8300/include/asm/socket.h
./arch/avr32/include/asm/socket.h
Met vriendelijke groet,
van der Heide Groep
Arjan van der Heide
systeembeheerder
+31 (0)511 45 40 40
a.vdheide-4oDeW8j52puA6w7M5/FMEw@public.gmane.org
www.vanderheide.nl
P Denk aan het milieu voor u dit e-mailbericht afdrukt.
De informatie in dit e-mailbericht is vertrouwelijk en uitsluitend bestemd voor de geadresseerde. Wanneer u dit bericht per abuis ontvangt, verzoeken wij u contact op te nemen met de afzender per kerende e-mail. Verder verzoeken wij u in dat geval dit e-mailbericht te vernietigen en de inhoud ervan aan niemand openbaar te maken. Wij aanvaarden geen aansprakelijkheid voor onjuiste, onvolledige dan wel ontijdige overbrenging van de inhoud van een verzonden e-mailbericht, noch voor daarbij overgebrachte virussen.
Van: TrevorB
[mailto:trevorbatley-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
Verzonden: dinsdag 8 december 2009 11:56
Aan: Arjan van der Heide
CC: thinstation-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Onderwerp: Re: [Thinstation-developer] Erros while creating compile
environment with new kernel
On Tue, 2009-12-08 at 10:50 +0100, Arjan van der Heide
wrote:
I try to create a compile
environment how ever i come across a couple of issues:
With http://sourceforge.net/apps/mediawiki/thinstation/index.php?title=Developer:Kernel_Upgrade
I followed the steps but when i’m at the point to update_kernel.sh for my
builde env. I come across this error(s):
cp: kan stat niet toepassen op `/home/compile/thinstation_src-2.2.2/source/../lib/modules/2.6.31.5/*':
Bestand of map bestaat niet
rm: kan `../../kernel/modules/source' niet verwijderen: Bestand of map bestaat
niet
cp: kan stat niet toepassen op `/home/compile/thinstation_src-2.2.2/source/kernel-2.6.31.5/linux-2.6.31.5/arch/x86/boot/bzImage':
Bestand of map bestaat niet
cp: kan stat niet toepassen op
`/home/compile/thinstation_src-2.2.2/source/kernel-2.6.31.5/linux-2.6.31.5/System.map':
Bestand of map bestaat niet
I'm not real good with german, but did you do a make modules?
The update_kernel.sh script has a problem with a change of kernel (it was
designed for an update of the same kernel version, not a kernel upgrade).
Look at the equivalent script for 2.3 on SVN (it works for an upgrade).
so i tried the other document: http://sourceforge.net/apps/mediawiki/thinstation/index.php?title=Developer:Kernel_Compile_2x
Got an error with make menuconfig:
[root <at> x thinstation_src-2.2.2]# sudo ./RUNME
rm: cannot remove `//lib/../include/asm': No such file or directory
mount: Mounting none on /dev failed: No such device
You have entered the Thinstation Build Environment
sh-3.1# cd source/kernel-2.6.31.5/linux-2.6.31.5
sh-3.1# cp .config ../configr.org
sh-3.1# make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config
CLEAN .config .config.old
sh-3.1# make distclean
sh-3.1# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:117:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
Can someone help?
There was a change in the structure of the kernel in the
high 20's that meant some of the links have changed (there is no asm-i386), so
the bin/start.sh needs to be changed to remove references to asm-i386 and use
asm.
10a11
> KERNEL_VERSION=$THINSTATION_PATH`cat KERNEL_VERSION`
25c26
< for filename in asm asm-i386 asm-generic config linux math-emu pcmcia
sound mtd media video
---
> for filename in asm-generic config linux math-emu pcmcia sound mtd media
video
35c36
< ln -s $KERNEL_PATH/include/asm-i386 $GLIBC_PATH/../include/asm
---
> ln -s $KERNEL_PATH/include/asm $GLIBC_PATH/../include/asm
Trevor B
------------------------------------------------------------------------------Return on Information:Google Enterprise Search pays you backGet the facts.
http://p.sf.net/sfu/google-dev2dev_______________________________________________Thinstation-developer mailing list
Thinstation-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/thinstation-developer
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Thinstation-developer mailing list
Thinstation-developer@...
https://lists.sourceforge.net/lists/listinfo/thinstation-developer