Compiling 2.4.20
I've configured my kernel to my hardware but during compilation the following error pos up: gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=super -c -o super.o super.c super.c: In function `read_super_block': super.c:869: warning: int format, long unsigned int arg (arg 2) super.c:944:14: missing terminating " character super.c: In function `reread_meta_blocks': super.c:945: error: stray '\' in program super.c:945: error: `ld' undeclared (first use in this function) super.c:945: error: (Each undeclared identifier is reported only once super.c:945: error: for each function it appears in.) super.c:945: error: parse error before "n" super.c:945:12: missing terminating " character make[4]: *** [super.o] Error 1 make[4]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' make[3]: *** [first_rule] Error 2 make[3]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' make[2]: *** [_subdir_reiserfs] Error 2 make[2]: Leaving directory `/usr/src/kernel-source-2.4.20/fs' make[1]: *** [_dir_fs] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.4.20' make: *** [stamp-build] Error 2 What's the matter with it? Pleae help Vittorio pgp0.pgp Description: PGP signature
Re: Compiling 2.4.20
Hi! On Tue, Jun 24, 2003 at 02:02:48PM +, Vittorio wrote: > I've configured my kernel to my hardware but during compilation the following error > pos up: > > > gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.20/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe > -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include > -DKBUILD_BASENAME=super -c -o super.o super.c > super.c: In function `read_super_block': > super.c:869: warning: int format, long unsigned int arg (arg 2) > super.c:944:14: missing terminating " character > super.c: In function `reread_meta_blocks': > super.c:945: error: stray '\' in program > super.c:945: error: `ld' undeclared (first use in this function) > super.c:945: error: (Each undeclared identifier is reported only once > super.c:945: error: for each function it appears in.) > super.c:945: error: parse error before "n" > super.c:945:12: missing terminating " character > make[4]: *** [super.o] Error 1 > make[4]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' > make[3]: *** [first_rule] Error 2 > make[3]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' > make[2]: *** [_subdir_reiserfs] Error 2 > make[2]: Leaving directory `/usr/src/kernel-source-2.4.20/fs' > make[1]: *** [_dir_fs] Error 2 > make[1]: Leaving directory `/usr/src/kernel-source-2.4.20' > make: *** [stamp-build] Error 2 It looks like the reiserfs code doesn't compile with your default compiler. Try taking out reiserfs support or apply the latest patches from www.namesys.com. HTH Eamon Roque. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compiling 2.4.20
> I've configured my kernel to my hardware but during compilation the > following error pos up: > rs in.) > super.c:945: error: parse error before "n" > super.c:945:12: missing terminating " character > make[4]: *** [super.o] Error 1 > make[4]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' > make[3]: *** [first_rule] Error 2 > make[3]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' > make[2]: *** [_subdir_reiserfs] Error 2 > make[2]: Leaving directory `/usr/src/kernel-source-2.4.20/fs' > make[1]: *** [_dir_fs] Error 2 > make[1]: Leaving directory `/usr/src/kernel-source-2.4.20' > make: *** [stamp-build] Error 2 What compiler version are you using? gcc --version I had problems trying to compile the debian kernel-source-2.4.20 using gcc-3.3 (aparently gcc-3.2 works though) on woody/sarge mix In the end I installed gcc-2.95 and then created a symlink from /usr/bin/gcc -> /usr/bin/gcc-2.95 It built and install perfectly, I'm not sure if I enabled reiserfs, but I just adapted an old config of mine for debian. Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compiling 2.4.20
On Tuesday 24 June 2003 02:54 pm, [EMAIL PROTECTED] wrote: > Hi! > > On Tue, Jun 24, 2003 at 02:02:48PM +, Vittorio wrote: > > I've configured my kernel to my hardware but during compilation the > > following error pos up: > > > > > > gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.20/include -Wall > > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common > > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 > > -nostdinc -iwithprefix include -DKBUILD_BASENAME=super -c -o super.o > > super.c super.c: In function `read_super_block': > > super.c:869: warning: int format, long unsigned int arg (arg 2) > > super.c:944:14: missing terminating " character > > super.c: In function `reread_meta_blocks': > > super.c:945: error: stray '\' in program > > super.c:945: error: `ld' undeclared (first use in this function) > > super.c:945: error: (Each undeclared identifier is reported only once > > super.c:945: error: for each function it appears in.) > > super.c:945: error: parse error before "n" > > super.c:945:12: missing terminating " character > > make[4]: *** [super.o] Error 1 > > make[4]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' > > make[3]: *** [first_rule] Error 2 > > make[3]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' > > make[2]: *** [_subdir_reiserfs] Error 2 > > make[2]: Leaving directory `/usr/src/kernel-source-2.4.20/fs' > > make[1]: *** [_dir_fs] Error 2 > > make[1]: Leaving directory `/usr/src/kernel-source-2.4.20' > > make: *** [stamp-build] Error 2 > > It looks like the reiserfs code doesn't compile with your default > compiler. Try taking out reiserfs support or apply the latest patches > from www.namesys.com. > Or try using a different compiler (2.95, 3.2 or 3.3.3). -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compiling 2.4.20
On Tue, Jun 24, 2003 at 02:39:08PM +0100, Mark C wrote: > > I had problems trying to compile the debian kernel-source-2.4.20 using > gcc-3.3 (aparently gcc-3.2 works though) on woody/sarge mix > > In the end I installed gcc-2.95 and then created a symlink from > /usr/bin/gcc -> /usr/bin/gcc-2.95 An alternative to switching your /usr/bin/gcc link is to tell make-kpkg to use gcc-2.95 somewhat like this: $ MAKEFLAGS="CC=gcc-2.95" make-kpkg -rootcmd fakeroot kernel_image Also, from kernel source 2.4.x Documentation/Changes: The recommended compiler for the kernel is gcc 2.95.x (x >= 3), and it should be used when you need absolute stability. You may use gcc 3.0.x instead if you wish, although it may cause problems. Later versions of gcc have not received much testing for Linux kernel compilation, and there are almost certainly bugs (mainly, but not exclusively, in the kernel) that will need to be fixed in order to use these compilers. Graeme -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compiling 2.4.20
Vittorio [debian-user] <24/06/03 14:02 +>: > I've configured my kernel to my hardware but during compilation the following error > pos up: > > > gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.20/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe > -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include > -DKBUILD_BASENAME=super -c -o super.o super.c > super.c: In function `read_super_block': > super.c:869: warning: int format, long unsigned int arg (arg 2) > super.c:944:14: missing terminating " character > super.c: In function `reread_meta_blocks': > super.c:945: error: stray '\' in program > super.c:945: error: `ld' undeclared (first use in this function) > super.c:945: error: (Each undeclared identifier is reported only once > super.c:945: error: for each function it appears in.) > super.c:945: error: parse error before "n" > super.c:945:12: missing terminating " character > make[4]: *** [super.o] Error 1 > make[4]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' > make[3]: *** [first_rule] Error 2 > make[3]: Leaving directory `/usr/src/kernel-source-2.4.20/fs/reiserfs' > make[2]: *** [_subdir_reiserfs] Error 2 > make[2]: Leaving directory `/usr/src/kernel-source-2.4.20/fs' > make[1]: *** [_dir_fs] Error 2 > make[1]: Leaving directory `/usr/src/kernel-source-2.4.20' > make: *** [stamp-build] Error 2 > > What's the matter with it? > > Pleae help > > Vittorio Thanks for the many helpful answers. In the end I resorted to reinstalling gcc-2.95 and it all goes smoothly now! Ciao Vittorio pgp0.pgp Description: PGP signature
Compiling 2.4.20 for Woody
Hello, I've got a small problem when compiling the 2.4.20 kernel for my woody machine. I've learned how to use make-kpkg which is quite nice, I've also learned how to deal with the .config files, but here is my problem. When I compile the kernel everything works fine, including the modules, except that the Power-Down function doesn't shut the computer off, it just sits there although it isn't locked up and I can still switch between consoles. When I use a prepackaged kernel APM works fine (for example with 2.4.18 deb or with the 2.4.20-k6 Bunk deb) and the computer shuts down normally (I have apmd installed). Im using the original source for 2.4.20, i.e. not a deb package. Is there anything Debian specific that I may be missing for the kernel to work with apmd? BTW this isn't machine specific, it happens when I try to compile the kernel for my laptop too. Thanks for any hints, Chris -- Dr.-Ing. C. Hurschler [EMAIL PROTECTED] +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compiling 2.4.20 for Woody
On Mon, 7 Jul 2003 09:31:26 +0200 (MEST) Christof Hurschler <[EMAIL PROTECTED]> wrote: > Im using the original source for 2.4.20, i.e. not a deb package. Is there > anything Debian specific that I may be missing for the kernel to work with > apmd? BTW this isn't machine specific, it happens when I try to compile > the kernel for my laptop too. Move /usr/src/linux/.config to another file (I use "fig"). For one of the Debian kernels that "works", copy /boot/config-2.4.20 to /usr/src/linux/.config, and do "make xconfig". In "General Setup" note what's turned on, and what's turned off. Now copy "fig" back to /usr/src/linux/.config (yes, overwrite it). Do "make xconfig" and duplicate the power management settings that work in the Debian kernel. Kevin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Compiling 2.4.20 for Woody
I actually did a similar thing except I used the .config file form Knoppix 3.2 and copied it to my /usr/src/linux-2.4.20/.config, renaming the old .config to .config.old. I then used make menuconfig and only chaged the config in that I took out ISDN and PCMCIA support, everything else I left the same. I'll have to try it with a working /boot/config to be sure, but the Knoppix 3.2 kernel also shuts down fine. Thanks, Chris > On Mon, 7 Jul 2003 09:31:26 0200 (MEST) > Christof Hurschler <[EMAIL PROTECTED]> wrote: > > > Im using the original source for 2.4.20, i.e. not a deb package. Is > there > > anything Debian specific that I may be missing for the kernel to work > with > > apmd? BTW this isn't machine specific, it happens when I try to compile > > the kernel for my laptop too. > > Move /usr/src/linux/.config to another file (I use "fig"). > > For one of the Debian kernels that "works", copy > /boot/config-2.4.20 to /usr/src/linux/.config, and do "make > xconfig". In "General Setup" note what's turned on, and what's turned off. > > Now copy "fig" back to /usr/src/linux/.config (yes, overwrite it). Do > "make > xconfig" and duplicate the power management settings that work in the > Debian > kernel. > > Kevin > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > -- Dr.-Ing. C. Hurschler [EMAIL PROTECTED] +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
compiling 2.4.20-rc4 on woody
I need some advice on compiling kernel 2.4.20-rc4 on woody. I have got kernel-source-2.4.18 (from woody) and would like to use it, as I am on a slow modem connection. I tried to apply the official patch-2.4.19 first, but it fails on a few items, probably because my source is patched by Debian (?). Are there debianized patches to go from kernel-source-2.4.18 to 20-rc4? Or must I unpatch? (Where can I get the file to feed to patch to do so?) Many thanks in advance, Robert Epprecht -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]