Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870460 - dev-libs/serd-0.30.14-r1:0 - ../.../meson.build: ERROR: Unknown compiler(s): [[clang]]
Summary: dev-libs/serd-0.30.14-r1:0 - ../.../meson.build: ERROR: Unknown compiler(s): ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
: 870469 870496 870505 870508 870511 870532 870562 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-16 19:12 UTC by Toralf Förster
Modified: 2024-10-26 20:14 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.65 KB, text/plain)
2022-09-16 19:12 UTC, Toralf Förster
Details
dev-libs:serd-0.30.14-r1:20220916-180929.log (dev-libs:serd-0.30.14-r1:20220916-180929.log,3.66 KB, text/plain)
2022-09-16 19:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,51.30 KB, text/plain)
2022-09-16 19:12 UTC, Toralf Förster
Details
environment (environment,115.78 KB, text/plain)
2022-09-16 19:12 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,8.97 KB, application/x-bzip)
2022-09-16 19:12 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,720 bytes, application/x-bzip)
2022-09-16 19:12 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,27.56 KB, application/x-bzip)
2022-09-16 19:12 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-16 19:12:12 UTC
Build type: native build
Project name: serd
Project version: 0.30.14

../serd-0.30.14/meson.build:4:0: ERROR: Unknown compiler(s): [['clang']]

A full log can be found at /var/tmp/portage/dev-libs/serd-0.30.14-r1/work/serd-0.30.14-abi_x86_64.amd64/meson-logs/meson-log.txt

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220916-040004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3.90

  HEAD of ::gentoo
commit cf2b335b975c83d55eec561b3f6e6014621cc9ec
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Sep 16 17:02:01 2022 +0000

    2022-09-16 17:02:01 UTC

emerge -qpvO dev-libs/serd
[ebuild  N    ] dev-libs/serd-0.30.14-r1  USE="tools -doc -static-libs -test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2022-09-16 19:12:13 UTC
Created attachment 805972 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-16 19:12:14 UTC
Created attachment 805975 [details]
dev-libs:serd-0.30.14-r1:20220916-180929.log
Comment 3 Toralf Förster gentoo-dev 2022-09-16 19:12:15 UTC
Created attachment 805978 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-16 19:12:16 UTC
Created attachment 805981 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-16 19:12:17 UTC
Created attachment 805984 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-16 19:12:18 UTC
Created attachment 805987 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-16 19:12:20 UTC
Created attachment 805990 [details]
temp.tar.bz2
Comment 8 Eli Schwartz gentoo-dev 2022-09-16 19:40:49 UTC
in logs.tar.bz2 -> meson-logs/meson-log.txt

```
Detecting compiler via: clang --version
compiler returned <Popen: returncode: 0 args: ['clang', '--version']>
compiler stdout:

compiler stderr:


../serd-0.30.14/meson.build:4:0: ERROR: Unknown compiler(s): [['clang']]
```

This clang command is successfully exiting, without emitting any content on stdout/stderr, even when asked to do so.

From temp.tar.bz2, it seems clang is a wrapper script that redirects all output to a log file clang14.log / clang15.log, and then to /dev/null; these two log files are also in that tarball, and contain the output that Meson expected to see for the --version information.

The wrapper script is really weird:

```
# Non-Autoconf configure scripts might try to parse stderr/stdout, so just run
# it again...
if [[ -f configure ]] && ! grep -q "#.*Generated by Autoconf" configure ; then
clang-15 $@
else
exit ${x[0]}
fi
```

Only configure scripts? And what do those do -- just run every compilation twice?, so packages build half as fast? :o

Anyway, Meson does assuredly parse stdout/stderr, so at least check for that too.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:44:18 UTC
yes, see the tracker bug for details and motivation, obviously this isn't a meson issue and it's the wrapper being too cheesy. I'll have a play in a bit (probably have one of them emit output and not the other).

The duplicates are fine, I'll just en-masse mark them as such later.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:45:09 UTC
(Thinking about it, I'm not sure why i didn't end up just always execing again!)
Comment 11 Eli Schwartz gentoo-dev 2022-09-16 19:47:10 UTC
Ah, I see, even the wrapper itself is just a temporary thing. Didn't realize that.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:49:41 UTC
*** Bug 870532 has been marked as a duplicate of this bug. ***
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:49:49 UTC
*** Bug 870511 has been marked as a duplicate of this bug. ***
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:49:53 UTC
*** Bug 870508 has been marked as a duplicate of this bug. ***
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:49:59 UTC
*** Bug 870496 has been marked as a duplicate of this bug. ***
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:50:03 UTC
*** Bug 870505 has been marked as a duplicate of this bug. ***
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:50:08 UTC
*** Bug 870469 has been marked as a duplicate of this bug. ***
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-16 19:51:21 UTC
(In reply to Eli Schwartz from comment #11)
> Ah, I see, even the wrapper itself is just a temporary thing. Didn't realize
> that.

no problem & sorry for the noise!

Latest version of wrapper should be OK, just need toralf to pull it down.
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-17 00:15:38 UTC
Fixed.
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-17 00:18:19 UTC
*** Bug 870562 has been marked as a duplicate of this bug. ***
Comment 21 Andreas K. Hüttel archtester gentoo-dev 2024-10-26 20:14:20 UTC
Not related to C99