Re: kernel compile error in wheezy [solved!]
On Tue, 19 Jul 2011 00:29:49 -0400 (EDT), Frank Miles wrote: > > Thanks to everyone who helped - yes, it was indeed something about > my environment. In /etc/profile, I've long exported an environment > variable of the form: > > export LIBRARY_PATH="/home/myname/devel/lib:." > > I have a dim memory that when compiling cross-compilers that the > '.' directory is a problem. Commenting this out allows the kernel > compile to proceed. What's strange is that I've had this for many > years without any kernel-compile problem. No longer! > > There may be some gcc docs that warn of this, not sure exactly where, > but it might shed more light on this situation. > > Thanks again, everyone- Glad you got it working. Thanks for the follow-up. -- .''`. Stephen Powell : :' : `. `'` `- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1196455862.778722.137811653.javamail.r...@md01.wow.synacor.com
Re: kernel compile error in wheezy [solved!]
Thanks to everyone who helped - yes, it was indeed something about my environment. In /etc/profile, I've long exported an environment variable of the form: export LIBRARY_PATH="/home/myname/devel/lib:." I have a dim memory that when compiling cross-compilers that the '.' directory is a problem. Commenting this out allows the kernel compile to proceed. What's strange is that I've had this for many years without any kernel-compile problem. No longer! There may be some gcc docs that warn of this, not sure exactly where, but it might shed more light on this situation. Thanks again, everyone- Frank -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/alpine.lrh.2.01.1107182120300.6...@homer01.u.washington.edu
Re: kernel compile error in wheezy
On Sun, 17 Jul 2011 13:35:00 -0400 (EDT), Frank Miles wrote: > Stephen wrote: >> ... >> I'm guessing that elks-libc is what is needed. Is that package installed >> on your system? >> ... > > No, it's not installed. Sure seems strange, requiring a 16-bit library > for the build of a 64-bit system. I have stdarg.h from gcc versions 4.3, > 4.4, and 4.6, and libstdc++ of the same versions. But it would be an > easy solution, so... (installing,.. retrying...): > -> still fails :( Hmm. Well, I'm not sure what to suggest. It's obviously something strange in your environment, since many others have been able to successfully compile the kernel. You might try deleting the kernel source code directory and unpack the tar file again. Maybe something got hosed up somehow. The only other thing I might suggest is to delete older versions of the C compiler and libraries until you have only the newest one or until you find an installed package that requires an older library. Then try again. -- .''`. Stephen Powell : :' : `. `'` `- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/542932932.734934.1310945631739.javamail.r...@md01.wow.synacor.com
Re: kernel compile error in wheezy
Thanks to Stan, Stephen, and Maderios! - Stan wrote: Do you get the same error using the (new) Debian kernel method? $ make KDEB_PKGVERSION=custom.1.0 deb-pkg I'll have to learn more about the new method for the future. For right now, unfortunately the answer is yes, I get the same error. - Stephen wrote: ... I'm guessing that elks-libc is what is needed. Is that package installed on your system? ... No, it's not installed. Sure seems strange, requiring a 16-bit library for the build of a 64-bit system. I have stdarg.h from gcc versions 4.3, 4.4, and 4.6, and libstdc++ of the same versions. But it would be an easy solution, so... (installing,.. retrying...): -> still fails :( - Maderios wrote: For my part: make-kpkg kernel_image --initrd and it works. Same error - it bombs on compiling arch/x86/kernel/asm-offsets.c, in each case looking for included file stdarg.h [again, I have at least 6 versions of this file depending on compiler]. Thanks for trying! I'm mystified, having compiled many kernels over the years on a various computers without difficulty. Is there any way that I could have mangled the include search path? I'm using bash as the shell interpreter, that's still ok isn't it? -Frank -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/alpine.lrh.2.01.1107171013290.13...@homer01.u.washington.edu
Re: kernel compile error in wheezy
$ uname -a Linux debian 2.6.39.1 #1 SMP PREEMPT Tue Jun 7 01:40:05 CEST 2011 x86_64 GNU/Linux is a self-build (rt patch emu kernel) with source from kernel.org and at least 2.6.39-2 from the repositories was ok too, didn't tested the upgrade to 2.6.39-3 until now, which btw. still is named 2.6.39-2. I build by running make-kpkg --rootcmd fakeroot --initrd kernel-image kernel-headers of cause I don't add staging (or what ever it is named, that couldn't be used with real rt-patches) and some other thingies, that are unimportant for my usage. Hm, yes, my architecture is amd64. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1310920578.8771.6.camel@debian
Re: kernel compile error in wheezy
On 07/16/2011 08:19 PM, Frank Miles wrote: I just tried compiling the kernel for My 'wheezy' system (2.6.39) [amd64]. As I've done many times - using make-kpkg --revision N kernel_image Hi For my part: make-kpkg kernel_image --initrd and it works. greetings Maderios -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4e22afd4.4010...@gmail.com
Re: kernel compile error in wheezy
On 7/16/2011 1:19 PM, Frank Miles wrote: > I just tried compiling the kernel for My 'wheezy' system (2.6.39) [amd64]. > As I've done many times - using > make-kpkg --revision N kernel_image > But with the recent linux-source update - shortly after starting I get: Do you get the same error using the (new) Debian kernel method? $ make KDEB_PKGVERSION=custom.1.0 deb-pkg -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4e226a84.50...@hardwarefreak.com
Re: kernel compile error in wheezy
On Sat, 16 Jul 2011 14:19:17 -0400 (EDT), Frank Miles wrote: > > I just tried compiling the kernel for My 'wheezy' system (2.6.39) [amd64]. > As I've done many times - using > make-kpkg --revision N kernel_image > But with the recent linux-source update - shortly after starting I get: > > CC arch/x86/kernel/asm-offsets.s > In file included from > /usr/src/linux-source-2.6.39/arch/x86/include/asm/percpu.h:44:0, > from > /usr/src/linux-source-2.6.39/arch/x86/include/asm/current.h:5, > from > /usr/src/linux-source-2.6.39/arch/x86/include/asm/processor.h:15, > from > /usr/src/linux-source-2.6.39/arch/x86/include/asm/atomic.h:6, > from ./include/linux/crypto.h:20, > from arch/x86/kernel/asm-offsets.c:8: > ./include/linux/kernel.h:12:20: fatal error: stdarg.h: No such file or > directory > compilation terminated. > make[3]: *** [arch/x86/kernel/asm-offsets.s] Error 1 > make[2]: *** [prepare0] Error 2 > > There don't seem to be any current bugs like this. A previous 2.6.39 > compiler was uneventful. > > Any ideas would be appreciated! Using the procedures found at http://users.wowway.com/~zlinuxman/Kernel.htm I cannot reproduce your error. I am using package linux-source-2.6.39, version 2.6.39-3. I have tried two machine architectures: s390 and i386, but not amd64. On my i386 system, there are four files ending in stdarg.h. They are as follows: /usr/lib/bcc/include/stdarg.h /usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.5/include/stdarg.h /usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6/include/stdarg.h /usr/include/c++/4.6/tr1/stdarg.h These files belong to the elks-libc, gcc-4.5, gcc-4.6, and libstdc++6-4.6-dev packages, respectively. Since libstdc++6-4.6-dev is for c++, and obviously either gcc-4.5 or gcc-4.6, or both, must be already installed (or you wouldn't be able to compile anything), I'm guessing that elks-libc is what is needed. Is that package installed on your system? elks-libc is a recommendation (and not a dependency) of bcc; so you may not have it installed on your system if you are in the habit of installing only dependencies and skipping recommendations. But it looks like it may be a requirement for compiling the kernel. -- .''`. Stephen Powell : :' : `. `'` `- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/755477887.725131.1310868477179.javamail.r...@md01.wow.synacor.com
kernel compile error in wheezy
I just tried compiling the kernel for My 'wheezy' system (2.6.39) [amd64]. As I've done many times - using make-kpkg --revision N kernel_image But with the recent linux-source update - shortly after starting I get: CC arch/x86/kernel/asm-offsets.s In file included from /usr/src/linux-source-2.6.39/arch/x86/include/asm/percpu.h:44:0, from /usr/src/linux-source-2.6.39/arch/x86/include/asm/current.h:5, from /usr/src/linux-source-2.6.39/arch/x86/include/asm/processor.h:15, from /usr/src/linux-source-2.6.39/arch/x86/include/asm/atomic.h:6, from ./include/linux/crypto.h:20, from arch/x86/kernel/asm-offsets.c:8: ./include/linux/kernel.h:12:20: fatal error: stdarg.h: No such file or directory compilation terminated. make[3]: *** [arch/x86/kernel/asm-offsets.s] Error 1 make[2]: *** [prepare0] Error 2 There don't seem to be any current bugs like this. A previous 2.6.39 compiler was uneventful. Any ideas would be appreciated! -Frank -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/alpine.lrh.2.01.1107161104500.31...@homer02.u.washington.edu