Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822357 - media-sound/mixxx-9999 - disable mixxx-test
Summary: media-sound/mixxx-9999 - disable mixxx-test
Status: UNCONFIRMED
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:
Depends on:
Blocks:
 
Reported: 2021-11-07 22:54 UTC by jospezial
Modified: 2023-10-24 22:07 UTC (History)
1 user (show)

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


Attachments
drop-mixxx-test.patch rebased (drop-mixxx-test.patch,6.43 KB, patch)
2021-12-22 09:08 UTC, jospezial
Details | Diff
drop-mixxx-test.patch rebased (drop-mixxx-test.patch,6.46 KB, patch)
2022-01-27 14:56 UTC, jospezial
Details | Diff
drop-mixxx-test.patch rebased (drop-mixxx-test.patch,6.49 KB, patch)
2022-02-22 18:02 UTC, jospezial
Details | Diff
drop-mixxx-test.patch rebased (drop-mixxx-test.patch,5.51 KB, patch)
2022-07-28 14:16 UTC, jospezial
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2021-11-07 22:54:27 UTC
mixxx-9999 builds tests and installs them. That fails in compile phase because of undefined references.

After setting the build target to "mixxx" it compiled fine without mixxx-test:

src_compile() {
        cmake_src_compile mixxx
}

Now it fails in install phase because because of the same undefined references in mixxx-test.

How to disable it and only install the target "mixxx" in cmake_src_install?

I did  not have the problem in mixxx 2.3 branch.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-07 23:05:30 UTC
Would need to see the log of such undefined references ;)
Comment 2 jospezial 2021-11-07 23:52:15 UTC
I already added
rm -rfv ${BUILD_DIR}/CMakeFiles/mixxx-test.dir/src/test/
above cmake_src_install but the files are still there after the rm.

