Starting D with a project in mind.

simendsjo simendsjo at gmail.com
Wed Oct 16 12:31:35 PDT 2013


On Wednesday, 16 October 2013 at 19:18:53 UTC, Andrew wrote:
> I'm a very happy man ! Everything is built and working 
> including dub and the http_server example from vibe.d.
>
> It's slow to build, but it executes quickly and strips down to 
> about 3MB which is heavy but tolerable.
>
> Thanks to everybody for the help, now I can start learning D, 
> exploring vibe.d and Pegged and hopefully make some good 
> progress on my MUD.
>
> So to recap, to help anybody else building on ARM these are the 
> steps I took :-
>
> mkdir gdc
> cd gdc
> wget 
> http://gcc.igor.onlinedirect.bg/snapshots/LATEST-4.8/gcc-4.8-20131010.tar.bz2
> tar xvf gcc-4.8-20131010.tar.bz2
> git clone https://github.com/jpf91/GDC.git arm_gdc
> cd arm_gdc
> git checkout arm
> ./setup-gcc.sh ../gcc-4.8-20131010
> cd ../
> mkdir build
> cd build
> export C_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
> export EXTRA_CONF="-mfloat-abi=hard --with-float=hard"
> ../gcc-4.8-20131010/configure --enable-languages=d 
> --disable-bootstrap --prefix=/usr/local/gdc --disable-multilib 
> --disable-softfloat --with-float=hard
> make -j2
> sudo make install
> sudo cp ../arm_gdc/libphobos/libdruntime/core/time.d 
> /usr/local/gdc/include/d/4.8.2/armv7l-unknown-linux-gnueabihf/core
> sudo mv 
> /usr/local/gdc/include/d/4.8.2/armv7l-unknown-linux-gnueabihf/core/time.di 
> /usr/local/gdc/include/d/4.8.2/armv7l-unknown-linux-gnueabihf/core/time.di.old
>
> I don't know why that last step was necessary but dub and a few 
> other things didn't build without it.
>
> After that dub built fine once I'd hacked the build file to use 
> gdc.

This is very cool. You should add it to the wiki so it doesn't 
get lost: http://wiki.dlang.org


More information about the Digitalmars-d-learn mailing list