Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871189 - sys-libs/libapparmor-3.0.8 - clang-15: error: unknown argument: -flto-partition=noneclang-15: error: unknown argument: -flto-parti
Summary: sys-libs/libapparmor-3.0.8 - clang-15: error: unknown argument: -flto-partiti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-09-18 09:14 UTC by Toralf Förster
Modified: 2024-03-15 02:44 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.39 KB, text/plain)
2022-09-18 09:14 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,1.75 KB, application/x-bzip)
2022-09-18 09:14 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,209.30 KB, text/plain)
2022-09-18 09:14 UTC, Toralf Förster
Details
environment (environment,161.40 KB, text/plain)
2022-09-18 09:14 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.00 KB, application/x-bzip)
2022-09-18 09:14 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,8.45 KB, application/x-bzip)
2022-09-18 09:14 UTC, Toralf Förster
Details
sys-libs:libapparmor-3.0.4:20220918-090248.log (sys-libs:libapparmor-3.0.4:20220918-090248.log,22.03 KB, text/plain)
2022-09-18 09:14 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-18 09:14:11 UTC
too long lines were shrinked:

libtool: compile:  clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libapparmor1\" -DVERSION=\"3.0.4\" -DYYTEXT_POINTER=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHA
make[1]: *** [Makefile:767: grammar.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
clang-15: error: unknown argument: '-flto-partition=none'
clang-15: error: unknown argument: '-flto-partition=none'clang-15: error: unknown argument: '-flto-partition=none'

make[1]: *** [Makefile:767: libaalogparse.lo] Error 1

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

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

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

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:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 5f2fa9b1a32565dcaa7598b8076fc7af1e205e0b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 08:16:58 2022 +0000

    2022-09-18 08:16:58 UTC

emerge -qpvO sys-libs/libapparmor
[ebuild  N    ] sys-libs/libapparmor-3.0.4  USE="perl python -doc -static-libs" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-09-18 09:14:12 UTC
Created attachment 810331 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 09:14:13 UTC
Created attachment 810334 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-18 09:14:14 UTC
Created attachment 810337 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-18 09:14:16 UTC
Created attachment 810340 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-18 09:14:17 UTC
Created attachment 810343 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-18 09:14:18 UTC
Created attachment 810346 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-18 09:14:19 UTC
Created attachment 810349 [details]
sys-libs:libapparmor-3.0.4:20220918-090248.log
Comment 8 Agostino Sarubbo gentoo-dev 2023-03-01 08:03:57 UTC
tinderbox_musl has reproduced this issue with version 3.0.8 - Updating summary.
Comment 9 Sam 2023-03-28 16:08:18 UTC
This is an upstream bug that prevents AppArmor from compiling in Clang. https://gitlab.com/apparmor/apparmor/-/issues/310
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-15 02:44:40 UTC
commit 195d4c82c66a72c929422c18a979e61ef83bfe01 (origin/master, origin/HEAD)
Author: LinuxUserGD <hugegameartgd@gmail.com>
Date:   Sun Mar 10 17:00:27 2024 +0100

    sys-libs/libapparmor: test compiler support of flto-partition flag

    [sam: Drop revbump.]
    [sam: Fix $() -> ${} in patch.]

    Closes: https://bugs.gentoo.org/919463
    Upstream-PR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1155
    Upstream-Commit: https://gitlab.com/apparmor/apparmor/-/commit/d8bb0435c2b283fe9eed2a6db9a0b09ac2566c0e
    Signed-off-by: LinuxUserGD <hugegameartgd@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/29512
    Closes: https://github.com/gentoo/gentoo/pull/35697
    Signed-off-by: Sam James <sam@gentoo.org>