Cao, Da-Shi (EG-Presales-ZTE/HW-GZ)
2012-Jun-27 10:40 UTC
[klibc] To build klibc against kernel 3.4.3
It seems that a minor modification to usr/klibc/arch/$(ARCH)/MCONFIG is needed to build klibc successfully against kernel version 3.4.3. At lease the arch "arm" and "x86_64" have this issue. It is because that some include files are under "generated/asm/" in addition to "asm/". --- a/usr/klibc/arch/x86_64/MCONFIG +++ b/usr/klibc/arch/x86_64/MCONFIG @@ -36,4 +36,4 @@ KLIBCLDFLAGS = -m elf_x86_64 KLIBCSHAREDFLAGS = -Ttext 0x00200200 -z max-page-size=0x100000 # Asm includes for x86_64 are in the merged x86 tree -KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/x86/include +KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/x86/include -I$(KLIBCKERNELOBJ)/arch/x86/include/generated -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.zytor.com/pipermail/klibc/attachments/20120627/cdb4c349/attachment.html>
Cao, Da-Shi (EG-Presales-ZTE/HW-GZ) dixit:>It seems that a minor modification to usr/klibc/arch/$(ARCH)/MCONFIG >is needed to build klibc successfully against kernel version 3.4.3. At >lease the arch "arm" and "x86_64" have this issue. It is because that >some include files are under "generated/asm/" in addition to "asm/".>From IRC discussion, it is clear that you cannot build klibc againstthe in-tree headers but must build it against the exported headers made my installing the headers from Linux instead. (IIUC) bye, //mirabilos -- 13:37??Natureshadow? Deep inside, I hate mirabilos. I mean, he's a good guy. But he's always right! In every fsckin' situation, he's right. Even with his deeply perverted taste in software and borked ambition towards broken OSes - in the end, he's damn right about it :(! [?] works in mksh
Reasonably Related Threads
- [PATCH] Update header locations for uapi & generated
- [lkp-developer] [lib] 0c5a9920fb: WARNING:at_lib/test_linktables/test-linktables.c:#test_linktable_init
- [klibc:master] Kbuild: Remove KLIBCKERNELOBJ variable
- klibc breakage on alpha, need porterbox
- Build problems: klibc with Linux 3.10.7