Problem found when building audio/id3lib on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit, running on Apple Powerbook 17". /usr/ports/audio/id3lib # make -DBATCH install clean ===> License GPLv2+ accepted by the user ===> id3lib-3.8.3_10 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by id3lib-3.8.3_10 for building ===> Extracting for id3lib-3.8.3_10 => SHA256 Checksum OK for id3lib-3.8.3.tar.gz. ===> Patching for id3lib-3.8.3_10 ===> Applying FreeBSD patches for id3lib-3.8.3_10 ===> id3lib-3.8.3_10 depends on package: libiconv>=1.14_11 - found ===> Configuring for id3lib-3.8.3_10 ===> FreeBSD 10 autotools fix applied to /usr/ports/audio/id3lib/work/id3lib-3.8.3/aclocal.m4 ===> FreeBSD 10 autotools fix applied to /usr/ports/audio/id3lib/work/id3lib-3.8.3/configure ===> FreeBSD 10 autotools fix applied to /usr/ports/audio/id3lib/work/id3lib-3.8.3/ltconfig configure: loading site script /usr/ports/Templates/config.site checking for a BSD-compatible install... /usr/bin/install -c ..... ..... ..... rm -fr .libs/libid3.la .libs/libid3.* .libs/libid3-3.8.* cc -shared c_wrapper.lo field.lo field_binary.lo field_integer.lo field_string_ascii.lo field_string_unicode.lo frame.lo frame_impl.lo frame_parse.lo frame_render.lo globals.lo header.lo header_frame.lo header_tag.lo helpers.lo io.lo io_decorators.lo io_helpers.lo misc_support.lo mp3_parse.lo readers.lo spec.lo tag.lo tag_file.lo tag_find.lo tag_impl.lo tag_parse.lo tag_parse_lyrics3.lo tag_parse_musicmatch.lo tag_parse_v1.lo tag_render.lo utils.lo writers.lo -lz -L/usr/local/lib -Wl,-soname -Wl,libid3-3.8.so.3 -o .libs/libid3-3.8.so.3.0.0 `_ZTSN12_GLOBAL__N_117ConstIteratorImplE' referenced in section `.data.rel.ro' of tag.lo: defined in discarded section `.rodata._ZTSN12_GLOBAL__N_117ConstIteratorImplE[_ZTSN12_GLOBAL__N_117ConstIteratorImplE]' of tag.lo `_ZTSN12_GLOBAL__N_112IteratorImplE' referenced in section `.data.rel.ro' of tag.lo: defined in discarded section `.rodata._ZTSN12_GLOBAL__N_112IteratorImplE[_ZTSN12_GLOBAL__N_112IteratorImplE]' of tag.lo *** [libid3.la] Error code 1 make[3]: stopped in /usr/ports/audio/id3lib/work/id3lib-3.8.3/src 1 error make[3]: stopped in /usr/ports/audio/id3lib/work/id3lib-3.8.3/src *** [all-recursive] Error code 1 make[2]: stopped in /usr/ports/audio/id3lib/work/id3lib-3.8.3 1 error make[2]: stopped in /usr/ports/audio/id3lib/work/id3lib-3.8.3 *** [all] Error code 2 make[1]: stopped in /usr/ports/audio/id3lib/work/id3lib-3.8.3 1 error make[1]: stopped in /usr/ports/audio/id3lib/work/id3lib-3.8.3 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/audio/id3lib
A commit references this bug: Author: pkubaj Date: Sun Apr 5 14:04:27 UTC 2020 New revision: 530789 URL: https://svnweb.freebsd.org/changeset/ports/530789 Log: audio/id3lib: fix build on powerpc 12.1-RELEASE Error: `_ZTSN12_GLOBAL__N_117ConstIteratorImplE' referenced in section `.data.rel.ro' of tag.lo: defined in discarded section `.rodata._ZTSN12_GLOBAL__N_117ConstIteratorImplE[_ZTSN12_GLOBAL__N_117ConstIteratorImplE]' of tag.lo Using newer binutils alone doesn't help, but using also newer GCC helps. PR: 243715 Reported by: canardo909@gmx.com Changes: head/audio/id3lib/Makefile
Build successful ! ===> Installing for id3lib-3.8.3_10 ===> Checking if id3lib is already installed ===> Registering installation for id3lib-3.8.3_10 Installing id3lib-3.8.3_10... ===> Cleaning for id3lib-3.8.3_10