Discussion:
[dart-misc] Raspberry Pi Zero, build instructions for older versions of the dart-sdk
seb mitchell
2016-01-14 13:20:32 UTC
Permalink
Hi, have built dart for my raspberry pi zero, using the cool debian
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain
from https://www.raspberrypi.org/documentation/linux/kernel/building.md

A simple hello world works, but a pub get fails with a Segmentation fault
on the pi zero
Dart VM version: 1.14.0-edge

A build for raspberry pi 2, ARMv7, works fine.

Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?

I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice to have
the full dart sdk for these older chips.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Zach Anderson' via Dart Misc
2016-01-14 17:24:03 UTC
Permalink
It looks like ARMv6 (Pi 1 and Pi 0) are broken after 1.13 on the switch to
boringssl, which is why "Hello, world!" works, but pub fails.

If you can get a 1.12.2 stable checkout, you should be able to use the
raspberry pi toolchain to build and run on the Pi 1 and Pi 0.

I'm not sure off the top of my head how to get a source checkout of an
older stable branch, but hopefully someone else on the list can chime in.

Cheers,
Zach
Post by seb mitchell
Hi, have built dart for my raspberry pi zero, using the cool debian
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain from
https://www.raspberrypi.org/documentation/linux/kernel/building.md
A simple hello world works, but a pub get fails with a Segmentation fault
on the pi zero
Dart VM version: 1.14.0-edge
A build for raspberry pi 2, ARMv7, works fine.
Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?
I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice to have
the full dart sdk for these older chips.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Rico Wind' via Dart Misc
2016-01-14 17:26:26 UTC
Permalink
On Thu, Jan 14, 2016 at 6:24 PM, 'Zach Anderson' via Dart Misc <
Post by 'Zach Anderson' via Dart Misc
It looks like ARMv6 (Pi 1 and Pi 0) are broken after 1.13 on the switch to
boringssl, which is why "Hello, world!" works, but pub fails.
If you can get a 1.12.2 stable checkout, you should be able to use the
raspberry pi toolchain to build and run on the Pi 1 and Pi 0.
git checkout 1.12.2
gclient sync

Cheers,
Rico
Post by 'Zach Anderson' via Dart Misc
I'm not sure off the top of my head how to get a source checkout of an
older stable branch, but hopefully someone else on the list can chime in.
Cheers,
Zach
Post by seb mitchell
Hi, have built dart for my raspberry pi zero, using the cool debian
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain from
https://www.raspberrypi.org/documentation/linux/kernel/building.md
A simple hello world works, but a pub get fails with a Segmentation fault
on the pi zero
Dart VM version: 1.14.0-edge
A build for raspberry pi 2, ARMv7, works fine.
Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?
I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice to have
the full dart sdk for these older chips.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Rico Wind' via Dart Misc
2016-01-14 17:27:19 UTC
Permalink
Post by 'Rico Wind' via Dart Misc
On Thu, Jan 14, 2016 at 6:24 PM, 'Zach Anderson' via Dart Misc <
Post by 'Zach Anderson' via Dart Misc
It looks like ARMv6 (Pi 1 and Pi 0) are broken after 1.13 on the switch
to boringssl, which is why "Hello, world!" works, but pub fails.
If you can get a 1.12.2 stable checkout, you should be able to use the
raspberry pi toolchain to build and run on the Pi 1 and Pi 0.
git checkout 1.12.2
gclient sync
Assumes that you have an unmanged checkout ( "managed": False in your
.gclient file)

