Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915385 - dev-db/sqlitebrowser fails to build with LLVM/Clang 17
Summary: dev-db/sqlitebrowser fails to build with LLVM/Clang 17
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mattéo Rossillol‑‑Laruelle
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-08 14:36 UTC by asdfg
Modified: 2023-10-19 00:25 UTC (History)
1 user (show)

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


Attachments
Build log (tmpportagedev-dbsqlitebrowser-3122tempbuild-STEQ.txt,70.61 KB, text/plain)
2023-10-08 14:38 UTC, asdfg
Details
emerge --info (file_915385.txt,21.23 KB, text/plain)
2023-10-08 14:39 UTC, asdfg
Details
fix build failure with LLVM/Clang 17 (sqlitebrowser-3.12.2-fix-clang-build.patch,1.00 KB, patch)
2023-10-18 17:49 UTC, Mattéo Rossillol‑‑Laruelle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description asdfg 2023-10-08 14:36:34 UTC
dev-db/sqlitebrowser-3.12.2 fails to build with LLVM/Clang 17. Built fine with LLVM/CLang 16 before.

Reproducible: Always

Steps to Reproduce:
1. Update to Clang/LLVM 17
2. emerge -av1 sqlitebrowser
3. rejoice
Actual Results:  
It failed to build

Expected Results:  
Sqlitebrowser should build and run successfully.

I will post the build log and the output of emerge --info as attachments, as they are quite long.
Comment 1 asdfg 2023-10-08 14:38:17 UTC
Created attachment 872340 [details]
Build log
Comment 2 asdfg 2023-10-08 14:39:17 UTC
Created attachment 872341 [details]
emerge --info
Comment 3 Mattéo Rossillol‑‑Laruelle 2023-10-18 17:48:19 UTC
I am not sure to perfectly understand the issue causing this build failure and I don't manage to reproduce it.

In my opinion, it is due to a strange behaviour during precompiling. Indeed, the macro `str` defined in `src/version.h` seems to override some content in the system headers.

Could you try if the patch I have attached fix that (https://wiki.gentoo.org/wiki//etc/portage/patches)?
Comment 4 Mattéo Rossillol‑‑Laruelle 2023-10-18 17:49:01 UTC
Created attachment 873100 [details, diff]
fix build failure with LLVM/Clang 17
Comment 5 asdfg 2023-10-19 00:25:15 UTC
It worked. Thank you very much.