Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641368 - sys-devel/llvm-5.0.0 build error: Cannot find llvm-config.h
Summary: sys-devel/llvm-5.0.0 build error: Cannot find llvm-config.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal blocker (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-16 13:28 UTC by Roman
Modified: 2017-12-22 19:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
All files and infos regarding the error. (llvm_error_infos.tar.bz2,152.81 KB, application/x-bzip2)
2017-12-16 13:28 UTC, Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2017-12-16 13:28:36 UTC
Created attachment 510328 [details]
All files and infos regarding the error.

Hello,

unfortunately the build of llvm-5.0.0 stops with an errror, that
the file llvm-config.h in include/llvm/Config could not be found.

All files and infos are in the attached "llvm_error_infos.tar.bz2"
file.

Best regards,
Roman Morokutti
Comment 1 Jonas Stein gentoo-dev 2017-12-16 13:37:37 UTC
Works for me. Perhaps was the last update not completed?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-12-16 13:52:08 UTC
I'm really confused. The attached build.log states a completely different error:

In file included from /var/tmp/portage/sys-devel/llvm-5.0.0/work/llvm-5.0.0.src/tools/lli/lli.cpp:30:
/var/tmp/portage/sys-devel/llvm-5.0.0/work/llvm-5.0.0.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h: In member function ‘llvm::Expected<std::vector<char> > llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::readMem(char*, llvm::JITTargetAddress, uint64_t)’:
/var/tmp/portage/sys-devel/llvm-5.0.0/work/llvm-5.0.0.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:722:26: error: could not convert ‘((llvm::orc::remote::OrcRemoteTargetClient<ChannelT>*)this)->callB<llvm::orc::remote::OrcRemoteTargetRPCAPI::ReadMem>(Src, Size)’ from ‘Expected<vector<unsigned char,allocator<unsigned char>>>’ to ‘Expected<vector<char,allocator<char>>>’
     return callB<ReadMem>(Src, Size);
            ~~~~~~~~~~~~~~^~~~~~~~~~~

Please try upgrading sys-devel/gcc first. 4.9* is really ancient and I can no longer test that.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-12-21 22:42:08 UTC
Ping.
Comment 4 Roman 2017-12-22 18:56:58 UTC
I
(In reply to Michał Górny from comment #3)
> Ping.

I have uninstalled the 4.9.4 version of gcc.
When I issue "gcc-config -l" it show this:

 [1] x86_64-pc-linux-gnu-5.0.0-253031
 [2] x86_64-pc-linux-gnu-6.4.0 *
 [3] x86_64-pc-linux-gnu-7.0.0
 [4] x86_64-pc-linux-gnu-8.0.0
 [5] x86_64-pc-linux-gnu-8.0.0_251940
 [6] x86_64-pc-linux-gnu-8.0.0_252724
 [7] x86_64-pc-linux-gnu-8.0.0-253268
 [8] x86_64-pc-linux-gnu-8.0.0-253320
 [9] x86_64-pc-linux-gnu-8.0.0-253321
 [10] x86_64-pc-linux-gnu-8.0.0-253908
 [11] x86_64-pc-linux-gnu-8.0.0-254296
 [12] x86_64-pc-linux-gnu-8.0.0-254663
 [13] x86_64-pc-linux-gnu-8.0.0-255364

I've switched to the 6.4.0 version. I am 
currently build llvm.

I'll give a status when it's finished.

Best regards,
Roman
Comment 5 Roman 2017-12-22 19:43:21 UTC
The build with the gcc version 6.4.0 did work.

Thank you for your info.

Best regards,
Roman