this problem with using gcc ( the exceptions) seem to be fixed by modifying the KBUILD_CFLAGS , ... i have not tried this yet ... but i found some important clues in the following topic on the ArchLinux forums :
http://bbs.archlinux.org/viewtopic.php?id=45882 i will report back if this works ....... Thanks Satish On 8/21/08, Satish Eerpini <[EMAIL PROTECTED]> wrote: > ya sure , ..... > > On Thu, Aug 21, 2008 at 2:06 AM, naidu bollineni <[EMAIL PROTECTED]> wrote: > > OK, here is how software development(this is also a development) works: > > > > when we start a project, marketing will write a requirements document > > showing what the market wants (engineering or innovation doesn't matter if > > there is no market to buy the product after all - but innovation can show > > to and create the market also). This is called MRD (Marketing Requirements > > Doc). > > > > From that derived is called Product Requirement Document (PRD) which just > > tells what should be in the product (what is the core, and what features > > (call them bells and whistles) to be included) > > > > From PRD, Engineering derives its own requirements - like first > > architecture document (called high level design) showing high level blocks > > in the system, their interaction, what and how they perform etc. > > Performance is very important in this stage. For example, you cannot > > architect a 10Gbps(IEEE 802.AE) ethernet supported motherboard by selecting > > 33MHz PCI Bus to seat that ethernet card because 33MHz PCI Bus (bus is > > shared between contending agents not dedicated) has a theoretical transfer > > of 100MB/s at 32Bit width. > > > > From architecture, you would put a design document putting algorithms, flow > > of control, detailed interaction, what messages pass how and all those. > > > > Now comes the coding (or actual development). While the development is > > going on, there is a testing (or QA) team which would take your > > architecture and design docs, and translate into tests. they will develop > > their own tests by interacting with development. They need to know "testing > > strategy" from development. That means how do you want to test the product. > > > > I will write some more later... busy now. > > > > > > > > --- On Wed, 8/20/08, Satish Eerpini <[EMAIL PROTECTED]> wrote: > > > >> From: Satish Eerpini <[EMAIL PROTECTED]> > >> Subject: Re: Fwd: patching kdb to Centos kernel : error > >> To: "naidu bollineni" <[EMAIL PROTECTED]> > >> Date: Wednesday, August 20, 2008, 12:14 PM > >> i did not quite understand "testing strategy" , > >> ... once i compile it > >> i should be able to run the kernel on my lappy right , and > >> should be > >> able to initiate kdb right ?? > >> > >> On Thu, Aug 21, 2008 at 12:35 AM, naidu bollineni > >> <[EMAIL PROTECTED]> wrote: > >> > I wonder if kdb_page_flags may cause trouble later. > >> > > >> > I didn't mean KDB CONFIG options would cause > >> integer computation issue. There may be some other > >> (unrelated) option that is affecting. > >> > > >> > BTW, what is the testing strategy? I am not sure if > >> KDB over USB is now working. If not, the only other is using > >> serial(9-pin) port. > >> > > >> > > >> > --- On Wed, 8/20/08, Satish Eerpini > >> <[EMAIL PROTECTED]> wrote: > >> > > >> >> From: Satish Eerpini <[EMAIL PROTECTED]> > >> >> Subject: Re: Fwd: patching kdb to Centos kernel : > >> error > >> >> To: "naidu bollineni" > >> <[EMAIL PROTECTED]> > >> >> Date: Wednesday, August 20, 2008, 11:57 AM > >> >> CONFIG_KDB=y > >> >> CONFIG_KDB_MODULES=y > >> >> # CONFIG_KDB_OFF is not set > >> >> CONFIG_KDB_CONTINUE_CATASTROPHIC=0 > >> >> CONFIG_KDB_USB=y > >> >> > >> >> > >> >> those are all the kdb config options i set , > >> ...... so are > >> >> we looking > >> >> at some other config option which could affect > >> this . ?? > >> >> > >> >> I am not sure why the guy opted for the absence of > >> modules > >> >> , .... even > >> >> i was thinking on this , ... because anyone would > >> prefer to > >> >> add > >> >> functionality through pluggable modules , if it is > >> >> supported as in the > >> >> case ,..... but i don have the knowledge to judge > >> their use > >> >> so i > >> >> actually did not comment on that part !! > >> >> > >> >> and also about commenting the function > >> kdb_page_flags(page, > >> >> Checked); > >> >> i am not sure what the implications for this are , > >> ... i > >> >> just did this > >> >> to remove the error ! > >> >> > >> >> > >> >> > >> >> On 8/21/08, naidu bollineni > >> <[EMAIL PROTECTED]> > >> >> wrote: > >> >> > those undefined symbols are 64-bit integer > >> handling > >> >> calls. not sure if > >> >> > timespec needed it. so, is there another > >> CONFIG option > >> >> that missed out that > >> >> > caused this undefined symbols? may be. > >> >> > > >> >> > BTW, we do need modules support in KDB. why > >> would this > >> >> guy say we dont use > >> >> > it? I did always with modules I had to deal > >> with. > >> >> > > >> >> > > >> >> > > >> >> > --- On Wed, 8/20/08, Satish Eerpini > >> >> <[EMAIL PROTECTED]> wrote: > >> >> > > >> >> >> From: Satish Eerpini > >> <[EMAIL PROTECTED]> > >> >> >> Subject: Fwd: patching kdb to Centos > >> kernel : > >> >> error > >> >> >> To: [EMAIL PROTECTED] > >> >> >> Date: Wednesday, August 20, 2008, 11:14 > >> AM > >> >> >> ---------- Forwarded message ---------- > >> >> >> From: Satish Eerpini > >> <[EMAIL PROTECTED]> > >> >> >> Date: Wed, 20 Aug 2008 23:43:56 +0530 > >> >> >> Subject: Re: patching kdb to Centos > >> kernel : error > >> >> >> To: jidong xiao > >> <[EMAIL PROTECTED]> > >> >> >> Cc: [email protected] > >> >> >> > >> >> >> On 8/18/08, jidong xiao > >> >> <[EMAIL PROTECTED]> > >> >> >> wrote: > >> >> >> > On Mon, Aug 18, 2008 at 3:24 AM, > >> Satish > >> >> Eerpini > >> >> >> <[EMAIL PROTECTED]> wrote: > >> >> >> >> hi everyone , i was trying to > >> patch kdb > >> >> with > >> >> >> CentOS 5.0 kernel > >> >> >> >> (2.6.18-8) , and had a few > >> rejects ( > >> >> which i am > >> >> >> still trying to > >> >> >> >> resolve) ,.... but apart from > >> the rejects > >> >> during > >> >> >> the kernel > >> >> >> >> compilation i got the following > >> error > >> >> which does > >> >> >> not seem to have > >> >> >> >> anything to do with the rejects > >> >> ............ > >> >> >> >> i have got an error in a kdb > >> module, > >> >> which has > >> >> >> nothing to do with the > >> >> >> >> rejected patches ( or so i guess > >> ) : > >> >> >> >> > >> >> >> >> > >> kdb/modules/kdbm_pg.c: In > >> >> function > >> >> >> 'kdbm_show_page': > >> >> >> >> > >> kdb/modules/kdbm_pg.c:349: > >> >> error: > >> >> >> implicit declaration > >> >> >> >> of function > >> 'PageChecked' > >> >> >> >> > >> kdb/modules/kdbm_pg.c: In > >> >> function > >> >> >> 'kdbm_inode': > >> >> >> >> > >> kdb/modules/kdbm_pg.c:507: > >> >> error: > >> >> >> 'struct inode' has no > >> >> >> >> member named 'u' > >> >> >> >> > >> >> >> >> the code(in > >> kdb/modules/kdbm_pg.c) which > >> >> is > >> >> >> causing the second error > >> >> >> >> is something like this : > >> >> >> >> > >> >> >> >> iaddr += > >> offsetof(struct inode, > >> >> u); > >> >> >> >> > >> >> >> >> what i am not able to understand > >> is that > >> >> if > >> >> >> 'u' is not a correct > >> >> >> >> member of the inode , .. then > >> what did > >> >> they( > >> >> >> whoever wrote this piece > >> >> >> >> code) intend by 'u' ? , > >> ..... > >> >> >> >> > >> >> >> >> .... > >> >> >> >> and for the first error , ... i > >> just > >> >> checked out > >> >> >> the code .... > >> >> >> >> according to the line no shown > >> in the > >> >> error > >> >> >> .....the code is : > >> >> >> >> > >> >> >> >> kdb_page_flags(page, > >> Checked); > >> >> >> >> > >> >> >> >> and i don't see any function > >> >> PageChecked ....! > >> >> >> so what can the error > >> >> >> >> actually mean ?? > >> >> >> >> > >> >> >> >> Thanks in advance > >> >> >> >> Satish > >> >> >> >> > >> >> >> >> -- > >> >> >> > Well I think people usually > >> don't use KDB > >> >> modules, > >> >> >> so you can simply > >> >> >> > disable KDB modules by setting > >> >> CONFIG_KDB_MODULES=n. > >> >> >> This can avoid > >> >> >> > the two errors you mentioned. > >> >> >> > > >> >> >> > Regarding your second error, you can > >> replace > >> >> >> "u" with "i_private". > >> >> >> > > >> >> >> > iaddr += offsetof(struct inode, > >> i_private); > >> >> >> > > >> >> >> > As to the first error, you can refer > >> to the > >> >> definition > >> >> >> of > >> >> >> > kdb_page_flags, which explains your > >> question. > >> >> >> > > >> >> >> > #define kdb_page_flags(page, type) > >> if (Page > >> >> ## > >> >> >> type(page)) > >> >> >> > kdb_printf(" " #type); > >> >> >> > > >> >> >> > > >> >> >> > Regards > >> >> >> > Jason > >> >> >> > > >> >> >> > >> >> >> hi jason , > >> >> >> > >> >> >> i have fixed those errors , .... i > >> changed the u > >> >> to > >> >> >> i_private in the > >> >> >> second error and then completely > >> commented out the > >> >> >> following line from > >> >> >> the kdbm_pg.c file : > >> >> >> kdb_page_flags(page, Checked); // on > >> line 349 > >> >> >> this solved the first error about the > >> implicit > >> >> function > >> >> >> declaration , > >> >> >> ... after this the compilation went on > >> fine , .... > >> >> but at > >> >> >> the stage > >> >> >> where the vmlinux file is linked i have > >> some gcc > >> >> specific > >> >> >> errors ( or > >> >> >> so it seems from what i have got on > >> google > >> >> searches ) , > >> >> >> ........ here > >> >> >> is a short part of the errors : > >> >> >> > >> >> >> CHK include/linux/version.h > >> >> >> CHK include/linux/utsrelease.h > >> >> >> CHK include/linux/compile.h > >> >> >> GEN .version > >> >> >> CHK include/linux/compile.h > >> >> >> UPD include/linux/compile.h > >> >> >> CC init/version.o > >> >> >> LD init/built-in.o > >> >> >> LD .tmp_vmlinux1 > >> >> >> kernel/built-in.o: In function > >> >> `timespec_add_ns': > >> >> >> > >> >> > >> /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i386/include/linux/time.h:175: > >> >> >> undefined reference to `__umoddi3' > >> >> >> kernel/built-in.o: In function > >> >> `do_gettimeofday': > >> >> >> > >> >> > >> /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i386/kernel/timer.c:865: > >> >> >> undefined reference to `__udivdi3' > >> >> >> > >> >> > >> /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i386/kernel/timer.c:866: > >> >> >> undefined reference to `__umoddi3' > >> >> >> kernel/built-in.o: In function > >> >> `timespec_add_ns': > >> >> >> > >> >> > >> /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i386/include/linux/time.h:170: > >> >> >> undefined reference to `__udivdi3' > >> >> >> > >> >> > >> /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i386/include/linux/time.h:175: > >> >> >> undefined reference to `__umoddi3' > >> >> >> ^Cmake: *** Deleting file > >> `.tmp_vmlinux1' > >> >> >> make: *** [.tmp_vmlinux1] Interrupt > >> >> >> > >> >> >> can u make anything out of it ? , ... i > >> checked > >> >> both time.h > >> >> >> and > >> >> >> timer.c , something appears to be fussy > >> in struct > >> >> timesoec > >> >> >> , but i am > >> >> >> not proficient enough to see what it is ? > >> >> >> > >> >> >> Thanks > >> >> >> Satish > >> >> >> > >> >> >> -- > >> >> >> http://satish.playdrupal.com > >> >> >> > >> >> >> > >> >> >> > >> >> >> -- > >> >> >> http://satish.playdrupal.com > >> >> > > >> >> > >> >> > >> >> -- > >> >> http://satish.playdrupal.com > >> > > >> > >> > >> > >> -- > >> http://satish.playdrupal.com > > > > > > -- > http://satish.playdrupal.com > -- http://satish.playdrupal.com --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
