Trying to build audio/musicpd on FreeBSD 10.1-RELEASE-p1 amd64 with system clang (3.4) and clang35 from ports. The build fails when trying to compile ApeReplayGain.cxx gmake[3]: Entering directory '/var/ports/basejail/usr/ports/audio/musicpd/work/mpd-0.18.11' gmake all-am gmake[4]: Entering directory '/var/ports/basejail/usr/ports/audio/musicpd/work/mpd-0.18.11' clang++35 -DHAVE_CONFIG_H -I. -DNDEBUG -I./src -pthread -isystem /usr/local/include/glib-2.0 -isystem /usr/local/lib/glib-2.0/include -isystem /usr/local/include -DSYSTEM_CONFIG_FILE_LOCATION='"/usr/local/etc/mpd.conf"' -I/usr/local/include -std=gnu++0x -O2 -pipe -I/usr/local/include -fstack-protector -fno-strict-aliasing -fvisibility=hidden -fno-threadsafe-statics -fmerge-all-constants -fno-exceptions -fno-rtti -ffast-math -ftree-vectorize -ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wsign-compare -MT src/tag/libtag_a-ApeReplayGain.o -MD -MP -MF src/tag/.deps/libtag_a-ApeReplayGain.Tpo -c -o src/tag/libtag_a-ApeReplayGain.o `test -f 'src/tag/ApeReplayGain.cxx' || echo './'`src/tag/ApeReplayGain.cxx In file included from src/tag/ApeReplayGain.cxx:22: In file included from src/tag/ApeLoader.hxx:25: In file included from /usr/include/c++/v1/functional:465: In file included from /usr/include/c++/v1/memory:603: /usr/include/c++/v1/tuple:320:11: error: rvalue reference to type '(lambda at src/tag/ApeReplayGain.cxx:67:18)' cannot bind to lvalue of type '(lambda at src/tag/ApeReplayGain.cxx:67:18)' : value(__t.get()) ^ ~~~~~~~~~ /usr/include/c++/v1/tuple:444:8: note: in instantiation of member function 'std::__1::__tuple_leaf<0, (lambda at src/tag/ApeReplayGain.cxx:67:18) &&, false>::__tuple_leaf' requested here struct __tuple_impl<__tuple_indices<_Indx...>, _Tp...> ^ /usr/include/c++/v1/functional:1286:26: note: in instantiation of member function 'std::__1::__function::__func<(lambda at src/tag/ApeReplayGain.cxx:67:18), std::__1::allocator<(lambda at src/tag/ApeReplayGain.cxx:67:18)>, bool (unsigned long, const char *, const char *, unsigned long)>::__func' requested here ::new (__f_) _FF(_VSTD::move(__f)); ^ src/tag/ApeReplayGain.cxx:77:31: note: in instantiation of function template specialization 'std::__1::function<bool (unsigned long, const char *, const char *, unsigned long)>::function<(lambda at src/tag/ApeReplayGain.cxx:67:18)>' requested here return tag_ape_scan(path_fs, callback) && found; ^ In file included from src/tag/ApeReplayGain.cxx:22: In file included from src/tag/ApeLoader.hxx:25: In file included from /usr/include/c++/v1/memory:603: /usr/include/c++/v1/tuple:321:10: error: static_assert failed "Can not copy a tuple with rvalue reference member" {static_assert(!is_rvalue_reference<_Hp>::value, "Can not copy a tuple with rvalue reference member");} ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/tuple:320:11: error: rvalue reference to type 'allocator<[...]>' cannot bind to lvalue of type 'allocator<[...]>' : value(__t.get()) ^ ~~~~~~~~~ /usr/include/c++/v1/tuple:444:8: note: in instantiation of member function 'std::__1::__tuple_leaf<0, std::__1::allocator<(lambda at src/tag/ApeReplayGain.cxx:67:18)> &&, false>::__tuple_leaf' requested here struct __tuple_impl<__tuple_indices<_Indx...>, _Tp...> ^ /usr/include/c++/v1/functional:1028:26: note: in instantiation of member function 'std::__1::__function::__func<(lambda at src/tag/ApeReplayGain.cxx:67:18), std::__1::allocator<(lambda at src/tag/ApeReplayGain.cxx:67:18)>, bool (unsigned long, const char *, const char *, unsigned long)>::__func' requested here ::new (__hold.get()) __func(__f_.first(), _Alloc(__a)); ^ /usr/include/c++/v1/functional:992:14: note: in instantiation of member function 'std::__1::__function::__func<(lambda at src/tag/ApeReplayGain.cxx:67:18), std::__1::allocator<(lambda at src/tag/ApeReplayGain.cxx:67:18)>, bool (unsigned long, const char *, const char *, unsigned long)>::__clone' requested here explicit __func(_Fp&& __f) ^ /usr/include/c++/v1/functional:1286:26: note: in instantiation of member function 'std::__1::__function::__func<(lambda at src/tag/ApeReplayGain.cxx:67:18), std::__1::allocator<(lambda at src/tag/ApeReplayGain.cxx:67:18)>, bool (unsigned long, const char *, const char *, unsigned long)>::__func' requested here ::new (__f_) _FF(_VSTD::move(__f)); ^ src/tag/ApeReplayGain.cxx:77:31: note: in instantiation of function template specialization 'std::__1::function<bool (unsigned long, const char *, const char *, unsigned long)>::function<(lambda at src/tag/ApeReplayGain.cxx:67:18)>' requested here return tag_ape_scan(path_fs, callback) && found; ^ In file included from src/tag/ApeReplayGain.cxx:22: In file included from src/tag/ApeLoader.hxx:25: In file included from /usr/include/c++/v1/functional:465: In file included from /usr/include/c++/v1/memory:603: /usr/include/c++/v1/tuple:321:10: error: static_assert failed "Can not copy a tuple with rvalue reference member" {static_assert(!is_rvalue_reference<_Hp>::value, "Can not copy a tuple with rvalue reference member");} ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. Makefile:6995: recipe for target 'src/tag/libtag_a-ApeReplayGain.o' failed gmake[4]: *** [src/tag/libtag_a-ApeReplayGain.o] Error 1 gmake[4]: Leaving directory '/var/ports/basejail/usr/ports/audio/musicpd/work/mpd-0.18.11' Makefile:3235: recipe for target 'all' failed gmake[3]: *** [all] Error 2 gmake[3]: Leaving directory '/var/ports/basejail/usr/ports/audio/musicpd/work/mpd-0.18.11' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[2]: stopped in /basejail/usr/ports/audio/musicpd *** Error code 1 Stop. make[1]: stopped in /basejail/usr/ports/audio/musicpd *** Error code 1 Stop. make: stopped in /basejail/usr/ports/audio/musicpd
Auto-assigned to maintainer crees@FreeBSD.org
same on i386
it works with USE_GCC= 4.8
A commit references this bug: Author: crees Date: Fri Dec 19 17:08:45 UTC 2014 New revision: 374953 URL: https://svnweb.freebsd.org/changeset/ports/374953 Log: Fix build on 10.1-- temporary fix until clang bug investigated PR: ports/195888 Submitted by: martin.dieringer Changes: head/audio/musicpd/Makefile
I just built this in a 10.1-STABLE and 10.1-RELEASE-p2 jail, both amd64, with clang from base. No problems whatsoever, builds and works. Can we please revert this last commit and find out what is special about Martin's system?
It affects Martin as well as me. I don’t know what could cause it to fail for me, but here’s a list of packages/ports installed in the jail. GeoIP-1.6.3_1 = autoconf-2.69 = autoconf-wrapper-20131203 = automake-1.14_1 = automake-wrapper-20131203 = ca_root_nss-3.17.3_1 = clang35-3.5.0_1 < curl-7.39.0_1 = dialog4ports-0.1.5_2 = expat-2.1.0_2 = flac-1.3.0_4 = gettext-0.19.3 = gettext-runtime-0.19.3 = gettext-tools-0.19.3 = glib-2.42.1 = gmake-4.1_1 = gmake-lite-4.1_1 = help2man-1.43.3_1 = indexinfo-0.2 = libaudiofile-0.3.6_1 = libc++-208080 = libevent2-2.0.21_3 = libffi-3.0.13_3 = libiconv-1.14_6 = libid3tag-0.15.1b_1 = libmad-0.15.1b_6 = libmpdclient-2.9_3 = libogg-1.3.2_1,4 = libsndfile-1.0.25_5 = libtool-2.4.2.418 = libvorbis-1.3.4_2,3 = llvm35-3.5.0 < m4-1.4.17_1,1 = musicpc-0.26 = musicpd-0.18.11_4 < nginx-1.6.2_1,2 = p5-Locale-gettext-1.05_4 = pcre-8.35_2 = perl5-5.18.4_11 = pkg-1.4.0 = pkgconf-0.9.7 = portmaster-3.17.7 = python27-2.7.8_6 = transmission-daemon-2.84_1 = transmission-web-2.84 = yasm-1.2.0 =
On first check, this looks not like the presence of some other package would cause this type of compilation error. What OPTIONS do you set for musicpd?
Contents of /var/db/ports/audio_musicpd/options: _FILE_COMPLETE_OPTIONS_LIST=ARCHIVE CDPARANOIA DOCS ID3TAG IPV6 LAME MMS SAMPLERATE SQLITE3 VORBISENC AVAHI MDNSRESPONDER AAC ADPLUG FFMPEG FLAC FLUIDSYNTH GME MAD MIKMOD MODPLUG MPG123 MUSEPACK OPUS SIDPLAY2 SNDFILE TREMOR TWOLAME VORBIS WAV WAVPACK WILDMIDI AO CURL HTTPD JACK OPENAL OSS PULSEAUDIO SHOUTCAST OPTIONS_FILE_UNSET+=ARCHIVE OPTIONS_FILE_UNSET+=CDPARANOIA OPTIONS_FILE_UNSET+=DOCS OPTIONS_FILE_SET+=ID3TAG OPTIONS_FILE_SET+=IPV6 OPTIONS_FILE_UNSET+=LAME OPTIONS_FILE_UNSET+=MMS OPTIONS_FILE_UNSET+=SAMPLERATE OPTIONS_FILE_UNSET+=SQLITE3 OPTIONS_FILE_SET+=VORBISENC OPTIONS_FILE_UNSET+=AVAHI OPTIONS_FILE_UNSET+=MDNSRESPONDER OPTIONS_FILE_UNSET+=AAC OPTIONS_FILE_UNSET+=ADPLUG OPTIONS_FILE_UNSET+=FFMPEG OPTIONS_FILE_SET+=FLAC OPTIONS_FILE_UNSET+=FLUIDSYNTH OPTIONS_FILE_UNSET+=GME OPTIONS_FILE_SET+=MAD OPTIONS_FILE_UNSET+=MIKMOD OPTIONS_FILE_UNSET+=MODPLUG OPTIONS_FILE_UNSET+=MPG123 OPTIONS_FILE_UNSET+=MUSEPACK OPTIONS_FILE_UNSET+=OPUS OPTIONS_FILE_UNSET+=SIDPLAY2 OPTIONS_FILE_SET+=SNDFILE OPTIONS_FILE_UNSET+=TREMOR OPTIONS_FILE_UNSET+=TWOLAME OPTIONS_FILE_SET+=VORBIS OPTIONS_FILE_SET+=WAV OPTIONS_FILE_UNSET+=WAVPACK OPTIONS_FILE_UNSET+=WILDMIDI OPTIONS_FILE_UNSET+=AO OPTIONS_FILE_UNSET+=CURL OPTIONS_FILE_SET+=HTTPD OPTIONS_FILE_UNSET+=JACK OPTIONS_FILE_UNSET+=OPENAL OPTIONS_FILE_SET+=OSS OPTIONS_FILE_UNSET+=PULSEAUDIO OPTIONS_FILE_UNSET+=SHOUTCAST
Tested these options and still I am unable to reproduce the build problem. Chris, were you able to reproduce this?
I can't reproduce the problem either and +1 for the fix to be reverted, especially that it breaks build with SIDPLAY enabled. nvl@crde.me, could you post a complete build log with system compiler and DISABLE_MAKE_JOBS=yes?
A commit references this bug: Author: crees Date: Sat Jan 24 21:21:23 UTC 2015 New revision: 377827 URL: https://svnweb.freebsd.org/changeset/ports/377827 Log: Revert fix-- incorrect PR: ports/195888 Changes: head/audio/musicpd/Makefile
Closing this PR due to submitter's inactivity (10 months).