Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880819 - media-sound/flake-0.11 - clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Summary: media-sound/flake-0.11 - clang-15: error: linker command failed with exit cod...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2022-11-10 20:14 UTC by Toralf Förster
Modified: 2025-01-09 09:53 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.42 KB, text/plain)
2022-11-10 20:14 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,55.78 KB, text/plain)
2022-11-10 20:14 UTC, Toralf Förster
Details
environment (environment,62.37 KB, text/plain)
2022-11-10 20:14 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,696 bytes, application/x-bzip)
2022-11-10 20:14 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,39.77 KB, application/x-bzip)
2022-11-10 20:14 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,301 bytes, application/x-bzip)
2022-11-10 20:14 UTC, Toralf Förster
Details
media-sound:flake-0.11:20221110-193625.log (media-sound:flake-0.11:20221110-193625.log,5.42 KB, text/plain)
2022-11-10 20:14 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,17.55 KB, application/x-bzip)
2022-11-10 20:14 UTC, Toralf Förster
Details
var.tmp.clang.tar.bz2 (var.tmp.clang.tar.bz2,252 bytes, application/x-bzip)
2022-11-10 20: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-11-10 20:14:42 UTC
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: flake.c:(.text+0x2a26): undefined reference to `flake_encode_frame'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: flake.c:(.text+0x2b30): undefined reference to `flake_encode_close'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: flake.c:(.text+0x2d97): undefined reference to `wavfile_print'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: flake.c:(.text+0x3180): undefined reference to `flake_encode_close'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [<builtin>: flake] Error 1 shuffle=4008752805
make[1]: Leaving directory '/var/tmp/portage/media-sound/flake-0.11/work/flake-0.11/flake'

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

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

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit f80188f73da656ba570bd521ba865d631264dea6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Nov 10 18:50:27 2022 +0000

    2022-11-10 18:50:27 UTC

emerge -qpvO media-sound/flake
[ebuild  N    ] media-sound/flake-0.11
Comment 1 Toralf Förster gentoo-dev 2022-11-10 20:14:43 UTC
Created attachment 830477 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-10 20:14:45 UTC
Created attachment 830479 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-10 20:14:46 UTC
Created attachment 830481 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-10 20:14:48 UTC
Created attachment 830483 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-10 20:14:49 UTC
Created attachment 830485 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-10 20:14:50 UTC
Created attachment 830487 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-10 20:14:51 UTC
Created attachment 830489 [details]
media-sound:flake-0.11:20221110-193625.log
Comment 8 Toralf Förster gentoo-dev 2022-11-10 20:14:52 UTC
Created attachment 830491 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-11-10 20:14:53 UTC
Created attachment 830493 [details]
var.tmp.clang.tar.bz2
Comment 10 NHO 2025-01-08 19:36:55 UTC
912148 and 917760 are duplicated
makefile doesn't order dependencies properly when there's more than one job, or in --shuffle
Comment 11 Larry the Git Cow gentoo-dev 2025-01-09 09:53:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87d9e0b69de11e844087a7f74727a40261fa7bd5

commit 87d9e0b69de11e844087a7f74727a40261fa7bd5
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-09 08:10:33 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2025-01-09 09:50:33 +0000

    media-sound/flake: update EAPI 7 -> 8, fix build instability
    
    Fixed wrong variable usage in ebuild
    Two main problems in makefile - lack of dependency of the program
    to library, so it fails if program is build before library.
    And false dependency for flake with weird renaming going on, so
    depgraph gets confused and make builds flake using default rules,
    not including library, or second compilation unit.
    One is fixed by rules addition, another is fixed by rule removal
    
    Closes: https://bugs.gentoo.org/880819
    Closes: https://bugs.gentoo.org/912148
    Closes: https://bugs.gentoo.org/917760
    Closes: https://bugs.gentoo.org/836076
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40064
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../flake/files/flake-0.11-make-instability.patch  | 33 ++++++++++++++++++++++
 media-sound/flake/flake-0.11.ebuild                | 14 ++++-----
 2 files changed, 39 insertions(+), 8 deletions(-)