Cheers,
Rico
Post by 'Rico Wind' via Dart Misc
Cheers,
Rico
Post by 'Zach Anderson' via Dart Misc
I'm not sure off the top of my head how to get a source checkout of an
older stable branch, but hopefully someone else on the list can chime in.
Cheers,
Zach
Post by seb mitchell
Hi, have built dart for my raspberry pi zero, using the cool debian
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain from
https://www.raspberrypi.org/documentation/linux/kernel/building.md
A simple hello world works, but a pub get fails with a Segmentation
fault on the pi zero
Dart VM version: 1.14.0-edge
A build for raspberry pi 2, ARMv7, works fine.
Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?
I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice to
have the full dart sdk for these older chips.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Jan Mostert
2016-01-14 18:31:33 UTC
Permalink
I've compiled 1.13.2 from source this morning without problems on CentOS7,
had similar issues on older CentOS versions seeing segfaults.
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
On Thu, Jan 14, 2016 at 6:24 PM, 'Zach Anderson' via Dart Misc <
Post by 'Zach Anderson' via Dart Misc
It looks like ARMv6 (Pi 1 and Pi 0) are broken after 1.13 on the switch
to boringssl, which is why "Hello, world!" works, but pub fails.
If you can get a 1.12.2 stable checkout, you should be able to use the
raspberry pi toolchain to build and run on the Pi 1 and Pi 0.
git checkout 1.12.2
gclient sync
Assumes that you have an unmanged checkout ( "managed": False in your
.gclient file)
Cheers,
Rico
Post by 'Rico Wind' via Dart Misc
Cheers,
Rico
Post by 'Zach Anderson' via Dart Misc
I'm not sure off the top of my head how to get a source checkout of an
older stable branch, but hopefully someone else on the list can chime in.
Cheers,
Zach
Post by seb mitchell
Hi, have built dart for my raspberry pi zero, using the cool debian
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain from
https://www.raspberrypi.org/documentation/linux/kernel/building.md
A simple hello world works, but a pub get fails with a Segmentation
fault on the pi zero
Dart VM version: 1.14.0-edge
A build for raspberry pi 2, ARMv7, works fine.
Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?
I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice to
have the full dart sdk for these older chips.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Jan Mostert
2016-01-14 18:43:14 UTC
Permalink
# build dart

cd /usr/src

mkdir dart

cd dart

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

git clone https://github.com/dart-lang/sdk.git -b *stable # <- change to
the branch you want to build*

export PATH=$PATH:`pwd`/depot_tools

gclient config --name=sdk --unmanaged ***@github.com:dart-lang/sdk.git

gclient sync # --jobs=1 --verbose

gclient runhooks

cd sdk

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

out/ReleaseX64/dart --version
Post by Jan Mostert
I've compiled 1.13.2 from source this morning without problems on CentOS7,
had similar issues on older CentOS versions seeing segfaults.
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
On Thu, Jan 14, 2016 at 6:24 PM, 'Zach Anderson' via Dart Misc <
Post by 'Zach Anderson' via Dart Misc
It looks like ARMv6 (Pi 1 and Pi 0) are broken after 1.13 on the switch
to boringssl, which is why "Hello, world!" works, but pub fails.
If you can get a 1.12.2 stable checkout, you should be able to use the
raspberry pi toolchain to build and run on the Pi 1 and Pi 0.
git checkout 1.12.2
gclient sync
Assumes that you have an unmanged checkout ( "managed": False in your
.gclient file)
Cheers,
Rico
Post by 'Rico Wind' via Dart Misc
Cheers,
Rico
Post by 'Zach Anderson' via Dart Misc
I'm not sure off the top of my head how to get a source checkout of an
older stable branch, but hopefully someone else on the list can chime in.
Cheers,
Zach
Post by seb mitchell
Hi, have built dart for my raspberry pi zero, using the cool debian
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain from
https://www.raspberrypi.org/documentation/linux/kernel/building.md
A simple hello world works, but a pub get fails with a Segmentation
fault on the pi zero
Dart VM version: 1.14.0-edge
A build for raspberry pi 2, ARMv7, works fine.
Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?
I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice to
have the full dart sdk for these older chips.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
seb mitchell
2016-01-16 07:47:23 UTC
Permalink
Thanks guys, found that the release build, 1.13.2, has same "Segmentation
fault" on my raspberry pi zero, but older release 1.12.2 was fine,
so maybe it the new ssl library.

So to build raspberry pi armv6 dart ver 1.12.2

Get the toolchain
via https://www.raspberrypi.org/documentation/linux/kernel/building.md

cd /usr/src
mkdir rpitoolchain
git clone https://github.com/raspberrypi/tools

cd /usr/src
mkdir dart
cd dart
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
git clone https://github.com/dart-lang/sdk.git -b 1.12.2 # <- change to
the branch you want to build
export PATH=$PATH:`pwd`/depot_tools

gclient config --name=sdk --unmanaged ***@github.com:dart-lang/sdk.git
gclient sync # --jobs=1 --verbose
gclient runhooks

cd sdk
tools/build.py --mode=release --arch=arm
--toolchain=/usr/src/rpitoolchain/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf
create_sdk


To get it to my pi zero

