Problem of compiling linux2.6.11.12 kernel
Hi everyone, I try to compile linux kernel of 2.6.11.12 version on my 64bit archlinux. Below is my system information: linux 4.16.9-1-ARCH gcc (GCC) 8.1.1 20180531 GNU ld (GNU Binutils) 2.30 And I get a problem like this, don't know if it is because of the version of gcc or ld: /usr/bin/ld: arch/x86_64/ia32/vsyscall-sysenter.so: Not enough room for program headers, try linking with -N /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make[1]: *** [arch/x86_64/ia32/Makefile:28: arch/x86_64/ia32/vsyscall-sysenter.so] Error 1 make: *** [Makefile:742: arch/x86_64/ia32] Error 2 I've tried to add ld parameter, but didn't know how and where to add this... Have you met this before? And how can I fix it?
On Mon, 06 Aug 2018 01:10:40 +0800, "He Huanyu" said:
linux 4.16.9-1-ARCH gcc (GCC) 8.1.1 20180531 GNU ld (GNU Binutils) 2.30
And I get a problem like this, don't know if it is because of the version of gcc or ld:
The problem is the version of Linux. 2.6.11 probably won't build with gcc 8. Why are you trying to build 2.6.11 if you have 4.16 available? That dates to June 2005, and is only of interest to software archaeologists.
As you know,4.x version is so complex. And it‘s difficult to read the source code for newbies like me. Of course one of the most important reasons is that I am reading 《UNDERSTANDING THE LINUX KERNEL》 :) And it’s for 2.6.11 version. I am thinking about build a environment to practice. On 08/06/2018 05:36, valdis.kletnieks wrote: On Mon, 06 Aug 2018 01:10:40 +0800, "He Huanyu" said:
linux 4.16.9-1-ARCH gcc (GCC) 8.1.1 20180531 GNU ld (GNU Binutils) 2.30
And I get a problem like this, don't know if it is because of the version of gcc or ld:
The problem is the version of Linux. 2.6.11 probably won't build with gcc 8. Why are you trying to build 2.6.11 if you have 4.16 available? That dates to June 2005, and is only of interest to software archaeologists.
Try with gcc 4 you may get it from AUR Em dom, 5 de ago de 2018 23:07, He Huanyu <huanyuheatcn@163.com> escreveu:
As you know,4.x version is so complex. And it‘s difficult to read the source code for newbies like me.
Of course one of the most important reasons is that I am reading 《UNDERSTANDING THE LINUX KERNEL》 :) And it’s for 2.6.11 version. I am thinking about build a environment to practice.
On 08/06/2018 05:36, valdis.kletnieks <valdis.kletnieks@vt.edu> wrote:
On Mon, 06 Aug 2018 01:10:40 +0800, "He Huanyu" said:
linux 4.16.9-1-ARCH gcc (GCC) 8.1.1 20180531 GNU ld (GNU Binutils) 2.30
And I get a problem like this, don't know if it is because of the version of gcc or ld:
The problem is the version of Linux. 2.6.11 probably won't build with gcc 8.
Why are you trying to build 2.6.11 if you have 4.16 available? That dates to June 2005, and is only of interest to software archaeologists.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Thanks for your advices, I’ve just found the CentOS 6.x release is with 2.x Linux kernel. So I decide to compile version 2.6.11 kernel on a CentOS 6.x VM. It can also offers me a desktop. That’s pretty attractive:) On 08/06/2018 10:25, Daniel. wrote: Try with gcc 4 you may get it from AUR Em dom, 5 de ago de 2018 23:07, He Huanyu <huanyuheatcn@163.com> escreveu: As you know,4.x version is so complex. And it‘s difficult to read the source code for newbies like me. Of course one of the most important reasons is that I am reading 《UNDERSTANDING THE LINUX KERNEL》 :) And it’s for 2.6.11 version. I am thinking about build a environment to practice. On 08/06/2018 05:36, valdis.kletnieks wrote: On Mon, 06 Aug 2018 01:10:40 +0800, "He Huanyu" said:
linux 4.16.9-1-ARCH gcc (GCC) 8.1.1 20180531 GNU ld (GNU Binutils) 2.30
And I get a problem like this, don't know if it is because of the version of gcc or ld:
The problem is the version of Linux. 2.6.11 probably won't build with gcc 8. Why are you trying to build 2.6.11 if you have 4.16 available? That dates to June 2005, and is only of interest to software archaeologists. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (3)
-
Daniel. -
He Huanyu -
valdis.kletnieks@vt.edu