ARM bare metal example from wiki isn't builds

Kai Nacke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun May 31 05:48:31 PDT 2015


On Sunday, 31 May 2015 at 10:47:08 UTC, denizzzka wrote:
> On Sunday, 31 May 2015 at 09:45:00 UTC, denizzzka wrote:
>> On Saturday, 30 May 2015 at 23:24:28 UTC, Kai Nacke wrote:
>>> On Saturday, 30 May 2015 at 22:05:04 UTC, denizzzka wrote:
>>>> http://wiki.dlang.org/Minimal_semihosted_ARM_Cortex-M_%22Hello_World%22
>>>>
>>>> $ ldc2 -march=thumb -mcpu=cortex-m3 -c start.d
>>>> /usr/include/d/ldc/ldc/llvmasm.di(8): Error: pragma 
>>>> llvm_inline_asm unrecognized pragma(llvm_inline_asm)
>>>>
>>>> (Using -ignore isn't helps)
>>>>
>>>> ldc 0.15.0 is from Debian repository.
>>>
>>> Did you upgrade from a previous version?
>>
>> Apt from Debian system say what libtango-ldc-dev 0.99.9.dfsg-1 
>> is the latest version
>>
>>> Line 8 should be:
>>>
>>> pragma(LDC_inline_asm)
>>>
>>> Regards,
>>> Kai
>>
>> $ dpkg -S /usr/include/d/ldc/ldc/llvmasm.di
>> libtango-ldc-dev: /usr/include/d/ldc/ldc/llvmasm.di
>>
>> $ LANG=C sudo apt-get install -t unstable libtango-ldc-dev
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> libtango-ldc-dev is already the newest version.
>> 0 upgraded, 0 newly installed, 0 to remove and 1220 not 
>> upgraded.
>>
>> It is need to tell to maintainer about this?
>
> Huh, libtango-ldc-dev 0.99.9.dfsg-1 contains source from 2010...

You should use the standard library phobos instead of tango.

I am not a Debian user but something like sudo apt-get install 
ldc2 should do the trick. (See http://wiki.dlang.org/Compilers 
for which version is available.)

Regards,
Kai


More information about the digitalmars-d-ldc mailing list