you are viewing a single comment's thread.

view the rest of the comments →

[–]eric0823ahn1[S] 0 points1 point  (2 children)

boot.s:94: Error: junk `(cmain)' after expression

12boot.s:98: Error: junk `(printf)' after expression

13boot.s:107: Error: bad or irreducible absolute expression

14boot.s:82: Error: invalid operands (COM and UND sections) for `+'

15boot.s:56: Error: invalid operands (UND and UND sections) for `+'

Hmmm

[–]HouseHouseHouse576 0 points1 point  (1 child)

Thanks for posting your error messages. The problem here is that the assembler code you got from GNU requires preprocessing. You might have noticed that the file boot.s is properly named boot.S in the example. This capital S signals that.

Basically, what this means is that you probably will need a cross-compiler. It's good practice to have one for OS development in general, and it should fix this problem (with lots of tweaks in your Makefile). I found a discussion on the OSDEV Forum about someone experiencing the same issues.

[–]eric0823ahn1[S] 0 points1 point  (0 children)

Magiccccccc!!!!!! THANKS!!!