>>> Install media-sound/mixxx-9999 into /var/tmp/portage/media-sound/mixxx-9999/image
removed directory '/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build/CMakeFiles/mixxx-test.dir/src/test/'
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build"
[15/141] Update git version information in gitinfo.h
Git describe: 2.4-alpha-979-ge16a342857-modified
Git worktree modified: yes
Git branch: HEAD
Git commit count: 8350
Git commit date: 2021-11-07T12:42:45-06:00
[137/138] Linking CXX executable mixxx-test
FAILED: mixxx-test 
: && /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -march=native -mtune=native -O2 -pipe -Wl,-O1 -Wl,--as-needed CMakeFiles/mixxx-test.dir/mixxx-test_autogen/mocs_compilation.cpp.o CMakeFiles/mixxx-test.dir/src/test/analyserwaveformtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/analyzersilence_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/audiotaperpot_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/autodjprocessor_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/beatgridtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/beatmaptest.cpp.o CMakeFiles/mixxx-test.dir/src/test/beatstest.cpp.o CMakeFiles/mixxx-test.dir/src/test/beatstranslatetest.cpp.o CMakeFiles/mixxx-test.dir/src/test/bpmtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/bpmcontrol_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/broadcastprofile_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/broadcastsettings_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/cache_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/channelhandle_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/colorconfig_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/colormapperjsproxy_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/colorpalette_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/configobject_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/controller_mapping_validation_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/controllerscriptenginelegacy_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/controlobjecttest.cpp.o CMakeFiles/mixxx-test.dir/src/test/coreservicestest.cpp.o CMakeFiles/mixxx-test.dir/src/test/coverartcache_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/coverartutils_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/cratestorage_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/cue_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/cuecontrol_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/dbconnectionpool_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/dbidtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/directorydaotest.cpp.o CMakeFiles/mixxx-test.dir/src/test/duration_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/durationutiltest.cpp.o CMakeFiles/mixxx-test.dir/src/test/enginebufferscalelineartest.cpp.o CMakeFiles/mixxx-test.dir/src/test/enginebuffertest.cpp.o CMakeFiles/mixxx-test.dir/src/test/enginefilterbiquadtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/enginemastertest.cpp.o CMakeFiles/mixxx-test.dir/src/test/enginemicrophonetest.cpp.o CMakeFiles/mixxx-test.dir/src/test/enginesynctest.cpp.o CMakeFiles/mixxx-test.dir/src/test/fileinfo_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/frametest.cpp.o CMakeFiles/mixxx-test.dir/src/test/globaltrackcache_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/hotcuecontrol_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/imageutils_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/indexrange_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/keyutilstest.cpp.o CMakeFiles/mixxx-test.dir/src/test/lcstest.cpp.o CMakeFiles/mixxx-test.dir/src/test/learningutilstest.cpp.o CMakeFiles/mixxx-test.dir/src/test/libraryscannertest.cpp.o CMakeFiles/mixxx-test.dir/src/test/librarytest.cpp.o CMakeFiles/mixxx-test.dir/src/test/looping_control_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/main.cpp.o CMakeFiles/mixxx-test.dir/src/test/mathutiltest.cpp.o CMakeFiles/mixxx-test.dir/src/test/metadatatest.cpp.o CMakeFiles/mixxx-test.dir/src/test/midicontrollertest.cpp.o CMakeFiles/mixxx-test.dir/src/test/mixxxtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/movinginterquartilemean_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/nativeeffects_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/performancetimer_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/playcountertest.cpp.o CMakeFiles/mixxx-test.dir/src/test/playlisttest.cpp.o CMakeFiles/mixxx-test.dir/src/test/portmidicontroller_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/portmidienumeratortest.cpp.o CMakeFiles/mixxx-test.dir/src/test/queryutiltest.cpp.o CMakeFiles/mixxx-test.dir/src/test/rangelist_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/readaheadmanager_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/replaygaintest.cpp.o CMakeFiles/mixxx-test.dir/src/test/rescalertest.cpp.o CMakeFiles/mixxx-test.dir/src/test/rgbcolor_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/samplebuffertest.cpp.o CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o CMakeFiles/mixxx-test.dir/src/test/schemamanager_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/searchqueryparsertest.cpp.o CMakeFiles/mixxx-test.dir/src/test/seratobeatgridtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/seratomarkerstest.cpp.o CMakeFiles/mixxx-test.dir/src/test/seratomarkers2test.cpp.o CMakeFiles/mixxx-test.dir/src/test/seratotagstest.cpp.o CMakeFiles/mixxx-test.dir/src/test/signalpathtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/skincontext_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/softtakeover_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/soundproxy_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/soundsourceproviderregistrytest.cpp.o CMakeFiles/mixxx-test.dir/src/test/sqliteliketest.cpp.o CMakeFiles/mixxx-test.dir/src/test/synccontroltest.cpp.o CMakeFiles/mixxx-test.dir/src/test/tableview_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/taglibtest.cpp.o CMakeFiles/mixxx-test.dir/src/test/trackdao_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/trackexport_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/trackmetadata_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/tracknumberstest.cpp.o CMakeFiles/mixxx-test.dir/src/test/trackreftest.cpp.o CMakeFiles/mixxx-test.dir/src/test/trackupdate_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/uuid_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/wbatterytest.cpp.o CMakeFiles/mixxx-test.dir/src/test/wpushbutton_test.cpp.o CMakeFiles/mixxx-test.dir/src/test/wwidgetstack_test.cpp.o CMakeFiles/mixxx-test.dir/mixxx-test_autogen/PNK5WDWK6L/qrc_mixxx.cpp.o -o mixxx-test  -Wl,-rpath,/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build/lib:/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build/lib/benchmark/src  libmixxx-lib.a  libmixxx-gitinfostore.a  lib/libgmock.so.1.10.0  lib/benchmark/src/libbenchmark.so.0.0.0  /usr/lib64/liblilv-0.so  /usr/lib64/libchromaprint.so  /usr/lib64/libsqlite3.so  /usr/lib64/libebur128.so  libfidlib.a  /usr/lib64/libkeyfinder.so  /usr/lib64/libFLAC.so  libFpClassify.a  /usr/lib64/libmp3lame.so  libKaitai.a  libMP3GuessEnc.a  /usr/lib64/libGLX.so  /usr/lib64/libOpenGL.so  /usr/lib64/libogg.so  /usr/lib64/libvorbis.so  /usr/lib64/libvorbisenc.so  /usr/lib64/libvorbisfile.so  /usr/lib64/libportaudio.so  libPortAudioRingBuffer.a  /usr/lib64/libportmidi.so  /usr/lib64/libprotobuf-lite.so  /usr/lib64/libQt5Concurrent.so.5.15.2  /usr/lib64/libQt5OpenGL.so.5.15.2  /usr/lib64/libQt5PrintSupport.so.5.15.2  /usr/lib64/libQt5QuickWidgets.so.5.15.2  /usr/lib64/libQt5Quick.so.5.15.2  /usr/lib64/libQt5QmlModels.so.5.15.2  /usr/lib64/libQt5Qml.so.5.15.2  /usr/lib64/libQt5Network.so.5.15.2  /usr/lib64/libQt5Sql.so.5.15.2  /usr/lib64/libQt5Svg.so.5.15.2  /usr/lib64/libQt5Test.so.5.15.2  /usr/lib64/libQt5Widgets.so.5.15.2  /usr/lib64/libQt5Xml.so.5.15.2  /usr/lib64/libQt5X11Extras.so.5.15.2  /usr/lib64/libQt5Gui.so.5.15.2  /usr/lib64/libSM.so  /usr/lib64/libICE.so  /usr/lib64/libX11.so  /usr/lib64/libXext.so  libQueenMaryDsp.a  libReplayGain.a  libReverb.a  /usr/lib64/librubberband.so  /usr/lib64/libsndfile.so  /usr/lib64/libSoundTouch.so  /usr/lib64/libtag.so  /usr/lib64/libupower-glib.so  /usr/lib64/libglib-2.0.so  /usr/lib64/libgobject-2.0.so  /usr/lib64/libmp4v2.so  /usr/lib64/libavcodec.so  /usr/lib64/libavformat.so  /usr/lib64/libavutil.so  /usr/lib64/libswresample.so  /usr/lib64/libopusfile.so  /usr/lib64/libopus.so  /usr/lib64/libmad.so  /usr/lib64/libid3tag.so  /usr/lib64/libmodplug.so  /usr/lib64/libqt5keychain.so.0.12.0  /usr/lib64/libQt5DBus.so.5.15.2  /usr/lib64/libQt5Core.so.5.15.2  /usr/lib64/libhidapi-hidraw.so  /usr/lib64/libusb-1.0.so  libmixxx-xwax.a  /usr/lib64/libwavpack.so  lib/libgtest.so.1.10.0  -lpthread  -pthread  /usr/lib64/librt.so && :
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/main.cpp.o: in function `main':
main.cpp:(.text.startup+0xa7): undefined reference to `benchmark::Initialize(int*, char**)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.cpp:(.text.startup+0xba): undefined reference to `benchmark::RunSpecifiedBenchmarks()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/main.cpp.o: in function `_GLOBAL__sub_I_main.cpp':
main.cpp:(.text.startup+0x149): undefined reference to `benchmark::internal::InitializeStreams()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `(anonymous namespace)::BM_MemCpy(benchmark::State&)':
sampleutiltest.cpp:(.text+0x500): undefined reference to `benchmark::State::FinishKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text+0x524): undefined reference to `benchmark::State::StartKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `(anonymous namespace)::BM_StdCpy(benchmark::State&)':
sampleutiltest.cpp:(.text+0xcb7): undefined reference to `benchmark::State::FinishKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text+0xcdc): undefined reference to `benchmark::State::StartKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `(anonymous namespace)::BM_Copy2WithGain(benchmark::State&)':
sampleutiltest.cpp:(.text+0xdf8): undefined reference to `benchmark::State::FinishKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text+0xe26): undefined reference to `benchmark::State::StartKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `(anonymous namespace)::BM_Copy2WithRampingGain(benchmark::State&)':
sampleutiltest.cpp:(.text+0xfa9): undefined reference to `benchmark::State::FinishKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text+0xfdb): undefined reference to `benchmark::State::StartKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `__static_initialization_and_destruction_0(int, int) [clone .constprop.0]':
sampleutiltest.cpp:(.text.startup+0x2ac): undefined reference to `benchmark::internal::InitializeStreams()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xdb8): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xdbf): undefined reference to `vtable for benchmark::internal::FunctionBenchmark'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xddc): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xdee): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe0a): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe27): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe39): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe55): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe72): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe84): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xea0): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xebd): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xecf): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xeee): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xf0b): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xf3a): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: media-sound/mixxx-9999::overlay_jl failed (install phase):
 *   died running ninja install
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_install
 *   environment, line 2751:  Called cmake_src_install
 *   environment, line 1247:  Called die
 * The specific snippet of code:
 *       DESTDIR="${D}" ${CMAKE_MAKEFILE_GENERATOR} install "$@" || die "died running ${CMAKE_MAKEFILE_GENERATOR} install";
