When I build my project (any project, really - I tried creating a new empty project with the same results), it builds fine with GCC 4.2 under either Xcode4 or Xcode 3.2.4.
Without violating NDA (Xcode 4 is prerelease software), I recommend you read this thread in the Apple Developer Forums.