Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 928745

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 packagesAssignee: Jakov Smolić <jsmolic>
Status: CONFIRMED ---    
Severity: normal CC: base-system, stefantalpalaru, yamadharma
Priority: Normal    
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

Description Toralf Förster gentoo-dev 2024-04-06 16:58:07 UTC
too long lines were shrinked:

      |         ^~~~~~~~ ~~~~~~~~~~~~~~~~
touch has_tclsh85
./libtool --mode=link clang -DSQLITE_SOUNDEX -DSQLITE_USE_URI  -O2 -pipe -march=native -fno-diagnostics-color -DSQLITE_OS_UNIX=1 -I. -I/var/tmp/portage/dev-db/sqlite-3.45.2/work/sqlite-src-3450200-abi_x86_64.amd64/src -I/var/tmp/portage/dev-db/sqlite-3.45.2/work/sqlite-src-3450200-abi_x86_64.amd64/e
tclsh8.6 /var/tmp/portage/dev-db/sqlite-3.45.2/work/sqlite-src-3450200-abi_x86_64.amd64/tool/mkccode.tcl /var/tmp/portage/dev-db/sqlite-3.45.2/work/sqlite-src-3450200-abi_x86_64.amd64/tool/sqltclsh.c.in >sqltclsh.c
libtool: link: clang -DSQLITE_SOUNDEX -DSQLITE_USE_URI -O2 -pipe -march=native -fno-diagnostics-color -DSQLITE_OS_UNIX=1 -I. -I/var/tmp/portage/dev-db/sqlite-3.45.2/work/sqlite-src-3450200-abi_x86_64.amd64/src -I/var/tmp/portage/dev-db/sqlite-3.45.2/work/sqlite-src-3450200-abi_x86_64.amd64/ext/rtree
2 warnings generated.
clang: error: cannot specify -o when generating multiple output files
tclsh8.6 /var/tmp/portage/dev-db/sqlite-3.45.2/work/sqlite-src-3450200-abi_x86_64.amd64/tool/mkccode.tcl /var/tmp/portage/dev-db/sqlite-3.45.2/work/sqlite-src-3450200-abi_x86_64.amd64/tool/sqlite3_analyzer.c.in >sqlite3_analyzer.c
make: *** [Makefile:1416: sqlite3_expert] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_llvm-20240406-094023

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.3+libcxx
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.3+libcxx
Python 3.11.8
php cli (if any):

  HEAD of ::gentoo
commit b65cba360cad71f16fa4079db56b13980bfeb7c5
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Apr 6 15:11:19 2024 +0000

    2024-04-06 15:11:11 UTC

emerge -qpvO dev-db/sqlite
[ebuild     U ] dev-db/sqlite-3.45.2 [3.45.1-r1] USE="readline tools* -debug -doc -icu -secure-delete -static-libs -tcl -test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2024-04-06 16:58:08 UTC
Created attachment 889607 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-06 16:58:09 UTC
Created attachment 889608 [details]
dev-db:sqlite-3.45.2:20240406-162016.log
Comment 3 Toralf Förster gentoo-dev 2024-04-06 16:58:10 UTC
Created attachment 889609 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-04-06 16:58:11 UTC
Created attachment 889610 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-04-06 16:58:12 UTC
Created attachment 889611 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-06 16:58:13 UTC
Created attachment 889612 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-06 16:58:14 UTC
Created attachment 889613 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-04-06 16:58:15 UTC
Created attachment 889614 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-04-06 16:58:16 UTC
Created attachment 889615 [details]
temp.tar.xz
Comment 10 Ștefan Talpalaru 2024-04-09 17:28:59 UTC
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
Comment 11 Jakov Smolić archtester gentoo-dev 2024-06-03 08:18:20 UTC
*** Bug 933352 has been marked as a duplicate of this bug. ***