GithubHelp home page GithubHelp logo

yuan-xy / linux-0.11 Goto Github PK

View Code? Open in Web Editor NEW
831.0 831.0 482.0 13.09 MB

The old Linux kernel source ver 0.11 which has been tested under modern Linux, Mac OSX and Windows.

C 78.88% Assembly 13.36% Makefile 7.20% C++ 0.56%

linux-0.11's People

Contributors

calee0219 avatar huddy1985 avatar icecity96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux-0.11's Issues

我尝试去make但是出现了以下提示,是源码存在问题吗?

elflink.c:4928:45: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] return (struct elf_link_hash_entry *) 0 - 1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ elflink.c:5040:46: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] if (h == (struct elf_link_hash_entry *) 0 - 1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 2 errors generated. make[4]: *** [elflink.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-bfd] Error 2 make: *** [all] Error 2

make: *** [Makefile:51:Image] 错误 255:the system binary is too big

On Arch linux,when I want to compile,the error occured;

make[1]: 进入目录“/home/russ/Linux-0.11/boot”
make[1]: 离开目录“/home/russ/Linux-0.11/boot”
make[1]: 进入目录“/home/russ/Linux-0.11/boot”
make[1]: 离开目录“/home/russ/Linux-0.11/boot”
make[1]: 进入目录“/home/russ/Linux-0.11/boot”
make[1]: 离开目录“/home/russ/Linux-0.11/boot”
init/main.c:23:15: 警告:在‘fork’的声明中,类型默认为‘int’ [-Wimplicit-int]
   23 | static inline fork(void) __attribute__((always_inline));
      |               ^~~~
init/main.c:24:15: 警告:在‘pause’的声明中,类型默认为‘int’ [-Wimplicit-int]
   24 | static inline pause(void) __attribute__((always_inline));
      |               ^~~~~
make[1]: 进入目录“/home/russ/Linux-0.11/kernel”
In file included from traps.c:13:
../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
In file included from fork.c:13:
../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
In file included from vsprintf.c:13:
../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
In file included from who.c:1:
../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
make[1]: 离开目录“/home/russ/Linux-0.11/kernel”
make[1]: 进入目录“/home/russ/Linux-0.11/mm”
make[1]: 离开目录“/home/russ/Linux-0.11/mm”
make[1]: 进入目录“/home/russ/Linux-0.11/fs”
inode.c: 在函数‘get_empty_inode’中:
inode.c:223:9: 警告:隐式声明函数‘memset’ [-Wimplicit-function-declaration]
  223 |         memset(inode,0,sizeof(*inode));
      |         ^~~~~~
inode.c:14:1: 附注:‘memset’ is defined in header ‘<string.h>’; did you forget to ‘#include <string.h>’?
   13 | #include <asm/system.h>
  +++ |+#include <string.h>
   14 | 
In file included from inode.c:7:
../include/string.h: 在文件作用域:
../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
exec.c: 在函数‘do_execve’中:
exec.c:235:17: 警告:隐式声明函数‘strncpy’ [-Wimplicit-function-declaration]
  235 |                 strncpy(buf, bh->b_data+2, 1022);
      |                 ^~~~~~~
exec.c:30:1: 附注:‘strncpy’ is defined in header ‘<string.h>’; did you forget to ‘#include <string.h>’?
   29 | #include <asm/segment.h>
  +++ |+#include <string.h>
   30 | 
exec.c:239:27: 警告:隐式声明函数‘strchr’ [-Wimplicit-function-declaration]
  239 |                 if ((cp = strchr(buf, '\n'))) {
      |                           ^~~~~~
exec.c:239:27: 附注:‘strchr’ is defined in header ‘<string.h>’; did you forget to ‘#include <string.h>’?
exec.c:239:25: 警告:assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  239 |                 if ((cp = strchr(buf, '\n'))) {
      |                         ^
In file included from exec.c:21:
../include/string.h: 在文件作用域:
../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
In file included from namei.c:15:
../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
bitmap.c: 在函数‘free_inode’中:
bitmap.c:115:17: 警告:隐式声明函数‘memset’ [-Wimplicit-function-declaration]
  115 |                 memset(inode,0,sizeof(*inode));
      |                 ^~~~~~
bitmap.c:12:1: 附注:‘memset’ is defined in header ‘<string.h>’; did you forget to ‘#include <string.h>’?
   11 | #include <linux/kernel.h>
  +++ |+#include <string.h>
   12 | 
In file included from bitmap.c:8:
../include/string.h: 在文件作用域:
../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
make[1]: 离开目录“/home/russ/Linux-0.11/fs”
make[1]: 进入目录“/home/russ/Linux-0.11/kernel/blk_drv”
In file included from ramdisk.c:7:
../../include/string.h:46:22: 警告:内联函数‘memchr’声明过但从未定义
   46 | extern inline void * memchr(const void * cs,char c,int count);
      |                      ^~~~~~
../../include/string.h:45:22: 警告:内联函数‘memmove’声明过但从未定义
   45 | extern inline void * memmove(void * dest,const void * src, int n);
      |                      ^~~~~~~
../../include/string.h:44:22: 警告:内联函数‘memcpy’声明过但从未定义
   44 | extern inline void * memcpy(void * dest,const void * src, int n);
      |                      ^~~~~~
../../include/string.h:37:22: 警告:内联函数‘strtok’声明过但从未定义
   37 | extern inline char * strtok(char * s,const char * ct);
      |                      ^~~~~~
../../include/string.h:34:19: 警告:内联函数‘strlen’声明过但从未定义
   34 | extern inline int strlen(const char * s);
      |                   ^~~~~~
../../include/string.h:33:22: 警告:内联函数‘strstr’声明过但从未定义
   33 | extern inline char * strstr(const char * cs,const char * ct);
      |                      ^~~~~~
../../include/string.h:32:22: 警告:内联函数‘strpbrk’声明过但从未定义
   32 | extern inline char * strpbrk(const char * cs,const char * ct);
      |                      ^~~~~~~
../../include/string.h:31:19: 警告:内联函数‘strcspn’声明过但从未定义
   31 | extern inline int strcspn(const char * cs, const char * ct);
      |                   ^~~~~~~
../../include/string.h:30:19: 警告:内联函数‘strspn’声明过但从未定义
   30 | extern inline int strspn(const char * cs, const char * ct);
      |                   ^~~~~~
../../include/string.h:29:19: 警告:内联函数‘strcmp’声明过但从未定义
   29 | extern inline int strcmp(const char * cs,const char * ct);
      |                   ^~~~~~
../../include/string.h:28:22: 警告:内联函数‘strcat’声明过但从未定义
   28 | extern inline char * strcat(char * dest,const char * src);
      |                      ^~~~~~
../../include/string.h:27:22: 警告:内联函数‘strcpy’声明过但从未定义
   27 | extern inline char * strcpy(char * dest,const char *src);
      |                      ^~~~~~
make[1]: 离开目录“/home/russ/Linux-0.11/kernel/blk_drv”
make[1]: 进入目录“/home/russ/Linux-0.11/kernel/chr_drv”
sync
make[1]: 离开目录“/home/russ/Linux-0.11/kernel/chr_drv”
make[1]: 进入目录“/home/russ/Linux-0.11/kernel/math”
make[1]: 离开目录“/home/russ/Linux-0.11/kernel/math”
make[1]: 进入目录“/home/russ/Linux-0.11/lib”
make[1]: 离开目录“/home/russ/Linux-0.11/lib”
输入了 1+0 块记录
输出了 1+0 块记录
512 字节已复制,3.988e-05 s,12.8 MB/s
输入了 4+0 块记录
输出了 4+0 块记录
2048 字节 (2.0 kB, 2.0 KiB) 已复制,4.1485e-05 s,49.4 MB/s
the system binary is too big
make: *** [Makefile:51:Image] 错误 255

I tried set core file size to unlimited,but no use

Fix bug in Makefile

Use original Makefile shows error when debugging:

gdb selected architecture aarch64 is not compatible with reported target architecture arm

Work for me now using this patch

diff Makefile.bak Makefile
142c142
<       @qemu-system-x86_64 -m 16M -boot a -fda Image -hda $(HDA_IMG) -s -S
---
>       @qemu-system-i386 -m 16M -boot a -fda Image -hda $(HDA_IMG) -s -S

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.