Problem with linking when building qtwebengine (undefined reference to '__atomic_*')
by alexanderzhirov from LinuxQuestions.org on (#6CZAN)
I am building qtwebengine in a chroot environment based on crux ports.
All necessary libraries and tools are installed. The assembly is almost successful, except that there is a failure at the linking stage:
Code:linking ../../lib/libQt5WebEngineCore.so.5.15.14
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/alsa_input.o:alsa_input.cc:function media::AgcAudioStream<media::AudioInputStream>::StartAgc(): error: undefined reference to '__atomic_store'
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/alsa_input.o:alsa_input.cc:function media::AlsaPcmInputStream::ReadAudio(): error: undefined reference to '__atomic_load'
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/alsa_input.o:alsa_input.cc:function media::AlsaPcmInputStream::SetVolume(double): error: undefined reference to '__atomic_store'
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/alsa_input.o:alsa_input.cc:function media::AgcAudioStream<media::AudioInputStream>::QueryAndStoreNewMicrophoneVolume(): error: undefined reference to '__atomic_store'
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/pulse_input.o:pulse_input.cc:function media::PulseAudioInputStream::ReadData(): error: undefined reference to '__atomic_load'
/qtwebengine/qt/build/src/core/release/obj/base/libbase.a(/qtwebengine/qt/build/src/core/release/obj/base/base/base_jumbo_27.o):base_jumbo_27.cc:function base::internal::Sequence::Transaction::PushTask(base::internal::Task): error: undefined reference to '__atomic_store'
/qtwebengine/qt/build/src/core/release/obj/base/libbase.a(/qtwebengine/qt/build/src/core/release/obj/base/base/base_jumbo_27.o):base_jumbo_27.cc:function base::internal::Sequence::GetSortKey() const: error: undefined reference to '__atomic_load'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile.core_module:78: recipe for target '../../lib/libQt5WebEngineCore.so.5.15.14' failed
make[3]: *** [../../lib/libQt5WebEngineCore.so.5.15.14] Error 1Code:/# gcc --version
gcc (CRUX-x86_64-multilib) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
/# clang --version
clang version 10.0.1
Target: i686-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
/# qmake --version
QMake version 3.1
Using Qt version 5.15.10 in /usr/libI build everything in a 32-bit environment. The search by mistake did not yield any results. Perhaps there is another solution.
All necessary libraries and tools are installed. The assembly is almost successful, except that there is a failure at the linking stage:
Code:linking ../../lib/libQt5WebEngineCore.so.5.15.14
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/alsa_input.o:alsa_input.cc:function media::AgcAudioStream<media::AudioInputStream>::StartAgc(): error: undefined reference to '__atomic_store'
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/alsa_input.o:alsa_input.cc:function media::AlsaPcmInputStream::ReadAudio(): error: undefined reference to '__atomic_load'
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/alsa_input.o:alsa_input.cc:function media::AlsaPcmInputStream::SetVolume(double): error: undefined reference to '__atomic_store'
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/alsa_input.o:alsa_input.cc:function media::AgcAudioStream<media::AudioInputStream>::QueryAndStoreNewMicrophoneVolume(): error: undefined reference to '__atomic_store'
/qtwebengine/qt/build/src/core/release/obj/media/audio/audio/pulse_input.o:pulse_input.cc:function media::PulseAudioInputStream::ReadData(): error: undefined reference to '__atomic_load'
/qtwebengine/qt/build/src/core/release/obj/base/libbase.a(/qtwebengine/qt/build/src/core/release/obj/base/base/base_jumbo_27.o):base_jumbo_27.cc:function base::internal::Sequence::Transaction::PushTask(base::internal::Task): error: undefined reference to '__atomic_store'
/qtwebengine/qt/build/src/core/release/obj/base/libbase.a(/qtwebengine/qt/build/src/core/release/obj/base/base/base_jumbo_27.o):base_jumbo_27.cc:function base::internal::Sequence::GetSortKey() const: error: undefined reference to '__atomic_load'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile.core_module:78: recipe for target '../../lib/libQt5WebEngineCore.so.5.15.14' failed
make[3]: *** [../../lib/libQt5WebEngineCore.so.5.15.14] Error 1Code:/# gcc --version
gcc (CRUX-x86_64-multilib) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
/# clang --version
clang version 10.0.1
Target: i686-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
/# qmake --version
QMake version 3.1
Using Qt version 5.15.10 in /usr/libI build everything in a 32-bit environment. The search by mistake did not yield any results. Perhaps there is another solution.