Build dart sdk from source failed

12 views
Skip to first unread message

Kevin Segaud

unread,
Feb 2, 2018, 2:45:14 AM2/2/18
to Dart VM Developers
Hey,
I'm trying to build the dart sdk from the sources in order to create a solus package.
i have follow the instruction here but when i do :

./tools/build.py --mode release --arch x64 create_sdk

i got the following error : 

ninja -C out/ReleaseX64 create_sdk
ninja: Entering directory `out/ReleaseX64'
[95/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_fuchsia.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_fuchsia.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_fuchsia.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_fuchsia.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_fuchsia.o
In file included from ../../runtime/bin/socket_fuchsia.cc:5:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[96/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_base_win.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_base_win.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_base_win.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_base_win.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_base_win.o
In file included from ../../runtime/bin/socket_base_win.cc:5:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[97/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_base_fuchsia.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_base_fuchsia.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_base_fuchsia.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_base_fuchsia.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_base_fuchsia.o
In file included from ../../runtime/bin/socket_base_fuchsia.cc:5:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[98/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_android.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_android.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_android.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_android.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_android.o
In file included from ../../runtime/bin/socket_android.cc:5:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[99/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_base_android.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_base_android.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_base_android.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_base_android.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_base_android.o
In file included from ../../runtime/bin/socket_base_android.cc:5:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[100/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/secure_socket_unsupported.cc -o obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o
In file included from ../../runtime/bin/secure_socket_unsupported.cc:7:
In file included from ../../runtime/bin/builtin.h:13:
In file included from ../../runtime/platform/assert.h:16:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[101/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_base.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_base.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_base.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_base.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_base.o
In file included from ../../runtime/bin/socket_base.cc:5:
In file included from ../../runtime/bin/socket_base.h:8:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[102/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_linux.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_linux.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_linux.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_linux.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_linux.o
In file included from ../../runtime/bin/socket_linux.cc:5:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[103/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket.o
In file included from ../../runtime/bin/socket.cc:5:
In file included from ../../runtime/bin/socket.h:8:
In file included from ../../runtime/bin/builtin.h:13:
In file included from ../../runtime/platform/assert.h:16:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[104/2119] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_base_linux.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_base_linux.o 
../../buildtools/linux-x64/clang/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_base_linux.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DTOOLCHAIN_VERSION=f5493efd90cd67aecbcdef4501b7db7b2bc5e62e -DNDEBUG -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DTARGET_OS_LINUX -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wno-tautological-constant-compare -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_base_linux.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_base_linux.o
In file included from ../../runtime/bin/socket_base_linux.cc:5:
In file included from ../../runtime/platform/globals.h:79:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
BUILD FAILED


I have installed all the needed dependencies but it seems it didn't find one :/
If someone has an idea :)

Thanks a lot

Reply all
Reply to author
Forward
0 new messages