building ldc on raspberry pi

Knud Soerensen 4tuu4k002 at sneakemail.com
Mon Oct 21 16:39:39 PDT 2013


On 2013-10-22 01:02, Knud Soerensen wrote:
> On 2013-10-22 00:18, David Nadlinger wrote:
>> On Tue, Oct 22, 2013 at 12:13 AM, Knud Soerensen
>> <4tuu4k002 at 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
> 

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>]
/usr/include/c++/4.6/bits/basic_string.h:541:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘const
std::basic_string<char>&’
/usr/include/c++/4.6/bits/basic_string.h:549:7: note:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char, _Traits
= std::char_traits<char>, _Alloc = std::allocator<char>,
std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:549:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘const char*’
/usr/include/c++/4.6/bits/basic_string.h:560:7: note:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>,
std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:560:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘char’
/home/knud/ldc/gen/programs.cpp:58:43: error: no match for ‘operator=’
in ‘path = llvm::sys::FindProgramByName(const string&)()’
/home/knud/ldc/gen/programs.cpp:58: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>]
/usr/include/c++/4.6/bits/basic_string.h:541:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘const
std::basic_string<char>&’
/usr/include/c++/4.6/bits/basic_string.h:549:7: note:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char, _Traits
= std::char_traits<char>, _Alloc = std::allocator<char>,
std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:549:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘const char*’
/usr/include/c++/4.6/bits/basic_string.h:560:7: note:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>,
std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:560:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘char’
/home/knud/ldc/gen/programs.cpp:61:43: error: no match for ‘operator=’
in ‘path = llvm::sys::FindProgramByName(const string&)()’
/home/knud/ldc/gen/programs.cpp:61: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>]
/usr/include/c++/4.6/bits/basic_string.h:541:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘const
std::basic_string<char>&’
/usr/include/c++/4.6/bits/basic_string.h:549:7: note:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char, _Traits
= std::char_traits<char>, _Alloc = std::allocator<char>,
std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:549:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘const char*’
/usr/include/c++/4.6/bits/basic_string.h:560:7: note:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>,
std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:560:7: note:   no known
conversion for argument 1 from ‘llvm::sys::Path’ to ‘char’
make[2]: *** [CMakeFiles/LDCShared.dir/gen/programs.cpp.o] Error 1
make[1]: *** [CMakeFiles/LDCShared.dir/all] Error 2
make: *** [all] Error 2



More information about the digitalmars-d-ldc mailing list