MusicPlayerDaemon / MPD

Music Player Daemon
https://www.musicpd.org/
GNU General Public License v2.0
2.18k stars 352 forks source link

Arm compilation error compiling MimeType.cxx #1100

Closed kiwi-ed closed 3 years ago

kiwi-ed commented 3 years ago

Hi, After lengthy ARM BSP, compiler and system updates I can now cross-compile MPD 0.22.6; however I get an error compiling MimeType.cxx. If I comment out the insides of the function ParseMimeTypeParameters() the build does actually succeed (all though missing that functionality).

Attached is a build log with errors.

MPD version 0.22.6 arm-poky-linux-gnueabi-g++ (GCC) 8.2.0 Yocto Thud Linux Kernel / FS 4.19.35-r0 Ubuntu 16.04

Appreciate any help! MPD-0.22.6-fail-log.pdf

MaxKellermann commented 3 years ago

Your GCC version is outdated; 8.2 was released in 2018, and the latest 8.x version is 8.4, which is already a year old. I cannot reproduce this problem with GCC 8.3.0 (Debian Buster). Therefore, I assume this is an old GCC bug which has been fixed meanwhile.