Re: Installing glibc-2.21 on debian-8
On Mon, Jul 6, 2015 at 1:20 PM, Arno Schuring aelschur...@hotmail.com wrote: Date: Mon, 6 Jul 2015 08:41:44 +0100 From: zen75...@zen.co.uk On 06/07/15 06:07, Dhiraj Bhor wrote: Also wanted to know which are security bugs reported for glibc-2.19-18. Thanks for being patient. Information about current bugs in Debian packages can be found through the Bug Tracking System at https://bugs.debian.org/ Upstream bug information for GNU libc can be found at https://sourceware.org/bugzilla/ There's also https://security-tracker.debian.org/tracker/source-package/glibc Regards, Arno -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/dub124-w3889e0ba209b984db2aa49b8...@phx.gbl Thanks all for all the links and information. Dhiraj
Re: Installing glibc-2.21 on debian-8
I read from https://wiki.debian.org/DebianExperimental link that installing experimental package will functinaly break the system. I want to know when experimental branch will become stable, Do i get any page where this information already exist? Dhiraj
Re: Installing glibc-2.21 on debian-8
On Mon, Jul 6, 2015 at 10:17 AM, Dhiraj Bhor dhirajbho...@gmail.com wrote: I read from https://wiki.debian.org/DebianExperimental link that installing experimental package will functinaly break the system. I want to know when experimental branch will become stable, Do i get any page where this information already exist? Also wanted to know which are security bugs reported for glibc-2.19-18. Thanks for being patient. Dhiraj
Installing glibc-2.21 on debian-8
Hi, I have debian jessie (8.0) on virtual machine. $] uname -a Linux rdx86-ds7 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) i686 GNU/Linux I need to install latest glibc (libc-2.21) on this machine. My debian currently have libc-2.19 $] ls -lah /lib/i386-linux-gnu/libc.so.6 lrwxrwxrwx 1 root root 12 Apr 14 17:21 /lib/i386-linux-gnu/libc.so.6 - libc-2.19.so I came across some documents and installed following packages as prerequisites: $] apt-get install linux-headers-$(uname -r) $] apt-get install build-essentials After this I have gcc-4.9.2 $] gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-linux-gnu/4.9/lto-wrapper Target: i586-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --with-arch-32=i586 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i586-linux-gnu --host=i586-linux-gnu --target=i586-linux-gnu Thread model: posix gcc version 4.9.2 (Debian 4.9.2-10) $] cd /home/build/ $] wget http://ftp.gnu.org/gnu/glibc/glibc-2.21.tar.xz $] tar xf glibc-2.21.tar.xz $] mkdir glibc-test $] cd glibc-test $] ../glibc-2.21/configure --prefix=/usr configure: error: *** These critical programs are missing or too old: gawk *** Check the INSTALL file for required versions. $] apt-get install gawk $] ../glibc-2.21/configure --prefix=/usr $] echo $? 0 $] make $] echo $? 0 $] make check make subdir=string -C string ..=../ tests make[2]: Entering directory '/home/build/glibc-2.21/string' gcc tester.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Werror -Winline -Wno-error=undef -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -Wa,-mtune=i686 -I../include -I/home/build/glibc-test/string -I/home/build/glibc-test -I../sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/i386/i686/nptl -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/i386/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu/multiarch -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu -I../sysdeps/i386 -I../sysdeps/x86 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include /home/build/glibc-test/libc-modules.h -DMODULE_NAME=nonlib -include ../include/libc-symbols.h -o /home/build/glibc-test/string/tester.o -MD -MP -MF /home/build/glibc-test/string/tester.o.dt -MT /home/build/glibc-test/string/tester.o tester.c: In function ‘test_memset’: tester.c:1313:10: error: ‘memset’ used with constant zero length parameter; this could be due to transposed parameters [-Werror=memset-transposed-args] (void) memset(one+2, 'y', 0); ^ cc1: all warnings being treated as errors ../o-iterator.mk:9: recipe for target '/home/build/glibc-test/string/tester.o' failed make[2]: *** [/home/build/glibc-test/string/tester.o] Error 1 make[2]: Leaving directory '/home/build/glibc-2.21/string' Makefile:213: recipe for target 'string/tests' failed make[1]: *** [string/tests] Error 2 make[1]: Leaving directory '/home/build/glibc-2.21' Makefile:9: recipe for target 'check' failed make: *** [check] Error 2 I found comment#13 on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61294 Similar threads: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56977 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51744 Please correct me if i am wrong I have to install gcc-5.0 or above to install glibc-2.21? Is there no way around? Regards, Dhiraj
Re: Installing glibc-2.21 on debian-8
On Fri, Jul 3, 2015 at 3:12 PM, Sven Hartge s...@svenhartge.de wrote: Dhiraj Bhor dhirajbho...@gmail.com wrote: $] wget http://ftp.gnu.org/gnu/glibc/glibc-2.21.tar.xz $] tar xf glibc-2.21.tar.xz $] mkdir glibc-test $] cd glibc-test $] ../glibc-2.21/configure --prefix=/usr You do know that installing your own glibc over the one supplied by Debian in the same path will most likely destroy your system. If you do this to observe the effects of overwriting the system glibc without proper prepartion, then all is fine. If not, then please describe what you are trying to accomplish. Grüße, Sven. For my work requirement i need to build my project with latest glibc. Yes i do understand that this can crash the system and i read some documents but i am not getting success. I have tried installing with --prefix=$HOME/objdir/ but no success. I have got segmentation fault every time. (and reverted the machine to previous working snapshot and tried again) Dhiraj
Re: Installing glibc-2.21 on debian-8
On Fri, Jul 3, 2015 at 3:31 PM, claude juif claude.j...@gmail.com wrote: Hi, If you really need latest development tools, i suggest you to switch to Fedora 22. (glibc-2.21-5 and gcc 5.1.1). It will be easier and faster than trying to modify glibc stuff in Debian 8. Regards, I would like to but its a requirement and i have to do it. No option. May be if i can patch the glibc with all security patches will be enough for me. Dhiraj
Re: Installing glibc-2.21 on debian-8
On Fri, Jul 3, 2015 at 3:46 PM, Arno Schuring aelschur...@hotmail.com wrote: Date: Fri, 3 Jul 2015 15:37:03 +0530 From: dhirajbho...@gmail.com On Fri, Jul 3, 2015 at 3:31 PM, claude juif claude.j...@gmail.commailto:claude.j...@gmail.com wrote: Hi, If you really need latest development tools, i suggest you to switch to Fedora 22. (glibc-2.21-5 and gcc 5.1.1). It will be easier and faster than trying to modify glibc stuff in Debian 8. Regards, I would like to but its a requirement and i have to do it. No option. May be if i can patch the glibc with all security patches will be enough for me. What exactly is the requirement? That you develop against latest libc or that you deploy with latest libc? Because you mentioning security patches makes me suspect it's the latter, in which case it's a seriously bad idea to build your own. Are you going to subscribe to the CVE lists and rebuild every security patch yourself? Have you factored the ongoing maintenance cost of that in your project? If it's only that your project needs to build against the latest glibc, I recommend you start with an unstable buildroot (man debootstrap), and install your latest libraries in there. You don't even need to develop in the chroot, just develop on your own and run the integration tests in the chroot. Regards, Arno Thanks @Darac. i am new to this, But what i understood is debian system must have glibc which is shipped as with installation media and better i don't mess with it. I will try the experimental branch. @Amo: Your suggestion about ROI is acceptable and thanks for reminding the cost effectiveness for the same.
procps failed with error: redeclaration of enumerator ‘P_PID’
Hi all, I came across following error. *In file included from top.c:56:0:* *top.h:248:4: error: redeclaration of enumerator ‘P_PID’* *P_PID, P_PPD, P_URR, P_UID, P_URE, P_GRP, P_TTY,* *^* I am using debian 8. I need help to resolve this issue. $ tar xvf procps-3.2.7.tar.gz $ cd procps-3.2.7/ $ make cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -MM -MG proc/pwcache.c proc/sig.c proc/alloc.c proc/escape.c proc/version.c proc/slab.c proc/ksym.c proc/sysinfo.c proc/whattime.c proc/devname.c proc/readproc.c proc/.depend cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -c -o uptime.o uptime.c cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/pwcache.c -o proc/pwcache.o cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/sig.c -o proc/sig.o cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/alloc.c -o proc/alloc.o cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/escape.c -o proc/escape.o In file included from proc/escape.h:7:0, from proc/escape.c:15: proc/readproc.h:76:2: warning: padding struct to align ‘start_code’ [-Wpadded] start_code, // stataddress of beginning of code segment ^ proc/escape.c: In function ‘escape_command’: proc/escape.c:184:23: warning: to be safe all intermediate pointers in cast from ‘char ** const’ to ‘const char **’ must be ‘const’ qualified [-Wcast-qual] const char **lc = (const char**)pp-cmdline; ^ cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic -DVERSION=\3\ -DSUBVERSION=\2\ -DMINORVERSION=\7\ -c -o proc/version.o proc/version.c cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/slab.c -o proc/slab.o proc/slab.c:99:1: warning: multi-line comment [-Wcomment] // # nameactive_objs num_objs objsize objperslab pagesperslab \ ^ proc/slab.c:104:1: warning: multi-line comment [-Wcomment] // # nameactive_objs num_objs objsize objperslab pagesperslab \ ^ proc/slab.c:111:1: warning: multi-line comment [-Wcomment] // # nameactive_objs num_objs objsize objperslab pagesperslab \ ^ proc/slab.c:116:1: warning: multi-line comment [-Wcomment] // # nameactive_objs num_objs objsize objperslab pagesperslab \ ^ cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/ksym.c -o proc/ksym.o cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W
Re: make oldconfig bzImage
On Fri, Jun 19, 2015 at 11:14 AM, Ric Moore wayward4...@gmail.com wrote: On 06/19/2015 01:23 AM, Dhiraj Bhor wrote: Hi all, Still no luck so far. Can someone help../ You'll get much more help if you respect the no-top-posting meme of this list. Ric -- My father, Victor Moore (Vic) used to say: There are two Great Sins in the world.the Sin of Ignorance, and the Sin of Stupidity. Only the former may be overcome. R.I.P. Dad. http://linuxcounter.net/user/44256.html -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/5583ac33.30...@gmail.com Ohh excuses for top posting. I read about top and bottom posting. Hope this will help. Dhiraj
Re: Is it possible to install older linux-headers on Debian 8
I am not in position to take first option. I have tried second option but it gave me error like *$ sudo dpkg -i linux-kernel-headers_2.6.18-7_i386.deb* Selecting previously unselected package linux-kernel-headers. dpkg: regarding linux-kernel-headers_2.6.18-7_i386.deb containing linux-kernel-headers: linux-libc-dev:i386 conflicts with linux-kernel-headers linux-kernel-headers (version 2.6.18-7) is to be installed. dpkg: error processing archive linux-kernel-headers_2.6.18-7_i386.deb (--install): conflicting packages - not installing linux-kernel-headers Errors were encountered while processing: linux-kernel-headers_2.6.18-7_i386.deb Googling does not show much help. Do i need to do something else? On Tue, Jun 16, 2015 at 6:52 PM, Reco recovery...@gmail.com wrote: Hi. On Tue, Jun 16, 2015 at 04:57:56PM +0530, Dhiraj Bhor wrote: Hey, Can anyone redirect me to correct link or clue? On Mon, Jun 15, 2015 at 5:10 PM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Hi all, I have one build system which is legacy and i am just compiling the older code on new debian 8 machine. Its a scons build and when i started the build, i got following error. scons: done reading SConscript files. scons: Building targets ... scons: building associated BuildDir targets: OUTPUT/ C++ OUTPUT/MyCppFile.o SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file or directory #include linux/ata.h ^ compilation terminated. scons: *** [OUTPUT/MyCppFile.o] Error 1 scons: building terminated because of errors. Makefile:116: recipe for target 'test' failed make: *** [test] Error 2 I searched on internet but no clue. I have linux-headers installed and here is output: $ dpkg -l | grep linux-headers ii linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1 i386 Header files for Linux 3.16.0-4-686-pae ii linux-headers-3.16.0-4-common 3.16.7-ckt9-3~deb8u1 i386 Common header files for Linux 3.16.0-4 Can someone help in this? linux/ata.h should translate to /usr/include/linux/ata.h, unless scons does some black magic with includes location. /usr/include/linux belongs to linux-libc-dev package, not kernel headers. Since co-installing different versions of linux-libc-dev is not possible in current stable Debian (jessie), you have the following options: 1) Use debootstap to make a chroot of older Debian version (presumably, squeeze or older, as wheezy's linux-libc-dev does not have linux/ata.h). 2) Try to install an old linux-libc-dev (presumably, from squeeze), possibly breaking your current installation beyond repair. Reco -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150616132243.GA11179@x101h
Re: Is it possible to install older linux-headers on Debian 8
One quick question: If ata.h is missing from latest package then which file is replacement for it? May be i need to ask this on libc-help mailing list but asking if anyone knows about it. On Thu, Jun 18, 2015 at 5:01 PM, Dhiraj Bhor dhirajbho...@gmail.com wrote: I am not in position to take first option. I have tried second option but it gave me error like *$ sudo dpkg -i linux-kernel-headers_2.6.18-7_i386.deb* Selecting previously unselected package linux-kernel-headers. dpkg: regarding linux-kernel-headers_2.6.18-7_i386.deb containing linux-kernel-headers: linux-libc-dev:i386 conflicts with linux-kernel-headers linux-kernel-headers (version 2.6.18-7) is to be installed. dpkg: error processing archive linux-kernel-headers_2.6.18-7_i386.deb (--install): conflicting packages - not installing linux-kernel-headers Errors were encountered while processing: linux-kernel-headers_2.6.18-7_i386.deb Googling does not show much help. Do i need to do something else? On Tue, Jun 16, 2015 at 6:52 PM, Reco recovery...@gmail.com wrote: Hi. On Tue, Jun 16, 2015 at 04:57:56PM +0530, Dhiraj Bhor wrote: Hey, Can anyone redirect me to correct link or clue? On Mon, Jun 15, 2015 at 5:10 PM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Hi all, I have one build system which is legacy and i am just compiling the older code on new debian 8 machine. Its a scons build and when i started the build, i got following error. scons: done reading SConscript files. scons: Building targets ... scons: building associated BuildDir targets: OUTPUT/ C++ OUTPUT/MyCppFile.o SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file or directory #include linux/ata.h ^ compilation terminated. scons: *** [OUTPUT/MyCppFile.o] Error 1 scons: building terminated because of errors. Makefile:116: recipe for target 'test' failed make: *** [test] Error 2 I searched on internet but no clue. I have linux-headers installed and here is output: $ dpkg -l | grep linux-headers ii linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1 i386 Header files for Linux 3.16.0-4-686-pae ii linux-headers-3.16.0-4-common 3.16.7-ckt9-3~deb8u1 i386 Common header files for Linux 3.16.0-4 Can someone help in this? linux/ata.h should translate to /usr/include/linux/ata.h, unless scons does some black magic with includes location. /usr/include/linux belongs to linux-libc-dev package, not kernel headers. Since co-installing different versions of linux-libc-dev is not possible in current stable Debian (jessie), you have the following options: 1) Use debootstap to make a chroot of older Debian version (presumably, squeeze or older, as wheezy's linux-libc-dev does not have linux/ata.h). 2) Try to install an old linux-libc-dev (presumably, from squeeze), possibly breaking your current installation beyond repair. Reco -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150616132243.GA11179@x101h
Re: make oldconfig bzImage
Hi all, Still no luck so far. Can someone help../ Regards, Dhiraj On Mon, Jun 15, 2015 at 10:53 AM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Hi all, I mistakenly replied to only Tomas and not CC'ed the debian-user list in my last mail so forwarding to wider audience. If anyone having solution to this, please jump in. Would be delighted to hear any suggestions. Regards, Dhiraj On Sat, Jun 13, 2015 at 9:25 PM, to...@tuxteam.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jun 08, 2015 at 04:02:40PM +0530, Dhiraj Bhor wrote: I have done following $ apt-get remove module-init-tools $ apt-get install module-init-tools But this error is appearing again. I have 3 questions: 1. Should i really care about below warning $ make modules_install INSTALL_MOD_PATH=/home/build/output *Warning: you may need to install module-init-tools* *See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt* This sounds harmless -- if you have the corresponding package installed (which I remember you wrote). 2.What is significance of directory $* ls -lah ~/output/lib/modules/2.6.32/* total 492K drwxr-xr-x 3 build build 4.0K Jun 8 09:52 . drwxr-xr-x 3 build build 4.0K Jun 8 09:52 .. lrwxrwxrwx 1 build build 32 Jun 8 09:52 build - /home/build/linux-2.6.32-358.el6 drwxr-xr-x 7 build build 4.0K Jun 8 09:52 kernel -rw-r--r-- 1 build build 151K Jun 8 09:52 modules.alias -rw-r--r-- 1 build build 130K Jun 8 09:52 modules.alias.bin -rw-r--r-- 1 build build0 Jun 8 09:52 modules.builtin.bin -rw-r--r-- 1 build build 16K Jun 8 09:52 modules.dep -rw-r--r-- 1 build build 28K Jun 8 09:52 modules.dep.bin -rw-r--r-- 1 build build 52 Jun 8 09:52 modules.devname -rw-r--r-- 1 build build 8.9K Jun 8 09:52 modules.order -rw-r--r-- 1 build build 55 Jun 8 09:52 modules.softdep -rw-r--r-- 1 build build 57K Jun 8 09:52 modules.symbols -rw-r--r-- 1 build build 71K Jun 8 09:52 modules.symbols.bin lrwxrwxrwx 1 build build 32 Jun 8 09:52 source - /home/build/linux-2.6.32-358.el6 AFAIK (but take with a grain of salt) the kernel needs those to know which modules to load dynamically when it sees new hardware (mostly via the udev mechanism) -- or when you, for example, request new features (e.g. a new filesystem). 3. Should i care about this warning at the end * INSTALL /home/build/output/lib/firmware/iwlwifi-6000g2b-6.ucode* * DEPMOD 2.6.32* *depmod: WARNING: could not open /home/build/output/lib/modules/2.6.32/modules.builtin: No such file or directory* Hmm. This file is conspicuously missing in the list you gave above. On my system there is one (and besides, your modules.builtin.bin has zero bytes). I guess that it isn't being made during the kernel build process. Duckducking around gives no clear picture -- some suggest just generating an empty modules.builtin (with touch), but I have no idea whether this gets you into hot water later. You should take it to the list, instead of responding personally to me, perhaps someone more knowledgeable than me would chime in? Regards - -- tomás -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlV8UnkACgkQBcgs9XrR2kYPGQCfWEiXaKpX528LCb+pRODW38SV qFsAn00eqUeduq/lKOlyoKdiT+AmFEfZ =Qt9l -END PGP SIGNATURE-
Re: Is it possible to install older linux-headers on Debian 8
Hey, Can anyone redirect me to correct link or clue? On Mon, Jun 15, 2015 at 5:10 PM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Hi all, I have one build system which is legacy and i am just compiling the older code on new debian 8 machine. Its a scons build and when i started the build, i got following error. scons: done reading SConscript files. scons: Building targets ... scons: building associated BuildDir targets: OUTPUT/ C++ OUTPUT/MyCppFile.o SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file or directory #include linux/ata.h ^ compilation terminated. scons: *** [OUTPUT/MyCppFile.o] Error 1 scons: building terminated because of errors. Makefile:116: recipe for target 'test' failed make: *** [test] Error 2 I searched on internet but no clue. I have linux-headers installed and here is output: $ dpkg -l | grep linux-headers ii linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1 i386 Header files for Linux 3.16.0-4-686-pae ii linux-headers-3.16.0-4-common 3.16.7-ckt9-3~deb8u1 i386 Common header files for Linux 3.16.0-4 Can someone help in this? Thanks, Dhiraj
Is it possible to install older linux-headers on Debian 8
Hi all, I have one build system which is legacy and i am just compiling the older code on new debian 8 machine. Its a scons build and when i started the build, i got following error. scons: done reading SConscript files. scons: Building targets ... scons: building associated BuildDir targets: OUTPUT/ C++ OUTPUT/MyCppFile.o SOURCE/MyCppFile.cpp:35:23: fatal error: linux/ata.h: No such file or directory #include linux/ata.h ^ compilation terminated. scons: *** [OUTPUT/MyCppFile.o] Error 1 scons: building terminated because of errors. Makefile:116: recipe for target 'test' failed make: *** [test] Error 2 I searched on internet but no clue. I have linux-headers installed and here is output: $ dpkg -l | grep linux-headers ii linux-headers-3.16.0-4-686-pae 3.16.7-ckt9-3~deb8u1 i386 Header files for Linux 3.16.0-4-686-pae ii linux-headers-3.16.0-4-common 3.16.7-ckt9-3~deb8u1 i386 Common header files for Linux 3.16.0-4 Can someone help in this? Thanks, Dhiraj
Re: make oldconfig bzImage
Hi all, I mistakenly replied to only Tomas and not CC'ed the debian-user list in my last mail so forwarding to wider audience. If anyone having solution to this, please jump in. Would be delighted to hear any suggestions. Regards, Dhiraj On Sat, Jun 13, 2015 at 9:25 PM, to...@tuxteam.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jun 08, 2015 at 04:02:40PM +0530, Dhiraj Bhor wrote: I have done following $ apt-get remove module-init-tools $ apt-get install module-init-tools But this error is appearing again. I have 3 questions: 1. Should i really care about below warning $ make modules_install INSTALL_MOD_PATH=/home/build/output *Warning: you may need to install module-init-tools* *See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt* This sounds harmless -- if you have the corresponding package installed (which I remember you wrote). 2.What is significance of directory $* ls -lah ~/output/lib/modules/2.6.32/* total 492K drwxr-xr-x 3 build build 4.0K Jun 8 09:52 . drwxr-xr-x 3 build build 4.0K Jun 8 09:52 .. lrwxrwxrwx 1 build build 32 Jun 8 09:52 build - /home/build/linux-2.6.32-358.el6 drwxr-xr-x 7 build build 4.0K Jun 8 09:52 kernel -rw-r--r-- 1 build build 151K Jun 8 09:52 modules.alias -rw-r--r-- 1 build build 130K Jun 8 09:52 modules.alias.bin -rw-r--r-- 1 build build0 Jun 8 09:52 modules.builtin.bin -rw-r--r-- 1 build build 16K Jun 8 09:52 modules.dep -rw-r--r-- 1 build build 28K Jun 8 09:52 modules.dep.bin -rw-r--r-- 1 build build 52 Jun 8 09:52 modules.devname -rw-r--r-- 1 build build 8.9K Jun 8 09:52 modules.order -rw-r--r-- 1 build build 55 Jun 8 09:52 modules.softdep -rw-r--r-- 1 build build 57K Jun 8 09:52 modules.symbols -rw-r--r-- 1 build build 71K Jun 8 09:52 modules.symbols.bin lrwxrwxrwx 1 build build 32 Jun 8 09:52 source - /home/build/linux-2.6.32-358.el6 AFAIK (but take with a grain of salt) the kernel needs those to know which modules to load dynamically when it sees new hardware (mostly via the udev mechanism) -- or when you, for example, request new features (e.g. a new filesystem). 3. Should i care about this warning at the end * INSTALL /home/build/output/lib/firmware/iwlwifi-6000g2b-6.ucode* * DEPMOD 2.6.32* *depmod: WARNING: could not open /home/build/output/lib/modules/2.6.32/modules.builtin: No such file or directory* Hmm. This file is conspicuously missing in the list you gave above. On my system there is one (and besides, your modules.builtin.bin has zero bytes). I guess that it isn't being made during the kernel build process. Duckducking around gives no clear picture -- some suggest just generating an empty modules.builtin (with touch), but I have no idea whether this gets you into hot water later. You should take it to the list, instead of responding personally to me, perhaps someone more knowledgeable than me would chime in? Regards - -- tomás -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlV8UnkACgkQBcgs9XrR2kYPGQCfWEiXaKpX528LCb+pRODW38SV qFsAn00eqUeduq/lKOlyoKdiT+AmFEfZ =Qt9l -END PGP SIGNATURE-
Re: make oldconfig bzImage
I searched and still no root cause found for this. May someone in list can give some pointers on these question. On Mon, Jun 8, 2015 at 4:02 PM, Dhiraj Bhor dhirajbho...@gmail.com wrote: I have done following $ apt-get remove module-init-tools $ apt-get install module-init-tools But this error is appearing again. I have 3 questions: 1. Should i really care about below warning $ make modules_install INSTALL_MOD_PATH=/home/build/output *Warning: you may need to install module-init-tools* *See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt* 2.What is significance of directory $* ls -lah ~/output/lib/modules/2.6.32/* total 492K drwxr-xr-x 3 build build 4.0K Jun 8 09:52 . drwxr-xr-x 3 build build 4.0K Jun 8 09:52 .. lrwxrwxrwx 1 build build 32 Jun 8 09:52 build - /home/build/linux-2.6.32-358.el6 drwxr-xr-x 7 build build 4.0K Jun 8 09:52 kernel -rw-r--r-- 1 build build 151K Jun 8 09:52 modules.alias -rw-r--r-- 1 build build 130K Jun 8 09:52 modules.alias.bin -rw-r--r-- 1 build build0 Jun 8 09:52 modules.builtin.bin -rw-r--r-- 1 build build 16K Jun 8 09:52 modules.dep -rw-r--r-- 1 build build 28K Jun 8 09:52 modules.dep.bin -rw-r--r-- 1 build build 52 Jun 8 09:52 modules.devname -rw-r--r-- 1 build build 8.9K Jun 8 09:52 modules.order -rw-r--r-- 1 build build 55 Jun 8 09:52 modules.softdep -rw-r--r-- 1 build build 57K Jun 8 09:52 modules.symbols -rw-r--r-- 1 build build 71K Jun 8 09:52 modules.symbols.bin lrwxrwxrwx 1 build build 32 Jun 8 09:52 source - /home/build/linux-2.6.32-358.el6 3. Should i care about this warning at the end * INSTALL /home/build/output/lib/firmware/iwlwifi-6000g2b-6.ucode* * DEPMOD 2.6.32* *depmod: WARNING: could not open /home/build/output/lib/modules/2.6.32/modules.builtin: No such file or directory* On Mon, Jun 8, 2015 at 2:30 PM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Thanks for your reply. i was about to uninstall the module-init-tools. I will post on this thread the finding i will get. On Mon, Jun 8, 2015 at 2:16 PM, to...@tuxteam.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jun 08, 2015 at 11:57:58AM +0530, Dhiraj Bhor wrote: Do you have any clue about this. I really messed it up. [...] # which kmod /bin/kmod Given this, I can't explain the compile error (well, strictly speaking one could come up with possibilities, but that would be pure speculation at this stage). Perhaps retry the compile? regards - -- t -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlV1VnUACgkQBcgs9XrR2kZN4gCfb8eVBoVNqFB00YCFwepjBnui +B8AnAkeIdokKbsW4fUaGV2F+BTobsXN =Slww -END PGP SIGNATURE-
Re: make oldconfig bzImage
/firmware/radeon/RV770_me.bin INSTALL /home/build/output//lib/firmware/radeon/RV730_pfp.bin INSTALL /home/build/output//lib/firmware/radeon/RV730_me.bin INSTALL /home/build/output//lib/firmware/radeon/RV710_pfp.bin INSTALL /home/build/output//lib/firmware/radeon/RV710_me.bin MKDIR /home/build/output//lib/firmware/e100/ INSTALL /home/build/output//lib/firmware/e100/d101m_ucode.bin INSTALL /home/build/output//lib/firmware/e100/d101s_ucode.bin INSTALL /home/build/output//lib/firmware/e100/d102e_ucode.bin INSTALL /home/build/output//lib/firmware/phanfw-4.0.550.bin INSTALL /home/build/output//lib/firmware/phanfw-4.0.579.bin INSTALL /home/build/output//lib/firmware/phanfw-4.0.588.bin INSTALL /home/build/output//lib/firmware/myri10ge_eth_z8e.dat INSTALL /home/build/output//lib/firmware/myri10ge_ethp_z8e.dat INSTALL /home/build/output//lib/firmware/myri10ge_rss_eth_z8e.dat INSTALL /home/build/output//lib/firmware/myri10ge_rss_ethp_z8e.dat MKDIR /home/build/output//lib/firmware/qlogic/ INSTALL /home/build/output//lib/firmware/qlogic/1040.bin INSTALL /home/build/output//lib/firmware/qlogic/1280.bin INSTALL /home/build/output//lib/firmware/qlogic/12160.bin MKDIR /home/build/output//lib/firmware/tigon/ INSTALL /home/build/output//lib/firmware/tigon/tg3.bin INSTALL /home/build/output//lib/firmware/tigon/tg3_tso.bin INSTALL /home/build/output//lib/firmware/tigon/tg3_tso5.bin MKDIR /home/build/output//lib/firmware/3com/ INSTALL /home/build/output//lib/firmware/3com/typhoon.bin MKDIR /home/build/output//lib/firmware/kaweth/ INSTALL /home/build/output//lib/firmware/kaweth/new_code.bin INSTALL /home/build/output//lib/firmware/kaweth/trigger_code.bin INSTALL /home/build/output//lib/firmware/kaweth/new_code_fix.bin INSTALL /home/build/output//lib/firmware/kaweth/trigger_code_fix.bin INSTALL /home/build/output//lib/firmware/iwlwifi-105-6.ucode INSTALL /home/build/output//lib/firmware/iwlwifi-135-6.ucode INSTALL /home/build/output//lib/firmware/iwlwifi-2000-6.ucode INSTALL /home/build/output//lib/firmware/iwlwifi-2030-6.ucode INSTALL /home/build/output//lib/firmware/iwlwifi-6000g2a-6.ucode INSTALL /home/build/output//lib/firmware/iwlwifi-6000g2b-6.ucode DEPMOD 2.6.32 *depmod: WARNING: could not open /home/build/output//lib/modules/2.6.32/modules.builtin: No such file or directory* The contents of */home/build/output//lib/modules/2.6.32 *are $ ls -lah /home/build/output//lib/modules/2.6.32 total 492K drwxr-xr-x 3 build build 4.0K Jun 5 05:16 . drwxr-xr-x 3 build build 4.0K Jun 5 05:16 .. lrwxrwxrwx 1 build build 32 Jun 5 05:16 build - /home/build/linux-2.6.32-358.el6 drwxr-xr-x 7 build build 4.0K Jun 5 05:16 kernel -rw-r--r-- 1 build build 151K Jun 5 05:16 modules.alias -rw-r--r-- 1 build build 130K Jun 5 05:16 modules.alias.bin -rw-r--r-- 1 build build*0 *Jun 5 05:16 *modules.builtin.bin* -rw-r--r-- 1 build build 16K Jun 5 05:16 modules.dep -rw-r--r-- 1 build build 28K Jun 5 05:16 modules.dep.bin -rw-r--r-- 1 build build 52 Jun 5 05:16 modules.devname -rw-r--r-- 1 build build 8.9K Jun 5 05:16 modules.order -rw-r--r-- 1 build build 55 Jun 5 05:16 modules.softdep -rw-r--r-- 1 build build 57K Jun 5 05:16 modules.symbols -rw-r--r-- 1 build build 71K Jun 5 05:16 modules.symbols.bin lrwxrwxrwx 1 build build 32 Jun 5 05:16 source - /home/build/linux-2.6.32-358.el6 NOTE here that *modules.builtin.bin is of zero size* I have tried depmod -a command on $ /output/lib/modules$ depmod -a 2.6.32/ -bash: depmod: command not found When i searched this, i found that kernel Makefile has DEPMOD = /sbin/depmod which is not present on my system. Also i referred https://bbs.archlinux.org/viewtopic.php?id=135851 and created symlink from /sbin/depmod - /bin/kmod but not working. $ ls -l /sbin/depmod lrwxrwxrwx 1 root root 9 Sep 27 2014 /sbin/depmod - /bin/kmod $ uname -a Linux build 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) i686 GNU/Linux it is Debian 8 -Jessie Suggestions are welcome. On Sat, May 23, 2015 at 10:22 AM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Hey Tom, Thanks for it. i just applied it and resolved some other issues. Now i am able to compile the kernel 2.6.32 with gcc 4.9.2 Here are some findings i want to share: ERROR 1: linux-2.6.32-358.el6$ *make bzImage* *scripts/kconfig/conf -s arch/x86/Kconfig* * CHK include/linux/version.h* * CHK include/linux/utsrelease.h* * SYMLINK include/asm - include/asm-x86* * CC kernel/bounds.s* *...* *...* *...* * LD arch/x86/mm/built-in.o* * LDS arch/x86/vdso/vdso32/vdso32.lds* * AS arch/x86/vdso/vdso32/note.o* * AS arch/x86/vdso/vdso32/int80.o* * VDSOarch/x86/vdso/vdso32-int80.so.dbg* *gcc: error: elf_i386: No such file or directory* *gcc: error: unrecognized command line option ‘-m’* */home/build/dhirajtest/linux-2.6.32-358.el6/arch/x86/vdso/Makefile:94: recipe for target 'arch/x86/vdso
Re: make oldconfig bzImage
Here is apt-file output. $ *apt-file search depmod* kmod: /sbin/depmod kmod: /usr/share/man/man5/depmod.d.5.gz kmod: /usr/share/man/man8/depmod.8.gz linux-kbuild-3.16: /usr/lib/linux-kbuild-3.16/scripts/depmod.sh manpages-hu: /usr/share/man/hu/man8/depmod.8.gz manpages-ja: /usr/share/man/ja/man8/depmod.8.gz manpages-pl: /usr/share/man/pl/man8/depmod.8.gz On Fri, Jun 5, 2015 at 2:48 PM, to...@tuxteam.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jun 05, 2015 at 02:17:04PM +0530, Dhiraj Bhor wrote: Hi, I have done the compilation but i saw one warning during make modules_install command Here is it. $ make modules_install INSTALL_MOD_PATH=~/output/ *Warning: you may need to install module-init-tools* *See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt* this above is the giveaway. [...] NOTE here that *modules.builtin.bin is of zero size* I have tried depmod -a command on $ /output/lib/modules$ depmod -a 2.6.32/ -bash: depmod: command not found When i searched this, i found that kernel Makefile has DEPMOD = /sbin/depmod which is not present on my system. Exactly. You'll have to install module-init-tools, which in Jessie (sorry, no Jessie around here) is spelt, I believe kmod (to keep us awake, I guess ;-) So search (either via http://packages.debian.org/, or if you have the package apt-file installed, with apt-file search depmod and find out which package provides that (my hunch is that will be kmod). HTH - -- t -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlVxaXEACgkQBcgs9XrR2kb/HgCePeKOCySD5ECjZSyTfAV5gaDo nq0AoIDRwbYNVippuQFXQNNWOh43AoOj =OTcN -END PGP SIGNATURE-
Re: make oldconfig bzImage
It is already at newest version as per following: # sudo apt-get install kmod Reading package lists... Done Building dependency tree Reading state information... Done kmod is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. # dpkg -l | grep kmod ii kmod 18-3 i386 tools for managing Linux kernel modules ii libkmod2:i386 18-3 i386 libkmod shared library ii module-init-tools 18-3 all transitional dummy package (module-init-tools to kmod) # which kmod /bin/kmod On Fri, Jun 5, 2015 at 3:26 PM, to...@tuxteam.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jun 05, 2015 at 03:23:40PM +0530, Dhiraj Bhor wrote: Here is apt-file output. $ *apt-file search depmod* kmod: /sbin/depmod kmod: /usr/share/man/man5/depmod.d.5.gz kmod: /usr/share/man/man8/depmod.8.gz linux-kbuild-3.16: /usr/lib/linux-kbuild-3.16/scripts/depmod.sh manpages-hu: /usr/share/man/hu/man8/depmod.8.gz manpages-ja: /usr/share/man/ja/man8/depmod.8.gz manpages-pl: /usr/share/man/pl/man8/depmod.8.gz Yes. So installing the package kmod might get you a step further: sudo apt-get install kmod regards - -- tomás -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlVxckgACgkQBcgs9XrR2kZBnwCfapLNScoI2c2lgGuBOfn0zwck sUcAn36Nj3ne2xHTFhM+NBsoz1K/Prj4 =kitR -END PGP SIGNATURE-
Re: make oldconfig bzImage with GCC 4.9.2 on debian 8
Is there any clue to proceed with this query? On Fri, May 29, 2015 at 9:54 AM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Can anyone help me out. On Thu, May 28, 2015 at 12:47 PM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Hi Sven, I applied the patch suggested but it did not worked for me. I wanted to let you know that i am compiling kernel version 2.6.20 and given link has patch applicable for 2.6.27 which is not working for me. When i applied the patch, i got following error: * CC kernel/capability.o* * CC kernel/ptrace.o* *In file included from kernel/ptrace.c:16:0:* *include/linux/pagemap.h: In function ‘fault_in_pages_readable’:* *include/linux/pagemap.h:222:16: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]* * volatile char c;* *^* * CC kernel/timer.o* *In file included from include/asm/current.h:4:0,* * from include/linux/capability.h:46,* * from include/linux/sched.h:46,* * from include/asm/irq.h:13,* * from include/linux/kernel_stat.h:4,* * from kernel/timer.c:22:* *include/asm/irq_regs.h: In function ‘set_irq_regs’:* *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]* * if (0) { T__ tmp__; tmp__ = (val); } \* *^* *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* * #define write_pda(field,val) pda_to_op(mov,field,val)* * ^* *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* * write_pda(irq_regs, new_regs);* * ^* * CC kernel/user.o* *In file included from include/asm/current.h:4:0,* * from include/linux/capability.h:46,* * from include/linux/sched.h:46,* * from kernel/user.c:12:* *include/asm/irq_regs.h: In function ‘set_irq_regs’:* *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]* * if (0) { T__ tmp__; tmp__ = (val); } \* *^* *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* * #define write_pda(field,val) pda_to_op(mov,field,val)* * ^* *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* * write_pda(irq_regs, new_regs);* * ^* * CC kernel/signal.o* * CC kernel/sys.o* * CC kernel/kmod.o* *kernel/kmod.c: In function ‘call_usermodehelper’:* *kernel/kmod.c:134:28: warning: variable ‘old_session’ set but not used [-Wunused-but-set-variable]* * struct key *new_session, *old_session;* *^* *kernel/kmod.c:134:14: warning: variable ‘new_session’ set but not used [-Wunused-but-set-variable]* * struct key *new_session, *old_session;* * ^* * CC kernel/workqueue.o* *In file included from include/asm/current.h:4:0,* * from include/linux/capability.h:46,* * from include/linux/sched.h:46,* * from include/linux/utsname.h:35,* * from include/asm/elf.h:12,* * from include/linux/elf.h:7,* * from include/linux/module.h:15,* * from kernel/workqueue.c:19:* *include/asm/irq_regs.h: In function ‘set_irq_regs’:* *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]* * if (0) { T__ tmp__; tmp__ = (val); } \* *^* *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* * #define write_pda(field,val) pda_to_op(mov,field,val)* * ^* *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* * write_pda(irq_regs, new_regs);* * ^* * CC kernel/pid.o* * CC kernel/rcupdate.o* *In file included from include/asm/current.h:4:0,* * from include/linux/wait.h:26,* * from include/linux/mmzone.h:9,* * from include/linux/gfp.h:4,* * from include/linux/slab.h:14,* * from include/linux/percpu.h:5,* * from include/linux/rcupdate.h:41,* * from kernel/rcupdate.c:38:* *include/asm/irq_regs.h: In function ‘set_irq_regs’:* *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]* * if (0) { T__ tmp__; tmp__ = (val); } \* *^* *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* * #define write_pda(field,val) pda_to_op(mov,field,val)* * ^* *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* * write_pda(irq_regs, new_regs);* * ^* * CC kernel/extable.o* * CC kernel/params.o* * CC kernel/posix-timers.o* *In file included from include/asm/current.h:4:0,* * from include/linux/capability.h:46,* * from include
Re: make oldconfig bzImage with GCC 4.9.2 on debian 8
Can anyone help me out. On Thu, May 28, 2015 at 12:47 PM, Dhiraj Bhor dhirajbho...@gmail.com wrote: Hi Sven, I applied the patch suggested but it did not worked for me. I wanted to let you know that i am compiling kernel version 2.6.20 and given link has patch applicable for 2.6.27 which is not working for me. When i applied the patch, i got following error: * CC kernel/capability.o* * CC kernel/ptrace.o* *In file included from kernel/ptrace.c:16:0:* *include/linux/pagemap.h: In function ‘fault_in_pages_readable’:* *include/linux/pagemap.h:222:16: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]* * volatile char c;* *^* * CC kernel/timer.o* *In file included from include/asm/current.h:4:0,* * from include/linux/capability.h:46,* * from include/linux/sched.h:46,* * from include/asm/irq.h:13,* * from include/linux/kernel_stat.h:4,* * from kernel/timer.c:22:* *include/asm/irq_regs.h: In function ‘set_irq_regs’:* *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]* * if (0) { T__ tmp__; tmp__ = (val); } \* *^* *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* * #define write_pda(field,val) pda_to_op(mov,field,val)* * ^* *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* * write_pda(irq_regs, new_regs);* * ^* * CC kernel/user.o* *In file included from include/asm/current.h:4:0,* * from include/linux/capability.h:46,* * from include/linux/sched.h:46,* * from kernel/user.c:12:* *include/asm/irq_regs.h: In function ‘set_irq_regs’:* *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]* * if (0) { T__ tmp__; tmp__ = (val); } \* *^* *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* * #define write_pda(field,val) pda_to_op(mov,field,val)* * ^* *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* * write_pda(irq_regs, new_regs);* * ^* * CC kernel/signal.o* * CC kernel/sys.o* * CC kernel/kmod.o* *kernel/kmod.c: In function ‘call_usermodehelper’:* *kernel/kmod.c:134:28: warning: variable ‘old_session’ set but not used [-Wunused-but-set-variable]* * struct key *new_session, *old_session;* *^* *kernel/kmod.c:134:14: warning: variable ‘new_session’ set but not used [-Wunused-but-set-variable]* * struct key *new_session, *old_session;* * ^* * CC kernel/workqueue.o* *In file included from include/asm/current.h:4:0,* * from include/linux/capability.h:46,* * from include/linux/sched.h:46,* * from include/linux/utsname.h:35,* * from include/asm/elf.h:12,* * from include/linux/elf.h:7,* * from include/linux/module.h:15,* * from kernel/workqueue.c:19:* *include/asm/irq_regs.h: In function ‘set_irq_regs’:* *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]* * if (0) { T__ tmp__; tmp__ = (val); } \* *^* *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* * #define write_pda(field,val) pda_to_op(mov,field,val)* * ^* *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* * write_pda(irq_regs, new_regs);* * ^* * CC kernel/pid.o* * CC kernel/rcupdate.o* *In file included from include/asm/current.h:4:0,* * from include/linux/wait.h:26,* * from include/linux/mmzone.h:9,* * from include/linux/gfp.h:4,* * from include/linux/slab.h:14,* * from include/linux/percpu.h:5,* * from include/linux/rcupdate.h:41,* * from kernel/rcupdate.c:38:* *include/asm/irq_regs.h: In function ‘set_irq_regs’:* *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]* * if (0) { T__ tmp__; tmp__ = (val); } \* *^* *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* * #define write_pda(field,val) pda_to_op(mov,field,val)* * ^* *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* * write_pda(irq_regs, new_regs);* * ^* * CC kernel/extable.o* * CC kernel/params.o* * CC kernel/posix-timers.o* *In file included from include/asm/current.h:4:0,* * from include/linux/capability.h:46,* * from include/linux/sched.h:46,* * from include/linux/mm.h:4,* * from kernel/posix-timers.c:33:* *include
make oldconfig bzImage with GCC 4.9.2 on debian 8
Hi all, I am compiling https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2 I have gcc 4.9.2 installed on my Debbian 8.0. I have compiled linux-kernel-2.6.32 on this box. Somebody may point out that this is old version and i do not waste time in compile but this is requirement and i have to do it. Currently i have applied following patches to this kernel: *diff -Narup linux-2.6.20-orig/arch/i386/boot/compressed/misc.c linux-2.6.20/arch/i386/boot/compressed/misc.c* *--- linux-2.6.20-orig/arch/i386/boot/compressed/misc.c 2007-02-04 11:44:54.0 -0700* *+++ linux-2.6.20/arch/i386/boot/compressed/misc.c 2007-02-09 12:04:46.0 -0700* *@@ -372,8 +372,8 @@ asmlinkage void decompress_kernel(void ** * #endif* * makecrc();* *- putstr(Uncompressing Linux... );* *+ putstr(Starting... );* * gunzip();* *- putstr(Ok, booting the kernel.\n);* *+ //putstr(Ok, booting the kernel.\n);* * return;* * }* *diff -Narup linux-2.6.20-orig/kernel/printk.c linux-2.6.20/kernel/printk.c* *--- linux-2.6.20-orig/kernel/printk.c 2007-02-04 11:44:54.0 -0700* *+++ linux-2.6.20/kernel/printk.c 2007-02-09 12:04:24.0 -0700* *@@ -115,6 +115,8 @@ static int preferred_console = -1;* * /* Flag: console code may call schedule() */* * static int console_may_schedule;* *+static int printk_dots = 1;* *+* * #ifdef CONFIG_PRINTK* * static char __log_buf[__LOG_BUF_LEN];* *@@ -122,6 +124,14 @@ static char *log_buf = __log_buf;* * static int log_buf_len = __LOG_BUF_LEN;* * static unsigned long logged_chars; /* Number of chars produced since last read+clear operation */* *+static int __init printk_dots_setup(char *str)* *+{* *+printk_dots = simple_strtoul(str, NULL, 10);* *+return 1;* *+}* *+* *+__setup(printk_dots=, printk_dots_setup);* *+* * static int __init log_buf_len_setup(char *str)* * {* * unsigned long size = memparse(str, str);* *@@ -359,7 +369,16 @@ static void _call_console_drivers(unsign* * log_buf_len);* * __call_console_drivers(0, end LOG_BUF_MASK);* * } else {* *- __call_console_drivers(start, end);* *+ if (msg_log_level = 2 /* KERN_CRIT, KERN_ALERT, KERN_EMERG */* *+|| printk_dots == 0) {* *+ __call_console_drivers(start, end);* *+ }* *+ else {* *+ char orig = LOG_BUF(start);* *+ LOG_BUF(start) = '.';* *+ __call_console_drivers(start, start + 1);* *+ LOG_BUF(start) = orig;* *+ }* * }* * }* * }* *Index: linux-2.6.20.4/Makefile* *===* *--- linux-2.6.20.4.orig/Makefile* *+++ linux-2.6.20.4/Makefile* *@@ -412,10 +412,12 @@ ifeq ($(config-targets),1)* * include $(srctree)/arch/$(ARCH)/Makefile* * export KBUILD_DEFCONFIG* *-config %config: scripts_basic outputmakefile FORCE* *+config: scripts_basic outputmakefile FORCE* *+ $(Q)mkdir -p include/linux include/config* *+ $(Q)$(MAKE) $(build)=scripts/kconfig $@* *+%config: scripts_basic outputmakefile FORCE* * $(Q)mkdir -p include/linux include/config* * $(Q)$(MAKE) $(build)=scripts/kconfig $@* *-* * else* * # ===* * # Build targets only - this includes vmlinux, arch specific targets, clean* *@@ -1439,7 +1441,7 @@ endif* * $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)* * # Modules* *-/ %/: prepare scripts FORCE* *+/: prepare scripts FORCE* * $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \* * $(build)=$(build-dir)* * %.ko: prepare scripts FORCE* *Index: linux-2.6.20.4/scripts/mod/sumversion.c* *===* *--- linux-2.6.20.4.orig/scripts/mod/sumversion.c* *+++ linux-2.6.20.4/scripts/mod/sumversion.c* *@@ -8,6 +8,7 @@* * #include errno.h* * #include string.h* * #include modpost.h* *+#include linux/limits.h* * /** * * Stolen form Cryptographic API.* *--- ../linux/arch/i386/kernel/Makefile 2007-03-23 13:52:51.0 -0600* *+++ arch/i386/kernel/Makefile 2015-05-26 08:54:54.206372389 -0600* *@@ -56,7 +56,7 @@* * # The DSO images are built using a special linker script.* * quiet_cmd_syscall = SYSCALL $@* *- cmd_syscall = $(CC) -m elf_i386 -nostdlib $(SYSCFLAGS_$(@F)) \* *+ cmd_syscall = $(CC) -m32 -nostdlib $(SYSCFLAGS_$(@F)) \* * -Wl,-T,$(filter-out FORCE,$^) -o $@* * export CPPFLAGS_vsyscall.lds += -P -C -U$(ARCH)* After this i got some error while make bzImage as follows: * LD arch/i386/lib/built-in.o* * CC arch/i386/lib/bitops.o* * AS arch/i386/lib/checksum.o* * CC arch/i386/lib/delay.o* * AS arch/i386/lib/getuser.o* * CC arch/i386/lib/memcpy.o* * AS arch/i386/lib/putuser.o* * AS arch/i386/lib/semaphore.o* * CC arch/i386/lib/strstr.o* * CC arch/i386/lib/usercopy.o* *In file included from include/linux/blkdev.h:10:0,* * from arch/i386/lib/usercopy.c:10:* *include/linux/pagemap.h: In function ‘fault_in_pages_readable’:* *include/linux/pagemap.h:222:16: warning: variable ‘c’ set but not used
make oldconfig bzImage fails under GCC-4.9.2 on debian-8.0
Hi, I am compiling the linux kernel 2.6.32 with my custom config file as input. I am using gcc-4.9.2 on Debian-8.0. I am getting following error. build@bd:~/2.6.32/linux-2.6.32-358.el6$ make oldconfig bzImage scripts/kconfig/conf -o arch/x86/Kconfig # # configuration written to .config # scripts/kconfig/conf -s arch/x86/Kconfig CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm - include/asm-x86 CC kernel/bounds.s GEN include/linux/bounds.h CC arch/x86/kernel/asm-offsets.s GEN include/asm/asm-offsets.h CALLscripts/checksyscalls.sh CC scripts/mod/empty.o MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost CC init/main.o CHK include/linux/compile.h CC init/version.o CC init/do_mounts.o CC init/do_mounts_rd.o CC init/do_mounts_initrd.o LD init/mounts.o CC init/initramfs.o CC init/calibrate.o LD init/built-in.o GEN usr/initramfs_data.cpio AS usr/initramfs_data.o LD usr/built-in.o CC arch/x86/kernel/process_32.o CC arch/x86/kernel/signal.o AS arch/x86/kernel/entry_32.o CC arch/x86/kernel/traps.o CC arch/x86/kernel/irq.o CC arch/x86/kernel/irq_32.o CC arch/x86/kernel/dumpstack_32.o CC arch/x86/kernel/time.o CC arch/x86/kernel/ioport.o CC arch/x86/kernel/ldt.o CC arch/x86/kernel/dumpstack.o CC arch/x86/kernel/setup.o CC arch/x86/kernel/x86_init.o CC arch/x86/kernel/i8259.o CC arch/x86/kernel/irqinit.o CC arch/x86/kernel/irq_work.o CC arch/x86/kernel/probe_roms.o CC arch/x86/kernel/sys_i386_32.o CC arch/x86/kernel/i386_ksyms_32.o CC arch/x86/kernel/bootflag.o CC arch/x86/kernel/e820.o CC arch/x86/kernel/pci-dma.o CC arch/x86/kernel/quirks.o CC arch/x86/kernel/i8237.o CC arch/x86/kernel/topology.o CC arch/x86/kernel/kdebugfs.o CC arch/x86/kernel/alternative.o CC arch/x86/kernel/i8253.o CC arch/x86/kernel/pci-nommu.o CC arch/x86/kernel/tsc.o CC arch/x86/kernel/io_delay.o CC arch/x86/kernel/rtc.o CC arch/x86/kernel/resource.o CC arch/x86/kernel/trampoline.o CC arch/x86/kernel/process.o CC arch/x86/kernel/i387.o CC arch/x86/kernel/xsave.o CC arch/x86/kernel/ptrace.o arch/x86/kernel/ptrace.c:1245:17: error: conflicting types for ‘syscall_trace_enter’ asmregparm long syscall_trace_enter(struct pt_regs *regs) ^ In file included from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/vm86.h:130:0, from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/processor.h:10, from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/thread_info.h:22, from include/linux/thread_info.h:56, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:56, from arch/x86/kernel/ptrace.c:8: /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/ptrace.h:146:13: note: previous declaration of ‘syscall_trace_enter’ was here extern long syscall_trace_enter(struct pt_regs *); ^ arch/x86/kernel/ptrace.c:1290:17: error: conflicting types for ‘syscall_trace_leave’ asmregparm void syscall_trace_leave(struct pt_regs *regs) ^ In file included from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/vm86.h:130:0, from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/processor.h:10, from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/thread_info.h:22, from include/linux/thread_info.h:56, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:56, from arch/x86/kernel/ptrace.c:8: /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/ptrace.h:147:13: note: previous declaration of ‘syscall_trace_leave’ was here extern void syscall_trace_leave(struct pt_regs *); ^ scripts/Makefile.build:229: recipe for target 'arch/x86/kernel/ptrace.o' failed make[3]: *** [arch/x86/kernel/ptrace.o] Error 1 scripts/Makefile.build:365: recipe for target 'arch/x86/kernel' failed make[2]: *** [arch/x86/kernel] Error 2 Makefile:915: recipe for target 'arch/x86' failed make[1]: *** [arch/x86] Error 2 Makefile:464: