[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1019471: marked as done (yoshimi: FTBFS on riscv64 (undefined reference to `__atomic_compare_exchange_1'))



Your message dated Mon, 12 Sep 2022 22:11:39 +0000
with message-id <E1oXreV-0020IL-Qq@fasolo.debian.org>
and subject line Bug#1019471: fixed in yoshimi 2.2.2.1-1
has caused the Debian Bug report #1019471,
regarding yoshimi: FTBFS on riscv64 (undefined reference to `__atomic_compare_exchange_1')
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1019471: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019471
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: yoshimi
Version: 2.2.2-1
Severity: important
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: i@hack3r.moe

Dear maintainer(s),

We are currently porting packages to riscv46 platform. yoshimi failed to build
on riscv64 due to not linking to libatomic:

```
[100%] Linking CXX executable yoshimi
/usr/bin/cmake -E cmake_link_script CMakeFiles/yoshimi.dir/link.txt --verbose=1
/usr/bin/c++ -ffast-math -fomit-frame-pointer -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/yoshimi.dir/Interface/InterChange.cpp.o CMakeFiles/yoshimi.dir/Interface/Data2Text.cpp.o CMakeFiles/yoshimi.dir/Interface/Text2Data.cpp.o CMakeFiles/yoshimi.dir/Interface/MidiLearn.cpp.o CMakeFiles/yoshimi.dir/Interface/MidiDecode.cpp.o CMakeFiles/yoshimi.dir/CLI/CmdInterface.cpp.o CMakeFiles/yoshimi.dir/CLI/CmdInterpreter.cpp.o CMakeFiles/yoshimi.dir/Misc/CmdOptions.cpp.o CMakeFiles/yoshimi.dir/Misc/Config.cpp.o CMakeFiles/yoshimi.dir/Misc/SynthEngine.cpp.o CMakeFiles/yoshimi.dir/Misc/Bank.cpp.o CMakeFiles/yoshimi.dir/Misc/BuildScheduler.cpp.o CMakeFiles/yoshimi.dir/Misc/Microtonal.cpp.o CMakeFiles/yoshimi.dir/Misc/Part.cpp.o CMakeFiles/yoshimi.dir/Misc/Splash.cpp.o CMakeFiles/yoshimi.dir/Misc/WavFile.cpp.o CMakeFiles/yoshimi.dir/Misc/XMLwrapper.cpp.o CMakeFiles/yoshimi.dir/Params/ADnoteParameters.cpp.o CMakeFiles/yoshimi.dir/Params/EnvelopeParams.cpp.o CMakeFiles/yoshimi.dir/Params/FilterParams.cpp.o CMakeFiles/yoshimi.dir/Params/LFOParams.cpp.o CMakeFiles/yoshimi.dir/Params/SUBnoteParameters.cpp.o CMakeFiles/yoshimi.dir/Params/PADnoteParameters.cpp.o CMakeFiles/yoshimi.dir/Params/Controller.cpp.o CMakeFiles/yoshimi.dir/Params/Presets.cpp.o CMakeFiles/yoshimi.dir/Params/PresetsStore.cpp.o CMakeFiles/yoshimi.dir/Params/UnifiedPresets.cpp.o CMakeFiles/yoshimi.dir/Params/OscilParameters.cpp.o CMakeFiles/yoshimi.dir/Synth/ADnote.cpp.o CMakeFiles/yoshimi.dir/Synth/Envelope.cpp.o CMakeFiles/yoshimi.dir/Synth/LFO.cpp.o CMakeFiles/yoshimi.dir/Synth/OscilGen.cpp.o CMakeFiles/yoshimi.dir/Synth/SUBnote.cpp.o CMakeFiles/yoshimi.dir/Synth/Resonance.cpp.o CMakeFiles/yoshimi.dir/Synth/PADnote.cpp.o CMakeFiles/yoshimi.dir/DSP/AnalogFilter.cpp.o CMakeFiles/yoshimi.dir/DSP/Filter.cpp.o CMakeFiles/yoshimi.dir/DSP/FormantFilter.cpp.o CMakeFiles/yoshimi.dir/DSP/SVFilter.cpp.o CMakeFiles/yoshimi.dir/DSP/Unison.cpp.o CMakeFiles/yoshimi.dir/Effects/Alienwah.cpp.o CMakeFiles/yoshimi.dir/Effects/Chorus.cpp.o CMakeFiles/yoshimi.dir/Effects/Echo.cpp.o CMakeFiles/yoshimi.dir/Effects/EffectLFO.cpp.o CMakeFiles/yoshimi.dir/Effects/EffectMgr.cpp.o CMakeFiles/yoshimi.dir/Effects/Effect.cpp.o CMakeFiles/yoshimi.dir/Effects/Phaser.cpp.o CMakeFiles/yoshimi.dir/Effects/Reverb.cpp.o CMakeFiles/yoshimi.dir/Effects/EQ.cpp.o CMakeFiles/yoshimi.dir/Effects/Distorsion.cpp.o CMakeFiles/yoshimi.dir/Effects/DynamicFilter.cpp.o CMakeFiles/yoshimi.dir/MusicIO/MusicClient.cpp.o CMakeFiles/yoshimi.dir/MusicIO/MusicIO.cpp.o CMakeFiles/yoshimi.dir/MusicIO/JackEngine.cpp.o CMakeFiles/yoshimi.dir/MusicIO/AlsaEngine.cpp.o CMakeFiles/yoshimi.dir/PresetsUI.cpp.o CMakeFiles/yoshimi.dir/EnvelopeUI.cpp.o CMakeFiles/yoshimi.dir/LFOUI.cpp.o CMakeFiles/yoshimi.dir/FilterUI.cpp.o CMakeFiles/yoshimi.dir/VirKeyboardUI.cpp.o CMakeFiles/yoshimi.dir/ConfigUI.cpp.o CMakeFiles/yoshimi.dir/SUBnoteUI.cpp.o CMakeFiles/yoshimi.dir/ResonanceUI.cpp.o CMakeFiles/yoshimi.dir/OscilGenUI.cpp.o CMakeFiles/yoshimi.dir/ADnoteUI.cpp.o CMakeFiles/yoshimi.dir/PADnoteUI.cpp.o CMakeFiles/yoshimi.dir/EffUI.cpp.o CMakeFiles/yoshimi.dir/BankUI.cpp.o CMakeFiles/yoshimi.dir/PartUI.cpp.o CMakeFiles/yoshimi.dir/MicrotonalUI.cpp.o CMakeFiles/yoshimi.dir/MasterUI.cpp.o CMakeFiles/yoshimi.dir/MasterMiscUI.cpp.o CMakeFiles/yoshimi.dir/ParametersUI.cpp.o CMakeFiles/yoshimi.dir/ConsoleUI.cpp.o CMakeFiles/yoshimi.dir/VectorUI.cpp.o CMakeFiles/yoshimi.dir/MidiLearnUI.cpp.o CMakeFiles/yoshimi.dir/UI/DynamicTooltip.cpp.o CMakeFiles/yoshimi.dir/UI/WidgetPDial.cpp.o CMakeFiles/yoshimi.dir/UI/WidgetCheckButton.cpp.o CMakeFiles/yoshimi.dir/UI/WidgetSpinner.cpp.o CMakeFiles/yoshimi.dir/UI/WidgetMWSlider.cpp.o CMakeFiles/yoshimi.dir/UI/YoshiWin.cpp.o CMakeFiles/yoshimi.dir/UI/MiscGui.cpp.o CMakeFiles/yoshimi.dir/main.cpp.o -o yoshimi  -lfontconfig -lfreetype -lfltk_images -lfltk_forms -lfltk_gl -lfltk -lSM -lICE -lX11 -lXext -lm -lmxml -lasound -ljack -lfftw3f -lcairo -lncurses -lform -lreadline -lz -Wl,-Bstatic -ldl -Wl,-Bdynamic 
/usr/bin/ld: CMakeFiles/yoshimi.dir/Params/PADnoteParameters.cpp.o: in function `std::__atomic_base<bool>::compare_exchange_strong(bool&, bool, std::memory_order, std::memory_order)':
/usr/include/c++/12/bits/new_allocator.h:158: undefined reference to `__atomic_compare_exchange_1'
/usr/bin/ld: CMakeFiles/yoshimi.dir/Params/PADnoteParameters.cpp.o: in function `std::__atomic_base<bool>::compare_exchange_strong(bool&, bool, std::memory_order, std::memory_order)':
/usr/include/c++/12/bits/atomic_base.h:560: undefined reference to `__atomic_compare_exchange_1'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/yoshimi.dir/build.make:1522: yoshimi] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:106: CMakeFiles/yoshimi.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
```

This can be fixed by manually linking libatomic, which I've included a patch to
do so. Please let me know if I missed anything.

Cheers,
Eric
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -464,6 +464,10 @@
     target_link_libraries (yoshimi ${ARGP_LIB})
 endif ()
 
+if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "riscv64")
+    target_link_libraries (yoshimi atomic)
+endif ()
+
 install (TARGETS yoshimi RUNTIME DESTINATION bin)
 
 install (DIRECTORY ../banks DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/yoshimi

--- End Message ---
--- Begin Message ---
Source: yoshimi
Source-Version: 2.2.2.1-1
Done: IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>

We believe that the bug you reported is fixed in the latest version of
yoshimi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1019471@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> (supplier of updated yoshimi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 12 Sep 2022 23:39:18 +0200
Source: yoshimi
Architecture: source
Version: 2.2.2.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Closes: 1019471
Changes:
 yoshimi (2.2.2.1-1) unstable; urgency=medium
 .
   * New upstream version 2.2.2.1
     (Closes: #1019471)
Checksums-Sha1:
 1941e27658f212a76eb43dd81a9cad3d7ee1f000 2652 yoshimi_2.2.2.1-1.dsc
 7177432368ea1f264d532e24cc86f39876eb15ee 8038479 yoshimi_2.2.2.1.orig.tar.gz
 8087ea1b0f20ee79d4f4a5d2528b7c0ec637cf71 13708 yoshimi_2.2.2.1-1.debian.tar.xz
Checksums-Sha256:
 afde59703fd5cb6b9c9bbd330501894084f60912715b65a161d077ec83807917 2652 yoshimi_2.2.2.1-1.dsc
 2ab5bb43a0242804eb682c90b274ad0470aea872ee16b0a7889a441f660c7c82 8038479 yoshimi_2.2.2.1.orig.tar.gz
 ab1e43dbd548470377a22224a8e0df298d3993d38a956cca0322561395519b51 13708 yoshimi_2.2.2.1-1.debian.tar.xz
Files:
 01431fd6e409457a2f6471c92d99beef 2652 sound optional yoshimi_2.2.2.1-1.dsc
 6403dff0254550fddfef9dfb049811a6 8038479 sound optional yoshimi_2.2.2.1.orig.tar.gz
 791b49a281f019d9c68831ee92e2b322 13708 sound optional yoshimi_2.2.2.1-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJKBAEBCAA0FiEEdAXnRVdICXNIABVttlAZxH96NvgFAmMfqU8WHGZvcnVtQHVt
bGFldXRlLm11ci5hdAAKCRC2UBnEf3o2+BMXD/9k//Jqo64at4R3geWksBmYBc3Y
j/o/OLywQUaPeNtmVEyt0p5Md3BaZYAjEFo1VYYtrtEqRdGG7Hc/Y17cSwp8eDkI
DMVfAK4nLTF7XUnwsyIlGuJPw9cKNT0FfU634cPghcdfAAaJyTPStGmDSda/ZhJh
a0Jx1KcF0FwrfE3hUz54vKQaD2biLusVKH265QLfHIdtBSwRsoBTWJG4qUpIzR2d
TPlghDSzrVpQX6dxVLSTXu0mM15NXcSnhze309gmd+OWxe+O6HsX1mfRB7Fc+ZCA
ZxbxOjpKjcR6MDaZNGLS5MIVHAk50PAsCmyrjsJpYjyrFlXsnoTt15zKAKuyjmuM
gynf/uu0vZmx2OGapCIs4TktuY+VrirBdej26vMuYBT4xO2p+POGpf/IAil4YltL
5Y9KEWVUrGD55PpQJS9xfD0tuUKrv+Oa/yVVBCC95vnPv9Fsdxo0xN4DI7/ygppC
qiCE1yqAlQRrIdbOiK0YrwLdITn7REkzvWwy7z8xRt0jTEFdOz/dIvHyF/sZ93Bh
gaN7ifQhiFtJQqXY6j2jAkrHehLgLEizFG1ZNrb1e7rluC+YPYJ2W7dJ3GcWx1f+
Y8HfLJ5WCmhXmN69XatfGYdHtCoXQorSbS0ajzc2t/Imwrxo52fQciYFrtZtEgUs
iGJIXGaVRXENuI+V7A==
=HekI
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: