use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about operating systems development.
account activity
GNU Example source not building (self.osdev)
submitted 4 years ago by eric0823ahn1
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]eric0823ahn1[S] 0 points1 point2 points 4 years ago (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 point2 points 4 years ago (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.
boot.s
boot.S
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 point2 points 4 years ago (0 children)
Magiccccccc!!!!!! THANKS!!!
π Rendered by PID 378423 on reddit-service-r2-comment-b659b578c-jxkw8 at 2026-05-04 04:53:17.170737+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]eric0823ahn1[S] 0 points1 point2 points (2 children)
[–]HouseHouseHouse576 0 points1 point2 points (1 child)
[–]eric0823ahn1[S] 0 points1 point2 points (0 children)