[llvm-dev] Fail to install llvm/clang on debian

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[llvm-dev] Fail to install llvm/clang on debian

div code via llvm-dev
Hello,
        Maybe this is not a bugs. But i fail to install llvm many times and different machine(debian os).
        First, i follow the instruction:

        http://cilium.readthedocs.io/en/latest/bpf/#llvm

        But during in compiling, i alway get:
        ...
        /home/yubo/git/llvm/tools/clang/lib/Basic/VirtualFileSystem.cpp: In member function ‘virtual llvm::ErrorOr<std::unique_ptr<clang::vfs::File> > {anonymous}::RealFileSystem::openFileForRead(const llvm::Twine&)’:
        /home/yubo/git/llvm/tools/clang/lib/Basic/VirtualFileSystem.cpp:262:46: error: ‘OF_None’ is not a member of ‘llvm::sys::fs’ sys::fs::openFileForRead(Name, FD, sys::fs::OF_None, &RealName))


        [ 75%] Building CXX object tools/clang/lib/Rewrite/CMakeFiles/clangRewrite.dir/HTMLRewrite.cpp.o
        tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/build.make:1244: recipe for target 'tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/VirtualFileSystem.cpp.o' failed
        make[2]: *** [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/VirtualFileSystem.cpp.o] Error 1
        CMakeFiles/Makefile2:12824: recipe for target 'tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all' failed
        make[1]: *** [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all] Error 2
        make[1]: *** 正在等待未完成的任务....
        [ 75%] Building CXX object tools/clang/lib/Rewrite/CMakeFiles/clangRewrite.dir/Rewr
                                                                                             Even thought i follow install instructions from llvm home-page, i get it simliar.What am i missing?
        kernel version:4.17.0-rc7+
        cmake -version cmake version 3.7.2
        gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
        debian os

        Thank you in advance.

        Please cc me i am not subscribe the lists, thx!

_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Fail to install llvm/clang on debian

div code via llvm-dev
Hi,

It looks like "OF_None" was only added in the last day or so. The most
likely problem is that your Clang and LLVM checkouts aren't
synchronized properly. Have you tried updating them?

Cheers.

Tim.

On 8 June 2018 at 14:13, Bo YU via llvm-dev <[hidden email]> wrote:

> Hello,
>         Maybe this is not a bugs. But i fail to install llvm many times and
> different machine(debian os).
>         First, i follow the instruction:
>
>         http://cilium.readthedocs.io/en/latest/bpf/#llvm
>
>         But during in compiling, i alway get:
>         ...
>         /home/yubo/git/llvm/tools/clang/lib/Basic/VirtualFileSystem.cpp: In
> member function ‘virtual llvm::ErrorOr<std::unique_ptr<clang::vfs::File> >
> {anonymous}::RealFileSystem::openFileForRead(const llvm::Twine&)’:
>
> /home/yubo/git/llvm/tools/clang/lib/Basic/VirtualFileSystem.cpp:262:46:
> error: ‘OF_None’ is not a member of ‘llvm::sys::fs’
> sys::fs::openFileForRead(Name, FD, sys::fs::OF_None, &RealName))
>
>
>         [ 75%] Building CXX object
> tools/clang/lib/Rewrite/CMakeFiles/clangRewrite.dir/HTMLRewrite.cpp.o
>         tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/build.make:1244:
> recipe for target
> 'tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/VirtualFileSystem.cpp.o'
> failed
>         make[2]: ***
> [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/VirtualFileSystem.cpp.o]
> Error 1
>         CMakeFiles/Makefile2:12824: recipe for target
> 'tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all' failed
>         make[1]: *** [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all]
> Error 2
>         make[1]: *** 正在等待未完成的任务....
>         [ 75%] Building CXX object
> tools/clang/lib/Rewrite/CMakeFiles/clangRewrite.dir/Rewr
>
> Even thought i follow install instructions from llvm home-page, i get it
> simliar.What am i missing?
>         kernel version:4.17.0-rc7+
>         cmake -version cmake version 3.7.2
>         gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
>         debian os
>
>         Thank you in advance.
>
>         Please cc me i am not subscribe the lists, thx!
>
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Fail to install llvm/clang on debian

div code via llvm-dev
Hello, sorry for later reply.
On Sat, Jun 09, 2018 at 08:25:01AM +0200, Tim Northover wrote:
>Hi,
>
>It looks like "OF_None" was only added in the last day or so. The most
>likely problem is that your Clang and LLVM checkouts aren't
>synchronized properly. Have you tried updating them?
>
Em. Yes. After your hint, i re-git-clone the llvm && clang.It works!
Thank you.

>Cheers.
>
>Tim.
>
>On 8 June 2018 at 14:13, Bo YU via llvm-dev <[hidden email]> wrote:
>> Hello,
>>         Maybe this is not a bugs. But i fail to install llvm many times and
>> different machine(debian os).
>>         First, i follow the instruction:
>>
>>         http://cilium.readthedocs.io/en/latest/bpf/#llvm
>>
>>         But during in compiling, i alway get:
>>         ...
>>         /home/yubo/git/llvm/tools/clang/lib/Basic/VirtualFileSystem.cpp: In
>> member function ‘virtual llvm::ErrorOr<std::unique_ptr<clang::vfs::File> >
>> {anonymous}::RealFileSystem::openFileForRead(const llvm::Twine&)’:
>>
>> /home/yubo/git/llvm/tools/clang/lib/Basic/VirtualFileSystem.cpp:262:46:
>> error: ‘OF_None’ is not a member of ‘llvm::sys::fs’
>> sys::fs::openFileForRead(Name, FD, sys::fs::OF_None, &RealName))
>>
>>
>>         [ 75%] Building CXX object
>> tools/clang/lib/Rewrite/CMakeFiles/clangRewrite.dir/HTMLRewrite.cpp.o
>>         tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/build.make:1244:
>> recipe for target
>> 'tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/VirtualFileSystem.cpp.o'
>> failed
>>         make[2]: ***
>> [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/VirtualFileSystem.cpp.o]
>> Error 1
>>         CMakeFiles/Makefile2:12824: recipe for target
>> 'tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all' failed
>>         make[1]: *** [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all]
>> Error 2
>>         make[1]: *** 正在等待未完成的任务....
>>         [ 75%] Building CXX object
>> tools/clang/lib/Rewrite/CMakeFiles/clangRewrite.dir/Rewr
>>
>> Even thought i follow install instructions from llvm home-page, i get it
>> simliar.What am i missing?
>>         kernel version:4.17.0-rc7+
>>         cmake -version cmake version 3.7.2
>>         gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
>>         debian os
>>
>>         Thank you in advance.
>>
>>         Please cc me i am not subscribe the lists, thx!
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> [hidden email]
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev