From: LAHAYE O. <oli...@ce...> - 2013-02-22 13:58:40
|
Hi Carl, thanks for the tip. In fact, my concern is regarding the kernel we use. If we build kernel 3.7.5 for example and if we run an udevd compiler with kernel heardes 2.6.34, the structures won't match and IMHO (I'm far from being an expert) I think that udevd could crash the kernel, or the kernel could crash udevd... My exact problem is to build udev using the kernel we create, not the kernel headers from the system installed kernel. Once I figure out how to do that, I think all issues will disapear. having kernel-2.6.34.1 build in SystemImager hides this problem as the kernel is built using its own 2.6.34.1 kernel hearder, and udev is built using system installed kernel header V2.6.34.1 which are (in this specific case) the same. So I think that there are 2 coices: 1/ revert back to 2.6.34.1 (and accept that some recent network drivers and other drivers are not available) or 2/ find a way (using patch or specific defines) to build udev using alternative kernel headers. IMHO, I'm for the second version because: 1/ Not all distributions have the same kernel revision. Thus having kernel 2.6.34.1 on centos can be fine, but can be a problem on latest ubuntu which uses a newer kernel thus newer kernel hearder, thus the udev build may fail. 2/ Being independant from system installed kernel headers let us update kernel and udev when new hardware is supported. To achiev the second step, we need to build and install components in the build_dir using make install instead of make "install-exec" so we can use includes in sync whith what we build. Then just before crating the initrd, we can remove the unwanted includes and docs. Of course, this is my humble vision of things, and as I'm not low level system expert, I may be wrong. So If someone think thare is a better option, don't hesitate to write here. Best regards. -- Olivier LAHAYE CEA DRT/LIST/DCSI/DIR ________________________________________ De : Carl Richell [ca...@sy...] Date d'envoi : vendredi 22 février 2013 14:27 À : sis...@li... Objet : Re: [sisuite-users] RE : udev Compile Fails - GitHub Master Branch Hi Oliver, Maybe you've tried this but pushing back to the udev version in centos 6.3 might do the trick. Strange thing is, according to the package list ( http://mirror.centos.org/centos/6.3/os/x86_64/Packages/ ) centos 6 is using version 147 --- but 147 isn't in the list of udev packages hosted at kernel.org (where si downloads the package). http://www.kernel.org/pub/linux/utils/kernel/hotplug/ maybe run "udevd --version" to see exactly what's running on centos. At least you'll know that version has compiled for the os. Cheers, Carl On 02/18/2013 01:41 AM, LAHAYE Olivier wrote: > Hi, > > Unfortunately, under centos-6.3 it still fails with the following error: > CC udev/udev-builtin-input_id.o > udev/udev-builtin-input_id.c: In function ‘test_key’: > udev/udev-builtin-input_id.c:165: erreur: ‘BTN_TRIGGER_HAPPY’ undeclared (first use in this function) > udev/udev-builtin-input_id.c:165: erreur: (Each undeclared identifier is reported only once > udev/udev-builtin-input_id.c:165: erreur: for each function it appears in.) > > The problem is that the file /usr/include/linux/input.h is too old (kernel-headers-2.6.32-279.19.1.el6.x86_64). > there is no include for <uapi/linux/input.h> which contains the definition. > > How Can I force the compiler to find src/linux-3.7.5/include/linux/input.h before /usr/include/linux.h ??? > -I seems not sufficient. Am I wrong? > > Olivier. > -- > Olivier LAHAYE > CEA DRT/LIST/DCSI/DIR > > ________________________________________ > De : Carl Richell [ca...@sy...] > Date d'envoi : dimanche 17 février 2013 17:51 > À : sis...@li... > Objet : Re: [sisuite-users] udev Compile Fails - GitHub Master Branch > > I was able to solve this problem by backing udev to version 175 (the > version in Ubuntu 12.04) > > modify src/initrd_source/make.d/udev.rul > change "UDEV_VERSION = 182" to "UDEV_VERSION = 175" > > Cheers, > > > Carl > > On 02/16/2013 04:23 PM, Carl Richell wrote: >> Hi, and thanks in advance for any help you can provide. >> >> I'm attempting to compile SystemImager from the github master branch >> (https://github.com/finley/SystemImager). Compilation fails at udev >> with this error: >> >> /usr/bin/ld: cannot find >> SystemImager-master/initrd_source/build_dir/lib: File format not >> recognized >> collect2: ld returned 1 exit status >> make[3]: *** [udevadm] Error 1 >> make[3]: *** Waiting for unfinished jobs.... >> >> "SystemImager-master" is the root folder. I'm compiling on Ubuntu >> 12.04 Server. Any ideas? >> >> Thanks! >> >> >> Carl > > ------------------------------------------------------------------------------ > The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, > is your hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials, tech docs, > whitepapers, evaluation guides, and opinion stories. Check out the most > recent posts - join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > sisuite-users mailing list > sis...@li... > https://lists.sourceforge.net/lists/listinfo/sisuite-users > > ------------------------------------------------------------------------------ > The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, > is your hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials, tech docs, > whitepapers, evaluation guides, and opinion stories. Check out the most > recent posts - join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > sisuite-users mailing list > sis...@li... > https://lists.sourceforge.net/lists/listinfo/sisuite-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ sisuite-users mailing list sis...@li... https://lists.sourceforge.net/lists/listinfo/sisuite-users |