Summary: | dev-qt/qdoc-5.15.14 compile fail : fatal error: clang-c/Index.h: No such file or directory : qmake cannot undertand that 19.0.0git3ae67557 is newer than 3.9.0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arniii <lg3dx6fd> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | lg3dx6fd |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=678080 https://bugs.gentoo.org/show_bug.cgi?id=678098 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
/etc/portage in compressed tarball via lzip . environment // profile default/linux/amd64/23.0/split-usr/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3 fzf --walker-root=/usr -f clang-c/Index.h |
Description
Arniii
2024-07-04 08:17:09 UTC
Created attachment 896961 [details]
/etc/portage in compressed tarball via lzip .
Created attachment 896962 [details]
environment // profile default/linux/amd64/23.0/split-usr/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3
I'm in the process of upgrading the system, maybe I've not installed something, but everything is in the process of `emerge -avtqbUDuke @world` (notice -e aka --emptytree) it seems to be continuation of bug https://bugs.gentoo.org/678080 and https://bugs.gentoo.org/678098 Created attachment 896963 [details]
fzf --walker-root=/usr -f clang-c/Index.h
from here:
```
/usr/lib/llvm/15/include/clang-c/Index.h
/usr/lib/llvm/17/include/clang-c/Index.h
/usr/lib/llvm/18/include/clang-c/Index.h
/usr/lib/llvm/19/include/clang-c/Index.h
/usr/lib/llvm/16/include/clang-c/Index.h
/usr/src/debug/sys-devel/clang-17.0.6/clang/include/clang-c/Index.h
/usr/src/debug/sys-devel/clang-18.1.3/clang/include/clang-c/Index.h
/usr/src/debug/sys-devel/clang-16.0.6/clang/include/clang-c/Index.h
/usr/src/debug/sys-devel/clang-15.0.7-r3/clang/include/clang-c/Index.h
/usr/src/debug/sys-devel/clang-19.0.0_pre20240623/clang/include/clang-c/Index.h
```
Please, notice that I'm using a default profile with GCC compiler, not clang. After manually adding -L/usr/lib/llvm/19/lib64 to COMMON_FLAGS and LDFLAGS via an env file, it gives a lot of `undefined reference ...` and the symbols it looking for in /usr can be found only in /usr/lib/llvm/19/lib64/libclang.so.19.0.0git3ae67557 or any libclang.so for any llvm version from 15 to 19. I've checked that via `rg -al clang_getArgType` Oh, maybe I got it: ``` Checking for libclang... LLVM/Clang version >= 3.9.0 required, version provided: 19.0.0git3ae67557. no ... WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation. Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation. On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution. On macOS, you can use Homebrew's llvm package. On Windows, you must set LLVM_INSTALL_DIR to the installation path. ``` So, it have found libclang but refused to use it? Ok, my PATH was next: ``` /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/19/bin:/usr/lib/llvm/18/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/16/bin:/usr/lib/llvm/15/bin:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/etc/eselect/wine/bin:/opt/cuda/bin:/opt/cuda/libnvvp ``` I removed /usr/lib/llvm/19/bin so that llvm-config --version in the terminal now show 18.1.3 . And still it somehow finds libclang with version 19.0.0git3ae67557 I've solved it via 1. Removing path from PATH with llvm-config with version 19.0.0git3ae67557 2. Setting LLVM_INSTALL_DIR=/usr/lib/llvm/18/ Diagnosis: qmake cannot understand that version 19.0.0git3ae67557 a. is a version b. cannot check that it newer than 3.9.0 Please provide emerge --info. (In reply to Mike Gilbert from comment #11) > Please provide emerge --info. Here's environment file for this. emerge --info : https://bugs.gentoo.org/attachment.cgi?id=897087 |