Closed
Bug 860564
Opened 13 years ago
Closed 12 years ago
TraceLog: error: ‘uint64_t js::rdtsc()’ should have been declared inside ‘js’
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: wuwei, Unassigned)
Details
jsshell fails to compile with '--enable-trace-logging' option on x86_64-linux-gnu platform.
$ uname -a
Linux pc 3.5.0-26-generic #42~precise1-Ubuntu SMP Mon Mar 11 22:17:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-4.6.real
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
$ ../mozilla-central/js/src/configure --enable-trace-logging
$ make
...
make libs
TraceLogging.cpp
make[1]: Entering directory `/src/jsshell.tracelog'
c++ -o TraceLogging.o -c -I./dist/system_wrappers_js -include ../mozilla-central/js/src/config/gcc_hidden.h -DENABLE_TYPEDARRAY_MOVE -DENABLE_PARALLEL_JS -DNO_NSPR_10_SUPPORT -DIMPL_MFBT -DEXPORT_JS_API -DUSE_ZLIB -I../mozilla-central/js/src/../../mfbt/double-conversion -I../mozilla-central/js/src/../../intl/icu/source/common -I../mozilla-central/js/src/../../intl/icu/source/i18n -I../mozilla-central/js/src -I. -I./dist/include -I../mozilla-central/js/src -I../mozilla-central/js/src/assembler -I../mozilla-central/js/src/yarr -fPIC -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Werror=conversion-null -Wsign-compare -Wno-invalid-offsetof -Wcast-align -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -pthread -pipe -DNDEBUG -DTRIMMED -g -O3 -freorder-blocks -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/TraceLogging.o.pp /src/mozilla-central/js/src/TraceLogging.cpp
/src/mozilla-central/js/src/TraceLogging.cpp:35:15: error: ‘uint64_t js::rdtsc()’ should have been declared inside ‘js’
/src/mozilla-central/js/src/TraceLogging.cpp: In member function ‘void js::TraceLogging::log(js::TraceLogging::Type, JSScript*)’:
/src/mozilla-central/js/src/TraceLogging.cpp:160:53: error: no matching function for call to ‘js::TraceLogging::log(js::TraceLogging::Type&, <unresolved overloaded function type>, uint32_t&)’
/src/mozilla-central/js/src/TraceLogging.cpp:160:53: note: candidates are:
/src/mozilla-central/js/src/TraceLogging.cpp:129:1: note: void js::TraceLogging::log(js::TraceLogging::Type, const char*, unsigned int)
/src/mozilla-central/js/src/TraceLogging.cpp:129:1: note: no known conversion for argument 2 from ‘<unresolved overloaded function type>’ to ‘const char*’
/src/mozilla-central/js/src/TraceLogging.cpp:158:1: note: void js::TraceLogging::log(js::TraceLogging::Type, JSScript*)
/src/mozilla-central/js/src/TraceLogging.cpp:158:1: note: candidate expects 2 arguments, 3 provided
/src/mozilla-central/js/src/TraceLogging.h:72:10: note: void js::TraceLogging::log(const char*)
/src/mozilla-central/js/src/TraceLogging.h:72:10: note: candidate expects 1 argument, 3 provided
/src/mozilla-central/js/src/TraceLogging.h:73:10: note: void js::TraceLogging::log(js::TraceLogging::Type)
/src/mozilla-central/js/src/TraceLogging.h:73:10: note: candidate expects 1 argument, 3 provided
make[1]: *** [TraceLogging.o] Error 1
make[1]: Leaving directory `/src/jsshell.tracelog'
make: *** [default] Error 2
| Reporter | ||
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•