Bug#914667: performous FTBFS on armel/mips/mipsel: undefined reference to `__atomic_load_8'

Adrian Bunk bunk at debian.org
Mon Nov 26 07:03:34 GMT 2018


Source: performous
Version: 1.1+git20181118-1
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/package.php?p=performous&suite=sid

...
/usr/bin/c++  -std=c++14 -Wall -Wextra -fcx-limited-range -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/performous-1.1+git20181118=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -pthread  -Wl,-z,relro -Wl,--as-needed -pthread -rdynamic CMakeFiles/performous.dir/3dobject.cc.o CMakeFiles/performous.dir/audio.cc.o CMakeFiles/performous.dir/backgrounds.cc.o CMakeFiles/performous.dir/cache.cc.o CMakeFiles/performous.dir/color.cc.o CMakeFiles/performous.dir/configuration.cc.o CMakeFiles/performous.dir/controllers-joystick.cc.o CMakeFiles/performous.dir/controllers-keyboard.cc.o CMakeFiles/performous.dir/controllers-midi.cc.o CMakeFiles/performous.dir/controllers.cc.o CMakeFiles/performous.dir/dancegraph.cc.o CMakeFiles/performous.dir/database.cc.o CMakeFiles/performous.dir/dialog.cc.o CMakeFiles/performous.dir/engine.cc.o CMakeFiles/performous.dir/execname.cc.o CMakeFiles/performous.dir/ffmpeg.cc.o CMakeFiles/performous.dir/fs.cc.o CMakeFiles/performous.dir/game.cc.o CMakeFiles/performous.dir/glshader.cc.o CMakeFiles/performous.dir/glutil.cc.o CMakeFiles/performous.dir/guitargraph.cc.o CMakeFiles/performous.dir/hiscore.cc.o CMakeFiles/performous.dir/image.cc.o CMakeFiles/performous.dir/instrumentgraph.cc.o CMakeFiles/performous.dir/layout_singer.cc.o CMakeFiles/performous.dir/log.cc.o CMakeFiles/performous.dir/main.cc.o CMakeFiles/performous.dir/menu.cc.o CMakeFiles/performous.dir/midifile.cc.o CMakeFiles/performous.dir/musicalscale.cc.o CMakeFiles/performous.dir/notegraph.cc.o CMakeFiles/performous.dir/notes.cc.o CMakeFiles/performous.dir/opengl_text.cc.o CMakeFiles/performous.dir/pitch.cc.o CMakeFiles/performous.dir/platform.cc.o CMakeFiles/performous.dir/player.cc.o CMakeFiles/performous.dir/players.cc.o CMakeFiles/performous.dir/playlist.cc.o CMakeFiles/performous.dir/progressbar.cc.o CMakeFiles/performous.dir/requesthandler.cc.o CMakeFiles/performous.dir/screen_audiodevices.cc.o CMakeFiles/performous.dir/screen_intro.cc.o CMakeFiles/performous.dir/screen_paths.cc.o CMakeFiles/performous.dir/screen_players.cc.o CMakeFiles/performous.dir/screen_playlist.cc.o CMakeFiles/performous.dir/screen_practice.cc.o CMakeFiles/performous.dir/screen_sing.cc.o CMakeFiles/performous.dir/screen_songs.cc.o CMakeFiles/performous.dir/song.cc.o CMakeFiles/performous.dir/songitems.cc.o CMakeFiles/performous.dir/songparser-ini.cc.o CMakeFiles/performous.dir/songparser-mid.cc.o CMakeFiles/performous.dir/songparser-sm.cc.o CMakeFiles/performous.dir/songparser-txt.cc.o CMakeFiles/performous.dir/songparser-xml.cc.o CMakeFiles/performous.dir/songparser.cc.o CMakeFiles/performous.dir/songs.cc.o CMakeFiles/performous.dir/svg.cc.o CMakeFiles/performous.dir/texture.cc.o CMakeFiles/performous.dir/theme.cc.o CMakeFiles/performous.dir/unicode.cc.o CMakeFiles/performous.dir/util.cc.o CMakeFiles/performous.dir/video.cc.o CMakeFiles/performous.dir/video_driver.cc.o CMakeFiles/performous.dir/webcam.cc.o CMakeFiles/performous.dir/webserver.cc.o  -o ../performous -lboost_program_options -lboost_filesystem -lboost_iostreams -lboost_system -lboost_locale -lboost_regex -licuuc -licudata -licui18n -licuio -lepoxy -Wl,-Bstatic -lSDL2main -Wl,-Bdynamic -lSDL2 -lpangocairo-1.0 -lpango-1.0 -lcairo -lfreetype -lglib-2.0 -lgobject-2.0 -lrsvg-2 -lcairo -lfreetype -lgdk_pixbuf-2.0 -lxml++-2.6 -lxml2 -lglibmm-2.4 -lglib-2.0 -lsigc-2.0 -lavformat -lavcodec -lavutil -lswresample -lavutil -lswscale -lavutil -lz -ljpeg -lpng -lz -lportaudio -lfontconfig -lportmidi -lboost_chrono -lboost_thread -lboost_system -lboost_date_time -lboost_atomic -lpthread -lcpprest -lcrypto -lssl ../lib/libced.a -lboost_locale -lboost_regex -licuuc -licudata -licui18n -licuio -lepoxy -Wl,-Bstatic -lSDL2main -Wl,-Bdynamic -lSDL2 -lpangocairo-1.0 -lpango-1.0 -lcairo -lfreetype -lglib-2.0 -lgobject-2.0 -lrsvg-2 -lgdk_pixbuf-2.0 -lxml++-2.6 -lxml2 -lglibmm-2.4 -lsigc-2.0 -lavformat -lavcodec -lavutil -lswresample -lswscale -lz -ljpeg -lpng -lportaudio -lfontconfig -lportmidi -lboost_chrono -lboost_thread -lboost_date_time -lboost_atomic -lpthread -lcpprest -lcrypto -lssl 
/usr/bin/ld: CMakeFiles/performous.dir/ffmpeg.cc.o: in function `FFmpeg::seek_internal()':
/usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: /usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: /usr/include/c++/8/atomic:239: undefined reference to `__atomic_store_8'
/usr/bin/ld: CMakeFiles/performous.dir/ffmpeg.cc.o: in function `FFmpeg::seek(double, bool)':
/usr/include/c++/8/atomic:239: undefined reference to `__atomic_store_8'
/usr/bin/ld: /usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: /usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/performous.dir/ffmpeg.cc.o: in function `FFmpeg::decodePacket()':
/usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: /usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/performous.dir/ffmpeg.cc.o: in function `FFmpeg::operator()()':
/usr/include/c++/8/atomic:239: undefined reference to `__atomic_store_8'
/usr/bin/ld: /usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: /usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/performous.dir/audio.cc.o: in function `Audio::getPosition() const':
/usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/performous.dir/audio.cc.o: in function `Audio::seek(double)':
/usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/performous.dir/audio.cc.o: in function `AudioClock::pos() const':
/usr/include/c++/8/atomic:250: undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/performous.dir/audio.cc.o:/usr/include/c++/8/atomic:250: more undefined references to `__atomic_load_8' follow
/usr/bin/ld: CMakeFiles/performous.dir/audio.cc.o: in function `Output::callback(float*, float*, double)':
/usr/include/c++/8/atomic:239: undefined reference to `__atomic_store_8'
/usr/bin/ld: /usr/include/c++/8/atomic:239: undefined reference to `__atomic_store_8'
collect2: error: ld returned 1 exit status
make[3]: *** [game/CMakeFiles/performous.dir/build.make:1154: performous] Error 1


Fix:

--- debian/rules.old	2018-11-26 06:41:17.444174468 +0000
+++ debian/rules	2018-11-26 06:42:25.152819741 +0000
@@ -8,6 +8,9 @@
 export DEB_CXXFLAGS_MAINT_APPEND := -mno-altivec
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mips mipsel powerpc powerpcspe sh4))
+export DEB_LDFLAGS_MAINT_APPEND = -latomic
+endif
 
 %:
 	dh $@



More information about the Pkg-games-devel mailing list