RE:Problem compiling custom kernel with default values
"Sascha Juch" <[email protected]>
| Newsgroups | gmane.linux.pxes.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody, me again :) I now tried to compile a 2.4.20 kernel _without_ squashfs and supermount with SCSI Disk support and all the USB-support enabled. That worked fine. Finally I found out, that the compiling error only occures if supermount is patched into the Kernel. There is no problem with squashfs: Kernel 2.4.20 incl. squashfs (V2.1-rc2) -> compilation successfully Kernel 2.4.20 incl. squashfs and supermount -> same error as below Kernel 2.4.20 incl. supermount -> same error as below So the problem occures only with the supermount patch. Can you tell me how you could compile the sources with SCSI disk support enabled Diego? Thanks a lot in advance, greetings, Sascha. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Tuesday, February 01, 2005 5:14 AM To: [email protected] Subject: pxes-devel digest, Vol 1 #744 - 1 msg Send pxes-devel mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/pxes-devel or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of pxes-devel digest..." Today's Topics: 1. Problem compiling custom kernel with default values (Sascha Juch) --__--__-- Message: 1 Date: Mon, 31 Jan 2005 14:54:33 +0100 From: "Sascha Juch" <[email protected]> To: <[email protected]> Subject: [pxes-devel] Problem compiling custom kernel with default values Reply-To: [email protected] This is a multi-part message in MIME format. ------_=_NextPart_001_01C5079C.64C947D4 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hello list members, I have the following problem in compiling a custom kernel: * plain Vanilla kernel 2.4.20 patched with squashdfs and supermount=20 * .config from the original PXES 0.9 Problem: It is not possible to compile support for USB-Storage devices. When compiling with that config I encounter the following error (anything related to SCSI included): gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsicam -c -o scsicam.o scsicam.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_proc -c -o scsi_proc.o scsi_proc.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_error -c -o scsi_error.o scsi_error.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_obsolete -c -o scsi_obsolete.o scsi_obsolete.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_queue -c -o scsi_queue.o scsi_queue.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_lib -c -o scsi_lib.o scsi_lib.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_merge -c -o scsi_merge.o scsi_merge.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_dma -c -o scsi_dma.o scsi_dma.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_scan -c -o scsi_scan.o scsi_scan.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dscsi_syms -DEXPORT_SYMTAB -c scsi_syms.c ld -m elf_i386 -r -o scsi_mod.o scsi.o hosts.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o scsi_error.o scsi_obsolete.o scsi_queue.o scsi_lib.o scsi_merge.o scsi_dma.o scsi_scan.o scsi_syms.o gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=3D2 -march=3Di586 -DMODULE -DMODVERSIONS = -include /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dsd -c -o sd.o sd.c sd.c: In function `sd_init_onedisk': sd.c:823: `SDev' undeclared (first use in this function) sd.c:823: (Each undeclared identifier is reported only once sd.c:823: for each function it appears in.) make[2]: *** [sd.o] Fehler 1 make[2]: Verlassen des Verzeichnisses Verzeichnis >/usr/src/linux-2.4.20-6pxes/drivers/scsi< make[1]: *** [_modsubdir_scsi] Fehler 2 make[1]: Verlassen des Verzeichnisses Verzeichnis >/usr/src/linux-2.4.20-6pxes/drivers< make: *** [_mod_drivers] Fehler 2 [root@devtux linux]# (translation for the non-germans :)): "Fehler" =3D "Error" "Verlassen des Verzeichnisses" =3D "Leaving directory" I did anything else correct. As soon as I disable anything under SCSI except the general "SCSI support" the kernel compiles and runs fine with PXES. Problem then is, that I cannot use USB-Storage devices. From the modules under ...2.4.20-12pxes/kernel/drivers/scsi in PXES 0.9 I see there are: ide-scsi.o scsi_mod.o sd_mod.o scsi_mod.o is the general SCSI support. sd_mod.o however is the "SCSI disk support" which doesn't want to compile. (I didn't find out so far how ide-scsi.o is be compiled) Can anyone give me a hint - or can you have a look at your current config Diego if the one provided with PXES 0.9 is the wrong one? Thanks a lot in advance, Sascha=20 ------_=_NextPart_001_01C5079C.64C947D4 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 6.5.7226.0"> <TITLE>Problem compiling custom kernel with default values</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><FONT SIZE=3D2 FACE=3D"Tahoma">Hello list members,</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">I have the following problem in = compiling a custom kernel:</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">* plain Vanilla kernel 2.4.20 patched = with squashdfs and supermount </FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">* .config from the original PXES = 0.9</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">Problem: It is not possible to compile = support for USB-Storage devices.</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">When compiling with that config I = encounter the following error (anything related to SCSI = included):</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsicam -c -o scsicam.o = scsicam.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_proc -c -o = scsi_proc.o scsi_proc.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_error -c -o = scsi_error.o scsi_error.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_obsolete -c -o = scsi_obsolete.o scsi_obsolete.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_queue -c -o = scsi_queue.o scsi_queue.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_lib -c -o scsi_lib.o = scsi_lib.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_merge -c -o = scsi_merge.o scsi_merge.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_dma -c -o scsi_dma.o = scsi_dma.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_scan -c -o = scsi_scan.o scsi_scan.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dscsi_syms -DEXPORT_SYMTAB = -c scsi_syms.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">ld -m elf_i386 -r -o scsi_mod.o scsi.o = hosts.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o scsi_error.o = scsi_obsolete.o scsi_queue.o scsi_lib.o scsi_merge.o</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">scsi_dma.o scsi_scan.o = scsi_syms.o</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">gcc -D__KERNEL__ = -I/usr/src/linux-2.4.20-6pxes/include -Wall -Wstrict-prototypes = -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer = -pipe</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">-mpreferred-stack-boundary=3D2 = -march=3Di586 -DMODULE -DMODVERSIONS -include = /usr/src/linux-2.4.20-6pxes/include/linux/modversions.h -nostdinc = -iwithprefix include -DKBUILD_BASENAME=3Dsd -c -o sd.o = sd.c</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">sd.c: In function = `sd_init_onedisk':</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">sd.c:823: `SDev' undeclared (first = use in this function)</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">sd.c:823: (Each undeclared identifier = is reported only once</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">sd.c:823: for each function it = appears in.)</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">make[2]: *** [sd.o] Fehler 1</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">make[2]: Verlassen des Verzeichnisses = Verzeichnis = »/usr/src/linux-2.4.20-6pxes/drivers/scsi«</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">make[1]: *** [_modsubdir_scsi] Fehler = 2</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">make[1]: Verlassen des Verzeichnisses = Verzeichnis »/usr/src/linux-2.4.20-6pxes/drivers«</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">make: *** [_mod_drivers] Fehler = 2</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">[root@devtux linux]#</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">(translation for the non-germans = :)):</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">"Fehler" =3D = "Error"</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">"Verlassen des = Verzeichnisses" =3D "Leaving directory"</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">I did anything else correct. As soon = as I disable anything under SCSI except the general "SCSI = support" the kernel compiles and runs fine with PXES.</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">Problem then is, that I cannot use = USB-Storage devices.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">From the modules under = ...2.4.20-12pxes/kernel/drivers/scsi in PXES 0.9 I see there are:</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">ide-scsi.o</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">scsi_mod.o</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">sd_mod.o</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">scsi_mod.o is the general SCSI = support. sd_mod.o however is the "SCSI disk support" which = doesn't want to compile. (I didn't find out so far how ide-scsi.o is be = compiled)</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">Can anyone give me a hint - or can you = have a look at your current config Diego if the one provided with PXES = 0.9 is the wrong one?</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Tahoma">Thanks a lot in advance,</FONT> <BR><FONT SIZE=3D2 FACE=3D"Tahoma">Sascha </FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01C5079C.64C947D4-- --__--__-- _______________________________________________ pxes-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pxes-devel End of pxes-devel Digest ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl