编译内核出现ln: creating symbolic link `include/asm' to `asm-arm': Operation not supported

来源:互联网 发布:我国关于网络诈骗法律 编辑:程序博客网 时间:2024/06/06 01:29

今天在编译内核的时候出现了这样的错误:(2.6.30.4)

make: Warning: File `include/config/auto.conf.cmd' has modification time 3.5e+02 s in the future
  CHK     include/linux/version.h
make[1]: Warning: File `include/config/auto.conf' has modification time 3.6e+02 s in the future
make[1]: `include/asm-arm/mach-types.h' is up to date.
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
ln: creating symbolic link `include/asm' to `asm-arm': Operation not supported
make: *** [include/asm] Error 1

在网上查找原因得:

出现这类问题,主要是由于在编译的时候,要用ln去建立一些软链接,
而这些文件是从Windows中,通过VMWare虚拟机共享进Linux的,
而虽然此种操作在Linux系统中很常见,但Windows不支持,所以,
编译会报错。
有个解决办法就是,在VMWare下的Linux中,建立Samba服务,
然后新创建新samba用户和文件夹,然后在windows中就可以访问到该文件夹了。
然后把在Linux中,从共享目录拷贝到你所要共享的samba目录中,
这样,也可以实现我们所要的文件共享。
此时在去编译这些代码的时候,由于是在Linux系统中的,所以就OK了。

 

由于没有安装smb 跟windows的文件交换是通过虚拟机的共享文件,因而正如上面所述,我把内核放到了home目录下,然后重新进行配置后就可以了

原创粉丝点击