Summary: | dev-db/sqlite-3.45.2 - clang: error: cannot specify -o when generating multiple output files | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Jakov Smolić <jsmolic> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | base-system, chaseleif, stefantalpalaru, yamadharma |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
dev-db:sqlite-3.45.2:20240406-162016.log emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz logs.tar.xz qlist-info.txt temp.tar.xz patch for sqlite with clang - Bug 928745 |
Description
Toralf Förster
![]() Created attachment 889607 [details]
emerge-info.txt
Created attachment 889608 [details]
dev-db:sqlite-3.45.2:20240406-162016.log
Created attachment 889609 [details]
emerge-history.txt
Created attachment 889610 [details]
environment
Created attachment 889611 [details]
etc.clang.tar.xz
Created attachment 889612 [details]
etc.portage.tar.xz
Created attachment 889613 [details]
logs.tar.xz
Created attachment 889614 [details]
qlist-info.txt
Created attachment 889615 [details]
temp.tar.xz
Try setting CLANG_NO_DEFAULT_CONFIG=1 in the environment, to disable Gentoo's config files which set some linker flags that not all Clang stages know how to handle. More details: https://github.com/stefantalpalaru/gentoo-overlay/blob/c30f1653bd71b2328e942fea2cbf86bc3c309753/dev-lang/chapel/files/chapel-2.0.0-no-default-config.patch *** Bug 933352 has been marked as a duplicate of this bug. *** I tried setting CLANG_NO_DEFAULT_CONFIG=1 in the environment and I received the same error. I just set the package.env to use gcc for this one for now. Created attachment 911599 [details, diff] patch for sqlite with clang - Bug 928745 I decided to take a stab at a patch. Got it to build with clang, resolved the error by removing the header file from the command sent to clang. Attaching a patch FYI: that patch was made for current stable AMD64 (3.46.1) |