Some misadventures on MacOS X:
- Making System Calls From Assembly in Mac OS X from FiloScottie. (Felix's Blog is pretty good too.)
- AT&T vs Intel Syntax
- gcc -v
- radare2 is better to be compiled from source.
- Your system nasm is probably too old, but then a compilation can easily solve the problem.