Closed
Bug 944844
Opened 11 years ago
Closed 11 years ago
../../dist/include/GeckoProfilerImpl.h:309:7: error: call to 'vsnprintf' is ambiguous when building with 8 unified sources instead of 16
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: glandium, Assigned: ehsan.akhgari)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
1.30 KB,
patch
|
BenWa
:
review+
|
Details | Diff | Splinter Review |
Open python/mozbuild/mozbuild/backend/recursivemake.py, search for files_per_unification, replace its value (16) with 8.
This is the error you can get then:
../../dist/include/GeckoProfilerImpl.h:309:7: error: call to 'vsnprintf' is ambiguous
vsnprintf(buff, SAMPLER_MAX_STRING, aFormat, args);
^~~~~~~~~
/usr/include/stdio.h:390:12: note: candidate function
extern int vsnprintf (char *__restrict __s, size_t __maxlen,
^
ipc/chromium/src/base/string_util_posix.h:31:12: note: candidate function
inline int vsnprintf(char* buffer, size_t size,
^
In file included from obj-x86_64-unknown-linux-gnu/gfx/layers/Unified_cpp_gfx_layers7.cpp:29:
In file included from gfx/layers/ipc/LayerTransactionParent.cpp:41:
In file included from ../../dist/include/GeckoProfiler.h:176:
../../dist/include/GeckoProfilerImpl.h:310:7: error: call to 'snprintf' is ambiguous
snprintf(mDest, SAMPLER_MAX_STRING, "%s %s", aDefault, buff);
^~~~~~~~
/usr/include/stdio.h:386:12: note: candidate function
extern int snprintf (char *__restrict __s, size_t __maxlen,
^
ipc/chromium/src/base/string_util.h:53:12: note: candidate function
inline int snprintf(char* buffer, size_t size, const char* format, ...) {
^
Reporter | ||
Comment 1•11 years ago
|
||
Ehsan, did you have errors like this during the migration of some of the code?
Blocks: unified
Flags: needinfo?(ehsan)
Assignee | ||
Comment 2•11 years ago
|
||
This is thanks to the |using namespace base;| statements in gfx/layers/ipc.
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #8341109 -
Flags: review?(bgirard)
Flags: needinfo?(ehsan)
Updated•11 years ago
|
Attachment #8341109 -
Flags: review?(bgirard) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•