Jump to page: 1 2
Thread overview
building ldc on raspberry pi
Sep 12, 2013
Knud Soerensen
Sep 13, 2013
Kai Nacke
Sep 13, 2013
Knud Soerensen
Sep 13, 2013
David Nadlinger
Oct 14, 2013
Kai Nacke
Oct 21, 2013
Knud Soerensen
Oct 21, 2013
David Nadlinger
Oct 21, 2013
Knud Soerensen
Oct 21, 2013
David Nadlinger
Oct 21, 2013
Knud Soerensen
Oct 21, 2013
Knud Soerensen
Oct 22, 2013
Kai Nacke
Oct 22, 2013
David Nadlinger
Oct 22, 2013
Kai Nacke
Oct 22, 2013
Kai Nacke
Oct 22, 2013
Knud Soerensen
Oct 23, 2013
David Nadlinger
September 12, 2013
Hi

I tried to follow http://wiki.dlang.org/Building_LDC_from_source

The diffrent is that insted of compiling LLVM-3.2 from source
I upgrade to  http://archive.raspbian.org/raspbian/dists/testing/
and installed the LLVM-3.2-dev packet

The i did the git clone
made the build directory and run cmake ..

Cmake fail with:

CMake Error: The following variables are used in this project, but they
are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
LIBCONFIG++_INCLUDE_DIR
   used as include directory in directory /home/knud/ldc
   used as include directory in directory /home/knud/ldc
   used as include directory in directory /home/knud/ldc
   used as include directory in directory /home/knud/ldc
   used as include directory in directory /home/knud/ldc
   used as include directory in directory /home/knud/ldc
   used as include directory in directory /home/knud/ldc/runtime
   used as include directory in directory /home/knud/ldc/runtime
   used as include directory in directory /home/knud/ldc/runtime
   used as include directory in directory /home/knud/ldc/runtime
LIBCONFIG++_LIBRARY
    linked by target "ldc2" in directory /home/knud/ldc

-- Configuring incomplete, errors occurred!

any ideas what the error is ?

Love
 Knud



-- 
Join me on
Skype	   knudhs
Facebook   http://www.facebook.com/profile.php?id=1198821880
Linkedin   http://www.linkedin.com/pub/0/117/a54
Twitter    http://twitter.com/knudsoerensen
bitcoin donations: 13ofyUKqFL43uRJHZtNozyMVP4qxKPsAR2
September 13, 2013
On Thursday, 12 September 2013 at 23:46:31 UTC, Knud Soerensen wrote:
> Hi
>
> I tried to follow http://wiki.dlang.org/Building_LDC_from_source
>
> The diffrent is that insted of compiling LLVM-3.2 from source
> I upgrade to  http://archive.raspbian.org/raspbian/dists/testing/
> and installed the LLVM-3.2-dev packet
>
> The i did the git clone
> made the build directory and run cmake ..
>
> Cmake fail with:
>
> CMake Error: The following variables are used in this project, but they
> are set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the
> CMake files:
> LIBCONFIG++_INCLUDE_DIR
>    used as include directory in directory /home/knud/ldc
>    used as include directory in directory /home/knud/ldc
>    used as include directory in directory /home/knud/ldc
>    used as include directory in directory /home/knud/ldc
>    used as include directory in directory /home/knud/ldc
>    used as include directory in directory /home/knud/ldc
>    used as include directory in directory /home/knud/ldc/runtime
>    used as include directory in directory /home/knud/ldc/runtime
>    used as include directory in directory /home/knud/ldc/runtime
>    used as include directory in directory /home/knud/ldc/runtime
> LIBCONFIG++_LIBRARY
>     linked by target "ldc2" in directory /home/knud/ldc
>
> -- Configuring incomplete, errors occurred!
>
> any ideas what the error is ?
>
> Love
>  Knud

Hi Knud,

either you don't have the libconfig++ library installed or cmake can't autodetect it. In the latter case you can tell cmake the path with --DLIBCONFIG++_INCLUDE_DIR=... and -DLIBCONFIG++_LIBRARY=...

Regards
Kai

BTW: I tried to reply to your mail but received an "account expired" error.
September 13, 2013
> Hi Knud,
> 
> either you don't have the libconfig++ library installed or cmake can't autodetect it. In the latter case you can tell cmake the path with --DLIBCONFIG++_INCLUDE_DIR=... and -DLIBCONFIG++_LIBRARY=...
> 
> Regards
> Kai

Thanks, I forgot to install libconfig++-dev

Now, cmake finish.

But now I get

...
[ 13%] Generating src/core/time.o
/home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(519): Error:
undefined identifier va_list
/home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(520): Error:
undefined identifier va_list
/home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(521): Error:
undefined identifier va_list




> BTW: I tried to reply to your mail but received an "account expired" error.


-- 
Join me on
Skype	   knudhs
Facebook   http://www.facebook.com/profile.php?id=1198821880
Linkedin   http://www.linkedin.com/pub/0/117/a54
Twitter    http://twitter.com/knudsoerensen
bitcoin donations: 13ofyUKqFL43uRJHZtNozyMVP4qxKPsAR2
September 13, 2013
On Sat, Sep 14, 2013 at 12:00 AM, Knud Soerensen <4tuu4k002@sneakemail.com> wrote:
> But now I get
>
> ...
> [ 13%] Generating src/core/time.o
> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(519): Error:
> undefined identifier va_list
> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(520): Error:
> undefined identifier va_list
> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(521): Error:
> undefined identifier va_list

Unfortunately, LDC from current Git master does not build on Linux/ARM yet.

