Closed
Bug 1155644
Opened 11 years ago
Closed 11 years ago
Errors when building the js shell with new clang because of the lack of -Wno-inline-new-delete
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1155393
People
(Reporter: ehsan.akhgari, Unassigned)
Details
Attachments
(1 obsolete file)
45:43.90 In file included from /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/js/src/shell/Unified_cpp_js_src_shell0.cpp:11:
45:43.90 In file included from /Users/ehsan/moz/src/js/src/shell/js.cpp:13:
45:43.90 ../../../dist/include/mozilla/mozalloc.h:182:1: error: replacement function 'operator new' cannot be declared 'inline' [-Werror,-Winline-new-delete]
45:43.90 MOZALLOC_INLINE
45:43.90 ^
45:43.90 ../../../dist/include/mozilla/mozalloc.h:31:27: note: expanded from macro 'MOZALLOC_INLINE'
45:43.92 # define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
45:43.92 ^
45:43.92 ../../../dist/include/mozilla/Attributes.h:27:75: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG'
45:43.92 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline
45:43.92 ^
45:43.92 In file included from /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/js/src/shell/Unified_cpp_js_src_shell0.cpp:11:
45:43.92 In file included from /Users/ehsan/moz/src/js/src/shell/js.cpp:13:
45:43.92 ../../../dist/include/mozilla/mozalloc.h:189:21: error: replacement function 'operator new' cannot be declared 'inline' [-Werror,-Winline-new-delete]
45:43.92 MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
45:43.92 ^
45:43.92 ../../../dist/include/mozilla/mozalloc.h:31:27: note: expanded from macro 'MOZALLOC_INLINE'
45:43.92 # define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
45:43.92 ^
45:43.93 ../../../dist/include/mozilla/Attributes.h:27:75: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG'
45:43.93 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline
45:43.93 ^
45:43.93 In file included from /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/js/src/shell/Unified_cpp_js_src_shell0.cpp:11:
45:43.93 In file included from /Users/ehsan/moz/src/js/src/shell/js.cpp:13:
45:43.93 ../../../dist/include/mozilla/mozalloc.h:195:21: error: replacement function 'operator new[]' cannot be declared 'inline' [-Werror,-Winline-new-delete]
45:43.93 MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
45:43.93 ^
45:43.93 ../../../dist/include/mozilla/mozalloc.h:31:27: note: expanded from macro 'MOZALLOC_INLINE'
45:44.08 # define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
45:44.09 ^
45:44.09 ../../../dist/include/mozilla/Attributes.h:27:75: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG'
45:44.09 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline
45:44.09 ^
45:44.12 In file included from /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/js/src/shell/Unified_cpp_js_src_shell0.cpp:11:
45:44.12 In file included from /Users/ehsan/moz/src/js/src/shell/js.cpp:13:
45:44.12 ../../../dist/include/mozilla/mozalloc.h:201:21: error: replacement function 'operator new[]' cannot be declared 'inline' [-Werror,-Winline-new-delete]
45:44.12 MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
45:44.12 ^
45:44.12 ../../../dist/include/mozilla/mozalloc.h:31:27: note: expanded from macro 'MOZALLOC_INLINE'
45:44.12 # define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
45:44.12 ^
45:44.12 ../../../dist/include/mozilla/Attributes.h:27:75: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG'
45:44.12 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline
45:44.12 ^
45:44.12 In file included from /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/js/src/shell/Unified_cpp_js_src_shell0.cpp:11:
45:44.12 In file included from /Users/ehsan/moz/src/js/src/shell/js.cpp:13:
45:44.12 ../../../dist/include/mozilla/mozalloc.h:207:21: error: replacement function 'operator delete' cannot be declared 'inline' [-Werror,-Winline-new-delete]
45:44.13 MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
45:44.13 ^
45:44.13 ../../../dist/include/mozilla/mozalloc.h:31:27: note: expanded from macro 'MOZALLOC_INLINE'
45:44.13 # define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
45:44.13 ^
45:44.13 ../../../dist/include/mozilla/Attributes.h:27:75: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG'
45:44.13 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline
45:44.13 ^
45:44.13 In file included from /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/js/src/shell/Unified_cpp_js_src_shell0.cpp:11:
45:44.13 In file included from /Users/ehsan/moz/src/js/src/shell/js.cpp:13:
45:44.13 ../../../dist/include/mozilla/mozalloc.h:213:21: error: replacement function 'operator delete' cannot be declared 'inline' [-Werror,-Winline-new-delete]
45:44.13 MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
45:44.13 ^
45:44.13 ../../../dist/include/mozilla/mozalloc.h:31:27: note: expanded from macro 'MOZALLOC_INLINE'
45:44.13 # define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
45:44.13 ^
45:44.13 ../../../dist/include/mozilla/Attributes.h:27:75: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG'
45:44.13 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline
45:44.13 ^
45:44.17 In file included from /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/js/src/shell/Unified_cpp_js_src_shell0.cpp:11:
45:44.17 In file included from /Users/ehsan/moz/src/js/src/shell/js.cpp:13:
45:44.17 ../../../dist/include/mozilla/mozalloc.h:219:21: error: replacement function 'operator delete[]' cannot be declared 'inline' [-Werror,-Winline-new-delete]
45:44.17 MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
45:44.17 ^
45:44.17 ../../../dist/include/mozilla/mozalloc.h:31:27: note: expanded from macro 'MOZALLOC_INLINE'
45:44.17 # define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
45:44.17 ^
45:44.17 ../../../dist/include/mozilla/Attributes.h:27:75: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG'
45:44.17 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline
45:44.17 ^
45:44.17 In file included from /Users/ehsan/moz/src/obj-ff-clang-plugin.noindex/js/src/shell/Unified_cpp_js_src_shell0.cpp:11:
45:44.17 In file included from /Users/ehsan/moz/src/js/src/shell/js.cpp:13:
45:44.17 ../../../dist/include/mozilla/mozalloc.h:225:21: error: replacement function 'operator delete[]' cannot be declared 'inline' [-Werror,-Winline-new-delete]
45:44.17 MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
45:44.17 ^
45:44.17 ../../../dist/include/mozilla/mozalloc.h:31:27: note: expanded from macro 'MOZALLOC_INLINE'
45:44.17 # define MOZALLOC_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG
45:44.17 ^
45:44.17 ../../../dist/include/mozilla/Attributes.h:27:75: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG'
45:44.17 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline
45:44.17 ^
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 2•11 years ago
|
||
Attachment #8593937 -
Flags: review?(mh+mozilla)
| Reporter | ||
Updated•11 years ago
|
Attachment #8593937 -
Attachment is obsolete: true
Attachment #8593937 -
Flags: review?(mh+mozilla)
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•