cd out/ReleaseXARM
Post by Jan Mostert
# build dart
cd /usr/src
mkdir dart
cd dart
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
git clone https://github.com/dart-lang/sdk.git -b 1.12.2* # <- change to
the branch you want to build*
export PATH=$PATH:`pwd`/depot_tools
gclient sync # --jobs=1 --verbose
gclient runhooks
cd sdk
tools/build.py --mode=release --arch=arm create_sdk
out/ReleaseX64/dart --version
Post by Jan Mostert
I've compiled 1.13.2 from source this morning without problems on
CentOS7, had similar issues on older CentOS versions seeing segfaults.
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
On Thu, Jan 14, 2016 at 6:24 PM, 'Zach Anderson' via Dart Misc <
Post by 'Zach Anderson' via Dart Misc
It looks like ARMv6 (Pi 1 and Pi 0) are broken after 1.13 on the
switch to boringssl, which is why "Hello, world!" works, but pub fails.
If you can get a 1.12.2 stable checkout, you should be able to use the
raspberry pi toolchain to build and run on the Pi 1 and Pi 0.
git checkout 1.12.2
gclient sync
Assumes that you have an unmanged checkout ( "managed": False in your
.gclient file)
Cheers,
Rico
Post by 'Rico Wind' via Dart Misc
Cheers,
Rico
Post by 'Zach Anderson' via Dart Misc
I'm not sure off the top of my head how to get a source checkout of an
older stable branch, but hopefully someone else on the list can chime in.
Cheers,
Zach
Post by seb mitchell
Hi, have built dart for my raspberry pi zero, using the cool debian
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain from
https://www.raspberrypi.org/documentation/linux/kernel/building.md
A simple hello world works, but a pub get fails with a Segmentation
fault on the pi zero
Dart VM version: 1.14.0-edge
A build for raspberry pi 2, ARMv7, works fine.
Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?
I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice to
have the full dart sdk for these older chips.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it,
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'William Hesse' via Dart Misc
2016-01-22 12:05:51 UTC
Permalink
I have filed an issue for the failure of Dart 1.13 and 1.14 on ARM v6:
https://github.com/dart-lang/sdk/issues/25562
We need to verify its cause, and decide on a solution.
Post by seb mitchell
Thanks guys, found that the release build, 1.13.2, has same "Segmentation
fault" on my raspberry pi zero, but older release 1.12.2 was fine,
so maybe it the new ssl library.
So to build raspberry pi armv6 dart ver 1.12.2
Get the toolchain via
https://www.raspberrypi.org/documentation/linux/kernel/building.md
cd /usr/src
mkdir rpitoolchain
git clone https://github.com/raspberrypi/tools
cd /usr/src
mkdir dart
cd dart
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
git clone https://github.com/dart-lang/sdk.git -b 1.12.2 # <- change to the
branch you want to build
export PATH=$PATH:`pwd`/depot_tools
gclient sync # --jobs=1 --verbose
gclient runhooks
cd sdk
tools/build.py --mode=release --arch=arm
--toolchain=/usr/src/rpitoolchain/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf
create_sdk
To get it to my pi zero
cd out/ReleaseXARM
Post by Jan Mostert
# build dart
cd /usr/src
mkdir dart
cd dart
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
git clone https://github.com/dart-lang/sdk.git -b 1.12.2 # <- change to
the branch you want to build
export PATH=$PATH:`pwd`/depot_tools
gclient sync # --jobs=1 --verbose
gclient runhooks
cd sdk
tools/build.py --mode=release --arch=arm create_sdk
out/ReleaseX64/dart --version
Post by Jan Mostert
I've compiled 1.13.2 from source this morning without problems on
CentOS7, had similar issues on older CentOS versions seeing segfaults.
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
On Thu, Jan 14, 2016 at 6:24 PM, 'Zach Anderson' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
It looks like ARMv6 (Pi 1 and Pi 0) are broken after 1.13 on the
switch to boringssl, which is why "Hello, world!" works, but pub fails.
If you can get a 1.12.2 stable checkout, you should be able to use the
raspberry pi toolchain to build and run on the Pi 1 and Pi 0.
git checkout 1.12.2
gclient sync
Assumes that you have an unmanged checkout ( "managed": False in your
.gclient file)
Cheers,
Rico
Post by 'Rico Wind' via Dart Misc
Cheers,
Rico
Post by 'Zach Anderson' via Dart Misc
I'm not sure off the top of my head how to get a source checkout of an
older stable branch, but hopefully someone else on the list can chime in.
Cheers,
Zach
Post by seb mitchell
Hi, have built dart for my raspberry pi zero, using the cool debian
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain from
https://www.raspberrypi.org/documentation/linux/kernel/building.md
A simple hello world works, but a pub get fails with a Segmentation
fault on the pi zero
Dart VM version: 1.14.0-edge
A build for raspberry pi 2, ARMv7, works fine.
Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?
I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice to
have the full dart sdk for these older chips.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it,
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
William Hesse
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
seb mitchell
2016-01-22 12:15:18 UTC
Permalink
Cool, nice to have it fixed.

