https://bugs.kde.org/show_bug.cgi?id=443817
Bug ID: 443817 Summary: riscv64: libatomic check doesn't detect the need to link with libatomic successfully Product: krita Version: unspecified Platform: Gentoo Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: General Assignee: krita-bugs-n...@kde.org Reporter: alexfa...@yahoo.com Target Milestone: --- SUMMARY The code snippet for libatomic check compiles with no ld error on Sifive Unmatched, hence fails to detect the need to link against libatomic, resulting in "undefined reference to `__atomic_exchange_1'" STEPS TO REPRODUCE 1. compiles Krita normally following instructions in the document 2. or compile with emerge on Gentoo /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: libs/image/CMakeFiles/kritaimage.dir/tiles3/kis_tile_data_store.cc.o: in function `Leapfrog<ConcurrentMap<int, KisTileData*, DefaultKeyTraits<int>, DefaultValueTraits<KisTileData*> > >::TableMigration::run()': /var/tmp/portage/media-gfx/krita-4.4.8-r1/work/krita-4.4.8/libs/image/3rdparty/lock_free_map/leapfrog.h:475: undefined reference to `__atomic_exchange_1' /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: libs/image/CMakeFiles/kritaimage.dir/tiles3/kis_tiled_data_manager.cc.o: in function `Leapfrog<ConcurrentMap<unsigned int, KisTile*, DefaultKeyTraits<unsigned int>, DefaultValueTraits<KisTile*> > >::TableMigration::run()': /var/tmp/portage/media-gfx/krita-4.4.8-r1/work/krita-4.4.8/libs/image/3rdparty/lock_free_map/leapfrog.h:475: undefined reference to `__atomic_exchange_1' /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: libs/image/CMakeFiles/kritaimage.dir/tiles3/kis_memento_manager.cc.o: in function `Leapfrog<ConcurrentMap<unsigned int, KisMementoItem*, DefaultKeyTraits<unsigned int>, DefaultValueTraits<KisMementoItem*> > >::TableMigration::run()': /var/tmp/portage/media-gfx/krita-4.4.8-r1/work/krita-4.4.8/libs/image/3rdparty/lock_free_map/leapfrog.h:475: undefined reference to `__atomic_exchange_1' EXPECTED RESULT Krita compiles successfully SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION HARDWARE: Sifive unmatched (riscv64 lp64d) -- You are receiving this mail because: You are watching all bug changes.