title: Unknown pseudo-op: .global
body: <p>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:</p>
  
  <pre><code>[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).
  </code></pre>
  
  <p>This is the
  <a href="http://pastebin.com/r2MEbp0f" rel="nofollow">source code of that file</a>, and here is the <a href="http://pastebin.com/mL4LA9dE" rel="nofollow">makefile</a></p>
  
  <p>So if anyone have an idea what to do I would appreciate it :)</p>