If you are interested in working on getting this done, I can provide you with the last working (as far as a Phobos "Hello World" is concerned) version. I tried to commit them some while ago, but then getting the release out was more important. Hopefully, I'll be able to finally push the changes in the next few days,

David
October 14, 2013
On Friday, 13 September 2013 at 22:00:39 UTC, Knud Soerensen wrote:
>
> But now I get
>
> ...
> [ 13%] Generating src/core/time.o
> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(519): Error:
> undefined identifier va_list
> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(520): Error:
> undefined identifier va_list
> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(521): Error:
> undefined identifier va_list

David committed some work for Linux/ARM. Maybe you give the latest version a try.

Kai
October 21, 2013
On 2013-10-14 06:45, Kai Nacke wrote:
> On Friday, 13 September 2013 at 22:00:39 UTC, Knud Soerensen wrote:
>>
>> But now I get
>>
>> ...
>> [ 13%] Generating src/core/time.o
>> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(519): Error:
>> undefined identifier va_list
>> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(520): Error:
>> undefined identifier va_list
>> /home/knud/ldc/runtime/druntime/src/core/stdc/stdio.d(521): Error:
>> undefined identifier va_list
> 
> David committed some work for Linux/ARM. Maybe you give the latest version a try.
> 
> Kai

Just got around to try again.
Now it fails at:

Linking CXX executable bin/ldc2
[ 12%] Built target ldc2
Scanning dependencies of target ldmd2
[ 12%] Building CXX object CMakeFiles/ldmd2.dir/dmd2/root/man.c.o
[ 12%] Building CXX object CMakeFiles/ldmd2.dir/driver/ldmd.cpp.o
[ 13%] Building CXX object CMakeFiles/ldmd2.dir/driver/response.cpp.o
/home/knud/ldc/driver/response.cpp: In function ‘bool
dealWithQuote(std::istream&, std::string&)’:
/home/knud/ldc/driver/response.cpp:54:10: warning: case label value is
less than minimum value for type [enabled by default]
Linking CXX executable bin/ldmd2
[ 13%] Built target ldmd2
[ 13%] Generating gccbuiltins_x86.di
[ 13%] Generating src/core/bitop.o
Not implemented yet
Stack dump:
0.	Running pass 'ARM Assembly Printer' on function
'@_D4core5bitop3bsfFNaNbNfkZi'
Aborted
make[2]: *** [runtime/src/core/bitop.o] Error 134
make[1]: *** [runtime/CMakeFiles/druntime-ldc.dir/all] Error 2
make: *** [all] Error 2





October 21, 2013
On Mon, Oct 21, 2013 at 9:24 PM, Knud Soerensen <4tuu4k002@sneakemail.com> wrote:
> Just got around to try again.
> Now it fails at:
>
> […]
> [ 13%] Generating src/core/bitop.o
> Not implemented yet
> Stack dump:
> 0.      Running pass 'ARM Assembly Printer' on function
> '@_D4core5bitop3bsfFNaNbNfkZi'

Could you please post the output of "ldc2 -version" and "ldc2 -vv somedfile | head -n 1"?

Compiling druntime/Phobos and a Hello World program works for me (although EH is still not implemented properly).

David
October 21, 2013
On 2013-10-21 23:16, David Nadlinger wrote:
> ldc2 -version
LDC - the LLVM D compiler (234772):
  based on DMD v2.063.2 and LLVM 3.2
  Default target: arm-unknown-linux-gnueabihf
  Host CPU: arm1176jz-s
  http://dlang.org - http://wiki.dlang.org/LDC

  Registered Targets:
    arm      - ARM
    cellspu  - STI CBEA Cell SPU [experimental]
    cpp      - C++ backend
    hexagon  - Hexagon
    mblaze   - MBlaze
    mips     - Mips
    mips64   - Mips64 [experimental]
    mips64el - Mips64el [experimental]
    mipsel   - Mipsel
    msp430   - MSP430 [experimental]
    nvptx    - NVIDIA PTX 32-bit
    nvptx64  - NVIDIA PTX 64-bit
    ppc32    - PowerPC 32
    ppc64    - PowerPC 64
    r600     - AMD GPUs HD2XXX-HD6XXX
    sparc    - Sparc
    sparcv9  - Sparc V9
    thumb    - Thumb
    x86      - 32-bit X86: Pentium-Pro and above
    x86-64   - 64-bit X86: EM64T and AMD64
    xcore    - XCore

~/ldc/build/bin/ldc2 -vv test.d | head -n 1
Targeting 'arm-unknown-linux-gnueabihf' (CPU 'arm1176jzf-s' with
features '')

October 21, 2013
On Tue, Oct 22, 2013 at 12:13 AM, Knud Soerensen <4tuu4k002@sneakemail.com> wrote:
>   based on DMD v2.063.2 and LLVM 3.2

You need at least LLVM 3.3 to hope that things work. I thought this was mentioned on the Wiki page, but apparently it wasn't – added it.

David
October 21, 2013
On 2013-10-22 00:18, David Nadlinger wrote:
> On Tue, Oct 22, 2013 at 12:13 AM, Knud Soerensen <4tuu4k002@sneakemail.com> wrote:
>>   based on DMD v2.063.2 and LLVM 3.2
> 
> You need at least LLVM 3.3 to hope that things work. I thought this was mentioned on the Wiki page, but apparently it wasn't – added it.
> 
> David
> 
I installed llvm 3.4 and is now making.

But I noticed cmake says:
Found LLVM: /usr/lib/llvm-3.4 (found suitable version "3.4", minimum
required is "3.1")

Maybe the minimum cmake accept should be raised.

Knud
« First   ‹ Prev
1 2