build errors

+1 vote

Hello,

This is Seo. I got some errors while building the multichain 2.0 source from 2.0-dev as follows:

on new installed Ubuntu 18.10, I followed readme.md and v8.md

1.

../../src/profiler/tracing-cpu-profiler.cc:26:3: error: use of undeclared identifier 'TRACE_EVENT_WARMUP_CATEGORY'
  TRACE_EVENT_WARMUP_CATEGORY(TRACE_DISABLED_BY_DEFAULT("v8.cpu_profiler"));
  ^
../../src/profiler/tracing-cpu-profiler.cc:27:3: error: use of undeclared identifier 'TRACE_EVENT_WARMUP_CATEGORY'
  TRACE_EVENT_WARMUP_CATEGORY(
  ^
2 errors generated.

2. (after commenting)

../../src/tracing/tracing-category-observer.cc:22:3: error: use of undeclared identifier 'TRACE_EVENT_WARMUP_CATEGORY'
  TRACE_EVENT_WARMUP_CATEGORY(TRACE_DISABLED_BY_DEFAULT("v8.runtime_stats"));
  ^
../../src/tracing/tracing-category-observer.cc:23:3: error: use of undeclared identifier 'TRACE_EVENT_WARMUP_CATEGORY'
  TRACE_EVENT_WARMUP_CATEGORY(
  ^
../../src/tracing/tracing-category-observer.cc:25:3: error: use of undeclared identifier 'TRACE_EVENT_WARMUP_CATEGORY'
  TRACE_EVENT_WARMUP_CATEGORY(TRACE_DISABLED_BY_DEFAULT("v8.gc_stats"));
  ^
../../src/tracing/tracing-category-observer.cc:26:3: error: use of undeclared identifier 'TRACE_EVENT_WARMUP_CATEGORY'
  TRACE_EVENT_WARMUP_CATEGORY(TRACE_DISABLED_BY_DEFAULT("v8.ic_stats"));
  ^
4 errors generated.

3. (after commenting, and then It went forward well, at last, when I typed "mc20@ubuntu:~/multichain/v8build$ python $MULTICHAIN_HOME/depends/v8_data_lib.py")

2019-01-16 14:05:01,797 INFO    v8_data_lib - Build v8_data.lib from .bin and .dat files
2019-01-16 14:05:01,797 INFO      Path:     /home/mc20/multichain/v8build/v8/out.gn/x64.release
2019-01-16 14:05:01,798 INFO      Platform: linux2
2019-01-16 14:05:01,858 INFO    nasm -f elf64 -o obj/natives_blob.o natives_blob.s
Traceback (most recent call last):
  File "/home/mc20/multichain/depends/v8_data_lib.py", line 101, in <module>
    sys.exit(main())
  File "/home/mc20/multichain/depends/v8_data_lib.py", line 96, in main
    process_bin_files(options.platform)
  File "/home/mc20/multichain/depends/v8_data_lib.py", line 56, in process_bin_files
    obj_names.append(process_bin_file(f, platform))
  File "/home/mc20/multichain/depends/v8_data_lib.py", line 48, in process_bin_file
    call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I couldn't finish that work. So I need your help.

Thank you!

asked Jan 16, 2019 by Seo

1 Answer

0 votes
The V8 toolset changes quite regularly, so it's likely there's an issue compiling that appeared since we released 2.0 beta 1. We're working on improving the compilation process to solve this problem – for now it's recommended to use the binary distribution.
answered Jan 16, 2019 by MultiChain
...