How to compile RABCDAsm on the Raspberry Pi !?
Johannes Pfau
nospam at example.com
Fri Nov 16 05:09:00 PST 2012
Am Thu, 15 Nov 2012 23:03:35 +0100
schrieb "Swen" <maildeluxe at mail.ru>:
> Hi! Thx for your answer! I have exported the path with:
> export PATH=$PATH:/opt/gdc/bin
>
> There are this files in /opt/gdc/bin
> arm-linux-gnueabihf-gcc-4.7 gcc-4.7
> arm-linux-gnueabihf-gcc-ar-4.7 gcc-ar-4.7
> arm-linux-gnueabihf-gcc-nm-4.7 gcc-nm-4.7
> arm-linux-gnueabihf-gcc-ranlib-4.7 gcc-ranlib-4.7
> arm-linux-gnueabihf-gdc-4.7 gcov-4.7
> arm-linux-gnueabihf-gdmd-4.7 gdc-4.7
> cpp-4.7 gdmd-4.7
>
> so witch of them i have to use to compile this file
> https://github.com/CyberShadow/RABCDAsm/blob/master/build_rabcdasm.d
> on the website it says just run this command:
> dmd -run build_rabcdasm.d
> but i have no dmd :(
>
> while my raspbian image is hard fload i tried this one:
> arm-linux-gnueabihf-gdc-4.7 -fno-section-anchors build_rabcdasm.d
> i get no errors and no binary file
gdc with no special arguments should compile to a.out (gcc and g++ do
the same)
>
> for example when i try: abcexport
> i get: -bash: abcexport: command not found
>
> so what i am doing wrong !?
build_rabcdasm.d is a build script. You could try this command:
DC=gdmd-4.7 DCFLAGS="-O -inline -fno-section-anchors" gdmd-4.7 -run
build_rabcdasm.d
But I think build_rabcdasm.d requires rdmd, so you probably have to
build rdmd first.
Get rdmd from here:
https://github.com/D-Programming-Language/tools/blob/master/rdmd.d
Then compile like this: gdc-4.7 -fno-section-anchors rdmd.d -o rdmd
Then make sure that this rdmd binary is in your path as well and then
try the DC=... build command.
More information about the D.gnu
mailing list