Page MenuHomeSolus

Dartlang
Closed, WontfixPublic

Description

Dartlang
https://www.dartlang.org/
create server, web application and mobile with flutter
It's Open source
I don't really know how many people

https://github.com/dart-lang/sdk/archive/1.24.3.tar.gz

Related Objects

Event Timeline

Kleak created this task.Nov 7 2017, 7:58 AM
Kleak updated the task description. (Show Details)
czb added a subscriber: czb.Dec 9 2017, 2:06 AM
JoshStrobl triaged this task as Needs More Info priority.Dec 16 2017, 9:36 PM
JoshStrobl added a subscriber: JoshStrobl.

Need a link to a Dartlang source tarball, not pre-compiled releases.

JoshStrobl raised the priority of this task from Needs More Info to Low.Dec 16 2017, 10:07 PM
JoshStrobl updated the task description. (Show Details)
JoshStrobl moved this task from Backlog to Accepted For Inclusion on the Package Requests board.

I assume we're requesting 1.24.3 here?

@ikey That's the latest stable. 2.x is dev.

Yep I was just making sure that we're all on the same page with limiting this to the stable branch :)

Yes only stable branch.
If i can help let me know :)

Kleak added a comment.Jan 2 2018, 3:19 PM

Can i create the package myself and submit it to review ?
Is there a guide on how to do that or a equivalent package to learn from it ?

Packaging documentation is available here. You can submit a package following our Submitting a Package documentation. Just be sure you are building it from source, it won't be accepted if you're just repackaging the pre-made binaries.

BearzR added a subscriber: BearzR.Jan 2 2018, 3:49 PM
Kleak added a comment.Jan 2 2018, 4:14 PM

i got this error when i try to build dart on solus :/

../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
Kleak added a comment.EditedJan 2 2018, 4:37 PM

also to build the dart sdk from the source they don't use make.
They use a custom script as you can see here how that can be used in the package.yml file.
the script is located in another git repos (https://chromium.googlesource.com/chromium/tools/depot_tools.git)

BearzR added a comment.Jan 2 2018, 5:15 PM

Kleak that would be a question for @ikey. It might involve creating a macro for it or just packaging it first, including it as a dependency and running it like a normal terminal command like cd or mkdir.

Kleak added a comment.Jan 2 2018, 5:16 PM

i also got this error when i launch make
Profile is not installed: Did you forget to init?

Kleak added a comment.Jan 2 2018, 5:18 PM

@BearzR in fact i should be able to build the sdk just with the tarball :)

i also got this error when i launch make
Profile is not installed: Did you forget to init?

Follow the documentation here and make sure you're installing the unstable config, that is what solbuild defaults to and what you should be building against.

Kleak added a comment.Jan 2 2018, 5:24 PM

@JoshStrobl i have already installed all this stuff but keep getting the error :/

Kleak added a comment.Jan 2 2018, 5:26 PM

ok after init i did update and it seems that was not necessary

Kleak added a comment.Jan 2 2018, 5:28 PM

here is where i'm

make[1]: Entering directory '/home/kleak/Work/kleak/solus/dart'
abireport -p abi_ -D `dirname package.yml` scan-packages `dirname package.yml`
Error locating packages: No packages in directory .

make[1]: *** [../Makefile.common:15: abireport] Error 1
make[1]: Leaving directory '/home/kleak/Work/kleak/solus/dart'
make: *** [../Makefile.common:12: complete] Error 2

Do you have a package.yml file? I assume you are following the packaging documentation and not just trying to run make against a tarball, right? Follow Generating a Package.yml and I'd recommend at this point our Youtube videos as well (starting with Session 4).

Kleak added a comment.EditedJan 2 2018, 6:11 PM

yes i have a package.yml
will watch the video :)

Kleak added a comment.EditedJan 8 2018, 10:10 AM

I have a little problem when i try to compile dart on solus here are the error.

i follow the instruction here :
https://github.com/dart-lang/sdk/wiki/Building

and when i launch this command i get the following error :
./tools/build.py --mode release --arch x64 create_sdk

ninja -C out/ReleaseX64 create_sdk
ninja: Entering directory `out/ReleaseX64'
[3/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/process_win.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/process_win.o 
../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/process_win.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -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 -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/process_win.cc -o obj/runtime/bin/gen_snapshot_dart_io/process_win.o
In file included from ../../runtime/bin/process_win.cc:7:
In file included from ../../runtime/platform/globals.h:78:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[4/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_android.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_android.o 
../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_android.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -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 -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:7:
In file included from ../../runtime/platform/globals.h:78:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[5/1905] 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/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -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 -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:78:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[7/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_base.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_base.o 
../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_base.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -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 -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:7:
In file included from ../../runtime/bin/socket_base.h:12:
In file included from ../../runtime/platform/globals.h:78:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[8/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/socket.o
FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket.o 
../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -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 -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:7:
In file included from ../../runtime/bin/socket.h:12:
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:78:
../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[12/1905] CC obj/runtime/bin/zlib/libchrome_zlib/gzread.o
ninja: build stopped: subcommand failed.
BUILD FAILED

i have installed the system.devel package

piotrpalek added a subscriber: piotrpalek.EditedJun 21 2018, 9:51 PM

@Kleak did you make any progress with this?

edit: I've had some success with by following this comment: https://github.com/dart-lang/sdk/issues/30435#issuecomment-342845207

JoshStrobl closed this task as Wontfix.Jun 25 2018, 12:48 PM
JoshStrobl claimed this task.
JoshStrobl added a project: Needs Maintainer.

This has sat in accepted for inclusion for 6 months now. Clearly, there is a lack of demand for the inclusion of this software, nobody has stepped up to provide a patch, maintain it, and properly integrate it. Closing as a result. Feel free to reopen but only when someone offers a patch via our proper patch submission methods and volunteers to be maintainer.

Kleak added a comment.EditedOct 9 2018, 7:20 PM

i really would like to have dartlang in solus so i retried to do this yesterday but i encounter some difficulties.

First i need the tool in depot_tools as stated here https://github.com/dart-lang/sdk/wiki/Building#linux without it seems not possible to build the project.

then even with this it seems that getting the tarball doesn't work with this step https://github.com/dart-lang/sdk/wiki/Building#building
It seems we need to get the source as they say here https://github.com/dart-lang/sdk/wiki/Building#getting-the-source but we can't do that for solus :/

when i follow the step i successfully build the sdk.

Does anybody has hint on how to do it ?

flyingP0tat0 added a comment.EditedDec 23 2018, 7:34 PM

Oh, right, I should have probably looked this up before I opened a new ticket. Sorry!

What I got so far: I found a way to build the Dart SDK from source, but it is using the shipped toolchain from the Dart team.
I think we have to ways to proceed: Either stick to the (not very clean) way of building Dart from source or take the same approach as every other distro and just package the binary release.

I would volunteer to package and maintain Dart once one of the team members tells me which way I should take: Source or binary?

This comment was removed by flyingP0tat0.