Have updated the issue with what a I get with a --mode=debug build for
1.14.0-dev.7.2
and gdb stuff.
Post by 'William Hesse' via Dart Misc
https://github.com/dart-lang/sdk/issues/25562
We need to verify its cause, and decide on a solution.
Post by seb mitchell
Thanks guys, found that the release build, 1.13.2, has same
"Segmentation
Post by seb mitchell
fault" on my raspberry pi zero, but older release 1.12.2 was fine,
so maybe it the new ssl library.
So to build raspberry pi armv6 dart ver 1.12.2
Get the toolchain via
https://www.raspberrypi.org/documentation/linux/kernel/building.md
cd /usr/src
mkdir rpitoolchain
git clone https://github.com/raspberrypi/tools
cd /usr/src
mkdir dart
cd dart
git clone
https://chromium.googlesource.com/chromium/tools/depot_tools.git
Post by seb mitchell
git clone https://github.com/dart-lang/sdk.git -b 1.12.2 # <- change
to the
Post by seb mitchell
branch you want to build
export PATH=$PATH:`pwd`/depot_tools
gclient sync # --jobs=1 --verbose
gclient runhooks
cd sdk
tools/build.py --mode=release --arch=arm
--toolchain=/usr/src/rpitoolchain/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf
Post by seb mitchell
create_sdk
To get it to my pi zero
cd out/ReleaseXARM
Post by Jan Mostert
# build dart
cd /usr/src
mkdir dart
cd dart
git clone
https://chromium.googlesource.com/chromium/tools/depot_tools.git
Post by seb mitchell
Post by Jan Mostert
git clone https://github.com/dart-lang/sdk.git -b 1.12.2 # <- change
to
Post by seb mitchell
Post by Jan Mostert
the branch you want to build
export PATH=$PATH:`pwd`/depot_tools
gclient sync # --jobs=1 --verbose
gclient runhooks
cd sdk
tools/build.py --mode=release --arch=arm create_sdk
out/ReleaseX64/dart --version
Post by Jan Mostert
I've compiled 1.13.2 from source this morning without problems on
CentOS7, had similar issues on older CentOS versions seeing segfaults.
On Thu, 14 Jan 2016, 19:27 'Rico Wind' via Dart Misc <
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
On Thu, Jan 14, 2016 at 6:24 PM, 'Zach Anderson' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
It looks like ARMv6 (Pi 1 and Pi 0) are broken after 1.13 on the
switch to boringssl, which is why "Hello, world!" works, but pub
fails.
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
If you can get a 1.12.2 stable checkout, you should be able to use
the
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
raspberry pi toolchain to build and run on the Pi 1 and Pi 0.
git checkout 1.12.2
gclient sync
Assumes that you have an unmanged checkout ( "managed": False in your
.gclient file)
Cheers,
Rico
Post by 'Rico Wind' via Dart Misc
Cheers,
Rico
Post by 'Zach Anderson' via Dart Misc
I'm not sure off the top of my head how to get a source checkout of
an
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
older stable branch, but hopefully someone else on the list can
chime in.
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
Cheers,
Zach
Post by seb mitchell
Hi, have built dart for my raspberry pi zero, using the cool
debian
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
Post by seb mitchell
instructions
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-on-Debian
and using the tool chain from
https://www.raspberrypi.org/documentation/linux/kernel/building.md
A simple hello world works, but a pub get fails with a
Segmentation
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
Post by seb mitchell
fault on the pi zero
Dart VM version: 1.14.0-edge
A build for raspberry pi 2, ARMv7, works fine.
Wondering if the 1.13.2 release build would have the same issue.
So how do I build for an older versions of the dart-sdk?
I have been using usb otg networking with the pi zero,
http://pi.gbaman.info/?p=699
Maybe I should just wait for Fletch support, but it would be nice
to
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
Post by seb mitchell
have the full dart sdk for these older chips.
--
For other discussions, see
https://groups.google.com/a/dartlang.org/
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
Post by seb mitchell
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it,
--
For other discussions, see
https://groups.google.com/a/dartlang.org/
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
Post by 'Rico Wind' via Dart Misc
Post by 'Zach Anderson' via Dart Misc
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it,
send
Post by seb mitchell
Post by Jan Mostert
Post by Jan Mostert
Post by 'Rico Wind' via Dart Misc
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it,
send
Post by seb mitchell
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by seb mitchell
---
You received this message because you are subscribed to the Google
Groups
Post by seb mitchell
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
an
--
William Hesse
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...