4 ms·
I'm having trouble compiling this. freefull@freefull-hp ~/c/o/devos> make all Building Kernel make -C ./kernel make[1]: Entering directory `/ho
by FreeFull 13y ago
I'm having trouble compiling this.
freefull@freefull-hp ~/c/o/devos> make all
Building Kernel
make -C ./kernel
make[1]: Entering directory `/home/freefull/code/other/devos/kernel'
makefile:9: runtime/Makefile: No such file or directory
makefile:10: core/Makefile: No such file or directory
makefile:11: modules/Makefile: No such file or directory
makefile:12: arch/x86/Makefile: No such file or directory
make[1]: *** No rule to make target `arch/x86/Makefile'. Stop.
make[1]: Leaving directory `/home/freefull/code/other/devos/kernel'
make: *** [all] Error 2
- GaveUp 13y agoI haven't tried myself but it looks like a casing issue. All the makefiles have a lower case m. I'd suspect correcting that would do that trick.
- FreeFull 13y agomake looks for both Makefile and makefile, but those directories don't have any makefiles at all.
- mtdewcmu 13y agoIs there a configure script or cmake or something? It looks like you might have to do something before `make all`
- FreeFull 13y agoNope, just a top level makefile and a readme that says to compile you only need to make all
- mtdewcmu 13y agomake looks for [Mm]akefile if you run it with no arguments, but here it's being run recursively (or included). On OSX, filenames are case-insensitive, which could be a possible reason why it works for some people. On Linux, filenames are case sensitive.
- FreeFull 13y agoThat seems to be the case, since running file on one of the existing .o files says that they are Mach-O i386 objects. The readme doesn't mention OS X though, only Ubuntu
- GaveUp 13y agoWell, on my system (Ubuntu) at least this is not the case and renaming the files gets past the errors and on to actual build errors: runtime/cxx.cc:74:41: error: ‘operator new’ takes type ‘size_t’ (‘unsigned int’) as first parameter [-fpermissive] runtime/cxx.cc:84:43: error: ‘operator new’ takes type ‘size_t’ (‘unsigned int’) as first parameter [-fpermissive] make[1]: *** [runtime/cxx.o] Error 1
- FreeFull 13y agoAfter renaming the Makefiles to fix the case, running make clean and then make all, I get the same error.
- FreeFull 13y agoThinking about this, this is a casing issue after all. The makefiles include Makefile rather than makefile
- AaronO 13y agoThe compile/build works fine now (check out my commits). However what does not yet work is booting the image with Qemu.
- FreeFull 13y agoThanks for fixing the compile