Unknown pseudo-op: .global-Collection of common programming errors

I’m trying to compile a simple operating system code we got on OS class. It works fine under Ubuntu but I’d like to compile it on OS X. The error I get is:

[compiling] arch/i386/arch/startup.S ...
arch/i386/arch/startup.S:8:Unknown pseudo-op: .extern
arch/i386/arch/startup.S:8:Rest of line ignored. 1st junk character valued 107 (k).
arch/i386/arch/startup.S:11:Expected comma after segment-name
arch/i386/arch/startup.S:13:Unknown pseudo-op: .global
arch/i386/arch/startup.S:13:Rest of line ignored. 1st junk character valued 97 (a).

This is the source code of that file, and here is the makefile

So if anyone have an idea what to do I would appreciate it 🙂

Originally posted 2013-11-09 23:12:33.