Comment 3 jospezial 2021-11-07 23:53:51 UTC
Already tried without cmake.
Comment 4 jospezial 2021-11-07 23:54:35 UTC
(In reply to jospezial from comment #3)
> Already tried without cmake.

I meant ccache.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-08 00:03:10 UTC
Was curious about -DBENCHMARK_ENABLE_INSTALL=OFF but it's already forced and so is https://github.com/mixxxdj/mixxx/blob/5158e6259cfbba2f71e4f112d642259c48659354/CMakeLists.txt#L1561...
Comment 6 jospezial 2021-11-08 00:15:37 UTC
The last way would be to remove the tests cpp lines from CMakeLists.txt with a patch or sed.
Comment 7 jospezial 2021-11-09 15:28:46 UTC
(In reply to jospezial from comment #6)
> The last way would be to remove the tests cpp lines from CMakeLists.txt with
> a patch or sed.


Gerion Entrup was a bit before me.:
https://gitweb.gentoo.org/repo/user/gerislay.git/commit/media-sound/mixxx/files?id=9003d67b4072e7879fedcf823a4e4855aa6b199c
"media-sound/mixxx: fix compilation
Drop mixxx-test build. This disables the test but don't require
google/benchmark anymore."

https://gitweb.gentoo.org/repo/user/gerislay.git/tree/media-sound/mixxx/files/drop-mixxx-test.patch
Comment 8 jospezial 2021-11-10 05:32:39 UTC
Patch from gerislay works for mixxx-9999.
Comment 9 jospezial 2021-12-22 09:08:56 UTC
Created attachment 760022 [details, diff]
drop-mixxx-test.patch rebased

patch from gerislay, rebased to apply again
Comment 10 jospezial 2022-01-27 14:56:19 UTC
Created attachment 763746 [details, diff]
drop-mixxx-test.patch rebased

patch from gerislay, rebased again to apply for media-sound/mixxx-9999
Comment 11 gerion 2022-01-27 21:48:30 UTC
Lars Wendler has packaged Mixxx 2.3.1 a week ago.

This includes another (much better) patch than mine.
Can you test, if this ebuild works for the Git version, too?

(For that, it should be enough to copy mixxx-2.3.1-r4.ebuild to mixxx-9999.ebuild and run `ebuild manifest mixxx-9999.ebuild`.)
Comment 12 jospezial 2022-01-28 12:10:42 UTC
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-sound/mixxx/files/mixxx-2.3.1-benchmark_compile_fix.patch
only fixes the compile error.
That fix is already in mixxx git main.
Target "mixxx-test" will still be compiled if we don`t say we want the target "mixxx" only:

src_compile() {
        cmake_src_compile mixxx
}

but then it will be compiled in install phase:
[692/692]...

>>> Source compiled.
>>> Test phase [not enabled]: media-sound/mixxx-9999

>>> Install media-sound/mixxx-9999 into /var/tmp/portage/media-sound/mixxx-9999/image
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build"
[4/144] Update git version information in gitinfo.h
Git describe: 2.4-alpha-1093-gca1e3246c4-modified
Git worktree modified: yes
Git branch: HEAD
Git commit count: 8464
Git commit date: 2022-01-25T01:19:33+01:00
[40/141] Building CXX object CMakeFiles/mixxx-test.dir/src/test/beatgridtest.cpp.o ...

and fails then:

>>> Install media-sound/mixxx-9999 into /var/tmp/portage/media-sound/mixxx-9999/image
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build"
[4/144] Update git version information in gitinfo.h
Git describe: 2.4-alpha-1093-gca1e3246c4-modified
Git worktree modified: yes
Git branch: HEAD
Git commit count: 8464
Git commit date: 2022-01-25T01:19:33+01:00
[140/141] Linking CXX executable mixxx-test
FAILED: mixxx-test 

...

/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/main.cpp.o: in function `main':
main.cpp:(.text.startup+0xa7): undefined reference to `benchmark::Initialize(int*, char**)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: main.cpp:(.text.startup+0xba): undefined reference to `benchmark::RunSpecifiedBenchmarks()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/main.cpp.o: in function `_GLOBAL__sub_I_main.cpp':
main.cpp:(.text.startup+0x149): undefined reference to `benchmark::internal::InitializeStreams()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `(anonymous namespace)::BM_MemCpy(benchmark::State&)':
sampleutiltest.cpp:(.text+0x500): undefined reference to `benchmark::State::FinishKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text+0x524): undefined reference to `benchmark::State::StartKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `(anonymous namespace)::BM_StdCpy(benchmark::State&)':
sampleutiltest.cpp:(.text+0xcb7): undefined reference to `benchmark::State::FinishKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text+0xcdc): undefined reference to `benchmark::State::StartKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `(anonymous namespace)::BM_Copy2WithGain(benchmark::State&)':
sampleutiltest.cpp:(.text+0xdf8): undefined reference to `benchmark::State::FinishKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text+0xe26): undefined reference to `benchmark::State::StartKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `(anonymous namespace)::BM_Copy2WithRampingGain(benchmark::State&)':
sampleutiltest.cpp:(.text+0xfa9): undefined reference to `benchmark::State::FinishKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text+0xfdb): undefined reference to `benchmark::State::StartKeepRunning()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/mixxx-test.dir/src/test/sampleutiltest.cpp.o: in function `__static_initialization_and_destruction_0(int, int) [clone .constprop.0]':
sampleutiltest.cpp:(.text.startup+0x2ac): undefined reference to `benchmark::internal::InitializeStreams()'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xdb8): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xdbf): undefined reference to `vtable for benchmark::internal::FunctionBenchmark'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xddc): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xdee): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe0a): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe27): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe39): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe55): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe72): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xe84): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xea0): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xebd): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xecf): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xeee): undefined reference to `benchmark::internal::Benchmark::Benchmark(char const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xf0b): undefined reference to `benchmark::internal::RegisterBenchmarkInternal(benchmark::internal::Benchmark*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: sampleutiltest.cpp:(.text.startup+0xf3a): undefined reference to `benchmark::internal::Benchmark::Range(long, long)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: media-sound/mixxx-9999::overlay_jl failed (install phase):
 *   died running ninja install
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_install
 *   environment, line 2782:  Called cmake_src_install
 *   environment, line 1255:  Called die
 * The specific snippet of code:
 *       DESTDIR="${D}" ${CMAKE_MAKEFILE_GENERATOR} install "$@" || die "died running ${CMAKE_MAKEFILE_GENERATOR} install";
Comment 13 jospezial 2022-01-28 12:32:40 UTC
(In reply to jospezial from comment #12)
> https://gitweb.gentoo.org/repo/gentoo.git/tree/media-sound/mixxx/files/mixxx-
> 2.3.1-benchmark_compile_fix.patch
> only fixes the compile error.
> That fix is already in mixxx git main.

It does fix another compile error but not mine.
https://github.com/mixxxdj/mixxx/pull/4540#issue-1061781857
says:
Build on Fedora 35 with GCC 11.2.1 failed due to missing include of numeric_limits.(In reply to gerion from comment #11)


> Can you test, if this ebuild works for the Git version, too?
> 
> (For that, it should be enough to copy mixxx-2.3.1-r4.ebuild to
> mixxx-9999.ebuild and run `ebuild manifest mixxx-9999.ebuild`.)

Then the ebuild tries to download manuals 9999 versioned.
Comment 14 jospezial 2022-02-22 18:02:37 UTC
Created attachment 765670 [details, diff]
drop-mixxx-test.patch rebased

I hope we find another way to disable the compilation of the tests in compile and install phase by specifying the target mixxx.
Comment 15 jospezial 2022-07-28 14:16:17 UTC
Created attachment 795281 [details, diff]
drop-mixxx-test.patch rebased

Still the same situation.
Comment 16 jospezial 2023-01-23 07:33:07 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c4c56577c6a096227449c6767c10a97d8a9be9e
"media-sound/mixxx: disable building shared libs
Not sure if this is the right approach, but building the ebuild without this
gives a bunch of undefined reference errors to benchmarking code
Better approach might be this + disable benchmarking linking in final shared
build? & disable benchmarking & testing in general when USE=-test"


I am not sure what DBUILD_SHARED_LIBS=OFF really does, but I am more for disable benchmarking & testing.
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-23 07:34:37 UTC
(In reply to jospezial from comment #16)
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=9c4c56577c6a096227449c6767c10a97d8a9be9e
> "media-sound/mixxx: disable building shared libs
> Not sure if this is the right approach, but building the ebuild without this
> gives a bunch of undefined reference errors to benchmarking code
> Better approach might be this + disable benchmarking linking in final shared
> build? & disable benchmarking & testing in general when USE=-test"
> 
> 
> I am not sure what DBUILD_SHARED_LIBS=OFF really does, but I am more for
> disable benchmarking & testing.

Some background: we override the default BUILD_SHARED_LIBS value in general in cmake.eclass, so sometimes it has an odd effect on packages where they expect their internal helper libraries (not used by any other pkgs) to be static. This was the case with musescore when I looked at it the other day.

It's likely the same here w/ mixxx.
Comment 18 jospezial 2023-09-24 21:37:56 UTC
https://github.com/mixxxdj/mixxx/commit/fedb88a77e3166ef78f7c1e29ebc31472c765768
"Use System provided Google Benchmark"

That commit causes:

 * Package:    media-sound/mixxx-9999:0
 * Repository: gentoo
 * Maintainer: proaudio@gentoo.org
 * USE:        aac abi_x86_64 amd64 elibc_glibc ffmpeg hid kernel_linux keyfinder lv2 mp3 mp4 opus qtkeychain wavpack
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
Initialized empty Git repository in /var/cache/distfiles/git3-src/mixxxdj_mixxx.git/
 * Repository id: mixxxdj_mixxx.git
 * To override fetched repository properties, use:
 *   EGIT_OVERRIDE_REPO_MIXXXDJ_MIXXX
 *   EGIT_OVERRIDE_BRANCH_MIXXXDJ_MIXXX
 *   EGIT_OVERRIDE_COMMIT_MIXXXDJ_MIXXX
 *   EGIT_OVERRIDE_COMMIT_DATE_MIXXXDJ_MIXXX
 * 
 * Fetching https://github.com/mixxxdj/mixxx.git ...
git fetch https://github.com/mixxxdj/mixxx.git +HEAD:refs/git-r3/HEAD
remote: Enumerating objects: 359962, done.
remote: Counting objects: 100% (5056/5056), done.
remote: Compressing objects: 100% (1634/1634), done.
remote: Total 359962 (delta 3650), reused 4559 (delta 3415), pack-reused 354906
Receiving objects: 100% (359962/359962), 436.40 MiB | 6.82 MiB/s, done.
Resolving deltas: 100% (292152/292152), done.
From https://github.com/mixxxdj/mixxx
 * [new ref]               HEAD       -> refs/git-r3/HEAD
 * [new tag]               2.3-beta   -> 2.3-beta
 * [new tag]               2.3.0      -> 2.3.0
 * [new tag]               2.3.1      -> 2.3.1
 * [new tag]               2.3.2      -> 2.3.2
 * [new tag]               2.3.3      -> 2.3.3
 * [new tag]               2.3.4      -> 2.3.4
 * [new tag]               2.3.5      -> 2.3.5
 * [new tag]               2.3.6      -> 2.3.6
 * [new tag]               2.4-alpha  -> 2.4-alpha
 * [new tag]               2.4-beta   -> 2.4-beta
 * [new tag]               2.5-alpha  -> 2.5-alpha
 * [new tag]               release-1.12.0-beta1 -> release-1.12.0-beta1
 * [new tag]               release-2.0.0 -> release-2.0.0
 * [new tag]               release-2.0.0-rc1 -> release-2.0.0-rc1
 * [new tag]               release-2.0.0-rc2 -> release-2.0.0-rc2
 * [new tag]               release-2.1.0 -> release-2.1.0
 * [new tag]               release-2.1.0-rc1 -> release-2.1.0-rc1
 * [new tag]               release-2.1.1 -> release-2.1.1
 * [new tag]               release-2.1.2 -> release-2.1.2
 * [new tag]               release-2.1.2.0 -> release-2.1.2.0
 * [new tag]               release-2.1.3 -> release-2.1.3
 * [new tag]               release-2.1.4 -> release-2.1.4
 * [new tag]               release-2.1.5 -> release-2.1.5
 * [new tag]               release-2.1.6 -> release-2.1.6
 * [new tag]               release-2.1.7 -> release-2.1.7
 * [new tag]               release-2.1.8 -> release-2.1.8
 * [new tag]               release-2.2.0 -> release-2.2.0
 * [new tag]               release-2.2.1 -> release-2.2.1
 * [new tag]               release-2.2.2 -> release-2.2.2
 * [new tag]               release-2.2.3 -> release-2.2.3
 * [new tag]               release-2.2.4 -> release-2.2.4
git symbolic-ref refs/git-r3/media-sound/mixxx/0/__main__ refs/git-r3/HEAD
 * Checking out https://github.com/mixxxdj/mixxx.git to /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999 ...
git checkout --quiet refs/git-r3/HEAD
GIT NEW branch -->
   repository:               https://github.com/mixxxdj/mixxx.git
   at the commit:            0fecdbfa621f550f215d98a4e963ca4a045d0459
>>> Source unpacked in /var/tmp/portage/media-sound/mixxx-9999/work
>>> Preparing source in /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build"
 * Applying mixxx-9999-docs.patch ...
 [ ok ]
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *      set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the typ
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build"
cmake -C /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DFAAD=on -DFFMPEG=on -DHID=on -DLILV=on -DMAD=on -DOPTIMIZE=off -DCCACHE_SUPPORT=off -DOPUS=on -DBROADCAST=off -DVINYLCONTROL=on -DINSTALL_USER_UDEV_RULES=OFF -DWAVPACK=on -DQTKEYCHAIN=on -DKEYFINDER=on -DDOWNLOAD_MANUAL=OFF -DBUILD_SHARED_LIBS=OFF -DENGINEPRIME=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build/gentoo_toolchain.cmake /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999
loading initial cache file /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Optimization level: off
-- Found ccache: /usr/bin/ccache
-- Support for ccache: off
-- Found lld with version: 16.0.6
-- Selecting lld as linker
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
CMake Warning at CMakeLists.txt:1922 (find_package):
  By not providing "Findbenchmark.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "benchmark", but CMake did not find one.

  Could not find a package configuration file provided by "benchmark" with
  any of the following names:

    benchmarkConfig.cmake
    benchmark-config.cmake

  Add the installation prefix of "benchmark" to CMAKE_PREFIX_PATH or set
  "benchmark_DIR" to a directory containing one of the above files.  If
  "benchmark" provides a separate development package or SDK, be sure it has
  been installed.


-- Found Chromaprint: /usr/lib64/libchromaprint.so (found version "1.5.1") 
-- Found SQLite3: /usr/include (found version "3.43.1") 
-- Found Ebur128: /usr/lib64/libebur128.so (found version "1.2.6") 
-- Found KeyFinder: /usr/lib64/libkeyfinder.so (Required is at least version "2.2.4") 
-- Found FLAC: /usr/lib64/libFLAC.so (found version "1.4.3") 
-- Found mp3lame: /usr/lib64/libmp3lame.so  
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Found Ogg: /usr/lib64/libogg.so (found version "1.3.5") 
-- Found Vorbis: /usr/include  found components: vorbis vorbisenc vorbisfile 
-- Found PortAudio: /usr/lib64/libportaudio.so (found version "19") 
-- Found PortMidi: /usr/lib64/libportmidi.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.13")  
-- Found WrapOpenGL: TRUE  
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.5.0", minimum required is "0.5.0") 
-- Found WrapVulkanHeaders: /usr/include  
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found rubberband: /usr/lib64/librubberband.so (found version "3.3.0") 
-- Found SndFile: /usr/lib64/libsndfile.so (found version "1.2.2") 
-- Found SoundTouch: /usr/lib64/libSoundTouch.so (found suitable version "2.3.2", minimum required is "2.1.2") 
-- Found TagLib: /usr/lib64/libtag.so (found suitable version "1.13.1", minimum required is "1.11") 
-- Found Upower: /usr/lib64/libupower-glib.so (found version "1.90.2") 
-- Found GLIB: /usr/include/glib-2.0;/usr/lib64/glib-2.0/include (found version "2.78.0") 
-- Could NOT find MP4 (missing: MP4_LIBRARY MP4_INCLUDE_DIR) 
-- Found MP4v2: /usr/lib64/libmp4v2.so (found version "2.1.3") 
-- Searching for FFMPEG components
--   - libavcodec 60.26.100 found.
--   - libavformat 60.12.101 found.
--   - libavdevice 60.2.101 found.
--   - libavutil 58.24.100 found.
--   - libavfilter 9.11.100 found.
--   - libswscale 7.3.100 found.
--   - libswresample 4.11.100 found.
-- Found FFMPEG: /usr/lib64/libavcodec.so;/usr/lib64/libavformat.so;/usr/lib64/libavutil.so;/usr/lib64/libswresample.so  
-- Found lilv: /usr/lib64/liblilv-0.so  
-- Found OpusFile: /usr/lib64/libopusfile.so (found version "0.12") 
-- Found Opus: /usr/lib64/libopus.so (found version "1.4") 
-- Found MAD: /usr/lib64/libmad.so (found version "0.15.1b") 
-- Found ID3Tag: /usr/lib64/libid3tag.so (found version "0.16.3") 
-- Found Modplug: /usr/lib64/libmodplug.so (found version "0.8.9.1") 
-- Found LibUSB: /usr/lib64/libusb-1.0.so (found version "1.0.26") 
-- Found hidapi: /usr/lib64/libhidapi-libusb.so (found suitable version "0.14.0", minimum required is "0.11.2") 
-- Found wavpack: /usr/lib64/libwavpack.so (found version "5.6.0") 
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -march=native -mtune=native -O2 -pipe
C++             -march=native -mtune=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring done (12.2s)
CMake Error at CMakeLists.txt:1923 (target_link_libraries):
  Target "mixxx-test" links to:

    benchmark::benchmark

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



-- Generating done (0.2s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
 * ERROR: media-sound/mixxx-9999::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2734:  Called cmake_src_configure
 *   environment, line 1239:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";


Do we want to add that dev-cpp/benchmark dependency to the ebuild or disable it somehow?
I will try again now with setting only "mixxx" as target.
Comment 19 jospezial 2023-09-26 19:31:57 UTC
Building of target "mixxx-test" must be disabled in compile and install phase.
Otherwise if I remove all benchmark related lines from CMakeLists.txt this happens:

/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DMIXXX_BUILD_RELEASE -DMIXXX_USE_QOPENGL -DPROTOBUF_USE_DLLS -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_SQL_LIB -DQT_SVGWIDGETS_LIB -DQT_SVG_LIB -DQT_TABLET_SUPPORT -DQT_TESTCASE_BUILDDIR=\"/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build\" -DQT_TESTCASE_SOURCEDIR=\"/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -DSFC_SUPPORTS_SET_COMPRESSION_LEVEL -D__BATTERY__ -D__BULK__ -D__FAAD__ -D__FFMPEG__ -D__HID__ -D__KEYFINDER__ -D__LILV__ -D__LINUX__ -D__MAD__ -D__MODPLUG__ -D__OPUS__ -D__QTKEYCHAIN__ -D__SNDFILE__ -D__SQLITE3__ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__UNIX__ -D__VINYLCONTROL__ -D__WV__ -Dx86_64 -I/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build/mixxx-test_autogen/include -I/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999/src -I/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999_build/src -isystem /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999/lib/fidlib -isystem /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999/lib/portaudio -isystem /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999/lib/rigtorp/SPSCQueue/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/qt6/QtConcurrent -isystem /usr/include/qt6 -isystem /usr/include/qt6/QtCore -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtNetwork -isystem /usr/include/qt6/QtOpenGL -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtQml -isystem /usr/include/qt6/QtQmlIntegration -isystem /usr/include/qt6/QtQuickWidgets -isystem /usr/include/qt6/QtQuick -isystem /usr/include/qt6/QtQmlModels -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtSvg -isystem /usr/include/qt6/QtTest -isystem /usr/include/qt6/QtXml -isystem /usr/include/qt6/QtSvgWidgets -isystem /usr/include/qt6/QtCore5Compat -isystem /usr/include/lilv-0  -march=native -mtune=native -O2 -pipe -std=gnu++20 -fvisibility=hidden -fvisibility-inlines-hidden -pipe -Wall -Wextra -Woverloaded-virtual -Wfloat-conversion -Werror=return-type -Wformat=2 -Wformat-security -Wvla -Wundef -fPIC -MD -MT CMakeFiles/mixxx-test.dir/src/test/engineeffectsdelay_test.cpp.o -MF CMakeFiles/mixxx-test.dir/src/test/engineeffectsdelay_test.cpp.o.d -o CMakeFiles/mixxx-test.dir/src/test/engineeffectsdelay_test.cpp.o -c /var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999/src/test/engineeffectsdelay_test.cpp
/var/tmp/portage/media-sound/mixxx-9999/work/mixxx-9999/src/test/engineeffectsdelay_test.cpp:9:10: fatal error: benchmark/benchmark.h: No such file or directory
    9 | #include <benchmark/benchmark.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.