[U-Boot-Users] compilation problems

Dear friends,
I apologize for quite off topic questions, which is related to kernel compilation instead of u-boot. However I hope that someone would be so kind to help me to address the problem. I'm working on a AT91SAM9260 board (which is quite similar to Atmel EK board) compiling both u-boot and kernel sources with ELDK 4.1. A couple a week ago I had the bad idea to install Fedora 9 on my thinkpad and now I'm not able to compile the kernel. Here is enclosed the messages I got during the first steps of compilation:
[gino@portatile linux-2.6.21]$ make uImage scripts/kconfig/conf -s arch/arm/Kconfig CHK include/linux/version.h UPD include/linux/version.h SYMLINK include/asm-arm/arch -> include/asm-arm/arch-at91 Generating include/asm-arm/mach-types.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-arm CC arch/arm/kernel/asm-offsets.s GEN include/asm-arm/asm-offsets.h CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o scripts/mod/sumversion.c: In function "get_src_version": scripts/mod/sumversion.c:384: error: "PATH_MAX" undeclared (first use in this function) scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once scripts/mod/sumversion.c:384: error: for each function it appears in.) scripts/mod/sumversion.c:384: warning: unused variable "filelist" make[2]: *** [scripts/mod/sumversion.o] Error 1 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2
Any ideas? Many thanks Gino

Dear Gino,
in message a07e999b0808010559r35fec55ehe103db4a84ac4157@mail.gmail.com you wrote:
However I hope that someone would be so kind to help me to address the problem. I'm working on a AT91SAM9260 board (which is quite similar to Atmel EK board) compiling both u-boot and kernel sources with ELDK 4.1. A couple a week ago I had the bad idea to install Fedora 9 on my
THis is not the fault of Fedora 9 - we run this, too, on some systems, and it works fine here. To me it seems a sif you missed to install a few critical packages on your system.
thinkpad and now I'm not able to compile the kernel. Here is enclosed the messages I got during the first steps of compilation:
...
HOSTCC scripts/mod/sumversion.o scripts/mod/sumversion.c: In function "get_src_version": scripts/mod/sumversion.c:384: error: "PATH_MAX" undeclared (first use in this function)
This probably means that the "kernel-headers" package is missing. Try: "yum -y install kernel-headers" (running as root).
Best regards,
Wolfgang Denk

THis is not the fault of Fedora 9 - we run this, too, on some systems, and it works fine here. To me it seems a sif you missed to install a few critical packages on your system.
I agree with you, even though is not easy to find what is missing.
... HOSTCC scripts/mod/sumversion.o scripts/mod/sumversion.c: In function "get_src_version": scripts/mod/sumversion.c:384: error: "PATH_MAX" undeclared (first use in this function)
This probably means that the "kernel-headers" package is missing. Try: "yum -y install kernel-headers" (running as root).
I have checked what you say but, the answer is: "package kernel-headers-2.6.25.11-97.fc9.i386 is already installed on this system"
Could the problem be related to some path not correctly declared?
Many Thanks
Gino

On Fri, 2008-08-01 at 16:25 +0200, Gino Mariucci wrote:
THis is not the fault of Fedora 9 - we run this, too, on some systems, and it works fine here. To me it seems a sif you missed to install a few critical packages on your system.
I agree with you, even though is not easy to find what is missing.
... HOSTCC scripts/mod/sumversion.o scripts/mod/sumversion.c: In function "get_src_version": scripts/mod/sumversion.c:384: error: "PATH_MAX" undeclared (first use in this function)
This probably means that the "kernel-headers" package is missing. Try: "yum -y install kernel-headers" (running as root).
I have checked what you say but, the answer is: "package kernel-headers-2.6.25.11-97.fc9.i386 is already installed on this system"
On my debian based system the kernel header package is for developing kernel modules not for the userspace stuff. It's in another package.
dpkg -S /usr/include/linux/limits.h linux-libc-dev: /usr/include/linux/limits.h
But redhat may be different.
Could the problem be related to some path not correctly declared?
Many Thanks
Gino
participants (3)
-
Gino Mariucci
-
Kenneth Johansson
-
Wolfgang Denk