Closed Bug 1420165 Opened 2 years ago Closed 2 years ago

icecream: Error compiling objective-C++ : error: invalid argument '-std=gnu++14' not allowed with 'C'

Categories

(Firefox Build System :: General, defect)

Unspecified
macOS
defect
Not set

Tracking

(firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: jya, Assigned: jya)

Details

Attachments

(1 file)

Using icecream and the latest clang (either 5.0.1 or trunk), using only remote compilation

compilation will fail on mac with:
ICECC_VERSION="x86_64:/Users/jyavenard/Work/Mozilla/icecream/8fa530da0446618be6b7f446e7af7935.tar.gz" /Users/jyavenard/Work/Mozilla/icecream/git/client/icecc /Users/jyavenard/Work/Mozilla/icecream/clang_darwin_on_darwin/bin/clang++ --target=x86_64-apple-darwin16.0.0 -mmacosx-version-min=10.12 -std=gnu++14 -o Unified_mm_ipc_interpose0.o -c -fvisibility=hidden -fvisibility-inlines-hidden -DDEBUG=1 -I/Users/jyavenard/Work/Mozilla/mozilla-central/dom/plugins/ipc/interpose -I/Users/jyavenard/Work/Mozilla/obj-ff-dbg/dom/plugins/ipc/interpose -I/Users/jyavenard/Work/Mozilla/obj-ff-dbg/dist/include -I/Users/jyavenard/Work/Mozilla/obj-ff-dbg/dist/include/nspr -I/Users/jyavenard/Work/Mozilla/obj-ff-dbg/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /Users/jyavenard/Work/Mozilla/obj-ff-dbg/mozilla-config.h -Qunused-arguments -Qunused-arguments -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return -Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wloop-analysis -Wc++1z-compat -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-sized-deallocation -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fno-exceptions -fno-strict-aliasing -stdlib=libc++ -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -g -fno-omit-frame-pointer  -MD -MP -MF .deps/Unified_mm_ipc_interpose0.o.pp  -fcolor-diagnostics -fobjc-exceptions  -fcolor-diagnostics  /Users/jyavenard/Work/Mozilla/obj-ff-dbg/dom/plugins/ipc/interpose/Unified_mm_ipc_interpose0.mm
error: invalid argument '-std=gnu++14' not allowed with 'C'

 0:04.28 error: invalid argument '-std=gnu++14' not allowed with 'C'

removing -std-gnu++14 and this line will compile...
OS: Unspecified → Mac OS X
Summary: Error compiling objective-C++ : error: invalid argument '-std=gnu++14' not allowed with 'C' → icecream: Error compiling objective-C++ : error: invalid argument '-std=gnu++14' not allowed with 'C'
Comment on attachment 8931652 [details]
Bug 1420165 - Enforce objective-c/c++ language type when compiling .m/mm files.

https://reviewboard.mozilla.org/r/202824/#review208908
Attachment #8931652 - Flags: review+
Attachment #8931652 - Flags: review?(core-build-config-reviews)
Pushed by jyavenard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ba950baa4b7b
Enforce objective-c/c++ language type when compiling .m/mm files. r=ted
https://hg.mozilla.org/mozilla-central/rev/ba950baa4b7b
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Product: Core → Firefox Build System
Assignee: nobody → jyavenard
You need to log in before you can comment on or make changes to this bug.