building ldc on raspberry pi

Kai Nacke kai at redstar.de
Tue Oct 22 13:04:44 PDT 2013


On Monday, 21 October 2013 at 23:39:41 UTC, Knud Soerensen wrote:
> On 2013-10-22 01:02, Knud Soerensen wrote:
>
> Using llvm 3.4 I get to
>
> [  6%] Building CXX object 
> CMakeFiles/LDCShared.dir/gen/classes.cpp.o
> [  6%] Building CXX object 
> CMakeFiles/LDCShared.dir/gen/abi-ppc64.cpp.o
> [  6%] Building CXX object 
> CMakeFiles/LDCShared.dir/gen/abi-x86.cpp.o
> [  6%] Building CXX object 
> CMakeFiles/LDCShared.dir/gen/complex.cpp.o
> [  6%] Building CXX object 
> CMakeFiles/LDCShared.dir/gen/programs.cpp.o
> /home/knud/ldc/gen/programs.cpp: In function ‘std::string
> getProgram(const char*, const 
> llvm::cl::opt<std::basic_string<char> >&,
> const char*)’:
> /home/knud/ldc/gen/programs.cpp:55:43: error: no match for 
> ‘operator=’
> in ‘path = llvm::sys::FindProgramByName(const string&)()’
> /home/knud/ldc/gen/programs.cpp:55:43: note: candidates are:
> /usr/include/c++/4.6/bits/basic_string.h:541:7: note:
> std::basic_string<_CharT, _Traits, _Alloc>& 
> std::basic_string<_CharT,
> _Traits, _Alloc>::operator=(const std::basic_string<_CharT, 
> _Traits,
> _Alloc>&) [with _CharT = char, _Traits = 
> std::char_traits<char>, _Alloc
> = std::allocator<char>, std::basic_string<_CharT, _Traits, 
> _Alloc> =
> std::basic_string<char>]
<snip>

That is a bit strange. The only issue with LLVM 3.4 I am aware of 
is that you should enable assertions on LLVM or define NDEBUG 
while building ldc. Otherwise you get a link error while linking 
ldc2.

Could you please some more information about your environment? 
gcc (or clang) version and glibc version could be helpful.

Thanks for trying this!

Regards
Kai


More information about the digitalmars-d-ldc mailing list