Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858509 - dev-util/valgrind-3.19.0 fails to compile (lto): mc_leakcheck.c:767: undefined reference to VG_MINIMAL_SETJMP
Summary: dev-util/valgrind-3.19.0 fails to compile (lto): mc_leakcheck.c:767: undefine...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
: 873001 (view as bug list)
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-17 07:59 UTC by Agostino Sarubbo
Modified: 2024-01-07 13:39 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,553.95 KB, text/plain)
2022-07-17 07:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-17 07:59:13 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/valgrind-3.19.0 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-17 07:59:16 UTC
Created attachment 791849 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-17 07:59:18 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_debuginfo/readdwarf3.c:5777: undefined reference to `VG_MINIMAL_LONGJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_debuginfo/readdwarf3.c:5806: undefined reference to `VG_MINIMAL_SETJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_gdbserver/m_gdbserver.c:771: undefined reference to `VG_MINIMAL_LONGJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_gdbserver/server.c:1190: undefined reference to `VG_MINIMAL_SETJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_gdbserver/server.c:1208: undefined reference to `VG_MINIMAL_SETJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_gdbserver/utils.c:51: undefined reference to `VG_MINIMAL_LONGJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_main.c:85: undefined reference to `memcpy'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_scheduler/scheduler.c:1034: undefined reference to `VG_MINIMAL_SETJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_scheduler/scheduler.c:1211: undefined reference to `VG_MINIMAL_SETJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/../coregrind/m_signals.c:2163: undefined reference to `VG_MINIMAL_LONGJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/mc_leakcheck.c:1092: undefined reference to `VG_MINIMAL_SETJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/mc_leakcheck.c:726: undefined reference to `VG_MINIMAL_LONGJMP'
/var/tmp/portage/dev-util/valgrind-3.19.0/work/valgrind-3.19.0/memcheck/mc_leakcheck.c:767: undefined reference to `VG_MINIMAL_SETJMP'
<artificial>:(.text+0x1ea): undefined reference to `vgPlain_interim_stack'
<artificial>:(.text+0xd3): undefined reference to `vgPlain_interim_stack'
collect2: error: ld returned 1 exit status
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-31 06:21:56 UTC
Given https://bugs.kde.org/show_bug.cgi?id=338252, even though it's "fixed", I'd say we should filter LTO here given it seems fragile on Valgrind.
Comment 4 Larry the Git Cow gentoo-dev 2022-07-31 06:30:30 UTC
The bug has been closed via the following commit(s):

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

commit ed582fd4610e4cf1b5249d7e4a6127873e601bf4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-31 06:29:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-31 06:29:55 +0000

    dev-util/valgrind: filter LTO
    
    Closes: https://bugs.gentoo.org/858509
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/valgrind/valgrind-3.19.0.ebuild | 2 ++
 dev-util/valgrind/valgrind-9999.ebuild   | 2 ++
 2 files changed, 4 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-07 13:39:43 UTC
*** Bug 873001 has been marked as a duplicate of this bug. ***