Sync failed when give a source file settings different from the project

For some reason, I want to change the build settings for a particular file, after change that, I can’t sync the source with remote client. It complains:

Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'XXXXX'.
org.eclipse.cdt.managedbuilder.internal.core.ResourceConfiguration cannot be cast to org.eclipse.cdt.managedbuilder.core.IToolChain

In Nsight Eclipse Edition 10.2.

Any solution? Thanks.