GithubHelp home page GithubHelp logo

ultraji / linux-0.12 Goto Github PK

View Code? Open in Web Editor NEW
466.0 20.0 224.0 5.44 MB

《Linux内核完全剖析》linux0.12源码及实验环境

License: GNU General Public License v3.0

Makefile 4.52% Assembly 11.30% C 83.06% Shell 0.67% Dockerfile 0.46%
linux-kernel oslab

linux-0.12's Issues

无法打开hdc.img

[HD ] HD on ata0-0: './hdc.img', 'flat' mode
[IMG ] image locked: './hdc.img'
[HD ] >>PANIC<< ata0-0: could not open hard drive image file './hdc.img'

在容器中对未修改的代码进行编译,报错

没有对源代码进行修改,运行oslab下的run.sh -m,产生如下报错,求助

ubuntu@1f7cda8a507c:~/linux-0.12/oslab$ ./run.sh -m
rm -f Image System.map tmp_make core boot/bootsect boot/setup \
	boot/bootsect.s boot/setup.s
rm -f init/*.o tools/system tools/build boot/*.o
(cd mm;make clean)
make[1]: Entering directory '/home/ubuntu/linux-0.12/linux-0.12/mm'
rm -f core *.o *.a tmp_make
for i in *.c;do rm -f `basename $i .c`.s;done
make[1]: Leaving directory '/home/ubuntu/linux-0.12/linux-0.12/mm'
(cd fs;make clean)
make[1]: Entering directory '/home/ubuntu/linux-0.12/linux-0.12/fs'
rm -f core *.o *.a tmp_make
for i in *.c;do rm -f `basename $i .c`.s;done
make[1]: Leaving directory '/home/ubuntu/linux-0.12/linux-0.12/fs'
(cd kernel;make clean)
make[1]: Entering directory '/home/ubuntu/linux-0.12/linux-0.12/kernel'
rm -f core *.o *.a tmp_make keyboard.s
for i in *.c;do rm -f `basename $i .c`.s;done
(cd chr_drv; make clean)
make[2]: Entering directory '/home/ubuntu/linux-0.12/linux-0.12/kernel/chr_drv'
rm -f core *.o *.a tmp_make keyboard.s
for i in *.c;do rm -f `basename $i .c`.s;done
make[2]: Leaving directory '/home/ubuntu/linux-0.12/linux-0.12/kernel/chr_drv'
(cd blk_drv; make clean)
make[2]: Entering directory '/home/ubuntu/linux-0.12/linux-0.12/kernel/blk_drv'
rm -f core *.o *.a tmp_make
for i in *.c;do rm -f `basename $i .c`.s;done
make[2]: Leaving directory '/home/ubuntu/linux-0.12/linux-0.12/kernel/blk_drv'
(cd math; make clean)
make[2]: Entering directory '/home/ubuntu/linux-0.12/linux-0.12/kernel/math'
rm -f core *.o *.a tmp_make
for i in *.c;do rm -f `basename $i .c`.s;done
make[2]: Leaving directory '/home/ubuntu/linux-0.12/linux-0.12/kernel/math'
make[1]: Leaving directory '/home/ubuntu/linux-0.12/linux-0.12/kernel'
(cd lib;make clean)
make[1]: Entering directory '/home/ubuntu/linux-0.12/linux-0.12/lib'
rm -f core *.o *.a tmp_make
for i in *.c;do rm -f `basename $i .c`.s;done
make[1]: Leaving directory '/home/ubuntu/linux-0.12/linux-0.12/lib'
make: *** No rule to make target 'boot/bootsect.S', needed by 'boot/bootsect.s'.  Stop.
cp: cannot stat 'Image': No such file or directory

编译错误

gcc 版本:gcc version 10.2.0 (Debian 10.2.0-5)
错误代码:

tools/build.c: At top level:
/usr/include/linux/fscrypt.h:81: error: storage size of `v1' isn't known
/usr/include/linux/fscrypt.h:82: error: storage size of `v2' isn't known
make: *** [Makefile:79: tools/build] Error 1

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.